Home
last modified time | relevance | path

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

123456

/development/tools/repo_pull/
Drepo_review.py40 def _get_labels_from_args(args): argument
42 if not args.label:
45 for (name, value) in args.label:
120 def _has_task(args): argument
122 if args.label is not None or args.message is not None:
124 if args.submit:
126 if args.abandon is not None:
128 if args.restore:
130 if args.delete:
132 if args.add_hashtag or args.remove_hashtag:
[all …]
Drepo_patch.py42 args = _parse_args()
44 if args.gerrit:
45 args.gerrit = normalize_gerrit_name(args.gerrit)
48 args.gerrit = find_gerrit_name()
55 url_opener = create_url_opener_from_args(args)
57 url_opener, args.gerrit, args.query, args.start, args.limits)
67 patch_file = get_patch(url_opener, args.gerrit, change['id'])
Drepo_pull.py226 def _main_json(args): argument
228 change_lists = _get_change_lists_from_args(args)
281 def _main_bash(args): argument
284 project_dirs = build_project_name_dir_dict(args.manifest)
285 branch_name = _get_local_branch_name_from_args(args)
287 change_lists = _get_change_lists_from_args(args)
298 change, branch_name, args.merge, args.pick))
353 def _main_pull(args): argument
356 project_dirs = build_project_name_dir_dict(args.manifest)
357 branch_name = _get_local_branch_name_from_args(args)
[all …]
Dgerrit.py83 def __init__(self, args, returncode, stdout, stderr): argument
84 self.args = args
89 def run(*args, **kwargs): argument
101 proc = Popen(*args, **kwargs)
111 raise CalledProcessError(returncode, args, stdout)
112 return CompletedProcess(args, returncode, stdout, stderr)
121 def makefile(self, *args): argument
303 def create_url_opener_from_args(args): argument
306 if args.use_curl:
308 handlers.append(CurlHTTPHandler(args.use_curl))
[all …]
/development/vndk/tools/header-checker/utils/
Dcreate_reference_dumps.py93 def create_source_abi_reference_dumps(args, get_ref_dump_dir_stem, argument
102 get_ref_dump_dir_stem, arch, args.libs, lsdump_paths)
106 def create_source_abi_reference_dumps_for_all_products(args): argument
110 for product in args.products:
111 build_target = BuildTarget(product, args.release, args.build_variant)
135 if args.ref_dump_dir:
136 get_ref_dump_dir_stem = GetRefDumpDirStem(args.ref_dump_dir)
144 lsdump_filter = LsdumpFilter(args.libs, args.include_tags,
148 if not args.no_make_lib:
150 if args.libs:
[all …]
/development/tools/bugreport/src/com/android/bugreport/
DOptions.java30 public String[] args; field in Options
78 public static Options parseArgs(String[] args) { in parseArgs() argument
79 final Options result = new Options(args); in parseArgs()
82 final ArgParser argParser = new ArgParser(args); in parseArgs()
86 return new Options(args, argParser.pos(), in parseArgs()
92 return new Options(args, argParser.pos(), in parseArgs()
98 return new Options(args, argParser.pos(), in parseArgs()
103 return new Options(args, argParser.pos(), in parseArgs()
108 return new Options(args, argParser.pos(), in parseArgs()
119 private Options(String[] args) { in Options() argument
[all …]
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceScript.java279 private void handleEvent(String s, String[] args) { in handleEvent() argument
281 if (s.indexOf(EVENT_KEYWORD_KEY) >= 0 && args.length == 8) { in handleEvent()
284 long downTime = Long.parseLong(args[0]); in handleEvent()
285 long eventTime = Long.parseLong(args[1]); in handleEvent()
286 int action = Integer.parseInt(args[2]); in handleEvent()
287 int code = Integer.parseInt(args[3]); in handleEvent()
288 int repeat = Integer.parseInt(args[4]); in handleEvent()
289 int metaState = Integer.parseInt(args[5]); in handleEvent()
290 int device = Integer.parseInt(args[6]); in handleEvent()
291 int scancode = Integer.parseInt(args[7]); in handleEvent()
[all …]
DMonkeySourceNetworkViews.java77 public MonkeyCommandReturn query(AccessibilityNodeInfo node, List<String> args); in query() argument
204 List<String> args; in translateCommand() local
209 args = command.subList(4, command.size()); in translateCommand()
217 args = command.subList(5, command.size()); in translateCommand()
229 return getter.query(node, args); in translateCommand()
291 List<String> args) { in query() argument
292 if (args.size() == 0) { in query()
313 List<String> args) { in query() argument
314 if (args.size() == 0) { in query()
337 List<String> args) { in query() argument
[all …]
/development/vndk/snapshot/
Dmulti_update.py32 def fetch_and_update_snapshots(versions, args): argument
40 update.run(version, branch, bid, None, args.use_current_branch,
41 args.remote, args.verbose)
73 args = get_args(parser)
74 utils.set_logging_config(args.verbose)
76 if args.all:
78 fetch_and_update_snapshots(versions, args)
81 if not args.versions:
85 fetch_and_update_snapshots(args.versions, args)
/development/scripts/
Dget_rust_pkg.py81 def echo(args, msg): argument
82 if args.v:
86 def echo_all_deps(args, kind, deps): argument
87 if args.v and deps:
106 def is_newer_version(args, prev_version, prev_id, check_version, check_id): argument
108 echo(args, "checking version={} id={}".format(check_version, check_id))
121 def find_dl_path(args, name): argument
127 echo(args, "try to get dl_path from {}".format(url))
134 echo(args, "found download path for version {}".format(version))
138 def fetch_pkg(args, pkg, dl_path): argument
[all …]
Dacov-llvm.py76 def check_output(cmd, *args, **kwargs): argument
81 cmd, *args, **kwargs, check=True, stdout=subprocess.PIPE).stdout
84 def adb(cmd, *args, **kwargs): argument
86 return check_output(['adb'] + cmd, *args, **kwargs)
89 def adb_root(*args, **kwargs): argument
91 return adb(['root'], *args, **kwargs)
94 def adb_shell(cmd, *args, **kwargs): argument
96 return adb(['shell'] + cmd, *args, **kwargs)
140 def do_clean_device(args): argument
154 def do_flush(args): argument
[all …]
Dstack45 args = parser.parse_args()
46 if args.arch:
47 symbol.ARCH_IS_32BIT = not "64" in args.arch
48 if args.symbols_dir:
49 symbol.SYMBOLS_DIR = args.symbols_dir
50 if args.symbols_zip:
53 with zipfile.ZipFile(args.symbols_zip) as zf:
56 symbol.VERBOSE = args.verbose
57 if args.file == '-':
62 print("Searching for native crashes in %s" % args.file)
[all …]
Dlldbclient.py219 def handle_switches(args, sysroot: str) -> tuple[BinaryIO, int | None, str | None]: argument
231 device = args.device
236 args.su_cmd = ["su", args.user] if args.user else []
238 if args.target_pid:
240 pid = args.target_pid
241 elif args.target_name:
243 pid = get_remote_pid(device, args.target_name)
244 elif args.run_cmd:
245 if not args.run_cmd[0]:
247 run_cmd = args.run_cmd
[all …]
Dgdbclient.py219 def handle_switches(args, sysroot: str) -> tuple[BinaryIO, int | None, str | None]: argument
231 device = args.device
236 args.su_cmd = ["su", args.user] if args.user else []
238 if args.target_pid:
240 pid = args.target_pid
241 elif args.target_name:
243 pid = get_remote_pid(device, args.target_name)
244 elif args.run_cmd:
245 if not args.run_cmd[0]:
247 run_cmd = args.run_cmd
[all …]
Dcargo2rulesmk.py179 self.debug = runner.args.debug
295 args = [unquote(l) for l in line.split()]
298 while i < len(args):
299 arg = args[i]
302 self.crate_name = args[i]
308 self.crate_types.append(args[i])
313 self.target = args[i]
316 if args[i].startswith("feature="):
318 unquote(args[i].replace("feature=", ""))
321 self.cfgs.append(args[i])
[all …]
/development/tools/winscope/src/parsers/perfetto/
Dfake_proto_builder_test.ts32 const args = [makeArg('a', false), makeArg('b', true)]; constant
33 const proto = buildFakeProto(args);
39 const args = [makeArg('a', 1), makeArg('b', 10)]; constant
40 const proto = buildFakeProto(args);
46 const args = [makeArg('a', 1n), makeArg('b', 10n)]; constant
47 const proto = buildFakeProto(args);
53 const args = [makeArg('a', 'valuea'), makeArg('b', 'valueb')]; constant
54 const proto = buildFakeProto(args);
60 const args = [ constant
66 const proto = buildFakeProto(args);
[all …]
/development/tools/ninja_dependency_analysis/
Dcollect_ninja_inputs.py60 args = parser.parse_args() variable
64 build_cmd(args.ninja_binary, args.ninja_file, args.target,
65 args.exempted_file_list), text=True).strip().split('\n'))
71 if args.repo_project_list and args.repo_project_list.exists():
72 with open(args.repo_project_list) as fin:
74 elif args.repo_manifest and args.repo_manifest.exists():
77 for p in ET.parse(args.repo_manifest).getroot().findall('project')
87 if args.out:
88 with open(os.path.join(args.out.parent, args.out.name + '.json'), 'w') as json_file:
90 with open(os.path.join(args.out.parent, args.out.name + '.pb'), 'wb') as pb_file:
/development/gsi/repack_super_image/
Dmix_ssi_with_device_image.py115 args = parser.parse_args()
117 if not args.device_image_files:
120 output_dir = args.output_dir if args.output_dir else args.device_image_files
127 if os.path.isdir(args.ssi_files):
128 ssi_dir = args.ssi_files
132 ssi_dir = unzip_ssi_images(args.ssi_files, temp_dir)
134 device_misc_info = args.misc_info
135 if os.path.isdir(args.device_image_files):
136 device_image_dir = args.device_image_files
141 super_img = unzip_super_images(args.device_image_files, output_dir)
[all …]
/development/tools/otagui/
Dota_interface.py255 def ota_generate(self, args, id): argument
269 if not os.path.isfile(args['target']):
271 if not 'output' in args:
272 args['output'] = os.path.join(self.working_dir, str(id) + '.zip')
273 if args['verbose']:
275 if args['extra_keys']:
276 args['extra'] = '--' + \
277 ' --'.join(args['extra_keys']) + ' ' + args['extra']
278 if args['extra']:
279 command += args['extra'].strip().split(' ')
[all …]
/development/vndk/tools/sourcedr/blueprint/
Dlist_vndk_module.py80 args = _parse_args()
83 select = re.compile(args.select) if args.select else None
84 exclude = re.compile(args.exclude) if args.exclude else None
88 args.root_bp, args.namespace)
90 root_dir = os.path.dirname(args.root_bp)
92 if args.output:
93 with open(args.output, 'w') as output_file:
/development/tools/apkcheck/src/com/android/apkcheck/
DApkCheck.java58 public static void main(String[] args) { in main() argument
61 if (args.length < 2) { in main()
68 for (idx = 0; idx < args.length; idx++) { in main()
69 if (args[idx].equals("--help")) { in main()
72 } else if (args[idx].startsWith("--uses-library=")) { in main()
73 String libName = args[idx].substring(args[idx].indexOf('=')+1); in main()
82 } else if (args[idx].startsWith("--ignore-package=")) { in main()
83 String pkgName = args[idx].substring(args[idx].indexOf('=')+1); in main()
85 } else if (args[idx].equals("--warn")) { in main()
87 } else if (args[idx].equals("--no-warn")) { in main()
[all …]
/development/tools/external_crates/crate_health/src/
Dmain.rs129 let args = Cli::parse(); in main() localVariable
131 maybe_build_cargo_embargo(&args.repo_root, args.rebuild_cargo_embargo)?; in main()
133 match args.command { in main()
135 if args in main()
147 let mut cc = CrateCollection::new(&args.repo_root); in main()
195 args.repo_root.clone(), in main()
198 RepoPath::new(args.repo_root.clone(), &"out/rust-crate-migration-report"), in main()
235 .args(["-u", "-r", "-w", "--no-dereference"]) in main()
236 .args(IGNORED_FILES.iter().map(|ignored| format!("--exclude={}", ignored))) in main()
239 .current_dir(&args.repo_root) in main()
[all …]
/development/vndk/tools/sourcedr/ninja/
Dlist_installed_module_under_source.py58 args = _parse_args()
61 if args.installed_filter:
63 re.escape(posixpath.normpath(args.out_dir)) + '/' +
64 '(?:' + args.installed_filter + ')')
67 if args.module_definition_filter:
68 module_definition_filter = re.compile(args.module_definition_filter)
70 module_info = ModuleInfo(args.module_info)
/development/tools/external_crates/crate_health/src/bin/
Dmigration_report.rs38 let args = Args::parse(); in main() localVariable
40 maybe_build_cargo_embargo(&args.repo_root, false)?; in main()
43 RepoPath::new(args.repo_root.clone(), &"external/rust/crates"), in main()
44 RepoPath::new(args.repo_root.clone(), &"out/rust-crate-migration-report"), in main()
49 Ok(re.migration_report(&migration, &args.output_path)?) in main()
/development/vndk/tools/elfcheck/
Dfix_android_mk_prebuilt.py52 args = _parse_args()
53 rewriter = Rewriter(args.android_mk, _parse_arg_var(args.var))
54 if args.in_place:
57 with open(args.android_mk, 'w') as output_file:

123456