IKeyguardService.aidl revision 8ae65aecc81d5a3ccf2320b88a8324e82b46fda4
1/* 2 * Copyright (C) 2013 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16package com.android.internal.policy; 17 18import android.view.MotionEvent; 19 20import com.android.internal.policy.IKeyguardShowCallback; 21import com.android.internal.policy.IKeyguardExitCallback; 22 23import android.os.Bundle; 24 25interface IKeyguardService { 26 boolean isShowing(); 27 boolean isSecure(); 28 boolean isShowingAndNotHidden(); 29 boolean isInputRestricted(); 30 boolean isDismissable(); 31 oneway void verifyUnlock(IKeyguardExitCallback callback); 32 oneway void keyguardDone(boolean authenticated, boolean wakeup); 33 34 /** 35 * Hides the Keyguard when a window dismisses the Keyguard with flag FLAG_SHOW_ON_LOCK_SCREEN. 36 * 37 * @param isHidden Whether the Keyguard should be hidden. 38 * @return See IKeyguardServiceConstants.KEYGUARD_SERVICE_HIDE_*. This is needed because 39 * PhoneWindowManager needs to set these flags immediately and can't wait for the 40 * Keyguard thread to pick it up. In the hidden case, PhoneWindowManager is solely 41 * responsible to make sure that the flags are unset. 42 */ 43 int setHidden(boolean isHidden); 44 45 oneway void dismiss(); 46 oneway void onDreamingStarted(); 47 oneway void onDreamingStopped(); 48 oneway void onScreenTurnedOff(int reason); 49 oneway void onScreenTurnedOn(IKeyguardShowCallback callback); 50 oneway void setKeyguardEnabled(boolean enabled); 51 oneway void onSystemReady(); 52 oneway void doKeyguardTimeout(in Bundle options); 53 oneway void setCurrentUser(int userId); 54 oneway void showAssistant(); 55 oneway void dispatch(in MotionEvent event); 56 oneway void launchCamera(); 57 oneway void onBootCompleted(); 58} 59