From 9779e128d611f13cdb44d31b0509ff43c62a35f6 Mon Sep 17 00:00:00 2001 From: Filip Gruszczynski Date: Fri, 13 Mar 2015 17:39:31 -0700 Subject: Option for going home when going to sleep for devices without physical button. Bug: 19623388 Change-Id: Iec16f83c64646ded12ec97d4b540510b7f9dfd47 --- core/java/android/os/PowerManager.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/java/android/os') 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 */ -- cgit v1.1