@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 |
---|---|
protected void |
acquire() |
protected void |
acquire(long timeout) |
android.os.WorkSource |
getWorkSource() |
protected boolean |
isHeld() |
boolean |
isReferenceCounted()
Retrieves if the wake lock is reference counted or not
|
protected void |
release() |
protected void |
setReferenceCounted(boolean value) |
protected void |
setWorkSource(android.os.WorkSource ws) |
@Implementation protected void acquire()
@Implementation protected void acquire(long timeout)
@Implementation protected void release()
@Implementation protected boolean isHeld()
public boolean isReferenceCounted()
Retrieves if the wake lock is reference counted or not
@Implementation protected void setReferenceCounted(boolean value)
@Implementation protected void setWorkSource(android.os.WorkSource ws)
public android.os.WorkSource getWorkSource()