summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider/Settings.java
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-06-09 17:34:04 -0700
committerAdam Lesinski <adamlesinski@google.com>2015-06-11 12:30:47 -0700
commit31c05d13612205f6a48460d23135695b267e506c (patch)
tree44f30b20b295c2e6c1ca472bc0f95684be0e75d9 /core/java/android/provider/Settings.java
parent3d53a26d1a8471f4709b528686601381fd7e6da4 (diff)
downloadframeworks_base-31c05d13612205f6a48460d23135695b267e506c.zip
frameworks_base-31c05d13612205f6a48460d23135695b267e506c.tar.gz
frameworks_base-31c05d13612205f6a48460d23135695b267e506c.tar.bz2
Doze: Use Settings.Global.DEVICE_IDLE_CONSTANTS instead of hardcoded constants
This will allow gservices to tweak the settings and experiment with different values for various doze constants. The values are encoded in a string as a key=value list. Ex: inactive_to=5000,idle_factor=0.01 Bug:21640379 Change-Id: Ie98a0e4893f9b46a64d961d6c5c5169b8b8ad742
Diffstat (limited to 'core/java/android/provider/Settings.java')
-rw-r--r--core/java/android/provider/Settings.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 167d8e5..f2d3e71 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -7087,6 +7087,36 @@ public final class Settings {
BLUETOOTH_SAP_PRIORITY_PREFIX = "bluetooth_sap_priority_";
/**
+ * Device Idle (Doze) specific settings.
+ * This is encoded as a key=value list, separated by commas. Ex:
+ *
+ * "inactive_timeout=60000,sensing_timeout=400000"
+ *
+ * The following keys are supported:
+ *
+ * <pre>
+ * inactive_to (long)
+ * sensing_to (long)
+ * motion_inactive_to (long)
+ * idle_after_inactive_to (long)
+ * idle_pending_to (long)
+ * max_idle_pending_to (long)
+ * idle_pending_factor (float)
+ * idle_to (long)
+ * max_idle_to (long)
+ * idle_factor (float)
+ * min_time_to_alarm (long)
+ * max_temp_app_whitelist_duration (long)
+ * </pre>
+ *
+ * <p>
+ * Type: string
+ * @hide
+ * @see com.android.server.DeviceIdleController.Constants
+ */
+ public static final String DEVICE_IDLE_CONSTANTS = "device_idle_constants";
+
+ /**
* Get the key that retrieves a bluetooth headset's priority.
* @hide
*/