/development/tools/repo_pull/ |
D | repo_review.py | 40 def _get_labels_from_args(args): argument 42 if not args.label: 45 for (name, value) in args.label: 127 def _has_task(args): argument 129 if args.label is not None or args.message is not None: 131 if args.submit: 133 if args.abandon is not None: 135 if args.restore: 137 if args.add_hashtag or args.remove_hashtag: 139 if args.set_topic or args.delete_topic: [all …]
|
D | repo_patch.py | 50 args = _parse_args() 52 if not args.gerrit: 54 args.gerrit = find_gerrit_name() 61 url_opener = create_url_opener_from_args(args) 63 url_opener, args.gerrit, args.query, args.limits) 73 patch_file = get_patch(url_opener, args.gerrit, change['id'])
|
D | repo_pull.py | 204 def _main_json(args): argument 206 change_lists = _get_change_lists_from_args(args) 259 def _main_bash(args): argument 262 project_dirs = build_project_name_dir_dict(args.manifest) 263 branch_name = _get_local_branch_name_from_args(args) 265 change_lists = _get_change_lists_from_args(args) 275 change, branch_name, args.merge, args.pick)) 327 def _main_pull(args): argument 330 project_dirs = build_project_name_dir_dict(args.manifest) 331 branch_name = _get_local_branch_name_from_args(args) [all …]
|
D | gerrit.py | 55 def __init__(self, args, returncode, stdout, stderr): argument 56 self.args = args 61 def run(*args, **kwargs): argument 73 proc = Popen(*args, **kwargs) 83 raise CalledProcessError(returncode, args, stdout) 84 return CompletedProcess(args, returncode, stdout, stderr) 134 def create_url_opener_from_args(args): argument 137 domain = urlparse(args.gerrit).netloc 140 return create_url_opener(args.gitcookies, domain) 143 .format(domain, args.gitcookies), file=sys.stderr) [all …]
|
/development/tools/bugreport/src/com/android/bugreport/ |
D | Options.java | 30 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/ |
D | MonkeySourceScript.java | 279 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 …]
|
D | MonkeySourceNetworkViews.java | 77 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/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
D | MessageDialogFragment.java | 31 Bundle args = new Bundle(); in newInstance() local 32 args.putInt(ARG_MESSAGE_INT, message); in newInstance() 33 fragment.setArguments(args); in newInstance() 39 Bundle args = new Bundle(); in newInstance() local 40 args.putString(ARG_MESSAGE_STRING, message); in newInstance() 41 fragment.setArguments(args); in newInstance() 49 Bundle args = getArguments(); in onCreateDialog() local 50 if (args.containsKey(ARG_MESSAGE_INT)) { in onCreateDialog() 51 builder.setMessage(args.getInt(ARG_MESSAGE_INT)); in onCreateDialog() 52 } else if (args.containsKey(ARG_MESSAGE_STRING)) { in onCreateDialog() [all …]
|
/development/scripts/ |
D | get_rust_pkg.py | 81 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 …]
|
D | stack | 38 args = parser.parse_args() 40 if args.arch: 41 symbol.ARCH = args.arch 42 if args.syms: 43 symbol.SYMBOLS_DIR = args.syms 44 if args.file == '-': 48 print("Searching for native crashes in %s" % args.file) 49 f = open(args.file, "r")
|
D | acov-llvm.py | 79 def check_output(cmd, *args, **kwargs): argument 84 cmd, *args, **kwargs, check=True, stdout=subprocess.PIPE).stdout 87 def adb(cmd, *args, **kwargs): argument 89 return check_output(['adb'] + cmd, *args, **kwargs) 92 def adb_root(*args, **kwargs): argument 94 return adb(['root'], *args, **kwargs) 97 def adb_shell(cmd, *args, **kwargs): argument 99 return adb(['shell'] + cmd, *args, **kwargs) 135 def do_clean_device(args): argument 149 def do_flush(args): argument [all …]
|
D | gdbclient.py | 215 def handle_switches(args, sysroot): argument 227 device = args.device 232 args.su_cmd = ["su", args.user] if args.user else [] 234 if args.target_pid: 236 pid = args.target_pid 237 elif args.target_name: 239 pid = get_remote_pid(device, args.target_name) 240 elif args.run_cmd: 241 if not args.run_cmd[0]: 243 run_cmd = args.run_cmd [all …]
|
D | lldbclient.py | 215 def handle_switches(args, sysroot): argument 227 device = args.device 232 args.su_cmd = ["su", args.user] if args.user else [] 234 if args.target_pid: 236 pid = args.target_pid 237 elif args.target_name: 239 pid = get_remote_pid(device, args.target_name) 240 elif args.run_cmd: 241 if not args.run_cmd[0]: 243 run_cmd = args.run_cmd [all …]
|
D | add-accounts-sdk | 34 def RunCmd(args): argument 35 proc = subprocess.Popen(args, stdout=subprocess.PIPE) 39 print "failed: %s" % " ".join(args) 44 args = ("adb",) + adb_flags + ("shell", "/system/bin/getprop", name) 45 return RunCmd(args) 48 args = ("adb",) + adb_flags + ("shell", "/system/bin/setprop", name, value) 49 return RunCmd(args) 52 args = ("adb",) + adb_flags + ("shell", "/system/bin/ls", DB) 53 result = RunCmd(args)
|
D | add-accounts | 34 def RunCmd(args): argument 35 proc = subprocess.Popen(args, stdout=subprocess.PIPE) 39 print "failed: %s" % " ".join(args) 44 args = ("adb",) + adb_flags + ("shell", "su", "root", 46 return RunCmd(args) 49 args = ("adb",) + adb_flags + ("shell", "su", "root", 51 return RunCmd(args) 54 args = ("adb",) + adb_flags + ("shell", "su", "root", 56 result = RunCmd(args)
|
D | architecture.py | 36 def Assemble(self, args): argument 38 return [symbol.ToolPath(ASSEMBLE)] + self.options.get(ASSEMBLE, []) + args 40 def Link(self, args): argument 42 return [symbol.ToolPath(LINK)] + self.options.get(LINK, []) + args 44 def Disassemble(self, args): argument 47 args)
|
D | cargo2android.py | 196 self.debug = runner.args.debug 351 args = line.split() # Loop through every argument of rustc. 353 while i < len(args): 354 arg = args[i] 357 self.crate_name = args[i] 363 self.crate_types.append(args[i]) 368 self.target = args[i] 371 if args[i].startswith('\'feature='): 372 self.features.append(unquote(args[i].replace('\'feature=', '')[:-1])) 374 self.cfgs.append(args[i]) [all …]
|
/development/vndk/tools/header-checker/utils/ |
D | create_reference_dumps.py | 106 def create_source_abi_reference_dumps(args, chosen_vndk_version, argument 118 args.ref_dump_dir, chosen_vndk_version, binder_bitness, target, 119 args.libs, lsdump_paths, args.compress) 123 def create_source_abi_reference_dumps_for_all_products(args): argument 128 for product in args.products: 131 product, args.build_variant) 141 args.version, platform_vndk_version, board_vndk_version) 148 args.ref_dump_dir, chosen_vndk_version, binder_bitness, targets, 149 args.libs) 151 if not args.no_make_lib: [all …]
|
/development/vndk/tools/sourcedr/blueprint/ |
D | list_vndk_module.py | 80 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/ |
D | ApkCheck.java | 58 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/vndk/tools/sourcedr/ninja/ |
D | list_installed_module_under_source.py | 58 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/vndk/tools/elfcheck/ |
D | fix_android_mk_prebuilt.py | 52 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:
|
/development/vndk/snapshot/ |
D | update.py | 215 args = get_args() 218 if args.local: 219 local = os.path.expanduser(args.local) 222 if args.build or args.branch: 231 if not (args.build and args.branch): 236 vndk_version = args.vndk_version 245 utils.set_logging_config(args.verbose) 249 if not args.use_current_branch: 250 start_branch(args.build) 260 install_snapshot(args.branch, args.build, local, install_dir, [all …]
|
/development/gsi/gsi_util/ |
D | gsi_util.py | 60 args = parser.parse_args(argv[1:]) 61 if args.debug: 65 args.func(args) 68 if args.debug:
|
/development/tools/logblame/ |
D | analyze_logs.py | 129 args = parser.parse_args() 131 args.durationSec = ParseDuration(args.duration[0]) if args.duration else 0 133 return args 137 args = ParseArgs(argv) 141 if args.rawlogs: 142 rawlogs = file(args.rawlogs[0], "w") 147 if args.input: 150 infile = file(args.input, "r") 152 sys.stderr.write("Error opening file for read: %s\n" % args.input[0]) 156 if args.clear: [all …]
|