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

Side by Side Diff: build/android/devil/android/tools/flash_device.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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import argparse 6 import argparse
7 import logging 7 import logging
8 import os
8 import sys 9 import sys
9 10
11 if __name__ == '__main__':
12 sys.path.append(os.path.abspath(os.path.join(
13 os.path.dirname(__file__), os.pardir, os.pardir, os.pardir)))
10 from devil.android import device_blacklist 14 from devil.android import device_blacklist
11 from devil.android import device_errors 15 from devil.android import device_errors
12 from devil.android import device_utils 16 from devil.android import device_utils
13 from devil.android import fastboot_utils 17 from devil.android import fastboot_utils
14 from devil.android.sdk import adb_wrapper 18 from devil.android.sdk import adb_wrapper
15 from devil.constants import exit_codes 19 from devil.constants import exit_codes
16 from devil.utils import run_tests_helper 20 from devil.utils import run_tests_helper
17 21
18 22
19 def GetDeviceList(device=None): 23 def GetDeviceList(device=None):
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 logging.info('The following devices were flashed:') 76 logging.info('The following devices were flashed:')
73 logging.info(' %s', ' '.join(str(d) for d in flashed_devices)) 77 logging.info(' %s', ' '.join(str(d) for d in flashed_devices))
74 if failed_devices: 78 if failed_devices:
75 logging.critical('The following devices failed to flash:') 79 logging.critical('The following devices failed to flash:')
76 logging.critical(' %s', ' '.join(str(d) for d in failed_devices)) 80 logging.critical(' %s', ' '.join(str(d) for d in failed_devices))
77 return exit_codes.INFRA 81 return exit_codes.INFRA
78 return 0 82 return 0
79 83
80 if __name__ == '__main__': 84 if __name__ == '__main__':
81 sys.exit(main()) 85 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/devil/android/tools/__init__.py ('k') | build/android/devil/android/tools/screenshot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698