@Implements(android.app.KeyguardManager.KeyguardLock.class) public static class ShadowKeyguardManager.ShadowKeyguardLock extends Object
KeyguardManager.KeyguardLock, for use in tests.| Constructor | Description |
|---|---|
ShadowKeyguardLock() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
disableKeyguard() |
Sets the value to be returned by
isEnabled() to false. |
boolean |
isEnabled() |
For tests, returns the value set via
disableKeyguard() or reenableKeyguard(), or true by default. |
protected void |
reenableKeyguard() |
Sets the value to be returned by
isEnabled() to true. |
static void |
reset() |
@Implementation protected void disableKeyguard()
isEnabled() to false.isEnabled()@Implementation protected void reenableKeyguard()
isEnabled() to true.isEnabled()public boolean isEnabled()
disableKeyguard() or reenableKeyguard(), or true by default.@Resetter public static void reset()