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