summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2015-06-01 19:13:10 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-01 19:13:11 +0000
commit1e47a8e096fc28dcab0a55bc4f2e6b747bfb1a07 (patch)
treeeec4702b3a44aff051096ccf84ca309ae03709d7 /core/java
parent29c840ebb08d97451fd5a5923ad20d7bf1990048 (diff)
parentd175b6cfe0b35dfe251cc9315aacb048bf6e54c5 (diff)
downloadframeworks_base-1e47a8e096fc28dcab0a55bc4f2e6b747bfb1a07.zip
frameworks_base-1e47a8e096fc28dcab0a55bc4f2e6b747bfb1a07.tar.gz
frameworks_base-1e47a8e096fc28dcab0a55bc4f2e6b747bfb1a07.tar.bz2
Merge "Cleanup Keyguard handling when turning off screen" into mnc-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/com/android/internal/policy/IKeyguardService.aidl24
1 files changed, 22 insertions, 2 deletions
diff --git a/core/java/com/android/internal/policy/IKeyguardService.aidl b/core/java/com/android/internal/policy/IKeyguardService.aidl
index f93b1a1..7ab4651 100644
--- a/core/java/com/android/internal/policy/IKeyguardService.aidl
+++ b/core/java/com/android/internal/policy/IKeyguardService.aidl
@@ -22,6 +22,7 @@ import com.android.internal.policy.IKeyguardExitCallback;
import android.os.Bundle;
oneway interface IKeyguardService {
+
/**
* Sets the Keyguard as occluded when a window dismisses the Keyguard with flag
* FLAG_SHOW_ON_LOCK_SCREEN.
@@ -36,8 +37,27 @@ oneway interface IKeyguardService {
void dismiss();
void onDreamingStarted();
void onDreamingStopped();
- void onScreenTurnedOff(int reason);
- void onScreenTurnedOn(IKeyguardShowCallback callback);
+
+ /**
+ * Called when the device has started going to sleep.
+ *
+ * @param why {@link #OFF_BECAUSE_OF_USER}, {@link #OFF_BECAUSE_OF_ADMIN},
+ * or {@link #OFF_BECAUSE_OF_TIMEOUT}.
+ */
+ void onStartedGoingToSleep(int reason);
+
+ /**
+ * Called when the device has finished going to sleep.
+ *
+ * @param why {@link #OFF_BECAUSE_OF_USER}, {@link #OFF_BECAUSE_OF_ADMIN},
+ * or {@link #OFF_BECAUSE_OF_TIMEOUT}.
+ */
+ void onFinishedGoingToSleep(int reason);
+
+ /**
+ * Called when the device has started waking up.
+ */
+ void onStartedWakingUp(IKeyguardShowCallback callback);
void setKeyguardEnabled(boolean enabled);
void onSystemReady();
void doKeyguardTimeout(in Bundle options);