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

Side by Side Diff: build/android/incremental_install/installer.py

Issue 2139133004: [Android] Remove devil forwarding modules from pylib. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | build/android/pylib/device/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2015 The Chromium Authors. All rights reserved. 3 # Copyright 2015 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Install *_incremental.apk targets as well as their dependent files.""" 7 """Install *_incremental.apk targets as well as their dependent files."""
8 8
9 import argparse 9 import argparse
10 import glob 10 import glob
11 import logging 11 import logging
12 import os 12 import os
13 import posixpath 13 import posixpath
14 import shutil 14 import shutil
15 import sys 15 import sys
16 import zipfile 16 import zipfile
17 17
18 sys.path.append( 18 sys.path.append(
19 os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))) 19 os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)))
20 import devil_chromium 20 import devil_chromium
21 from devil.android import apk_helper 21 from devil.android import apk_helper
22 from devil.android import device_utils 22 from devil.android import device_utils
23 from devil.android import device_errors 23 from devil.android import device_errors
24 from devil.android.sdk import version_codes 24 from devil.android.sdk import version_codes
25 from devil.utils import reraiser_thread 25 from devil.utils import reraiser_thread
26 from devil.utils import run_tests_helper
26 from pylib import constants 27 from pylib import constants
27 from pylib.utils import run_tests_helper
28 from pylib.utils import time_profile 28 from pylib.utils import time_profile
29 29
30 prev_sys_path = list(sys.path) 30 prev_sys_path = list(sys.path)
31 sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, 'gyp')) 31 sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, 'gyp'))
32 from util import build_utils 32 from util import build_utils
33 sys.path = prev_sys_path 33 sys.path = prev_sys_path
34 34
35 35
36 def _DeviceCachePath(device): 36 def _DeviceCachePath(device):
37 file_name = 'device_cache_%s.json' % device.adb.GetDeviceSerial() 37 file_name = 'device_cache_%s.json' % device.adb.GetDeviceSerial()
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 else: 308 else:
309 Install(device, apk, split_globs=args.splits, native_libs=args.native_libs, 309 Install(device, apk, split_globs=args.splits, native_libs=args.native_libs,
310 dex_files=args.dex_files, enable_device_cache=args.cache, 310 dex_files=args.dex_files, enable_device_cache=args.cache,
311 use_concurrency=args.threading, 311 use_concurrency=args.threading,
312 show_proguard_warning=args.show_proguard_warning, 312 show_proguard_warning=args.show_proguard_warning,
313 allow_downgrade=args.allow_downgrade) 313 allow_downgrade=args.allow_downgrade)
314 314
315 315
316 if __name__ == '__main__': 316 if __name__ == '__main__':
317 sys.exit(main()) 317 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/device/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698