summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorYogisha Dixit <ydixit@google.com>2020-01-14 13:31:40 +0000
committerYogisha Dixit <ydixit@google.com>2020-01-17 16:00:08 +0000
commit91009993e6ec1062e90fca30bb419da649994bb6 (patch)
tree491743df0d91bcbb42b4ed640f96b7f0e21ef89e /core/java/android
parentdf747d155ee8a3830fc9cf7dd46669f3472d2370 (diff)
Add a new secure setting to disable doze.
This secure setting doesn't need to be backed up because it represents a device state (e.g. airplane mode) and not a user-specified configuration. Test: SettingsTest, Settings_SecureTest, SettingsProviderTest Bug: 147584235 Change-Id: Ic89182297b095d128c63a4b422b4af2e3a63f3d3
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/provider/Settings.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 0e3dd3a8292a..b97482a30cc0 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -7598,6 +7598,12 @@ public final class Settings {
public static final String DOZE_WAKE_DISPLAY_GESTURE = "doze_wake_display_gesture";
/**
+ * Whether the device should suppress the current doze configuration and disable dozing.
+ * @hide
+ */
+ public static final String SUPPRESS_DOZE = "suppress_doze";
+
+ /**
* Gesture that skips media.
* @hide
*/