Home
last modified time | relevance | path

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

12

/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/util/
DCommandLineParser.java196 Arg arg = mArguments.get(key); in getValue() local
197 return arg.getCurrentValue(); in getValue()
201 for (Arg arg : mArguments.values()) { in getValue()
202 if (arg.getLongArg().equals(longFlagName)) { in getValue()
203 if (verb == null || arg.getVerb().equals(verb)) { in getValue()
204 if (directObject == null || arg.getDirectObject().equals(directObject)) { in getValue()
205 if (arg.isInCommandLine()) { in getValue()
206 return arg.getCurrentValue(); in getValue()
208 if (arg.getCurrentValue() != null) { in getValue()
209 lastDefault = arg.getCurrentValue(); in getValue()
[all …]
/sdk/monkeyrunner/scripts/
Dmonkey_playback.py31 'TOUCH': lambda dev, arg: dev.touch(**arg),
32 'DRAG': lambda dev, arg: dev.drag(**arg),
33 'PRESS': lambda dev, arg: dev.press(**arg),
34 'TYPE': lambda dev, arg: dev.type(**arg),
35 'WAIT': lambda dev, arg: MonkeyRunner.sleep(**arg)
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/tasks/
DTaskMonitorImpl.java210 public void error(Throwable throwable, String errorFormat, Object... arg) { in error() argument
212 logError("Error: " + errorFormat, arg); in error()
221 public void warning(@NonNull String warningFormat, Object... arg) { in warning() argument
222 log("Warning: " + warningFormat, arg); in warning()
226 public void info(@NonNull String msgFormat, Object... arg) { in info() argument
227 log(msgFormat, arg); in info()
231 public void verbose(@NonNull String msgFormat, Object... arg) { in verbose() argument
232 log(msgFormat, arg); in verbose()
350 public void error(Throwable throwable, String errorFormat, Object... arg) { in error() argument
351 mRoot.error(throwable, errorFormat, arg); in error()
[all …]
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/
DMessageBoxLog.java67 public void error(Throwable throwable, String errorFormat, Object... arg) { in error() argument
69 logMessages.add(String.format("Error: " + errorFormat, arg)); in error()
78 public void warning(@NonNull String warningFormat, Object... arg) { in warning() argument
80 logMessages.add(String.format("Warning: " + warningFormat, arg)); in warning()
85 public void info(@NonNull String msgFormat, Object... arg) { in info() argument
87 logMessages.add(String.format(msgFormat, arg)); in info()
92 public void verbose(@NonNull String msgFormat, Object... arg) { in verbose() argument
94 logMessages.add(String.format(msgFormat, arg)); in verbose()
/sdk/sdkstats/src/com/android/sdkstats/
DSdkStatsService.java125 private String sanitizeGlArg(String arg) { in sanitizeGlArg() argument
126 if (arg == null) { in sanitizeGlArg()
127 arg = ""; //$NON-NLS-1$ in sanitizeGlArg()
130 arg = arg.trim(); in sanitizeGlArg()
131 arg = arg.replaceAll("[^A-Za-z0-9\\s_()./-]", " "); //$NON-NLS-1$ //$NON-NLS-2$ in sanitizeGlArg()
132 arg = arg.replaceAll("\\s\\s+", " "); //$NON-NLS-1$ //$NON-NLS-2$ in sanitizeGlArg()
135 if (arg.length() > 128) { in sanitizeGlArg()
136 arg = arg.substring(0, 128); in sanitizeGlArg()
139 arg = URLEncoder.encode(arg, "UTF-8"); //$NON-NLS-1$ in sanitizeGlArg()
141 arg = ""; //$NON-NLS-1$ in sanitizeGlArg()
[all …]
/sdk/monkeyrunner/src/resources/com/android/monkeyrunner/
Dtext.cs7 <?cs if:subcount(item.argument) ?> Args:<?cs each:arg = item.argument ?>
8 …<?cs var:arg.name ?> - <?cs each:argdocpara = arg.doc ?><?cs var:argdocpara ?> <?cs /each ?><?cs /…
Dhtml.cs18 <?cs each:arg = item.argument ?>
19 … <li><?cs var:arg.name ?> - <?cs each:argdocpara = arg.doc ?><?cs var:argdocpara ?> <?cs /each ?>
Dsdk-docs.cs19 <?cs each:arg = item.argument ?>
20 … <li><?cs var:arg.name ?> - <?cs each:argdocpara = arg.doc ?><?cs var:argdocpara ?> <?cs /each ?>
/sdk/lint/cli/src/com/android/tools/lint/
DMain.java165 String arg = args[index]; in run() local
167 if (arg.equals(ARG_HELP) in run()
168 || arg.equals("-h") || arg.equals("-?")) { //$NON-NLS-1$ //$NON-NLS-2$ in run()
181 } else if (arg.equals(ARG_LISTIDS)) { in run()
207 } else if (arg.equals(ARG_SHOW)) { in run()
237 } else if (arg.equals(ARG_FULLPATH) in run()
238 || arg.equals(ARG_FULLPATH + "s")) { // allow "--fullpaths" too in run()
240 } else if (arg.equals(ARG_SHOWALL)) { in run()
242 } else if (arg.equals(ARG_QUIET) || arg.equals("-q")) { in run()
244 } else if (arg.equals(ARG_NOLINES)) { in run()
[all …]
/sdk/monkeyrunner/src/com/android/monkeyrunner/
DJythonUtils.java133 PyObject arg = ap.getPyObject(position); in getFloat() local
135 if (Py.isInstance(arg, PyFloat.TYPE)) { in getFloat()
136 return ((PyFloat) arg).asDouble(); in getFloat()
138 if (Py.isInstance(arg, PyInteger.TYPE)) { in getFloat()
139 return ((PyInteger) arg).asDouble(); in getFloat()
153 PyObject arg = ap.getPyObject(position, new PyFloat(defaultValue)); in getFloat() local
155 if (Py.isInstance(arg, PyFloat.TYPE)) { in getFloat()
156 return ((PyFloat) arg).asDouble(); in getFloat()
158 if (Py.isInstance(arg, PyInteger.TYPE)) { in getFloat()
159 return ((PyInteger) arg).asDouble(); in getFloat()
[all …]
DScriptRunner.java88 for (String arg : args) { in run()
89 argv[x++] = arg; in run()
154 List<String> arg = Collections.emptyList(); in initPython() local
155 initPython(executablePath, arg, new String[] {""}); in initPython()
/sdk/traceview/src/com/android/traceview/
DSelectionController.java26 public void change(ArrayList<Selection> selections, Object arg) { in change() argument
29 notifyObservers(arg); in change()
DMainWindow.java240 String arg = args[argc]; in main() local
241 if (arg.charAt(0) != '-') { in main()
244 if (arg.equals("-r")) { in main()
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/templates/
DSetFolders.java49 for (ProcessArgument arg : args) { in process()
50 String argName = arg.getName(); in process()
52 projectName = arg.getSimpleValue(); in process()
54 sourceFolders = arg.getSimpleArrayValue(); in process()
56 outputFolders = arg.getSimpleArrayValue(); in process()
DSimpleFile.java58 for (ProcessArgument arg : args) { in process()
59 if (arg.getName().equals("projectName")) //$NON-NLS-1$ in process()
60 projectName = arg.getSimpleValue(); in process()
61 else if (arg.getName().equals("files")) { //$NON-NLS-1$ in process()
62 ProcessArgument[][] files = arg.getComplexArrayValue(); in process()
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/src/test/pkg/
DStringFormat2.java.txt8 StringBuilder arg = new StringBuilder();
11 String ua = String.format(base, arg);
/sdk/archquery/src/com/android/archquery/
DMain.java49 for (String arg : args) { in main()
50 System.out.println(System.getProperty(arg)); in main()
/sdk/draw9patch/src/com/android/draw9patch/
DApplication.java47 String arg = args.length > 0 ? args[0] : null; in main()
48 MainFrame frame = new MainFrame(arg); in main()
/sdk/emulator/opengl/host/libs/libOpenglRender/
DNativeLinuxSubWindow.cpp18 static Bool WaitForMapNotify(Display *d, XEvent *e, char *arg) in WaitForMapNotify() argument
20 if (e->type == MapNotify && e->xmap.window == (Window)arg) { in WaitForMapNotify()
/sdk/emulator/mksdcard/
Dmksdcard.c232 char* arg = argv[1] + 1; in main() local
233 switch (arg[0]) { in main()
235 if (arg[1] != 0) in main()
236 arg += 2; in main()
242 arg = argv[1]; in main()
244 label = arg; in main()
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/build/
DKeystoreHelper.java140 for (String arg : commandArray) { in createNewStore()
141 boolean hasSpace = arg.indexOf(' ') != -1; in createNewStore()
153 builder.append(arg); in createNewStore()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/mock/
DMockNamedNodeMap.java103 public Node setNamedItem(Node arg) throws DOMException { in setNamedItem() argument
108 public Node setNamedItemNS(Node arg) throws DOMException { in setNamedItemNS() argument
/sdk/chimpchat/src/com/android/chimpchat/adb/
DAdbChimpDevice.java259 for (String arg : args) { in shell()
260 cmd.append(arg).append(" "); in shell()
448 String arg; in buildIntentArgString() local
451 arg = "--ei"; in buildIntentArgString()
454 arg = "--ez"; in buildIntentArgString()
458 arg = "--es"; in buildIntentArgString()
460 parts.add(arg); in buildIntentArgString()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger.tests/src/com/android/ide/eclipse/gltrace/format/
DGLMessageFormatterTest.java189 for (DataType arg: args) { in constructGLMessage()
190 builder.addArgs(arg); in constructGLMessage()
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/discovery/
DNdkDiscoveryUpdater.java253 private void addArg(String arg) { in addArg() argument
254 if (!mArguments.contains(arg)) in addArg()
255 mArguments.add(arg); in addArg()

12