diff options
author | Jeff Brown <jeffbrown@google.com> | 2014-05-01 23:29:13 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-01 23:29:13 +0000 |
commit | 4f8cd18880f1a63d2db376c3bfbfe11c55e6f1ee (patch) | |
tree | 09a7f387ce71150a8cbf018a7262074e8cd16c70 /core | |
parent | 1bf2bed1507872dbc5cdefef6f6d3e5a7f83daa2 (diff) | |
parent | 7f6ab17d414726868563105cd995b37dd519320b (diff) | |
download | frameworks_base-4f8cd18880f1a63d2db376c3bfbfe11c55e6f1ee.zip frameworks_base-4f8cd18880f1a63d2db376c3bfbfe11c55e6f1ee.tar.gz frameworks_base-4f8cd18880f1a63d2db376c3bfbfe11c55e6f1ee.tar.bz2 |
am 7f6ab17d: Merge "Clean up some terminology related to interactive state." into klp-modular-dev
* commit '7f6ab17d414726868563105cd995b37dd519320b':
Clean up some terminology related to interactive state.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index 893db89..ae7cd26 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -446,8 +446,6 @@ public interface WindowManagerPolicy { public final int OFF_BECAUSE_OF_USER = 2; /** Screen turned off because of timeout */ public final int OFF_BECAUSE_OF_TIMEOUT = 3; - /** Screen turned off because of proximity sensor */ - public final int OFF_BECAUSE_OF_PROX_SENSOR = 4; /** When not otherwise specified by the activity's screenOrientation, rotation should be * determined by the system (that is, using sensors). */ @@ -898,23 +896,23 @@ public interface WindowManagerPolicy { public int focusChangedLw(WindowState lastFocus, WindowState newFocus); /** - * Called after the screen turns off. + * Called when the device is going to sleep. * * @param why {@link #OFF_BECAUSE_OF_USER} or * {@link #OFF_BECAUSE_OF_TIMEOUT}. */ - public void screenTurnedOff(int why); + public void goingToSleep(int why); public interface ScreenOnListener { void onScreenOn(); } /** - * Called when the power manager would like to turn the screen on. + * Called when the device is waking up. * Must call back on the listener to tell it when the higher-level system * is ready for the screen to go on (i.e. the lock screen is shown). */ - public void screenTurningOn(ScreenOnListener screenOnListener); + public void wakingUp(ScreenOnListener screenOnListener); /** * Return whether the screen is about to turn on or is currently on. |