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

Unified Diff: build/android/pylib/android_commands.py

Issue 12720010: Clean up control of perf governor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up control of perf governor - code review fixes Created 7 years, 9 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/perf_tests_helper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/android_commands.py
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index 51911d3a0635bc4d484c62f67300892fa13abb17..41d5551cda8f183d648c8abd41e19ef3037a991d 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -839,6 +839,12 @@ class AndroidCommands(object):
assert build_type
return build_type
+ def GetProductModel(self):
+ """Returns the namve of the product model (e.g. "Galaxy Nexus") """
+ model = self.RunShellCommand('getprop ro.product.model')[0]
+ assert model
+ return model
+
def StartMonitoringLogcat(self, clear=True, logfile=None, filters=None):
"""Starts monitoring the output of logcat, for use with WaitForLogMatch.
« no previous file with comments | « no previous file | build/android/pylib/perf_tests_helper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698