Package org.robolectric.shadows
Class ShadowKeyguardManager.ShadowKeyguardLock
- java.lang.Object
-
- org.robolectric.shadows.ShadowKeyguardManager.ShadowKeyguardLock
-
- Enclosing class:
- ShadowKeyguardManager
@Implements(android.app.KeyguardManager.KeyguardLock.class) public static class ShadowKeyguardManager.ShadowKeyguardLock extends Object
An implementation ofKeyguardManager.KeyguardLock
, for use in tests.
-
-
Constructor Summary
Constructors Constructor Description ShadowKeyguardLock()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
disableKeyguard()
Sets the value to be returned byisEnabled()
to false.boolean
isEnabled()
For tests, returns the value set viadisableKeyguard()
orreenableKeyguard()
, or true by default.protected void
reenableKeyguard()
Sets the value to be returned byisEnabled()
to true.static void
reset()
-
-
-
Method Detail
-
disableKeyguard
@Implementation protected void disableKeyguard()
Sets the value to be returned byisEnabled()
to false.- See Also:
isEnabled()
-
reenableKeyguard
@Implementation protected void reenableKeyguard()
Sets the value to be returned byisEnabled()
to true.- See Also:
isEnabled()
-
isEnabled
public boolean isEnabled()
For tests, returns the value set viadisableKeyguard()
orreenableKeyguard()
, or true by default.
-
reset
@Resetter public static void reset()
-
-