IKeyguardService.aidl revision caf24fc2c4bb9747eb80138bf3ce0be067851749
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 oneway void setHidden(boolean isHidden); 34 oneway void dismiss(); 35 oneway void onDreamingStarted(); 36 oneway void onDreamingStopped(); 37 oneway void onScreenTurnedOff(int reason); 38 oneway void onScreenTurnedOn(IKeyguardShowCallback callback); 39 oneway void setKeyguardEnabled(boolean enabled); 40 oneway void onSystemReady(); 41 oneway void doKeyguardTimeout(in Bundle options); 42 oneway void setCurrentUser(int userId); 43 oneway void showAssistant(); 44 oneway void dispatch(in MotionEvent event); 45} 46