1657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock/*
29abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * Copyright (C) 2016 The Android Open Source Project
3657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock *
49abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
59abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * except in compliance with the License. You may obtain a copy of the License at
6657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock *
7657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock *      http://www.apache.org/licenses/LICENSE-2.0
8657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock *
99abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * Unless required by applicable law or agreed to in writing, software distributed under the
109abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
119abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * KIND, either express or implied. See the License for the specific language governing
129abca5e9f88c47579f8334c6c48741a259185b9bJason Monk * permissions and limitations under the License.
13657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock */
14657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock
15657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlockpackage com.android.systemui.statusbar.policy;
16657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock
178852905b0b3837e326127c6dfef6f699124ce715Jason Monkimport com.android.systemui.statusbar.policy.KeyguardMonitor.Callback;
188a3a964d0ad13374a4c4ee8a8a1b12aa00e577f0Jason Monk
199abca5e9f88c47579f8334c6c48741a259185b9bJason Monkpublic interface KeyguardMonitor extends CallbackController<Callback> {
20657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock
219abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    boolean isSecure();
229abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    boolean canSkipBouncer();
239abca5e9f88c47579f8334c6c48741a259185b9bJason Monk    boolean isShowing();
24410d808438ae0cd93c237502a062340c5cead134Pavel Grafov    boolean isOccluded();
25aa573e9e8632552d1fa8bdd6b0ee408ff9a93a6bJason Monk    boolean isKeyguardFadingAway();
26aa573e9e8632552d1fa8bdd6b0ee408ff9a93a6bJason Monk    boolean isKeyguardGoingAway();
27aa573e9e8632552d1fa8bdd6b0ee408ff9a93a6bJason Monk    long getKeyguardFadingAwayDuration();
28aa573e9e8632552d1fa8bdd6b0ee408ff9a93a6bJason Monk    long getKeyguardFadingAwayDelay();
29657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock
30410d808438ae0cd93c237502a062340c5cead134Pavel Grafov    interface Callback {
31aa573e9e8632552d1fa8bdd6b0ee408ff9a93a6bJason Monk        void onKeyguardShowingChanged();
32657c62c31ecdade22f67f13102c2fb19765cbe13John Spurlock    }
339abca5e9f88c47579f8334c6c48741a259185b9bJason Monk}
34