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

Unified Diff: devil/devil/android/battery_utils.py

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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 | « dashboard/queue.yaml ('k') | devil/devil/android/constants/chrome.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/android/battery_utils.py
diff --git a/devil/devil/android/battery_utils.py b/devil/devil/android/battery_utils.py
index c047f253bb75690e0d8418c32ccf68a29e728277..7a735f3540f5abb97c0f071ba1f851597778e4ad 100644
--- a/devil/devil/android/battery_utils.py
+++ b/devil/devil/android/battery_utils.py
@@ -95,6 +95,19 @@ _DEVICE_PROFILES = [
'current': '/sys/class/power_supply/ds2784-fuelgauge/current_now',
},
+ {
+ 'name': 'Nexus 5X',
+ 'witness_file': None,
+ 'enable_command': (
+ 'echo 1 > /sys/class/power_supply/battery/charging_enabled && '
+ 'dumpsys battery reset'),
+ 'disable_command': (
+ 'echo 0 > /sys/class/power_supply/battery/charging_enabled && '
+ 'dumpsys battery set ac 0 && dumpsys battery set usb 0'),
+ 'charge_counter': None,
+ 'voltage': None,
+ 'current': None,
+ },
]
# The list of useful dumpsys columns.
« no previous file with comments | « dashboard/queue.yaml ('k') | devil/devil/android/constants/chrome.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698