summaryrefslogtreecommitdiffstats
path: root/core/java/android/os
diff options
context:
space:
mode:
authorFilip Gruszczynski <gruszczy@google.com>2015-03-13 17:39:31 -0700
committerFilip Gruszczynski <gruszczy@google.com>2015-03-16 08:57:17 -0700
commit9779e128d611f13cdb44d31b0509ff43c62a35f6 (patch)
treed9ee53aaaa38ed1a6e54b67006b6aac0f0291de7 /core/java/android/os
parent5be1afedd8f2289ba047473b242cd0535a4493fe (diff)
downloadframeworks_base-9779e128d611f13cdb44d31b0509ff43c62a35f6.zip
frameworks_base-9779e128d611f13cdb44d31b0509ff43c62a35f6.tar.gz
frameworks_base-9779e128d611f13cdb44d31b0509ff43c62a35f6.tar.bz2
Option for going home when going to sleep for devices without physical button.
Bug: 19623388 Change-Id: Iec16f83c64646ded12ec97d4b540510b7f9dfd47
Diffstat (limited to 'core/java/android/os')
-rw-r--r--core/java/android/os/PowerManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/os/PowerManager.java b/core/java/android/os/PowerManager.java
index e303f61..de970cb 100644
--- a/core/java/android/os/PowerManager.java
+++ b/core/java/android/os/PowerManager.java
@@ -364,6 +364,12 @@ public final class PowerManager {
public static final int GO_TO_SLEEP_REASON_HDMI = 5;
/**
+ * Go to sleep reason code: Going to sleep due to the sleep button being pressed.
+ * @hide
+ */
+ public static final int GO_TO_SLEEP_REASON_SLEEP_BUTTON = 6;
+
+ /**
* Go to sleep flag: Skip dozing state and directly go to full sleep.
* @hide
*/