/development/tools/repo_pull/ |
D | repo_review.py | 38 def _get_labels_from_args(args): argument 40 if not args.label: 43 for (name, value) in args.label: 119 def _has_task(args): argument 121 if args.label is not None or args.message is not None: 123 if args.abandon is not None: 125 if args.add_hashtag or args.remove_hashtag: 127 if args.set_topic or args.delete_topic: 158 def _do_task(change, func, *args, **kwargs): argument 161 res_code, res_json = func(*args) [all …]
|
D | repo_pull.py | 62 def __init__(self, args, returncode, stdout, stderr): argument 63 self.args = args 68 def run(*args, **kwargs): argument 80 proc = Popen(*args, **kwargs) 90 raise CalledProcessError(returncode, args, stdout) 91 return CompletedProcess(args, returncode, stdout, stderr) 247 def _main_json(args): argument 249 change_lists = _get_change_lists_from_args(args) 302 def _main_bash(args): argument 305 branch_name = _get_local_branch_name_from_args(args) [all …]
|
D | repo_patch.py | 49 args = _parse_args() 52 url_opener = create_url_opener_from_args(args) 54 url_opener, args.gerrit, args.query, args.limits) 64 patch_file = get_patch(url_opener, args.gerrit, change['id'])
|
/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 | 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 | 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 | 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 | gdbclient.py | 203 def handle_switches(args, sysroot): argument 215 device = args.device 220 args.su_cmd = ["su", args.user] if args.user else [] 222 if args.target_pid: 224 pid = args.target_pid 225 elif args.target_name: 227 pid = get_remote_pid(device, args.target_name) 228 elif args.run_cmd: 229 if not args.run_cmd[0]: 231 run_cmd = args.run_cmd [all …]
|
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 | 164 self.debug = runner.args.debug 306 args = line.split() # Loop through every argument of rustc. 308 while i < len(args): 309 arg = args[i] 311 self.crate_name = args[i + 1] 314 self.main_src = re.sub('^/[^ ]*/registry/src/', '.../', args[i]) 318 if self.cargo_dir and not self.runner.args.onefile: 326 self.errors += self.crate_type + ' ' + args[i] + '\n' 334 self.crate_type = args[i] 344 self.target = args[i] [all …]
|
/development/vndk/tools/header-checker/utils/ |
D | create_reference_dumps.py | 107 def create_source_abi_reference_dumps(args, chosen_vndk_version, argument 119 args.ref_dump_dir, chosen_vndk_version, binder_bitness, target, 120 args.libs, lsdump_paths, args.compress) 124 def create_source_abi_reference_dumps_for_all_products(args): argument 129 for product in args.products: 132 product, args.build_variant) 142 args.version, platform_vndk_version, board_vndk_version) 149 args.ref_dump_dir, chosen_vndk_version, binder_bitness, targets, 150 args.libs) 152 if not args.no_make_lib: [all …]
|
/development/tools/hosttestlib/src/com/android/hosttest/ |
D | DeviceTestRunner.java | 59 public TestResult start(String[] args) throws Exception { in start() argument 62 for (int i=0; i < args.length; i++) { in start() 63 if (args[i].equals("-s")) { in start() 65 mDeviceSerial = extractArg(args, i); in start() 66 } else if (args[i].equals("-p")) { in start() 68 mTestDataPath = extractArg(args, i); in start() 71 parentArgs.add(args[i]); in start() 79 private String extractArg(String[] args, int index) { in extractArg() argument 80 if (args.length <= index) { in extractArg() 84 return args[index]; in extractArg() [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:
|
D | analyze_manifest_split.py | 143 args = _parse_args() 146 dir_matcher = DirProjectMatcher(parse_manifest_xml(args.manifest)) 151 root_dir = os.path.dirname(os.path.abspath(args.blueprint)) 156 for rule, attrs in parse_blueprint(args.blueprint): 169 if args.skip_no_overlaps: 174 elif args.has_group: 175 if not getattr(modules, args.has_group): 177 elif args.only_has_group: 179 for group in _GROUPS if group != args.only_has_group): 181 if not getattr(modules, args.only_has_group): [all …]
|
/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/image-diff-tool/ |
D | diff.py | 210 def main_with_zip(extracted_paths, args): argument 211 for origin_path, tmp_path in zip(args.target, extracted_paths): 213 unzip_cmd.extend([os.path.join(s, "*") for s in args.search_path]) 215 main(extracted_paths, args.search_path, args.whitelist, args.ignore_signing_key) 225 args = parser.parse_args() variable 226 if len(args.target) < 2: 228 if args.unzip: 229 if args.preserve_extracted_files: 230 main_with_zip(args.target, args) 233 target_in_tmp = [os.path.join(tmpdir, t) for t in args.target] [all …]
|
/development/vndk/snapshot/ |
D | update.py | 223 args = get_args() 226 if args.local: 227 local = os.path.expanduser(args.local) 230 if args.build or args.branch: 239 if not (args.build and args.branch): 244 vndk_version = args.vndk_version 253 utils.set_logging_config(args.verbose) 257 if not args.use_current_branch: 258 start_branch(args.build) 268 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 …]
|
/development/samples/browseable/BasicNetworking/src/com.example.android.basicnetworking/ |
D | SimpleTextFragment.java | 89 Bundle args = getArguments(); in processArguments() local 90 if (args.containsKey(TEXT_KEY)) { in processArguments() 91 mText = args.getString(TEXT_KEY); in processArguments() 93 } else if (args.containsKey(TEXT_ID_KEY)) { in processArguments() 94 mTextId = args.getInt(TEXT_ID_KEY); in processArguments()
|
/development/gsi/repack_super_image/ |
D | repack_super_image.py | 152 args = parser.parse_args() 156 for part, img in args.part_imgs: 161 if args.temp_dir: 162 tempfile.tempdir = args.temp_dir 167 if os.path.isdir(args.ota_tools): 168 ota_tools_dir = args.ota_tools 173 with zipfile.ZipFile(args.ota_tools) as ota_tools_zip: 177 if not is_sparse_image(args.super_img): 178 super_img_path = args.super_img 187 subprocess.check_call([simg2img_path, args.super_img, super_img_path]) [all …]
|