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

Unified Diff: tools/android/mempressure.py

Issue 1132993004: [Android] Remove more references to and uses of AndroidCommands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « chrome/test/chromedriver/test/test_environment.py ('k') | tools/cygprofile/profile_android_startup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/mempressure.py
diff --git a/tools/android/mempressure.py b/tools/android/mempressure.py
index 5c81f3e07006750e699adfad4339515caf467ef6..c763038912adbf2e88c7f36948362c6f95e8d8e6 100755
--- a/tools/android/mempressure.py
+++ b/tools/android/mempressure.py
@@ -15,7 +15,6 @@ BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__),
'build',
'android')
sys.path.append(BUILD_ANDROID_DIR)
-from pylib import android_commands
from pylib import constants
from pylib import flag_changer
from pylib.device import device_errors
@@ -88,12 +87,12 @@ def main(argv):
package = package_info.package
activity = package_info.activity
- devices = android_commands.GetAttachedDevices()
+ devices = device_utils.DeviceUtils.HealthyDevices()
if not devices:
raise device_errors.NoDevicesError()
elif len(devices) > 1:
- logging.warning('Multiple devices attached. Using %s.' % devices[0])
- device = device_utils.DeviceUtils(devices[0])
+ logging.warning('Multiple devices attached. Using %s.', str(devices[0]))
+ device = devices[0]
try:
device.EnableRoot()
« no previous file with comments | « chrome/test/chromedriver/test/test_environment.py ('k') | tools/cygprofile/profile_android_startup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698