summaryrefslogtreecommitdiff
path: root/health
diff options
context:
space:
mode:
authorStephane Lee <stayfan@google.com>2020-10-08 23:28:27 -0700
committerStephane Lee <stayfan@google.com>2020-12-14 12:09:16 -0800
commitd7ea8d8760e41a97c658a24d127b2ef2127ecd72 (patch)
tree3ea1431d33c8185860b2627f80a2be0951b390a9 /health
parent97b50b8ba6a40943c9f8503ddd4cadb730ca7595 (diff)
downloadpixel-d7ea8d8760e41a97c658a24d127b2ef2127ecd72.tar.gz
Engage battery defender after 4 days for all devices
Test: 'atest HealthTestCases' Bug: 175614345 Merged-In: I0a85e387a69b604216f18d1f522ed70f441f05a4 Change-Id: I0a85e387a69b604216f18d1f522ed70f441f05a4 (cherry picked from commit 45892594994c2ccb180912d9e35d63b91d733fae)
Diffstat (limited to 'health')
-rw-r--r--health/include/pixelhealth/BatteryDefender.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/health/include/pixelhealth/BatteryDefender.h b/health/include/pixelhealth/BatteryDefender.h
index 42d8a55a..3f9bb1ce 100644
--- a/health/include/pixelhealth/BatteryDefender.h
+++ b/health/include/pixelhealth/BatteryDefender.h
@@ -31,7 +31,7 @@ const uint32_t ONE_HOUR_IN_MINUTES = 60;
const uint32_t ONE_DAY_IN_HOURS = 24;
const uint32_t ONE_DAY_IN_SECONDS = ONE_DAY_IN_HOURS * ONE_HOUR_IN_MINUTES * ONE_MIN_IN_SECONDS;
-const uint32_t DEFAULT_TIME_TO_ACTIVATE_SECONDS = (14 * ONE_DAY_IN_SECONDS);
+const uint32_t DEFAULT_TIME_TO_ACTIVATE_SECONDS = (4 * ONE_DAY_IN_SECONDS);
const uint32_t DEFAULT_TIME_TO_CLEAR_SECONDS = (5 * ONE_MIN_IN_SECONDS);
const int DEFAULT_CHARGE_LEVEL_START = 0;
const int DEFAULT_CHARGE_LEVEL_STOP = 100;