/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/ |
D | CtsXmlGenerator.java | 35 private static void usage(String[] args) { in usage() argument 36 System.err.println("Arguments: " + Arrays.asList(args)); in usage() 43 public static void main(String[] args) throws Exception { in main() argument 55 for (int i = 0; i < args.length; i++) { in main() 56 if ("-p".equals(args[i])) { in main() 57 appPackageName = getArg(args, ++i, "Missing value for test package"); in main() 58 } else if ("-n".equals(args[i])) { in main() 59 name = getArg(args, ++i, "Missing value for executable name"); in main() 60 } else if ("-t".equals(args[i])) { in main() 61 testType = getArg(args, ++i, "Missing value for test type"); in main() [all …]
|
/cts/tools/cts-java-scanner/src/com/android/cts/javascanner/ |
D | CtsJavaScanner.java | 27 private static void usage(String[] args) { in usage() argument 28 System.err.println("Arguments: " + Arrays.asList(args)); in usage() 33 public static void main(String[] args) throws Exception { in main() argument 37 for (int i = 0; i < args.length; i++) { in main() 38 if ("-s".equals(args[i])) { in main() 39 sourceDir = new File(getArg(args, ++i, "Missing value for source directory")); in main() 40 } else if ("-d".equals(args[i])) { in main() 41 docletPath = new File(getArg(args, ++i, "Missing value for docletPath")); in main() 43 System.err.println("Unsupported flag: " + args[i]); in main() 44 usage(args); in main() [all …]
|
D | DocletRunner.java | 36 List<String> args = new ArrayList<String>(); in runJavaDoc() local 37 args.add("javadoc"); in runJavaDoc() 38 args.add("-doclet"); in runJavaDoc() 39 args.add("com.android.cts.javascannerdoclet.CtsJavaScannerDoclet"); in runJavaDoc() 40 args.add("-docletpath"); in runJavaDoc() 41 args.add(mDocletPath.toString()); in runJavaDoc() 42 args.add("-sourcepath"); in runJavaDoc() 43 args.add(getSourcePath(mSourceDir)); in runJavaDoc() 44 args.add("-classpath"); in runJavaDoc() 45 args.add(getClassPath()); in runJavaDoc() [all …]
|
/cts/tools/signature-tools/src/signature/compare/ |
D | Main.java | 52 public static void main(String[] args) throws IOException { in main() argument 55 if (!"--from".equals(args[at])) { in main() 58 String fromType = args[++at]; in main() 63 for (/* at */; at < args.length; at++) { in main() 64 if ("--name".equals(args[at])) { in main() 68 if ("--to".equals(args[at])) { in main() 71 fromFiles.add(args[at]); in main() 77 if (!"--name".equals(args[at])) { in main() 81 for (/* at */; at < args.length; at++) { in main() 82 if ("--to".equals(args[at])) { in main() [all …]
|
/cts/tests/tests/jni/libjnitest/ |
D | helper.c | 28 va_list args; in failure() local 31 va_start(args, format); in failure() 32 LOG_PRI_VA(ANDROID_LOG_ERROR, LOG_TAG, format, args); in failure() 33 va_end(args); in failure() 35 va_start(args, format); in failure() 36 int count = vasprintf(&result, format, args); in failure() 37 va_end(args); in failure() 48 va_list args; in runJniTests() local 51 va_start(args, env); in runJniTests() 54 const char *name = va_arg(args, const char *); in runJniTests() [all …]
|
D | macroized_tests.c | 63 #define CALL(name, args...) env->name(args) argument 69 #define CALL(name, args...) (*env)->name(env , ## args) argument 186 va_list args; in help_CallBooleanMethod() local 187 va_start(args, ct); in help_CallBooleanMethod() 210 result = CALL(CallBooleanMethodV, o, method, args); in help_CallBooleanMethod() 225 method, args); in help_CallBooleanMethod() 239 args); in help_CallBooleanMethod() 247 va_end(args); in help_CallBooleanMethod() 289 va_list args; in help_CallByteMethod() local 290 va_start(args, ct); in help_CallByteMethod() [all …]
|
/cts/tools/cts-native-scanner/src/com/android/cts/nativescanner/ |
D | CtsNativeScanner.java | 29 private static void usage(String[] args) { in usage() argument 30 System.err.println("Arguments: " + Arrays.asList(args)); in usage() 39 public static void main(String[] args) throws Exception { in main() argument 41 for (int i = 0; i < args.length; i++) { in main() 42 if ("-t".equals(args[i])) { in main() 43 testSuite = getArg(args, ++i, "Missing value for test suite"); in main() 45 System.err.println("Unsupported flag: " + args[i]); in main() 46 usage(args); in main() 52 usage(args); in main() 62 private static String getArg(String[] args, int index, String message) { in getArg() argument [all …]
|
/cts/tools/signature-tools/src/signature/converter/ |
D | Main.java | 33 public static void main(String[] args) throws IOException { in main() argument 34 String type = args[0]; in main() 37 for (/* at */; at < args.length; at++) { in main() 38 if ("--out".equals(args[at])) { in main() 41 sources.add(args[at]); in main() 44 if (!"--out".equals(args[at])) { in main() 47 String targetFile = args[++at]; in main() 49 if (!"--name".equals(args[++at])) { in main() 52 String name = args[++at]; in main() 54 if (!"--packages".equals(args[++at])) { in main() [all …]
|
/cts/libs/vogar-expect/src/vogar/commands/ |
D | Command.java | 47 private final List<String> args; field in Command 55 public Command(String... args) { in Command() argument 56 this(Arrays.asList(args)); in Command() 59 public Command(List<String> args) { in Command() argument 60 this.args = new ArrayList<String>(args); in Command() 69 this.args = new ArrayList<String>(builder.args); in Command() 92 .command(args) in start() 140 throw new CommandFailedException(args, outputLines); in gatherOutput() 151 throw new RuntimeException("Failed to execute process: " + args, e); in execute() 153 throw new RuntimeException("Interrupted while executing process: " + args, e); in execute() [all …]
|
D | CommandFailedException.java | 26 private final List<String> args; field in CommandFailedException 29 public CommandFailedException(List<String> args, List<String> outputLines) { in CommandFailedException() argument 30 super(formatMessage(args, outputLines)); in CommandFailedException() 31 this.args = args; in CommandFailedException() 36 return args; in getArgs() 43 public static String formatMessage(List<String> args, List<String> outputLines) { in formatMessage() argument 46 for (String arg : args) { in formatMessage()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | CtsApiCoverage.java | 68 public static void main(String[] args) throws Exception { in main() argument 78 for (int i = 0; i < args.length; i++) { in main() 79 if (args[i].startsWith("-")) { in main() 80 if ("-o".equals(args[i])) { in main() 81 outputFile = new File(getExpectedArg(args, ++i)); in main() 82 } else if ("-f".equals(args[i])) { in main() 83 String formatSpec = getExpectedArg(args, ++i); in main() 93 } else if ("-d".equals(args[i])) { in main() 94 dexDeps = getExpectedArg(args, ++i); in main() 95 } else if ("-a".equals(args[i])) { in main() [all …]
|
/cts/tools/dasm/src/dasm/ |
D | Main.java | 185 public static void main(String args[]) { in main() argument 188 String files[] = new String[args.length]; in main() 191 if (args.length == 0) { in main() 196 for (i = 0; i < args.length; i++) { in main() 197 if (args[i].equals("-help") || args[i].equals("-?")) { in main() 201 if (args[i].equals("-version")) { in main() 206 if (args[i].equals("-g")) { in main() 208 } else if (args[i].equals("-d")) { in main() 209 if (++i >= args.length) in main() 212 destPath = args[i]; in main() [all …]
|
/cts/tools/vm-tests-tf/src/util/build/ |
D | DexBuildStep.java | 36 Main.Arguments args = new Main.Arguments(); in build() local 38 args.jarOutput = true; in build() 39 args.fileNames = new String[] {inputFile.fileName.getAbsolutePath()}; in build() 41 args.outName = outputFile.fileName.getAbsolutePath(); in build() 45 result = Main.run(args); in build() 59 + args.outName); in build()
|
D | JavacBuildStep.java | 56 int args = 4; in build() local 57 String[] commandLine = new String[sourceFiles.size()+args]; in build() 66 System.arraycopy(files, 0, commandLine, args, files.length); in build()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | PassFailButtons.java | 106 public Dialog onCreateDialog(int id, Bundle args) { in onCreateDialog() argument 107 return createDialog(this, id, args); in onCreateDialog() 139 public Dialog onCreateDialog(int id, Bundle args) { in onCreateDialog() argument 140 return createDialog(this, id, args); in onCreateDialog() 173 public Dialog onCreateDialog(int id, Bundle args) { in onCreateDialog() argument 174 return createDialog(this, id, args); in onCreateDialog() 237 Bundle args = new Bundle(); in showInfoDialog() local 238 args.putInt(INFO_DIALOG_TITLE_ID, titleId); in showInfoDialog() 239 args.putInt(INFO_DIALOG_MESSAGE_ID, messageId); in showInfoDialog() 240 args.putInt(INFO_DIALOG_VIEW_ID, viewId); in showInfoDialog() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
D | NdefPushReceiverActivity.java | 97 Bundle args = new Bundle(); in onNewIntent() local 98 args.putBoolean(IS_MATCH_ARG, isMatch); in onNewIntent() 99 showDialog(RESULT_DIALOG_ID, args); in onNewIntent() 116 public Dialog onCreateDialog(int id, Bundle args) { in onCreateDialog() argument 132 return super.onCreateDialog(id, args); in onCreateDialog() 137 protected void onPrepareDialog(int id, Dialog dialog, Bundle args) { in onPrepareDialog() argument 140 boolean isMatch = args.getBoolean(IS_MATCH_ARG); in onPrepareDialog() 151 super.onPrepareDialog(id, dialog, args); in onPrepareDialog()
|
D | TagVerifierActivity.java | 269 Bundle args = new Bundle(); in onPostExecute() local 270 args.putCharSequence(EXPECTED_CONTENT_ID, result.getExpectedContent()); in onPostExecute() 271 args.putCharSequence(ACTUAL_CONTENT_ID, result.getActualContent()); in onPostExecute() 272 args.putBoolean(IS_MATCH_ID, result.isMatch()); in onPostExecute() 273 showDialog(VERIFY_RESULT_DIALOG_ID, args); in onPostExecute() 285 public Dialog onCreateDialog(int id, Bundle args) { in onCreateDialog() argument 306 return super.onCreateDialog(id, args); in onCreateDialog() 362 protected void onPrepareDialog(int id, Dialog dialog, Bundle args) { 365 prepareVerifyResultDialog(dialog, args); 369 super.onPrepareDialog(id, dialog, args); [all …]
|
/cts/tools/signature-tools/src/signature/ |
D | Main.java | 48 public static void main(String[] args) { in main() argument 53 for (int i = 0; i < args.length; i++) { in main() 54 String arg = args[i]; in main() 63 signature.converter.Main.main(without(args, i)); in main() 66 signature.compare.Main.main(without(args, i)); in main()
|
/cts/tools/vm-tests-tf/src/dot/ |
D | Main.java | 26 public static void main(String[] args) { in main() argument 27 if (args.length == 0) { in main() 32 TestRunner.main(args); in main()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseUtilsTest.java | 433 String[] args = new String[] { "Jack" }; in testLongForQuery() local 434 assertEquals(35, DatabaseUtils.longForQuery(mDatabase, query, args)); in testLongForQuery() 435 args = new String[] { "No such name" }; in testLongForQuery() 437 DatabaseUtils.longForQuery(mDatabase, query, args); in testLongForQuery() 449 args = new String[] { "London" }; in testLongForQuery() 450 assertEquals(35, DatabaseUtils.longForQuery(statement, args)); in testLongForQuery() 452 args = new String[] { "No such address" }; in testLongForQuery() 454 DatabaseUtils.longForQuery(statement, args); in testLongForQuery() 545 String[] args = new String[] { "London" }; in testStringForQuery() local 546 assertEquals("Jack", DatabaseUtils.stringForQuery(mDatabase, query, args)); in testStringForQuery() [all …]
|
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
D | Test4DetailFragment.java | 131 Bundle args = new Bundle(); in getItem() local 132 args.putInt(DummySectionFragment.ARG_SECTION_NUMBER, i + 1); in getItem() 133 fragment.setArguments(args); in getItem() 173 Bundle args = getArguments(); in onCreateView() local 174 textView.setText("[ " + Integer.toString(args.getInt(ARG_SECTION_NUMBER)) + " ]"); in onCreateView()
|
/cts/tools/utils/ |
D | CollectAllTests.java | 71 public static void main(String[] args) { in main() argument 72 if (args.length < 4 || args.length > 6) { in main() 75 if (args.length != 0) { in main() 77 for (String arg : args) { in main() 84 final String outputPathPrefix = args[0]; in main() 85 File manifestFile = new File(args[1]); in main() 86 String jarFileName = args[2]; in main() 87 final String javaPackageFilter = args[3]; in main() 97 String libcoreExpectationDir = (args.length > 4) ? args[4] : null; in main() 98 String androidMakeFile = (args.length > 5) ? args[5] : null; in main()
|
/cts/tools/cfassembler/src/dxconvext/ |
D | ClassFileAssembler.java | 44 public static void main(String[] args) { in main() argument 46 cfa.run(args); in main() 49 private void run(String[] args) { in run() argument 66 File cfhF = new File(args[0]); in run() 73 String outBase = args[1]; in run()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
D | ListenerTest.java | 173 List<ListenerArgument> args) { in createResultString() argument 176 if (args.size() == 0) { in createResultString() 180 for (ListenerArgument arg: args) { in createResultString()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/command/ |
D | CtsConsole.java | 109 public void run(CaptureList args) { in setCustomCommands() 111 String[] flatArgs = new String[args.size() - 2]; in setCustomCommands() 112 for (int i = 2; i < args.size(); i++) { in setCustomCommands() 113 flatArgs[i - 2] = args.get(i).get(0); in setCustomCommands() 248 public static void main(String[] args) throws InterruptedException, ConfigurationException { in main() argument 250 Console.startConsole(console, args); in main()
|