diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-01-27 19:23:59 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-01-28 13:15:57 -0800 |
commit | 254cb446faa7cb13699d8150eb4cc4f44cb61a2d (patch) | |
tree | 1647a7558348a67989c0892b4e5b0350ba4392c5 /core/java/android/view/WindowManagerPolicy.java | |
parent | 2fd75f35158b8347251d18e8ec48585d6e020777 (diff) | |
download | frameworks_base-254cb446faa7cb13699d8150eb4cc4f44cb61a2d.zip frameworks_base-254cb446faa7cb13699d8150eb4cc4f44cb61a2d.tar.gz frameworks_base-254cb446faa7cb13699d8150eb4cc4f44cb61a2d.tar.bz2 |
More device admin.
- Clean up device policy manager APIs.
- Implement lockNow(). For now this just turns the screen off to lock the device.
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
-rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index bbe9c1f..21577bf 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -357,12 +357,17 @@ public interface WindowManagerPolicy { * previous activity, and both are on top of he wallpaper. */ public final int TRANSIT_WALLPAPER_INTRA_CLOSE = 15 | TRANSIT_EXIT_MASK; + // NOTE: screen off reasons are in order of significance, with more + // important ones lower than less important ones. + + /** Screen turned off because of a device admin */ + public final int OFF_BECAUSE_OF_ADMIN = 1; /** Screen turned off because of power button */ - public final int OFF_BECAUSE_OF_USER = 1; + public final int OFF_BECAUSE_OF_USER = 2; /** Screen turned off because of timeout */ - public final int OFF_BECAUSE_OF_TIMEOUT = 2; + public final int OFF_BECAUSE_OF_TIMEOUT = 3; /** Screen turned off because of proximity sensor */ - public final int OFF_BECAUSE_OF_PROX_SENSOR = 3; + public final int OFF_BECAUSE_OF_PROX_SENSOR = 4; /** * Magic constant to {@link IWindowManager#setRotation} to not actually |