Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: build/android/pylib/device/battery_utils.py

Issue 1217223008: [Android] Add battery status reset to device temperature check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/pylib/device/battery_utils_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/device/battery_utils.py
diff --git a/build/android/pylib/device/battery_utils.py b/build/android/pylib/device/battery_utils.py
index aa9b657b03dbad8b1322fa65ee7e2a722cdfba7c..263a8dffc36b63e4f016f4e9fbc2441fb2ffcbb3 100644
--- a/build/android/pylib/device/battery_utils.py
+++ b/build/android/pylib/device/battery_utils.py
@@ -455,6 +455,8 @@ class BatteryUtils(object):
logging.info('Current battery temperature: %s', temp)
return int(temp) <= target_temp
+ self._device.RunShellCommand(
jbudorick 2015/07/01 23:23:32 EnableBatteryUpdates? Also, if battery updates ar
rnephew (Reviews Here) 2015/07/01 23:28:42 I think we can view this like the charging command
+ ['dumpsys', 'battery', 'reset'], check_return=True)
logging.info('Waiting for the device to cool down to %s (0.1 C)',
target_temp)
timeout_retry.WaitFor(cool_device, wait_period=wait_period)
« no previous file with comments | « no previous file | build/android/pylib/device/battery_utils_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698