本文整理汇总了Python中builder.Builder.get_adb方法的典型用法代码示例。如果您正苦于以下问题:Python Builder.get_adb方法的具体用法?Python Builder.get_adb怎么用?Python Builder.get_adb使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类builder.Builder
的用法示例。
在下文中一共展示了Builder.get_adb方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: check_build_environment
# 需要导入模块: from builder import Builder [as 别名]
# 或者: from builder.Builder import get_adb [as 别名]
def check_build_environment(self):
if not self._project_info:
self._project_info = get_project_info(self._config)
self._all_modules = self._project_info.keys()
for item in self._project_info.values():
self._module_dir_map[item['name']] = item['relative_dir']
for key, value in self._project_info.iteritems():
self._module_dependencies[key] = [item for item in value['local_module_dep']]
self._is_art = android_tools.get_device_sdk_version_by_adb(Builder.get_adb(self._config)) > 20
# merge all resources modified files to main resources
self.__merge_res_files()
示例2: _debug_app
# 需要导入模块: from builder import Builder [as 别名]
# 或者: from builder.Builder import get_adb [as 别名]
def _debug_app(self):
if self._wait_for_debugger:
adb_args = [Builder.get_adb(self._config), 'shell', 'am', 'set-debug-app', '-w', self._package]
self.debug('make application wait for debugger: {}'.format(' '.join(adb_args)))
cexec(adb_args, callback=None)
示例3: __init__
# 需要导入模块: from builder import Builder [as 别名]
# 或者: from builder.Builder import get_adb [as 别名]
def __init__(self, is_art, config):
self._is_art = is_art
self._config = config
self._adb = Builder.get_adb(self._config)
self._cache_dir = self._config['build_cache_dir']
self._port = 0