FileDocCategorySizeDatePackage
LockPatternKeyguardViewProperties.javaAPI DocAndroid 1.5 API2472Wed May 06 22:42:06 BST 2009com.android.internal.policy.impl

LockPatternKeyguardViewProperties

public class LockPatternKeyguardViewProperties extends Object implements KeyguardViewProperties
Knows how to create a lock pattern keyguard view, and answer questions about it (even if it hasn't been created, per the interface specs).

Fields Summary
private final com.android.internal.widget.LockPatternUtils
mLockPatternUtils
private final KeyguardUpdateMonitor
mUpdateMonitor
Constructors Summary
public LockPatternKeyguardViewProperties(com.android.internal.widget.LockPatternUtils lockPatternUtils, KeyguardUpdateMonitor updateMonitor)

param
lockPatternUtils Used to know whether the pattern enabled, and passed onto the keygaurd view when it is created.
param
updateMonitor Used to know whether the sim pin is enabled, and passed onto the keyguard view when it is created.

        mLockPatternUtils = lockPatternUtils;
        mUpdateMonitor = updateMonitor;
    
Methods Summary
public KeyguardViewBasecreateKeyguardView(android.content.Context context, KeyguardUpdateMonitor updateMonitor, KeyguardWindowController controller)

        return new LockPatternKeyguardView(context, updateMonitor,
                mLockPatternUtils, controller);
    
private booleanisLockPatternSecure()

        return mLockPatternUtils.isLockPatternEnabled() && mLockPatternUtils
                .savedPatternExists();
    
public booleanisSecure()

        return isLockPatternSecure() || isSimPinSecure();
    
private booleanisSimPinSecure()

        final SimCard.State simState = mUpdateMonitor.getSimState();
        return (simState == SimCard.State.PIN_REQUIRED || simState == SimCard.State.PUK_REQUIRED
            || simState == SimCard.State.ABSENT);