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

Unified Diff: build/android/devil/android/device_utils.py

Issue 1522313002: [Android] Move screenshot and video_recorder into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix video_recorder timing Created 5 years 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 | « build/android/devil/PRESUBMIT.py ('k') | build/android/devil/android/tools/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/devil/android/device_utils.py
diff --git a/build/android/devil/android/device_utils.py b/build/android/devil/android/device_utils.py
index ae794802ae96ae2883e3b908535b577463a61569..db9ae6fc5050e4cb58e539157e27ec0398003941 100644
--- a/build/android/devil/android/device_utils.py
+++ b/build/android/devil/android/device_utils.py
@@ -1891,7 +1891,8 @@ class DeviceUtils(object):
DeviceUnreachableError on missing device.
"""
if not host_path:
- host_path = os.path.abspath('screenshot-%s.png' % _GetTimeStamp())
+ host_path = os.path.abspath('screenshot-%s-%s.png' % (
+ self.adb.GetDeviceSerial(), _GetTimeStamp()))
with device_temp_file.DeviceTempFile(self.adb, suffix='.png') as device_tmp:
self.RunShellCommand(['/system/bin/screencap', '-p', device_tmp.name],
check_return=True)
« no previous file with comments | « build/android/devil/PRESUBMIT.py ('k') | build/android/devil/android/tools/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698