123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- extern "C" {
- enum
- {
-
- PARTIAL_WAKE_LOCK,
-
- FULL_WAKE_LOCK,
- MAX_WAKE_LOCK_TYPE,
- };
- enum
- {
- BT_WAKE_LOCK_USER,
- MEDIA_WAKE_LOCK_USER,
- USB_WAKE_LOCK_USER,
- POWER_WAKE_LOCK_USER,
- SYS_WAKE_LOCK_USER,
- APP_WAKE_LOCK_USER,
- DISPLAY_WAKE_LOCK_USER,
- MAX_WAKE_LOCK_USER,
- };
- int sys_wake_lock(int wake_lock_type);
- int sys_wake_lock_ext(int wake_lock_type, int wake_lock_user);
- int sys_wake_unlock(int wake_lock_type);
- int sys_wake_unlock_ext(int wake_lock_type, int wake_lock_user);
- int sys_wakelocks_check(int wake_lock_type);
- uint32_t sys_wakelocks_get_free_time(int wake_lock_type);
- int sys_wakelocks_wait(int wake_lock_type);
- int sys_wakelocks_wake(int wake_lock_type);
- void sys_wakelocks_dump(void);
- }
|