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

Unified Diff: build/android/gyp/util/build_device.py

Issue 197693002: [Android] Lint build/android/gyp/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: now using extra_paths_list to avoid F0401s Created 6 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 | « build/android/gyp/strip_library_for_device.py ('k') | build/android/gyp/util/build_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/util/build_device.py
diff --git a/build/android/gyp/util/build_device.py b/build/android/gyp/util/build_device.py
index 6870400cb5896bc65af2249eefed32d2ef6d2b77..e8446a8a71dc4944382837ab5013a581c679d0f8 100644
--- a/build/android/gyp/util/build_device.py
+++ b/build/android/gyp/util/build_device.py
@@ -11,14 +11,14 @@ import os
import re
import sys
-import build_utils
+from util import build_utils
BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..', '..')
sys.path.append(BUILD_ANDROID_DIR)
from pylib import android_commands
-from pylib.android_commands import GetAttachedDevices
+GetAttachedDevices = android_commands.GetAttachedDevices
class BuildDevice(object):
@@ -52,8 +52,8 @@ class BuildDevice(object):
return matches[0] if matches else None
-def GetConfigurationForDevice(id):
- adb = android_commands.AndroidCommands(id)
+def GetConfigurationForDevice(device_id):
+ adb = android_commands.AndroidCommands(device_id)
configuration = None
has_root = False
is_online = adb.IsOnline()
@@ -69,7 +69,7 @@ def GetConfigurationForDevice(id):
cmd_output = adb.RunShellCommand(cmd)
configuration = {
- 'id': id,
+ 'id': device_id,
'description': cmd_output[-1],
'install_metadata': cmd_output[:-1],
}
« no previous file with comments | « build/android/gyp/strip_library_for_device.py ('k') | build/android/gyp/util/build_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698