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

Side by Side Diff: build/android/gyp/util/build_device.py

Issue 1415413005: Revert of [Android] Add a configurable environment for devil/. (RELAND) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « build/android/gyp/push_libraries.py ('k') | build/android/incremental_install/installer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ A simple device interface for build steps. 5 """ A simple device interface for build steps.
6 6
7 """ 7 """
8 8
9 import logging 9 import logging
10 import os 10 import os
11 import re 11 import re
12 import sys 12 import sys
13 13
14 from util import build_utils 14 from util import build_utils
15 15
16 BUILD_ANDROID_DIR = os.path.abspath( 16 BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..', '..')
17 os.path.join(os.path.dirname(__file__), '..', '..'))
18 sys.path.append(BUILD_ANDROID_DIR) 17 sys.path.append(BUILD_ANDROID_DIR)
19 18
20 from devil.android import device_errors 19 from devil.android import device_errors
21 from devil.android import device_utils 20 from devil.android import device_utils
22 from devil.android.sdk import adb_wrapper 21 from devil.android.sdk import adb_wrapper
23 22
24 23
25 def GetAttachedDevices(): 24 def GetAttachedDevices():
26 return [a.GetDeviceSerial() 25 return [a.GetDeviceSerial()
27 for a in adb_wrapper.AdbWrapper.Devices()] 26 for a in adb_wrapper.AdbWrapper.Devices()]
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 assert len(configurations) == 1 102 assert len(configurations) == 1
104 return BuildDevice(configurations[0]) 103 return BuildDevice(configurations[0])
105 104
106 105
107 def GetBuildDeviceFromPath(path): 106 def GetBuildDeviceFromPath(path):
108 configurations = ReadConfigurations(path) 107 configurations = ReadConfigurations(path)
109 if len(configurations) > 0: 108 if len(configurations) > 0:
110 return GetBuildDevice(ReadConfigurations(path)) 109 return GetBuildDevice(ReadConfigurations(path))
111 return None 110 return None
112 111
OLDNEW
« no previous file with comments | « build/android/gyp/push_libraries.py ('k') | build/android/incremental_install/installer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698