SuspendBlockerpublic interface SuspendBlocker Low-level suspend blocker mechanism equivalent to holding a partial wake lock.
This interface is used internally to avoid introducing internal dependencies
on the high-level wake lock mechanism. |
Methods Summary |
---|
public void | acquire()Acquires the suspend blocker.
Prevents the CPU from going to sleep.
Calls to acquire() nest and must be matched by the same number
of calls to release().
| public void | release()Releases the suspend blocker.
Allows the CPU to go to sleep if no other suspend blockers are held.
It is an error to call release() if the suspend blocker has not been acquired.
The system may crash.
|
|