OLD | NEW |
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 | |
24 from devil.android.sdk import version_codes | 23 from devil.android.sdk import version_codes |
25 from devil.utils import reraiser_thread | 24 from devil.utils import reraiser_thread |
26 from pylib import constants | 25 from pylib import constants |
27 from pylib.utils import run_tests_helper | 26 from pylib.utils import run_tests_helper |
28 from pylib.utils import time_profile | 27 from pylib.utils import time_profile |
29 | 28 |
30 prev_sys_path = list(sys.path) | 29 prev_sys_path = list(sys.path) |
31 sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, 'gyp')) | 30 sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, 'gyp')) |
32 from util import build_utils | 31 from util import build_utils |
33 sys.path = prev_sys_path | 32 sys.path = prev_sys_path |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 else: | 307 else: |
309 Install(device, apk, split_globs=args.splits, native_libs=args.native_libs, | 308 Install(device, apk, split_globs=args.splits, native_libs=args.native_libs, |
310 dex_files=args.dex_files, enable_device_cache=args.cache, | 309 dex_files=args.dex_files, enable_device_cache=args.cache, |
311 use_concurrency=args.threading, | 310 use_concurrency=args.threading, |
312 show_proguard_warning=args.show_proguard_warning, | 311 show_proguard_warning=args.show_proguard_warning, |
313 allow_downgrade=args.allow_downgrade) | 312 allow_downgrade=args.allow_downgrade) |
314 | 313 |
315 | 314 |
316 if __name__ == '__main__': | 315 if __name__ == '__main__': |
317 sys.exit(main()) | 316 sys.exit(main()) |
OLD | NEW |