Index: tools/telemetry/telemetry/core/platform/power_monitor/android_ds2784_power_monitor.py |
diff --git a/tools/telemetry/telemetry/core/platform/power_monitor/android_ds2784_power_monitor.py b/tools/telemetry/telemetry/core/platform/power_monitor/android_ds2784_power_monitor.py |
index 8b66e89d4dc58900e64bd2eedd846a08a6522999..8d4ae26f778212ef4cb62530a2e489c7bde31eee 100644 |
--- a/tools/telemetry/telemetry/core/platform/power_monitor/android_ds2784_power_monitor.py |
+++ b/tools/telemetry/telemetry/core/platform/power_monitor/android_ds2784_power_monitor.py |
@@ -45,7 +45,7 @@ class DS2784PowerMonitor(power_monitor.PowerMonitor): |
android_prebuilt_profiler_helper.InstallOnDevice( |
self._device, 'file_poller') |
self._powermonitor_process_port = int( |
- self._device.old_interface.RunShellCommand( |
+ self._device.RunShellCommand( |
'%s %d %s %s %s' % (self._file_poller_binary, SAMPLE_RATE_HZ, |
CHARGE_COUNTER, CURRENT, VOLTAGE))[0]) |
@@ -53,7 +53,7 @@ class DS2784PowerMonitor(power_monitor.PowerMonitor): |
assert self._powermonitor_process_port, ( |
'StartMonitoringPower() not called.') |
try: |
- result = '\n'.join(self._device.old_interface.RunShellCommand( |
+ result = '\n'.join(self._device.RunShellCommand( |
'%s %d' % (self._file_poller_binary, |
self._powermonitor_process_port))) |
assert result, 'PowerMonitor produced no output' |