/tools/treble/hacksaw/client/ |
D | command.go | 51 func (c Command) addCodebase(args []string) error { 52 if len(args) < 5 { 55 args[0], args[1], args[2]) 57 name := args[3] 58 path := args[4] 67 func (c Command) defaultCodebase(args []string) error { 68 if len(args) < 4 { 71 args[0], args[1], args[2]) 73 name := args[3] 96 func (c Command) removeCodebase(args []string) error { [all …]
|
D | command_test.go | 31 args := []string{"hacksaw", "help"} 32 err := cmd.Handle(args) 40 args := []string{"hacksaw"} 41 err := cmd.Handle(args) 49 args := []string{"hacksaw", "doesnotexist"} 50 if err := cmd.Handle(args); err == nil { 57 args := []string{"hacksaw", "codebase"} 58 if err := cmd.Handle(args); err == nil { 71 args := []string{"hacksaw", "codebase", "add", "test-codebase", codebaseDir} 72 if err = cmd.Handle(args); err != nil { [all …]
|
/tools/acloud/create/ |
D | avd_spec_test.py | 41 self.args = mock.MagicMock() 42 self.args.flavor = "" 43 self.args.local_image = None 44 self.args.local_kernel_image = None 45 self.args.local_system_image = None 46 self.args.config_file = "" 47 self.args.build_target = "fake_build_target" 48 self.args.adb_port = None 49 self.args.launch_args = None 58 self.AvdSpec = avd_spec.AVDSpec(self.args) [all …]
|
D | create_args.py | 685 def _VerifyLocalArgs(args): argument 697 if args.local_image and not os.path.exists(args.local_image): 699 "Specified path doesn't exist: %s" % args.local_image) 701 if args.local_instance_dir and not os.path.exists(args.local_instance_dir): 703 "Specified path doesn't exist: %s" % args.local_instance_dir) 705 if not (args.local_system_image is None or 706 args.avd_type in (constants.TYPE_CF, constants.TYPE_GF)): 709 args.avd_type) 711 if args.local_instance is None and args.local_image is not None and ( 712 args.kernel_branch or args.kernel_build_id): [all …]
|
D | avd_spec.py | 96 def __init__(self, args): argument 104 self._client_adb_port = args.adb_port 148 self._cfg = config.GetAcloudConfig(args) 171 self._ProcessArgs(args) 201 def _ProcessArgs(self, args): argument 211 self._ProcessMiscArgs(args) 212 self._ProcessImageArgs(args) 213 self._ProcessHWPropertyArgs(args) 226 def _ProcessImageArgs(self, args): argument 233 if args.local_image is None: [all …]
|
D | create.py | 118 def _CheckForAutoconnect(args): argument 128 if not args.autoconnect or utils.FindExecutable(constants.ADB_BIN): 132 answer = _YES if args.no_prompt else utils.InteractWithQuestion( 161 args.autoconnect = False 164 def _CheckForSetup(args): argument 175 args.gcp_init = False 176 args.host = False 177 args.host_base = False 178 args.force = False 179 args.update_config = None [all …]
|
D | create_test.py | 59 args = mock.MagicMock() 60 args.autoconnect = True 61 args.no_prompt = False 68 create._CheckForAutoconnect(args) 69 self.assertEqual(args.autoconnect, False) 72 args.autoconnect = True 75 create._CheckForAutoconnect(args) 76 self.assertEqual(args.autoconnect, True) 80 create._CheckForAutoconnect(args) 81 self.assertEqual(args.autoconnect, False) [all …]
|
/tools/acloud/public/actions/ |
D | remote_instance_cf_device_factory_test.py | 61 args = mock.MagicMock() 62 args.config_file = "" 63 args.avd_type = constants.TYPE_CF 64 args.flavor = "phone" 65 args.local_image = constants.FIND_IN_BUILD_ENV 66 args.local_system_image = None 67 args.launch_args = None 68 args.autoconnect = constants.INS_KEY_WEBRTC 69 avd_spec_local_img = avd_spec.AVDSpec(args) 85 args.autoconnect = constants.INS_KEY_VNC [all …]
|
/tools/asuite/atest-py2/ |
D | atest.py | 114 args = parser.parse_args(pruned_argv) 115 args.custom_args = [] 117 args.custom_args = argv[custom_args_index+1:] 118 return args 163 def get_extra_args(args): argument 173 if args.wait_for_debugger: 175 steps = args.steps or constants.ALL_STEPS 198 not_match = [k for k in arg_maps if k not in vars(args)] 201 %(type(args).__name__, not_match)) 202 extra_args.update({arg_maps.get(k): v for k, v in vars(args).items() [all …]
|
/tools/asuite/atest/ |
D | atest.py | 104 args = [] 108 return args 130 args.extend(arg_in_line.split()) 137 args.append(arg_in_line) 138 return args 157 args = parser.parse_args(pruned_argv) 158 args.custom_args = [] 162 args.custom_args.append(atest_utils.quote(arg)) 163 return args 212 def get_extra_args(args): argument [all …]
|
/tools/acloud/public/ |
D | acloud_main.py | 147 def _ParseArgs(args): argument 248 if not args: 252 return parser.parse_known_args(args) 294 def _ParsingConfig(args, cfg): argument 305 if args.which == create_args.CMD_CREATE and args.local_instance is None: 312 (config.GetUserConfigPath(args.config_file), missing_fields)) 381 args, unknown_args = _ParseArgs(argv) 382 _SetupLogging(args.log_file, args.verbose) 383 _VerifyArgs(args) 386 cfg = config.GetAcloudConfig(args) [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Options.kt | 165 private val args: Array<String>, in <lambda>() constant in com.android.tools.metalava.Options 692 if (args.contains(ARG_NO_COLOR)) { in <lambda>() 694 } else if (args.contains(ARG_COLOR) || args.contains("-android")) { in <lambda>() 700 if (args.isNotEmpty() && !args.contains(ARG_QUIET) && !args.contains(ARG_NO_BANNER) && in <lambda>() 701 !args.contains(ARG_VERSION) in <lambda>() 731 while (index < args.size) { in <lambda>() 733 when (val arg = args[index]) { in <lambda>() 752 val path = getValue(args, ++index) in <lambda>() 757 val path = getValue(args, ++index) in <lambda>() 773 val listString = getValue(args, ++index) in <lambda>() [all …]
|
/tools/asuite/aidegen/ |
D | aidegen_main_unittest.py | 54 def _init_project_config(self, args): argument 56 self.assertIsNotNone(args) 57 config = project_config.ProjectConfig(args) 62 args = aidegen_main._parse_args([]) 63 self.assertEqual(args.targets, ['']) 64 self.assertEqual(args.ide[0], 'u') 66 args = aidegen_main._parse_args([target]) 67 self.assertEqual(args.targets, [target]) 69 args = aidegen_main._parse_args(['-d', depth]) 70 self.assertEqual(args.depth, int(depth)) [all …]
|
D | aidegen_main.py | 100 def _parse_args(args): argument 183 return parser.parse_args(args) 229 def _launch_native_projects(ide_util_obj, args, cmakelists): argument 246 ide_name = constant.IDE_NAME_DICT[args.ide[0]] 268 def _launch_ide_by_module_contents(args, ide_util_obj, language, argument 362 _launch_native_projects(ide_util_obj, args, [native_project_file]) 459 def main_with_message(args): argument 465 aidegen_main(args) 469 def main_without_message(args): argument 475 aidegen_main(args) [all …]
|
/tools/treble/gki/ |
D | repack_gki.py | 46 args = parser.parse_args() 48 json_keyfile_name=args.json_keyfile) 50 if not os.path.exists(args.out_dir): 51 os.makedirs(args.out_dir) 59 build_id=args.ramdisk_build_id, 60 kernel_version=args.kernel_version, 61 target=args.ramdisk_target, 68 build_id=args.kernel_build_id, 69 kernel_target=args.kernel_target, 70 kernel_debug_target=args.kernel_debug_target, [all …]
|
/tools/external_updater/ |
D | external_updater.py | 90 def _do_update(args: argparse.Namespace, updater: Updater, 94 if args.branch_and_commit: 95 git_utils.checkout(full_path, args.remote_name + '/master') 110 fileutils.write_metadata(full_path, updated_metadata, args.keep_date) 113 if args.branch_and_commit: 125 if args.push_change: 126 git_utils.push(full_path, args.remote_name, updater.has_errors) 128 if args.branch_and_commit: 129 git_utils.checkout(full_path, args.remote_name + '/master') 132 def check_and_update(args: argparse.Namespace, [all …]
|
/tools/asuite/aidegen/lib/ |
D | project_config_unittest.py | 63 args = aidegen_main._parse_args(['a', '-n', '-s']) 64 config = project_config.ProjectConfig(args) 89 args = aidegen_main._parse_args([]) 90 config = project_config.ProjectConfig(args) 97 args = aidegen_main._parse_args([target]) 98 config = project_config.ProjectConfig(args) 103 args = aidegen_main._parse_args(['-d', depth]) 104 config = project_config.ProjectConfig(args) 111 args = aidegen_main._parse_args(['-v']) 112 config = project_config.ProjectConfig(args) [all …]
|
D | project_info_unittest.py | 97 self.args = mock.MagicMock() 98 self.args.module_name = 'm1' 99 self.args.project_path = '' 100 self.args.ide = ['j'] 101 self.args.no_launch = True 102 self.args.depth = 0 103 self.args.android_tree = False 104 self.args.skip_build = True 105 self.args.targets = ['m1'] 106 self.args.verbose = False [all …]
|
/tools/test/connectivity/acts/framework/acts/bin/ |
D | monsoon.py | 25 def main(args): argument 27 if args.avg and args.avg < 0: 31 mon = monsoon_controller.create([int(args.serialno[0])])[0] 33 if args.voltage is not None: 34 mon.set_voltage(args.voltage) 36 if args.current is not None: 37 mon.set_max_current(args.current) 39 if args.status: 43 if args.usbpassthrough: 44 mon.usb(args.usbpassthrough) [all …]
|
D | act.py | 184 args = parser.parse_args(sys.argv[1:]) 186 if args.testfile: 187 test_list = config_parser.parse_test_file(args.testfile[0]) 188 elif args.testclass: 189 test_list = args.testclass 190 if re.search(r'\.ya?ml$', args.config): 192 args.config, args.testbed) 195 args.config, args.testbed) 198 if args.testpaths: 200 test_run_config.controller_configs[tp_key] = args.testpaths [all …]
|
/tools/treble/build/sandbox/ |
D | build_android_sandboxed.py | 187 args = parse_args(arg_parser()) 193 if args['build_target'] is None: 196 cfg = config.Config(args['config_file']) 197 build_goals = cfg.get_build_goals(args['build_target'], set(args['context'])) 198 build_flags = cfg.get_build_flags(args['build_target'], set(args['context'])) 201 build_target=args['build_target'], 202 variant=args['variant'], 203 nsjail_bin=args['nsjail_bin'], 204 chroot=args['chroot'], 205 config_file=args['config_file'], [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/ |
D | gattc_lib.py | 156 args = line.split() 157 if len(args) != 2: 160 instance_id = args[0] 161 size = args[1] 172 args = line.split() 173 if len(args) != 2: 176 instance_id = args[0] 177 write_value = args[1] 185 args = line.split() 186 if len(args) != 2: [all …]
|
/tools/loganalysis/src/com/android/loganalysis/util/config/ |
D | ArgsOptionParser.java | 166 public List<String> parse(String... args) throws ConfigurationException { in parse() argument 167 return parse(Arrays.asList(args)); in parse() 176 public List<String> parse(List<String> args) throws ConfigurationException { in parse() argument 177 return parseOptions(args.listIterator()); in parse() 193 private List<String> parseOptions(ListIterator<String> args) throws ConfigurationException { in parseOptions() argument 197 while (args.hasNext()) { in parseOptions() 198 final String arg = args.next(); in parseOptions() 204 parseLongOption(arg, args); in parseOptions() 207 parseGroupedShortOptions(arg, args); in parseOptions() 216 while (args.hasNext()) { in parseOptions() [all …]
|
/tools/test/connectivity/acts/framework/acts/ |
D | test_decorators.py | 175 def __call__(self, *args, **kwargs): argument 180 new_signal = self._get_signal_from_func_call(*args, **kwargs) 183 def _get_signal_from_func_call(self, *args, **kwargs): argument 189 result = self.func(*args, **kwargs) 207 gathered_extras = self._gather_local_info(None, *args, **kwargs) 219 def gather(self, *args, **kwargs): argument 228 extras = self.func.gather(*args, **kwargs) 232 self._gather_local_info(extras, *args, **kwargs) 236 def _gather_local_info(self, gather_into, *args, **kwargs): argument 248 if not self.predicate or self.predicate(args, kwargs): [all …]
|
D | tracelogger.py | 41 def _log_with(self, logging_lambda, trace_level, msg, *args, **kwargs): argument 43 logging_lambda('%s %s' % (msg, trace_info), *args, **kwargs) 45 def exception(self, msg, *args, **kwargs): argument 46 self._log_with(self._logger.exception, 5, msg, *args, **kwargs) 48 def debug(self, msg, *args, **kwargs): argument 49 self._log_with(self._logger.debug, 3, msg, *args, **kwargs) 51 def error(self, msg, *args, **kwargs): argument 52 self._log_with(self._logger.error, 3, msg, *args, **kwargs) 54 def warn(self, msg, *args, **kwargs): argument 55 self._log_with(self._logger.warn, 3, msg, *args, **kwargs) [all …]
|