FileDocCategorySizeDatePackage
KeyguardServiceWrapper.javaAPI DocAndroid 5.1 API6011Thu Mar 12 22:22:42 GMT 2015com.android.internal.policy.impl.keyguard

KeyguardServiceWrapper

public class KeyguardServiceWrapper extends Object implements com.android.internal.policy.IKeyguardService
A wrapper class for KeyguardService. It implements IKeyguardService to ensure the interface remains consistent.

Fields Summary
private KeyguardStateMonitor
mKeyguardStateMonitor
private com.android.internal.policy.IKeyguardService
mService
private String
TAG
Constructors Summary
public KeyguardServiceWrapper(android.content.Context context, com.android.internal.policy.IKeyguardService service)


         
        mService = service;
        mKeyguardStateMonitor = new KeyguardStateMonitor(context, service);
    
Methods Summary
public voidaddStateMonitorCallback(com.android.internal.policy.IKeyguardStateCallback callback)

        try {
            mService.addStateMonitorCallback(callback);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public android.os.IBinderasBinder()

        return mService.asBinder();
    
public voiddismiss()

        try {
            mService.dismiss();
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voiddoKeyguardTimeout(android.os.Bundle options)

        try {
            mService.doKeyguardTimeout(options);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public booleanisInputRestricted()

        return mKeyguardStateMonitor.isInputRestricted();
    
public booleanisSecure()

        return mKeyguardStateMonitor.isSecure();
    
public booleanisShowing()

        return mKeyguardStateMonitor.isShowing();
    
public voidkeyguardDone(boolean authenticated, boolean wakeup)

        try {
            mService.keyguardDone(authenticated, wakeup);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidonActivityDrawn()

        try {
            mService.onActivityDrawn();
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidonBootCompleted()

        try {
            mService.onBootCompleted();
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidonDreamingStarted()

        try {
            mService.onDreamingStarted();
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidonDreamingStopped()

        try {
            mService.onDreamingStopped();
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidonScreenTurnedOff(int reason)

        try {
            mService.onScreenTurnedOff(reason);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidonScreenTurnedOn(com.android.internal.policy.IKeyguardShowCallback result)

        try {
            mService.onScreenTurnedOn(result);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidonSystemReady()

        try {
            mService.onSystemReady();
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidsetCurrentUser(int userId)

        mKeyguardStateMonitor.setCurrentUser(userId);
        try {
            mService.setCurrentUser(userId);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidsetKeyguardEnabled(boolean enabled)

        try {
            mService.setKeyguardEnabled(enabled);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidsetOccluded(boolean isOccluded)

        try {
            mService.setOccluded(isOccluded);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidstartKeyguardExitAnimation(long startTime, long fadeoutDuration)

        try {
            mService.startKeyguardExitAnimation(startTime, fadeoutDuration);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }
    
public voidverifyUnlock(com.android.internal.policy.IKeyguardExitCallback callback)

        try {
            mService.verifyUnlock(callback);
        } catch (RemoteException e) {
            Slog.w(TAG , "Remote Exception", e);
        }