Home
last modified time | relevance | path

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

12345678910>>...20

/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/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.local_vendor_boot_image = None
47 self.args.config_file = ""
48 self.args.build_target = "fake_build_target"
49 self.args.adb_port = None
50 self.args.launch_args = None
[all …]
Davd_spec.py98 def __init__(self, args): argument
106 self._client_adb_port = args.adb_port
164 self._cfg = config.GetAcloudConfig(args)
188 self._ProcessArgs(args)
218 def _ProcessArgs(self, args): argument
228 self._ProcessMiscArgs(args)
229 self._ProcessImageArgs(args)
230 self._ProcessHWPropertyArgs(args)
243 def _ProcessImageArgs(self, args): argument
250 if args.local_image is None:
[all …]
Dcreate_args.py838 def _VerifyLocalArgs(args): argument
850 if args.local_image and not os.path.exists(args.local_image):
852 "Specified path doesn't exist: %s" % args.local_image)
854 if args.local_instance_dir and not os.path.exists(args.local_instance_dir):
856 "Specified path doesn't exist: %s" % args.local_instance_dir)
858 if not (args.local_system_image is None or
859 args.avd_type in (constants.TYPE_CF, constants.TYPE_GF)):
862 args.avd_type)
864 if args.local_instance is None and args.local_image is not None and (
865 args.kernel_branch or args.kernel_build_id):
[all …]
Dcreate.py120 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 …]
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 …]
/tools/acloud/public/actions/
Dremote_instance_cf_device_factory_test.py62 args = mock.MagicMock()
63 args.config_file = ""
64 args.avd_type = constants.TYPE_CF
65 args.flavor = "phone"
66 args.local_image = constants.FIND_IN_BUILD_ENV
67 args.launch_args = None
68 args.autoconnect = constants.INS_KEY_WEBRTC
69 avd_spec_local_img = avd_spec.AVDSpec(args)
87 args.autoconnect = constants.INS_KEY_VNC
88 avd_spec_local_img = avd_spec.AVDSpec(args)
[all …]
/tools/acloud/public/
Dacloud_main.py141 def _ParseArgs(args): argument
270 if not args or args[0] not in support_args:
274 return parser.parse_known_args(args)
328 def _ParsingConfig(args, cfg): argument
339 if (args.which == create_args.CMD_CREATE and
340 args.local_instance is None and not args.remote_host):
415 args, unknown_args = _ParseArgs(argv)
416 _SetupLogging(args.log_file, args.verbose)
417 _VerifyArgs(args)
420 cfg = config.GetAcloudConfig(args)
[all …]
/tools/treble/gki/
Drepack_gki.py47 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/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 …]
/tools/netsim/rust/daemon/src/
Drust_main.rs34 use crate::args::NetsimdArgs;
82 let mut argv = env::args().collect::<Vec<String>>(); in get_netsimd_args()
90 fn run_netsimd_with_args(args: NetsimdArgs) { in run_netsimd_with_args()
92 if args.version { in run_netsimd_with_args()
101 info!("{:#?}", args); in run_netsimd_with_args()
103 if !args.logtostderr { in run_netsimd_with_args()
105 redirect_std_stream(&get_instance_name(args.instance, args.connector_instance)) in run_netsimd_with_args()
111 info!("{:#?}", args); in run_netsimd_with_args()
114 match args.connector_instance { in run_netsimd_with_args()
116 Some(connector_instance) => run_netsimd_connector(args, connector_instance), in run_netsimd_with_args()
[all …]
/tools/test/mobly_extensions/scripts/
Dlocal_mobly_runner.py139 args = parser.parse_args()
140 if args.build and not args.module:
142 if args.install_apks and not (args.module or args.packages):
144 if args.tests is not None:
145 multiple_packages = (args.packages is not None
146 and len(args.packages.split(',')) > 1)
147 multiple_test_paths = (args.test_paths is not None
148 and len(args.test_paths.split(',')) > 1)
155 args.novenv = args.novenv or (args.test_paths is not None)
156 return args
[all …]
/tools/asuite/atest/
Datest_main.py140 def parse_steps(args: arg_parser.AtestArgParser) -> Steps:
150 if not args.steps:
151 return Steps(True, args.update_device, True, True)
152 build = constants.BUILD_STEP in args.steps
153 test = constants.TEST_STEP in args.steps
154 install = constants.INSTALL_STEP in args.steps
161 return Steps(build, args.update_device, install, test)
176 args = []
180 return args
207 args.extend(arg_in_line.split())
[all …]
/tools/treble/build/sandbox/
Dbuild_android_sandboxed.py193 args = parse_args(arg_parser())
199 if args['build_target'] is None:
202 cfg = config.Config(args['config_file'])
203 build_goals = cfg.get_build_goals(args['build_target'], set(args['context']))
204 build_flags = cfg.get_build_flags(args['build_target'], set(args['context']))
207 build_target=args['build_target'],
208 release_target=args['release_target'],
209 variant=args['variant'],
210 nsjail_bin=args['nsjail_bin'],
211 chroot=args['chroot'],
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dtako_trace_logger.py22 def __init__(self, *args, **kwargs): argument
23 super().__init__(*args, **kwargs)
32 return lambda *args, **kwargs: self._logger.log(level, *args, **kwargs)
34 def step(self, msg, *args, **kwargs): argument
36 self._log_with(self._logger_level('STEP'), 1, msg, *args, **kwargs)
38 def device(self, msg, *args, **kwargs): argument
40 self._log_with(self._logger_level('DEVICE'), 1, msg, *args, **kwargs)
42 def suite(self, msg, *args, **kwargs): argument
44 self._log_with(self._logger_level('SUITE'), 1, msg, *args, **kwargs)
46 def case(self, msg, *args, **kwargs): argument
[all …]
/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 …]
/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/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])
59 gcp_runner = gcp_setup_runner.GcpTaskRunner(args.config_file)
62 if args.host and utils.IsSupportedKvm():
71 if args.host_base or (not args.host and not args.gcp_init):
73 if args.gcp_init or (not args.host and not args.host_base):
77 subtask.Run(force_setup=args.force)
/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 …]
/tools/external_updater/
Dexternal_updater.py106 def _do_update(args: argparse.Namespace, updater: Updater,
110 if not args.keep_local_changes:
122 fileutils.write_metadata(full_path, updated_metadata, args.keep_date)
132 …_message = commit_message_generator(metadata.name, updater.latest_version, rel_proj_path, args.bug)
135 git_utils.commit(full_path, commit_message, args.no_verify)
137 if not args.skip_post_update:
142 if args.build:
153 if not args.no_upload:
154 git_utils.push(full_path, args.remote_name, updater.has_errors)
240 def check_and_update(args: argparse.Namespace,
[all …]
/tools/netsim/rust/cli/src/
Dlib.rs17 mod args; module
37 use args::{BinaryProtobuf, GetCapture, NetsimArgs};
72 command: &mut args::Command, in perform_command()
79 args::Command::Capture(args::Capture::Patch(_) | args::Capture::Get(_)) => { in perform_command()
82 args::Command::Beacon(args::Beacon::Remove(_)) => { in perform_command()
83 vec![args::Command::Devices(args::Devices { continuous: false }).get_request_bytes()] in perform_command()
92 args::Command::Devices(ref cmd) if cmd.continuous => { in perform_command()
95 args::Command::Capture(args::Capture::List(ref cmd)) if cmd.continuous => { in perform_command()
99 args::Command::Capture(args::Capture::Get(ref mut cmd)) => { in perform_command()
102 args::Command::Beacon(args::Beacon::Remove(ref cmd)) => { in perform_command()
[all …]
/tools/asuite/aidegen/
Daidegen_main_unittest.py52 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 …]
/tools/loganalysis/src/com/android/loganalysis/util/config/
DArgsOptionParser.java166 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/netsim/scripts/
Dbuild_tools.py120 args = parser.parse_args()
122 presubmit = is_presubmit(args.build_id)
126 if args.buildbot:
127 cfg = ServerConfig(presubmit, args)
132 if not args.buildbot:
137 if not os.path.isabs(args.out_dir):
138 args.out_dir = os.path.join(AOSP_ROOT, args.out_dir)
141 if args.buildbot:
143 fetch_build_chaining_artifacts(args.out_dir, presubmit)
145 args.out_dir = Path(args.out_dir) / "objs"
[all …]

12345678910>>...20