Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 266) sorted by relevance

1234567891011

/tools/treble/hacksaw/client/
Dcommand.go51 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 …]
Dcommand_test.go31 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/public/actions/
Dremote_instance_cf_device_factory_test.py63 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.launch_args = None
70 avd_spec_local_img = avd_spec.AVDSpec(args)
81 args.local_image = None
82 args.build_id = "1234"
[all …]
/tools/acloud/public/
Dacloud_main.py163 def _ParseArgs(args): argument
267 if not args:
271 return parser.parse_args(args)
319 def _ParsingConfig(args, cfg): argument
330 if args.which == create_args.CMD_CREATE and args.local_instance is None:
332 if args.which == CMD_CREATE_CUTTLEFISH:
404 args = _ParseArgs(argv)
405 _SetupLogging(args.log_file, args.verbose)
406 _VerifyArgs(args)
409 cfg = config.GetAcloudConfig(args)
[all …]
/tools/asuite/atest/
Datest.py79 def _run_multi_proc(func, *args, **kwargs): argument
91 proc = Process(target=func, *args, **kwargs)
113 args = parser.parse_args(pruned_argv)
114 args.custom_args = []
118 args.custom_args.append(atest_utils.quote(arg))
119 return args
168 def get_extra_args(args): argument
178 if args.wait_for_debugger:
180 steps = args.steps or constants.ALL_STEPS
206 not_match = [k for k in arg_maps if k not in vars(args)]
[all …]
/tools/asuite/atest-py2/
Datest.py114 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/acloud/create/
Davd_spec_test.py41 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
52 self.AvdSpec = avd_spec.AVDSpec(self.args)
[all …]
Dcreate_test.py59 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 …]
Davd_spec.py96 def __init__(self, args): argument
104 self._client_adb_port = args.adb_port
136 self._cfg = config.GetAcloudConfig(args)
157 self._ProcessArgs(args)
187 def _ProcessArgs(self, args): argument
197 self._ProcessMiscArgs(args)
198 self._ProcessImageArgs(args)
199 self._ProcessHWPropertyArgs(args)
201 def _ProcessImageArgs(self, args): argument
208 if args.local_image is None:
[all …]
Dcreate_args.py572 def _VerifyLocalArgs(args): argument
584 if args.local_image and not os.path.exists(args.local_image):
586 "Specified path doesn't exist: %s" % args.local_image)
588 if args.local_instance_dir and not os.path.exists(args.local_instance_dir):
590 "Specified path doesn't exist: %s" % args.local_instance_dir)
592 if not (args.local_system_image is None or
593 args.avd_type in (constants.TYPE_CF, constants.TYPE_GF)):
596 args.avd_type)
598 if (args.local_system_image and
599 not os.path.exists(args.local_system_image)):
[all …]
Dcreate.py112 def _CheckForAutoconnect(args): argument
122 if not args.autoconnect or utils.FindExecutable(constants.ADB_BIN):
126 answer = _YES if args.no_prompt else utils.InteractWithQuestion(
155 args.autoconnect = False
158 def _CheckForSetup(args): argument
169 args.gcp_init = False
170 args.host = False
171 args.host_base = False
172 args.force = False
173 args.update_config = None
[all …]
/tools/test/connectivity/acts/framework/acts/bin/
Dmonsoon.py25 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 …]
Dact.py184 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/external_updater/
Dexternal_updater.py89 def _do_update(args: argparse.Namespace, updater: Updater,
93 if args.branch_and_commit:
94 git_utils.checkout(full_path, args.remote_name + '/master')
108 fileutils.write_metadata(full_path, updated_metadata, args.keep_date)
111 if args.branch_and_commit:
113 args.path, updater.latest_version)
117 if args.push_change:
118 git_utils.push(full_path, args.remote_name, updater.has_errors)
120 if args.branch_and_commit:
121 git_utils.checkout(full_path, args.remote_name + '/master')
[all …]
/tools/asuite/aidegen/lib/
Dproject_config_unittest.py63 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 …]
Dproject_info_unittest.py97 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/asuite/aidegen/
Daidegen_main_unittest.py53 def _init_project_config(self, args): argument
55 self.assertIsNotNone(args)
56 config = project_config.ProjectConfig(args)
61 args = aidegen_main._parse_args([])
62 self.assertEqual(args.targets, [''])
63 self.assertEqual(args.ide[0], 'u')
65 args = aidegen_main._parse_args([target])
66 self.assertEqual(args.targets, [target])
68 args = aidegen_main._parse_args(['-d', depth])
69 self.assertEqual(args.depth, int(depth))
[all …]
Daidegen_main.py98 def _parse_args(args): argument
181 return parser.parse_args(args)
227 def _launch_native_projects(ide_util_obj, args, cmakelists): argument
244 ide_name = constant.IDE_NAME_DICT[args.ide[0]]
265 def _launch_ide_by_module_contents(args, ide_util_obj, language, jlist=None, argument
334 _launch_native_projects(ide_util_obj, args, [native_project_file])
431 def main_with_message(args): argument
437 aidegen_main(args)
441 def main_without_message(args): argument
447 aidegen_main(args)
[all …]
/tools/treble/build/sandbox/
Dbuild_android_sandboxed.py183 args = parse_args(arg_parser())
189 if args['build_target'] is None:
192 cfg = config.Config(args['config_file'])
193 build_goals = cfg.get_build_goals(args['build_target'], set(args['context']))
196 build_target=args['build_target'],
197 variant=args['variant'],
198 nsjail_bin=args['nsjail_bin'],
199 chroot=args['chroot'],
200 config_file=args['config_file'],
201 command_wrapper=args['command_wrapper'],
[all …]
/tools/acloud/setup/
Dsetup.py32 def Run(args): argument
43 if args.update_config:
44 _UpdateConfig(args.config_file, args.update_config[0], args.update_config[1])
58 gcp_runner = gcp_setup_runner.GcpTaskRunner(args.config_file)
61 if args.host:
67 if args.host_base or (not args.host and not args.gcp_init):
69 if args.gcp_init or (not args.host and not args.host_base):
73 subtask.Run(force_setup=args.force)
/tools/test/connectivity/acts/framework/acts/
Dtracelogger.py41 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 …]
Dtest_decorators.py175 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 …]
/tools/treble/fetcher/
Dfetcher.py40 args = parser.parse_args()
42 json_keyfile_name=args.json_keyfile)
45 client=client, branch=args.branch,
46 target=args.target) if args.branch else args.build_id
48 for artifact in args.artifact:
52 target=args.target,
54 dest=os.path.join(args.out_dir, artifact))
56 for re in args.regex:
60 target=args.target,
62 out_dir=args.out_dir)
/tools/acloud/restart/
Drestart_test.py32 args = mock.MagicMock()
35 args.instance_name = "instance_1"
36 args.instance_id = 1
37 args.powerwash = False
41 restart.Run(args)
43 mock.call(cfg, instance_obj, args.instance_id, args.powerwash)])
49 args.instance_name = None
50 restart.Run(args)
52 mock.call(cfg, selected_instance, args.instance_id, args.powerwash)])
/tools/test/connectivity/acts_tests/tests/google/bt/
Drelay_tool.py132 args = parser.parse_args()
133 relay_device = get_relay_device(args.config, args.testbed,
134 args.relay_device)
142 if args.command:
143 if args.command[0] not in func_names:
145 (repr(args.command[0]), repr(func_names)), file=sys.stderr)
148 func = getattr(relay_device, args.command[0])
150 ret = func(*args.command[1:])
156 if len(e.args) == 1 and func.__name__ in e.args[0]:
160 args.command[0], file=sys.stderr)
[all …]

1234567891011