1/*
2 * Copyright (C) 2007 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 */
16
17package com.android.internal.policy.impl.keyguard_obsolete;
18
19/**
20 * The callback used by the keyguard view to tell the {@link KeyguardViewMediator}
21 * various things.
22 */
23public interface KeyguardViewCallback {
24
25    /**
26     * Request the wakelock to be poked for the default amount of time.
27     */
28    void pokeWakelock();
29
30    /**
31     * Request the wakelock to be poked for a specific amount of time.
32     * @param millis The amount of time in millis.
33     */
34    void pokeWakelock(int millis);
35
36    /**
37     * Report that the keyguard is done.
38     * @param authenticated Whether the user securely got past the keyguard.
39     *   the only reason for this to be false is if the keyguard was instructed
40     *   to appear temporarily to verify the user is supposed to get past the
41     *   keyguard, and the user fails to do so.
42     */
43    void keyguardDone(boolean authenticated);
44
45    /**
46     * Report that the keyguard is done drawing.
47     */
48    void keyguardDoneDrawing();
49}
50