Home
last modified time | relevance | path

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

123456

/development/tools/repo_pull/
Drepo_review.py38 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 …]
Drepo_pull.py61 def __init__(self, args, returncode, stdout, stderr): argument
62 self.args = args
67 def run(*args, **kwargs): argument
79 proc = Popen(*args, **kwargs)
89 raise CalledProcessError(returncode, args, stdout)
90 return CompletedProcess(args, returncode, stdout, stderr)
236 def _main_json(args): argument
238 change_lists = _get_change_lists_from_args(args)
291 def _main_bash(args): argument
294 branch_name = _get_local_branch_name_from_args(args)
[all …]
Drepo_patch.py49 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/
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/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DMessageDialogFragment.java31 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/vndk/tools/header-checker/utils/
Dcreate_reference_dumps.py75 def get_ref_dump_dir_stem(args, vndk_or_ndk, product, chosen_vndk_version): argument
79 ref_dump_dir_stem = os.path.join(args.ref_dump_dir, vndk_or_ndk)
106 def remove_references_for_all_arches_and_variants(args, product, targets, argument
108 libs = args.libs
114 get_ref_dump_dir_stem(args, 'vndk', product, chosen_vndk_version),
118 get_ref_dump_dir_stem(args, 'ndk', product, chosen_vndk_version),
146 def create_source_abi_reference_dumps(args, product, argument
150 get_ref_dump_dir_stem(args, 'vndk', product, chosen_vndk_version)
152 get_ref_dump_dir_stem(args, 'ndk', product, chosen_vndk_version)
167 '_vendor_shared', args.libs, lsdump_paths, args.compress)
[all …]
/development/scripts/
Dgdbclient.py114 def handle_switches(args, sysroot): argument
126 device = args.device
131 args.su_cmd = ["su", args.user] if args.user else []
133 if args.target_pid:
135 pid = args.target_pid
136 elif args.target_name:
138 pid = get_remote_pid(device, args.target_name)
139 elif args.run_cmd:
140 if not args.run_cmd[0]:
142 run_cmd = args.run_cmd
[all …]
Dadd-accounts-sdk34 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)
Dadd-accounts34 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)
Darchitecture.py36 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)
/development/tools/hosttestlib/src/com/android/hosttest/
DDeviceTestRunner.java59 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/
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:
Danalyze_manifest_split.py143 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/
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/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/vndk/snapshot/
Dupdate.py218 args = get_args()
221 if args.local:
222 local = os.path.expanduser(args.local)
225 if args.build or args.branch:
234 if not (args.build and args.branch):
239 vndk_version = args.vndk_version
248 utils.set_logging_config(args.verbose)
252 if not args.use_current_branch:
253 start_branch(args.build)
263 install_snapshot(args.branch, args.build, local, install_dir,
[all …]
/development/gsi/gsi_util/
Dgsi_util.py60 args = parser.parse_args(argv[1:])
61 if args.debug:
65 args.func(args)
68 if args.debug:
/development/tools/logblame/
Danalyze_logs.py129 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/
DSimpleTextFragment.java89 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/gsi_util/gsi_util/commands/
Dcheck_compat.py110 def do_check_compat(args): argument
113 logging.info(' system=%s vendor=%s', args.system, args.vendor)
115 check_list = (checker.Checker.make_check_list(args.CHECK_ITEM)
116 if args.CHECK_ITEM else checker.Checker.get_all_check_list())
118 mounter = image_sources.create_composite_mounter_by_args(args)
124 if args.only_summary:
Dpull.py24 def do_pull(args): argument
27 source, dest = args.SOURCE, args.DEST
29 mounter = image_sources.create_composite_mounter_by_args(args)
Ddump.py81 def do_dump(args): argument
84 logging.debug('Info name list: %s', args.INFO_NAME)
85 dump_list = dumper.Dumper.make_dump_list_by_name_list(args.INFO_NAME) if len(
86 args.INFO_NAME) else dumper.Dumper.get_all_dump_list()
88 mounter = image_sources.create_composite_mounter_by_args(args)
96 if args.show_unknown:
/development/tools/repo_diff/
Dgit_commits_not_upstreamed.py21 def git(args): argument
32 command.extend(args)
126 args = parser.parse_args()
127 upstream = args.upstream
128 downstream = args.downstream
129 working_dir = os.path.abspath(args.working_directory)

123456