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 of 
KeyguardManager.KeyguardLock, for use in tests.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidSets the value to be returned byisEnabled()to false.booleanFor tests, returns the value set viadisableKeyguard()orreenableKeyguard(), or true by default.protected voidSets the value to be returned byisEnabled()to true.static voidreset()
- 
Constructor Details- 
ShadowKeyguardLockpublic ShadowKeyguardLock()
 
- 
- 
Method Details- 
disableKeyguardSets the value to be returned byisEnabled()to false.- See Also:
 
- 
reenableKeyguardSets the value to be returned byisEnabled()to true.- See Also:
 
- 
isEnabledpublic boolean isEnabled()For tests, returns the value set viadisableKeyguard()orreenableKeyguard(), or true by default.
- 
reset
 
-