summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider
diff options
context:
space:
mode:
authorErik Pasternak <roboerik@android.com>2014-10-02 00:04:01 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-02 00:04:01 +0000
commit739bf81dd130957c9bc09abc4e25732af2d675c0 (patch)
tree0b2a7ff4bdfd4ef7c381850eee12bd7e9201e1ea /core/java/android/provider
parent3a14bc8430dbdafbf8d2484b0b4396034f78ae48 (diff)
parent4d82c46ef5df06e1b92f3574e41b38a62ec0e607 (diff)
downloadframeworks_base-739bf81dd130957c9bc09abc4e25732af2d675c0.zip
frameworks_base-739bf81dd130957c9bc09abc4e25732af2d675c0.tar.gz
frameworks_base-739bf81dd130957c9bc09abc4e25732af2d675c0.tar.bz2
am 4d82c46e: Merge "Implement auto-sleep functionality." into lmp-dev
* commit '4d82c46ef5df06e1b92f3574e41b38a62ec0e607': Implement auto-sleep functionality.
Diffstat (limited to 'core/java/android/provider')
-rw-r--r--core/java/android/provider/Settings.java22
1 files changed, 20 insertions, 2 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index ec4a53e..e40c88f 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -2001,7 +2001,10 @@ public final class Settings {
public static final String DIM_SCREEN = "dim_screen";
/**
- * The timeout before the screen turns off.
+ * The amount of time in milliseconds before the device goes to sleep or begins
+ * to dream after a period of inactivity. This value is also known as the
+ * user activity timeout period since the screen isn't necessarily turned off
+ * when it expires.
*/
public static final String SCREEN_OFF_TIMEOUT = "screen_off_timeout";
@@ -4817,6 +4820,20 @@ public final class Settings {
"usb_audio_automatic_routing_disabled";
/**
+ * The timeout in milliseconds before the device fully goes to sleep after
+ * a period of inactivity. This value sets an upper bound on how long the device
+ * will stay awake or dreaming without user activity. It should generally
+ * be longer than {@link #SCREEN_OFF_TIMEOUT} as otherwise the device
+ * will sleep before it ever has a chance to dream.
+ * <p>
+ * Use -1 to disable this timeout.
+ * </p>
+ *
+ * @hide
+ */
+ public static final String SLEEP_TIMEOUT = "sleep_timeout";
+
+ /**
* This are the settings to be backed up.
*
* NOTE: Settings are backed up and restored in the order they appear
@@ -4865,7 +4882,8 @@ public final class Settings {
MOUNT_UMS_AUTOSTART,
MOUNT_UMS_PROMPT,
MOUNT_UMS_NOTIFY_ENABLED,
- UI_NIGHT_MODE
+ UI_NIGHT_MODE,
+ SLEEP_TIMEOUT
};
/**