/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.fastboot_port = None 50 self.args.launch_args = None [all …]
|
D | avd_spec.py | 96 def __init__(self, args): argument 104 self._client_adb_port = args.adb_port 105 self._client_fastboot_port = args.fastboot_port 158 self._cfg = config.GetAcloudConfig(args) 182 self._ProcessArgs(args) 212 def _ProcessArgs(self, args): argument 222 self._ProcessMiscArgs(args) 223 self._ProcessImageArgs(args) 224 self._ProcessHWPropertyArgs(args) 237 def _ProcessImageArgs(self, args): argument [all …]
|
D | create_args.py | 783 def _VerifyLocalArgs(args): argument 795 if args.local_image and not os.path.exists(args.local_image): 797 "Specified path doesn't exist: %s" % args.local_image) 799 if args.local_instance_dir and not os.path.exists(args.local_instance_dir): 801 "Specified path doesn't exist: %s" % args.local_instance_dir) 803 if not (args.local_system_image is None or 804 args.avd_type in (constants.TYPE_CF, constants.TYPE_GF)): 807 args.avd_type) 809 if args.local_instance is None and args.local_image is not None and ( 810 args.kernel_branch or args.kernel_build_id): [all …]
|
D | create.py | 120 def _CheckForAutoconnect(args): argument 130 if not args.autoconnect or utils.FindExecutable(constants.ADB_BIN): 134 answer = _YES if args.no_prompt else utils.InteractWithQuestion( 163 args.autoconnect = False 166 def _CheckForSetup(args): argument 177 args.gcp_init = False 178 args.host = False 179 args.host_base = False 180 args.force = False 181 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/asuite/atest/ |
D | atest_main.py | 122 def parse_steps(args: atest_arg_parser.AtestArgParser) -> Steps: 132 if not args.steps: 134 build = constants.BUILD_STEP in args.steps 135 test = constants.TEST_STEP in args.steps 136 install = constants.INSTALL_STEP in args.steps 156 args = [] 160 return args 182 args.extend(arg_in_line.split()) 189 args.append(arg_in_line) 190 return args [all …]
|
/tools/acloud/public/actions/ |
D | remote_instance_cf_device_factory_test.py | 63 args = mock.MagicMock() 64 args.config_file = "" 65 args.avd_type = constants.TYPE_CF 66 args.flavor = "phone" 67 args.local_image = constants.FIND_IN_BUILD_ENV 68 args.local_system_image = None 69 args.local_vendor_image = None 70 args.launch_args = None 71 args.autoconnect = constants.INS_KEY_WEBRTC 72 avd_spec_local_img = avd_spec.AVDSpec(args) [all …]
|
/tools/acloud/public/ |
D | acloud_main.py | 139 def _ParseArgs(args): argument 246 if not args: 250 return parser.parse_known_args(args) 292 def _ParsingConfig(args, cfg): argument 303 if args.which == create_args.CMD_CREATE and args.local_instance is None: 310 (config.GetUserConfigPath(args.config_file), missing_fields)) 379 args, unknown_args = _ParseArgs(argv) 380 _SetupLogging(args.log_file, args.verbose) 381 _VerifyArgs(args) 384 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 691 if (args.contains(ARG_NO_COLOR)) { in <lambda>() 693 } else if (args.contains(ARG_COLOR) || args.contains("-android")) { in <lambda>() 699 if (args.isNotEmpty() && !args.contains(ARG_QUIET) && !args.contains(ARG_NO_BANNER) && in <lambda>() 700 !args.contains(ARG_VERSION) in <lambda>() 729 while (index < args.size) { in <lambda>() 731 when (val arg = args[index]) { in <lambda>() 750 val path = getValue(args, ++index) in <lambda>() 755 val path = getValue(args, ++index) in <lambda>() 771 val listString = getValue(args, ++index) in <lambda>() [all …]
|
/tools/asuite/aidegen/ |
D | aidegen_main_unittest.py | 52 def _init_project_config(self, args): argument 54 self.assertIsNotNone(args) 55 config = project_config.ProjectConfig(args) 60 args = aidegen_main._parse_args([]) 61 self.assertEqual(args.targets, ['']) 62 self.assertEqual(args.ide[0], 'u') 64 args = aidegen_main._parse_args([target]) 65 self.assertEqual(args.targets, [target]) 67 args = aidegen_main._parse_args(['-d', depth]) 68 self.assertEqual(args.depth, int(depth)) [all …]
|
D | aidegen_main.py | 102 def _parse_args(args): argument 185 return parser.parse_args(args) 231 def _launch_native_projects(ide_util_obj, args, cmakelists): argument 248 ide_name = constant.IDE_NAME_DICT[args.ide[0]] 270 def _launch_ide_by_module_contents(args, ide_util_obj, language, argument 364 _launch_native_projects(ide_util_obj, args, [native_project_file]) 484 def main_with_message(args): argument 490 aidegen_main(args) 494 def main_without_message(args): argument 500 aidegen_main(args) [all …]
|
/tools/treble/gki/ |
D | repack_gki.py | 47 args = parser.parse_args() 49 json_keyfile_name=args.json_keyfile) 51 if not os.path.exists(args.out_dir): 52 os.makedirs(args.out_dir) 54 bootimg_build_id = args.bootimg_build_id or args.ramdisk_build_id 55 bootimg_target = args.bootimg_target or args.ramdisk_target 64 kernel_version=args.kernel_version, 72 build_id=args.kernel_build_id, 73 kernel_target=args.kernel_target, 74 kernel_debug_target=args.kernel_debug_target, [all …]
|
/tools/external_updater/ |
D | external_updater.py | 92 def _do_update(args: argparse.Namespace, updater: Updater, 96 if not args.keep_local_changes: 97 git_utils.checkout(full_path, args.remote_name + '/master') 105 updater.update(args.skip_post_update) 116 fileutils.write_metadata(full_path, updated_metadata, args.keep_date) 119 if args.build: 124 if args.no_upload: 150 git_utils.push(full_path, args.remote_name, updater.has_errors) 153 def check_and_update(args: argparse.Namespace, 180 if update_lib and args.refresh: [all …]
|
/tools/test/mobly_extensions/scripts/ |
D | local_mobly_runner.py | 116 args = parser.parse_args() 117 if args.build and not args.module: 119 if args.install_apks and not (args.module or args.packages): 122 args.novenv = args.novenv or (args.test_paths is not None) 123 return args 180 args: argparse.Namespace, 193 if args.test_paths: 194 mobly_bins.extend(args.test_paths.split(',')) 195 elif args.module: 196 for path in _get_module_artifacts(args.module): [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 | 96 self.args = mock.MagicMock() 97 self.args.module_name = 'm1' 98 self.args.project_path = '' 99 self.args.ide = ['j'] 100 self.args.no_launch = True 101 self.args.depth = 0 102 self.args.android_tree = False 103 self.args.skip_build = True 104 self.args.targets = ['m1'] 105 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 | 155 args = line.split() 156 if len(args) != 2: 159 instance_id = args[0] 160 size = args[1] 171 args = line.split() 172 if len(args) != 2: 175 instance_id = args[0] 176 write_value = args[1] 184 args = line.split() 185 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/repohooks/rh/ |
D | hooks.py | 56 def expand_vars(self, args): argument 69 for arg in args: 191 def __init__(self, name, args, tool_paths): argument 200 self._args = args 204 def expand_vars(args, diff=()): argument 207 return replacer.expand_vars(args) 209 def args(self, default_args=(), diff=()): member in HookOptions 219 args = self._args 220 if not args: 221 args = default_args [all …]
|
/tools/netsim/rust/netsim-cli/src/ |
D | lib.rs | 17 mod args; module 27 use args::{BinaryProtobuf, GetCapture, NetsimArgs}; 68 command: &mut args::Command, in perform_command() 75 args::Command::Pcap(args::Pcap::Patch(_) | args::Pcap::Get(_)) => { in perform_command() 85 args::Command::Devices(ref cmd) if cmd.continuous => loop { in perform_command() 90 args::Command::Pcap(args::Pcap::Get(ref cmd)) => { in perform_command() 103 command: &args::Command, in process_result() 117 let mut args = NetsimArgs::parse(); in rust_main() localVariable 118 if matches!(args.command, args::Command::Gui) { in rust_main() 122 let grpc_method = args.command.grpc_method(); in rust_main() [all …]
|