FileDocCategorySizeDatePackage
KeyguardService.javaAPI DocAndroid 5.1 API5565Thu Mar 12 22:22:42 GMT 2015com.android.systemui.keyguard

KeyguardService

public class KeyguardService extends android.app.Service

Fields Summary
static final String
TAG
static final String
PERMISSION
private KeyguardViewMediator
mKeyguardViewMediator
private final IKeyguardService.Stub
mBinder
Constructors Summary
Methods Summary
voidcheckPermission()

        // Avoid deadlock by avoiding calling back into the system process.
        if (Binder.getCallingUid() == Process.SYSTEM_UID) return;

        // Otherwise,explicitly check for caller permission ...
        if (getBaseContext().checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) {
            Log.w(TAG, "Caller needs permission '" + PERMISSION + "' to call " + Debug.getCaller());
            throw new SecurityException("Access denied to process: " + Binder.getCallingPid()
                    + ", must have permission " + PERMISSION);
        }
    
public android.os.IBinderonBind(android.content.Intent intent)

        return mBinder;
    
public voidonCreate()


    
       
        ((SystemUIApplication) getApplication()).startServicesIfNeeded();
        mKeyguardViewMediator =
                ((SystemUIApplication) getApplication()).getComponent(KeyguardViewMediator.class);