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

Side by Side Diff: build/android/pylib/constants.py

Issue 670183003: Update from chromium 62675d9fb31fb8cedc40f68e78e8445a74f362e7 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « build/android/provision_devices.py ('k') | build/android/pylib/content_settings.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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Defines a set of constants shared by test runners and other scripts.""" 5 """Defines a set of constants shared by test runners and other scripts."""
6 # pylint: disable=W0212 6 # pylint: disable=W0212
7 7
8 import collections 8 import collections
9 import logging 9 import logging
10 import os 10 import os
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 ADB_KEYS_FILE = '/data/misc/adb/adb_keys' 140 ADB_KEYS_FILE = '/data/misc/adb/adb_keys'
141 141
142 PERF_OUTPUT_DIR = os.path.join(DIR_SOURCE_ROOT, 'out', 'step_results') 142 PERF_OUTPUT_DIR = os.path.join(DIR_SOURCE_ROOT, 'out', 'step_results')
143 # The directory on the device where perf test output gets saved to. 143 # The directory on the device where perf test output gets saved to.
144 DEVICE_PERF_OUTPUT_DIR = ( 144 DEVICE_PERF_OUTPUT_DIR = (
145 '/data/data/' + PACKAGE_INFO['chrome'].package + '/files') 145 '/data/data/' + PACKAGE_INFO['chrome'].package + '/files')
146 146
147 SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots') 147 SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots')
148 148
149 ANDROID_SDK_VERSION = 21 149 class ANDROID_SDK_VERSION_CODES(object):
150 """Android SDK version codes.
151
152 http://developer.android.com/reference/android/os/Build.VERSION_CODES.html
153 """
154
155 ICE_CREAM_SANDWICH = 14
156 ICE_CREAM_SANDWICH_MR1 = 15
157 JELLY_BEAN = 16
158 JELLY_BEAN_MR1 = 17
159 JELLY_BEAN_MR2 = 18
160 KITKAT = 19
161 KITKAT_WATCH = 20
162 LOLLIPOP = 21
163
164 ANDROID_SDK_VERSION = ANDROID_SDK_VERSION_CODES.LOLLIPOP
150 ANDROID_SDK_BUILD_TOOLS_VERSION = '21.0.0' 165 ANDROID_SDK_BUILD_TOOLS_VERSION = '21.0.0'
151 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 166 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
152 'third_party/android_tools/sdk') 167 'third_party/android_tools/sdk')
153 ANDROID_SDK_TOOLS = os.path.join(ANDROID_SDK_ROOT, 168 ANDROID_SDK_TOOLS = os.path.join(ANDROID_SDK_ROOT,
154 'build-tools', ANDROID_SDK_BUILD_TOOLS_VERSION) 169 'build-tools', ANDROID_SDK_BUILD_TOOLS_VERSION)
155 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 170 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
156 'third_party/android_tools/ndk') 171 'third_party/android_tools/ndk')
157 172
158 EMULATOR_SDK_ROOT = os.environ.get('ANDROID_EMULATOR_SDK_ROOT', 173 EMULATOR_SDK_ROOT = os.environ.get('ANDROID_EMULATOR_SDK_ROOT',
159 os.path.join(DIR_SOURCE_ROOT, 174 os.path.join(DIR_SOURCE_ROOT,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) 230 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull)
216 return 'adb' 231 return 'adb'
217 except OSError: 232 except OSError:
218 logging.debug('No adb found in $PATH, fallback to checked in binary.') 233 logging.debug('No adb found in $PATH, fallback to checked in binary.')
219 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 234 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
220 235
221 236
222 # Exit codes 237 # Exit codes
223 ERROR_EXIT_CODE = 1 238 ERROR_EXIT_CODE = 1
224 WARNING_EXIT_CODE = 88 239 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « build/android/provision_devices.py ('k') | build/android/pylib/content_settings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698