Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 20 of 20) sorted by relevance

/development/tools/cargo_embargo/src/
Dcargo_out.rs259 .map(|arg| match (arg.chars().next(), arg.chars().skip(1).last()) { in from_rustc_invocation()
260 (Some('"'), Some('"')) => &arg[1..arg.len() - 1], in from_rustc_invocation()
261 (Some('\''), Some('\'')) => &arg[1..arg.len() - 1], in from_rustc_invocation()
264 _ => arg, in from_rustc_invocation()
267 while let Some(arg) = arg_iter.next() { in from_rustc_invocation()
268 match arg { in from_rustc_invocation()
277 let arg = arg_iter.next().unwrap(); in from_rustc_invocation() localVariable
279 arg.strip_prefix("feature=\"").and_then(|s| s.strip_suffix('\"')) in from_rustc_invocation()
283 out.cfgs.push(arg.to_string()); in from_rustc_invocation()
289 let arg = arg_iter.next().unwrap(); in from_rustc_invocation() localVariable
[all …]
Dmain.rs242 run_cargo(&mut cargo_out_file, Command::new("cargo").arg("clean").args(target_dir_args))?; in generate_cargo_out()
268 .arg("metadata") in generate_cargo_out()
269 .arg("-q") // don't output warnings to stderr in generate_cargo_out()
270 .arg("--format-version") in generate_cargo_out()
271 .arg("1") in generate_cargo_out()
388 let bpfmt_output = Command::new("bpfmt").arg("-w").arg(&bp_path).output()?; in write_android_bp()
399 Command::new("patch").arg("-s").arg(&bp_path).arg(patch_path).output()?; in write_android_bp()
404 let bpfmt_output = Command::new("bpfmt").arg("-w").arg(&bp_path).output()?; in write_android_bp()
/development/python-packages/fastboot/
Ddevice.py190 if os.name != 'nt' or all(not isinstance(arg, unicode) for arg in args[0]):
193 def escape_arg(arg): argument
196 arg = subprocess.list2cmdline([arg])
199 arg = arg.replace(u"'", u"''")
201 arg = u"'" + arg + u"'"
202 return arg
/development/tools/rmtypedefs/src/com/android/tools/rmtypedefs/
DRmTypeDefs.java72 for (String arg : args) { in run()
73 if (arg.equals("--help") || arg.equals("-h")) { in run()
76 } else if (arg.equals("-q") || arg.equals("--quiet") || arg.equals("--silent")) { in run()
78 } else if (arg.equals("-v") || arg.equals("--verbose")) { in run()
80 } else if (arg.equals("-n") || arg.equals("--dry-run")) { in run()
82 } else if (arg.startsWith("-")) { in run()
83 System.err.println("Unknown argument " + arg); in run()
89 File file = new File(arg); in run()
/development/tools/mkstubs/src/com/android/mkstubs/
DMain.java146 for (String arg : args) { in processArgs()
147 if (arg.startsWith("--")) { in processArgs()
148 if (arg.startsWith("--v")) { in processArgs()
150 } else if (arg.startsWith("--s")) { in processArgs()
152 } else if (arg.startsWith("--h")) { in processArgs()
155 usage("Unknown argument: " + arg); in processArgs()
158 p.setInputJarPath(arg); in processArgs()
160 p.setOutputJarPath(arg); in processArgs()
162 addString(p, arg); in processArgs()
/development/tools/mkstubs/tests/data/
DTestBaseClass.java31 public TestBaseClass(String arg) { in TestBaseClass() argument
32 mArg = arg; in TestBaseClass()
DTestInnerClass.java40 public TestInnerClass(String arg) { in TestInnerClass() argument
41 mArg = arg; in TestInnerClass()
/development/tools/checkcolor/
Dgradlew132 for arg in "$@" ; do
133 CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 … CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
137 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
139 eval `echo args$i`="\"$arg\""
/development/samples/devbytes/telephony/SmsSampleProject/
Dgradlew132 for arg in "$@" ; do
133 CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 … CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
137 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
139 eval `echo args$i`="\"$arg\""
/development/samples/training/testingfun/
Dgradlew132 for arg in "$@" ; do
133 CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 … CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
137 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
139 eval `echo args$i`="\"$arg\""
/development/scripts/
Dcargo2android.py383 arg = args[i]
384 if arg == '--crate-name':
387 elif arg == '--crate-type':
393 elif arg == '--test':
395 elif arg == '--target':
398 elif arg == '--cfg':
404 elif arg == '--extern':
409 elif arg == '-C': # codegen options
412 elif arg.startswith('-C'):
415 self.add_codegens_flag(arg[2:])
[all …]
/development/vndk/tools/header-checker/tests/input/
Dexample2.h58 bool End ( float arg = 2.0) {
59 bool ret = Begin(arg, 2, 2);
/development/vndk/tools/header-checker/src/utils/
Dsource_path_utils.cpp69 for (const std::string_view arg : args) { in ParseRootDirs() local
72 size_t colon_index = arg.find(":"); in ParseRootDirs()
74 path = arg.substr(0, colon_index); in ParseRootDirs()
75 replacement = arg.substr(colon_index + 1); in ParseRootDirs()
77 path = arg; in ParseRootDirs()
/development/tools/idegen/src/com/android/idegen/
DIntellijProject.java198 String arg = args[argIndex]; in main() local
199 while (arg.startsWith("--")) { in main()
200 if (arg.equals("--no-framework")) { in main()
204 arg = args[argIndex]; in main()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyActivityEvent.java45 public MonkeyActivityEvent(ComponentName app, long arg) { in MonkeyActivityEvent() argument
48 mAlarmTime = arg; in MonkeyActivityEvent()
DMonkey.java1367 String arg = mArgs[mNextArg]; in nextOption() local
1368 if (!arg.startsWith("-")) { in nextOption()
1372 if (arg.equals("--")) { in nextOption()
1375 if (arg.length() > 1 && arg.charAt(1) != '-') { in nextOption()
1376 if (arg.length() > 2) { in nextOption()
1377 mCurArgData = arg.substring(2); in nextOption()
1378 return arg.substring(0, 2); in nextOption()
1381 return arg; in nextOption()
1385 Logger.err.println("arg=\"" + arg + "\" mCurArgData=\"" + mCurArgData + "\" mNextArg=" in nextOption()
1388 return arg; in nextOption()
[all …]
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DShortcutListFragment.java83 final UserHandle arg = getArguments().getParcelable(ARG_USER); in getTargetUsers() local
84 if (arg == null) { in getTargetUsers()
88 ret.add(arg); in getTargetUsers()
/development/vndk/tools/sourcedr/ninja/
Dlist_ninja_build_dep.py78 print('error: Failed to find the target {}'.format(arg.target),
/development/host/windows/usb/adb_winapi_test/
Dadb_winapi_test.cpp449 #define CASE_ARG0(arg) case arg: desc = # arg; break in DumpMessageArg0() argument
/development/vndk/tools/header-checker/src/dumper/
Dabi_wrappers.cpp114 const clang::TemplateArgument &arg = (*tl)[i]; in SetupTemplateArguments() local
116 if (arg.getKind() != clang::TemplateArgument::Type) { in SetupTemplateArguments()
119 clang::QualType type = arg.getAsType(); in SetupTemplateArguments()