summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorNg Zhi An <zhin@google.com>2019-01-23 11:46:50 -0800
committerNg Zhi An <zhin@google.com>2019-01-25 09:14:44 -0800
commit0941120f79fd2f79daf851765ff5d0bd7daac331 (patch)
treef0b13b5e4b2610ce1d8e80baee9af93dd372fb5a /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parentc1b889d2614068ae5bfc9e874c26b3d04c0802fd (diff)
Add api to change charging state update delay
This adds a field Settings.Global.BATTERY_CHARGING_STATE_UPDATE_DELAY that overrides the value of battery_charged_delay_ms in Settings.GLOBAL.BATTERY_STATS_CONSTANTS. This new field can then be set for experimentation, and easily reset to default by deleting, or setting it to a negative value. Expose a method in BatteryManager to set a value for this new setting. Bug: 111360323 Test: adb shell settings put global battery_charging_state_update_delay 999 adb shell dumpsys batterystats --settings # should see battery_charged_delay_ms=999 adb shell settings put global battery_charging_state_update_delay -1 adb shell dumpsys batterystats --settings # should see battery_charged_delay_ms=90000 Change-Id: Ic308af938836a1f9c235cec341808b6c6c28d22d
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions