From f0b01a6871eed40b2e3c75f5d2cf8a5feb5e9d6e Mon Sep 17 00:00:00 2001 From: Oliver Scott Date: Thu, 25 Feb 2021 11:29:35 -0500 Subject: [PATCH 1/2] Wi-Fi timeout feature Add Wi-Fi timeout setting Issue: calyxos#228 Change-Id: I1ac6b19eb35af656afd38eac24bb37fe618859f1 (cherry picked from commit 12a44815c0d1c64c2684782a87707675181e19e6) Signed-off-by: Ghosuto Signed-off-by: Mrick343 --- core/java/android/provider/Settings.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 8c68ceaca5590..56930c44e2822 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -19239,6 +19239,12 @@ public static final class Global extends NameValueTable { CLOCKWORK_HOME_READY, }; + /** + * The amount of time in milliseconds before wifi is turned off + * @hide + */ + public static final String WIFI_OFF_TIMEOUT = "wifi_off_timeout"; + /** * Keys we no longer back up under the current schema, but want to continue to * process when restoring historical backup datasets. From 469551eea2d805b2fcb5e35e57793ff45b59c20f Mon Sep 17 00:00:00 2001 From: t-m-w Date: Fri, 26 Aug 2022 15:45:17 +0000 Subject: [PATCH 2/2] Move Bluetooth timeout back to AOSP settings This is so it can be accessed by the Bluetooth APEX module. Change-Id: I81941dc4e390b17e4ec8f57bf45327f3b8b525db Signed-off-by: Ghosuto Signed-off-by: Mrick343 --- core/java/android/provider/Settings.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 56930c44e2822..3f56c3168c66e 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -19245,6 +19245,12 @@ public static final class Global extends NameValueTable { */ public static final String WIFI_OFF_TIMEOUT = "wifi_off_timeout"; + /** + * The amount of time in milliseconds before bluetooth is turned off + * @hide + */ + public static final String BLUETOOTH_OFF_TIMEOUT = "bluetooth_off_timeout"; + /** * Keys we no longer back up under the current schema, but want to continue to * process when restoring historical backup datasets.