@Implements(value=android.os.PowerManager.WakeLock.class) public static class ShadowPowerManager.ShadowWakeLock extends java.lang.Object
Constructor and Description |
---|
ShadowWakeLock() |
Modifier and Type | Method and Description |
---|---|
void |
acquire() |
void |
acquire(long timeout) |
android.os.WorkSource |
getWorkSource() |
boolean |
isHeld() |
boolean |
isReferenceCounted()
Retrieves if the wake lock is reference counted or not
|
void |
release() |
void |
setReferenceCounted(boolean value) |
void |
setWorkSource(android.os.WorkSource ws) |
@Implementation public void acquire()
@Implementation public void acquire(long timeout)
@Implementation public void release()
@Implementation public boolean isHeld()
public boolean isReferenceCounted()
Retrieves if the wake lock is reference counted or not
@Implementation public void setReferenceCounted(boolean value)
@Implementation public void setWorkSource(android.os.WorkSource ws)
public android.os.WorkSource getWorkSource()