blob: d1f7fa3b2394a0013b6318ed5a8f30e00e54663c [file] [log] [blame]
Jim Miller5ecd8112013-01-09 18:50:26 -08001/*
Jim Miller25190572013-02-28 17:36:24 -08002 * Copyright (C) 2013 The Android Open Source Project
Jim Miller5ecd8112013-01-09 18:50:26 -08003 *
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
Jim Miller25190572013-02-28 17:36:24 -080018import com.android.internal.policy.IKeyguardShowCallback;
19import com.android.internal.policy.IKeyguardExitCallback;
Jim Miller5ecd8112013-01-09 18:50:26 -080020
21import android.os.Bundle;
22
23interface IKeyguardService {
24 boolean isShowing();
25 boolean isSecure();
26 boolean isShowingAndNotHidden();
27 boolean isInputRestricted();
28 boolean isDismissable();
Jim Miller25190572013-02-28 17:36:24 -080029 oneway void verifyUnlock(IKeyguardExitCallback callback);
Jim Miller5ecd8112013-01-09 18:50:26 -080030 oneway void keyguardDone(boolean authenticated, boolean wakeup);
31 oneway void setHidden(boolean isHidden);
32 oneway void dismiss();
Jim Miller5ecd8112013-01-09 18:50:26 -080033 oneway void onDreamingStarted();
34 oneway void onDreamingStopped();
35 oneway void onScreenTurnedOff(int reason);
Jim Miller25190572013-02-28 17:36:24 -080036 oneway void onScreenTurnedOn(IKeyguardShowCallback callback);
Jim Miller5ecd8112013-01-09 18:50:26 -080037 oneway void setKeyguardEnabled(boolean enabled);
38 oneway void onSystemReady();
39 oneway void doKeyguardTimeout(in Bundle options);
40 oneway void setCurrentUser(int userId);
41 oneway void showAssistant();
42}