Home
last modified time | relevance | path

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

12345678910

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DCoreMathVerifier.java572 static public void computeAbs(TestAbs.ArgumentsCharUchar args) { in computeAbs() argument
573 args.out = (byte)Math.abs(args.inV); in computeAbs()
576 static public void computeAbs(TestAbs.ArgumentsShortUshort args) { in computeAbs() argument
577 args.out = (short)Math.abs(args.inV); in computeAbs()
580 static public void computeAbs(TestAbs.ArgumentsIntUint args) { in computeAbs() argument
581 args.out = Math.abs(args.inV); in computeAbs()
584 static public void computeAcos(TestAcos.ArgumentsFloatFloat args, Target t) { in computeAcos() argument
586 args.out = acos(args.inV, t); in computeAcos()
589 static public void computeAcosh(TestAcosh.ArgumentsFloatFloat args, Target t) { in computeAcosh() argument
591 args.out = acosh(args.inV, t); in computeAcosh()
[all …]
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/
DCtsXmlGenerator.java37 private static void usage(String[] args) { in usage() argument
38 System.err.println("Arguments: " + Arrays.asList(args)); in usage()
46 public static void main(String[] args) throws Exception { in main() argument
61 for (int i = 0; i < args.length; i++) { in main()
62 if ("-p".equals(args[i])) { in main()
63 appPackageName = getArg(args, ++i, "Missing value for test package"); in main()
64 } else if ("-n".equals(args[i])) { in main()
65 name = getArg(args, ++i, "Missing value for executable name"); in main()
66 } else if ("-t".equals(args[i])) { in main()
67 testType = getArg(args, ++i, "Missing value for test type"); in main()
[all …]
/cts/tools/cts-java-scanner/src/com/android/cts/javascanner/
DCtsJavaScanner.java29 private static void usage(String[] args) { in usage() argument
30 System.err.println("Arguments: " + Arrays.asList(args)); in usage()
35 public static void main(String[] args) throws Exception { in main() argument
39 for (int i = 0; i < args.length; i++) { in main()
40 if ("-s".equals(args[i])) { in main()
41 sourceDirs.add(new File(getArg(args, ++i, "Missing value for source directory"))); in main()
42 } else if ("-d".equals(args[i])) { in main()
43 docletPath = new File(getArg(args, ++i, "Missing value for docletPath")); in main()
45 System.err.println("Unsupported flag: " + args[i]); in main()
46 usage(args); in main()
[all …]
/cts/tools/signature-tools/src/signature/compare/
DMain.java52 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/
Dhelper.c28 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 …]
/cts/tools/cts-native-scanner/src/com/android/cts/nativescanner/
DCtsNativeScanner.java29 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/
DMain.java33 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/tests/tests/text/src/android/text/style/cts/
DTtsSpanTest.java38 PersistableBundle args = t.getArgs(); in testGetArgs() local
39 assertEquals(4, args.size()); in testGetArgs()
40 assertEquals("value.one", args.getString("argument.one")); in testGetArgs()
41 assertEquals("value.two", args.getString("argument.two")); in testGetArgs()
42 assertEquals(3, args.getLong("argument.three")); in testGetArgs()
43 assertEquals(4, args.getLong("argument.four")); in testGetArgs()
71 PersistableBundle args = t.getArgs(); in testWriteAndReadParcel() local
72 assertEquals(4, args.size()); in testWriteAndReadParcel()
73 assertEquals("value.one", args.getString("argument.one")); in testWriteAndReadParcel()
74 assertEquals("value.two", args.getString("argument.two")); in testWriteAndReadParcel()
[all …]
/cts/libs/vogar-expect/src/vogar/commands/
DCommandFailedException.java26 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()
DCommand.java47 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 …]
/cts/common/host-side/java-scanner/src/com/android/compatibility/common/scanner/
DJavaScanner.java62 final ArrayList<String> args = new ArrayList<String>(); in scan() local
63 args.add("javadoc"); in scan()
64 args.add("-doclet"); in scan()
65 args.add("com.android.compatibility.common.scanner.JavaScannerDoclet"); in scan()
66 args.add("-sourcepath"); in scan()
67 args.add(getSourcePath(mSourceDir)); in scan()
68 args.add("-classpath"); in scan()
69 args.add(getClassPath()); in scan()
70 args.add("-docletpath"); in scan()
71 args.add(mDocletDir.toString()); in scan()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestClamp.java89 ArgumentsFloatFloatFloatFloat args = new ArgumentsFloatFloatFloatFloat(); in verifyResultsClampFloatFloatFloatFloat() local
90 args.inValue = arrayInValue[i]; in verifyResultsClampFloatFloatFloatFloat()
91 args.inMinValue = arrayInMinValue[i]; in verifyResultsClampFloatFloatFloatFloat()
92 args.inMaxValue = arrayInMaxValue[i]; in verifyResultsClampFloatFloatFloatFloat()
95 CoreMathVerifier.computeClamp(args, target); in verifyResultsClampFloatFloatFloatFloat()
98 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsClampFloatFloatFloatFloat()
105 appendVariableToMessage(message, args.inValue); in verifyResultsClampFloatFloatFloatFloat()
108 appendVariableToMessage(message, args.inMinValue); in verifyResultsClampFloatFloatFloatFloat()
111 appendVariableToMessage(message, args.inMaxValue); in verifyResultsClampFloatFloatFloatFloat()
114 appendVariableToMessage(message, args.out); in verifyResultsClampFloatFloatFloatFloat()
[all …]
DTestMin.java81 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsMinFloatFloatFloat() local
82 args.inA = arrayInA[i]; in verifyResultsMinFloatFloatFloat()
83 args.inB = arrayInB[i]; in verifyResultsMinFloatFloatFloat()
86 CoreMathVerifier.computeMin(args, target); in verifyResultsMinFloatFloatFloat()
89 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMinFloatFloatFloat()
96 appendVariableToMessage(message, args.inA); in verifyResultsMinFloatFloatFloat()
99 appendVariableToMessage(message, args.inB); in verifyResultsMinFloatFloatFloat()
102 appendVariableToMessage(message, args.out); in verifyResultsMinFloatFloatFloat()
106 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMinFloatFloatFloat()
160 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsMinFloat2Float2Float2() local
[all …]
DTestMax.java81 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsMaxFloatFloatFloat() local
82 args.inA = arrayInA[i]; in verifyResultsMaxFloatFloatFloat()
83 args.inB = arrayInB[i]; in verifyResultsMaxFloatFloatFloat()
86 CoreMathVerifier.computeMax(args, target); in verifyResultsMaxFloatFloatFloat()
89 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMaxFloatFloatFloat()
96 appendVariableToMessage(message, args.inA); in verifyResultsMaxFloatFloatFloat()
99 appendVariableToMessage(message, args.inB); in verifyResultsMaxFloatFloatFloat()
102 appendVariableToMessage(message, args.out); in verifyResultsMaxFloatFloatFloat()
106 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMaxFloatFloatFloat()
160 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsMaxFloat2Float2Float2() local
[all …]
DTestMix.java88 ArgumentsFloatFloatFloatFloat args = new ArgumentsFloatFloatFloatFloat(); in verifyResultsMixFloatFloatFloatFloat() local
89 args.inStart = arrayInStart[i]; in verifyResultsMixFloatFloatFloatFloat()
90 args.inStop = arrayInStop[i]; in verifyResultsMixFloatFloatFloatFloat()
91 args.inFraction = arrayInFraction[i]; in verifyResultsMixFloatFloatFloatFloat()
94 CoreMathVerifier.computeMix(args, target); in verifyResultsMixFloatFloatFloatFloat()
97 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMixFloatFloatFloatFloat()
104 appendVariableToMessage(message, args.inStart); in verifyResultsMixFloatFloatFloatFloat()
107 appendVariableToMessage(message, args.inStop); in verifyResultsMixFloatFloatFloatFloat()
110 appendVariableToMessage(message, args.inFraction); in verifyResultsMixFloatFloatFloatFloat()
113 appendVariableToMessage(message, args.out); in verifyResultsMixFloatFloatFloatFloat()
[all …]
DTestClz.java74 ArgumentsCharChar args = new ArgumentsCharChar(); in verifyResultsClzCharChar() local
75 args.inValue = arrayInValue[i]; in verifyResultsClzCharChar()
77 CoreMathVerifier.computeClz(args); in verifyResultsClzCharChar()
80 if (args.out != arrayOut[i * 1 + j]) { in verifyResultsClzCharChar()
87 appendVariableToMessage(message, args.inValue); in verifyResultsClzCharChar()
90 appendVariableToMessage(message, args.out); in verifyResultsClzCharChar()
94 if (args.out != arrayOut[i * 1 + j]) { in verifyResultsClzCharChar()
142 ArgumentsCharChar args = new ArgumentsCharChar(); in verifyResultsClzChar2Char2() local
143 args.inValue = arrayInValue[i * 2 + j]; in verifyResultsClzChar2Char2()
145 CoreMathVerifier.computeClz(args); in verifyResultsClzChar2Char2()
[all …]
DTestStep.java81 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsStepFloatFloatFloat() local
82 args.inEdge = arrayInEdge[i]; in verifyResultsStepFloatFloatFloat()
83 args.inV = arrayInV[i]; in verifyResultsStepFloatFloatFloat()
86 CoreMathVerifier.computeStep(args, target); in verifyResultsStepFloatFloatFloat()
89 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsStepFloatFloatFloat()
96 appendVariableToMessage(message, args.inEdge); in verifyResultsStepFloatFloatFloat()
99 appendVariableToMessage(message, args.inV); in verifyResultsStepFloatFloatFloat()
102 appendVariableToMessage(message, args.out); in verifyResultsStepFloatFloatFloat()
106 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsStepFloatFloatFloat()
160 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsStepFloat2Float2Float2() local
[all …]
DTestLdexp.java81 ArgumentsFloatIntFloat args = new ArgumentsFloatIntFloat(); in verifyResultsLdexpFloatIntFloat() local
82 args.inMantissa = arrayInMantissa[i]; in verifyResultsLdexpFloatIntFloat()
83 args.inExponent = arrayInExponent[i]; in verifyResultsLdexpFloatIntFloat()
86 CoreMathVerifier.computeLdexp(args, target); in verifyResultsLdexpFloatIntFloat()
89 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsLdexpFloatIntFloat()
96 appendVariableToMessage(message, args.inMantissa); in verifyResultsLdexpFloatIntFloat()
99 appendVariableToMessage(message, args.inExponent); in verifyResultsLdexpFloatIntFloat()
102 appendVariableToMessage(message, args.out); in verifyResultsLdexpFloatIntFloat()
106 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsLdexpFloatIntFloat()
160 ArgumentsFloatIntFloat args = new ArgumentsFloatIntFloat(); in verifyResultsLdexpFloat2Int2Float2() local
[all …]
DTestFmin.java81 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsFminFloatFloatFloat() local
82 args.inA = arrayInA[i]; in verifyResultsFminFloatFloatFloat()
83 args.inB = arrayInB[i]; in verifyResultsFminFloatFloatFloat()
86 CoreMathVerifier.computeFmin(args, target); in verifyResultsFminFloatFloatFloat()
89 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsFminFloatFloatFloat()
96 appendVariableToMessage(message, args.inA); in verifyResultsFminFloatFloatFloat()
99 appendVariableToMessage(message, args.inB); in verifyResultsFminFloatFloatFloat()
102 appendVariableToMessage(message, args.out); in verifyResultsFminFloatFloatFloat()
106 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsFminFloatFloatFloat()
160 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsFminFloat2Float2Float2() local
[all …]
DTestFmax.java81 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsFmaxFloatFloatFloat() local
82 args.inA = arrayInA[i]; in verifyResultsFmaxFloatFloatFloat()
83 args.inB = arrayInB[i]; in verifyResultsFmaxFloatFloatFloat()
86 CoreMathVerifier.computeFmax(args, target); in verifyResultsFmaxFloatFloatFloat()
89 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsFmaxFloatFloatFloat()
96 appendVariableToMessage(message, args.inA); in verifyResultsFmaxFloatFloatFloat()
99 appendVariableToMessage(message, args.inB); in verifyResultsFmaxFloatFloatFloat()
102 appendVariableToMessage(message, args.out); in verifyResultsFmaxFloatFloatFloat()
106 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsFmaxFloatFloatFloat()
160 ArgumentsFloatFloatFloat args = new ArgumentsFloatFloatFloat(); in verifyResultsFmaxFloat2Float2Float2() local
[all …]
DTestAbs.java74 ArgumentsCharUchar args = new ArgumentsCharUchar(); in verifyResultsAbsCharUchar() local
75 args.inV = arrayInV[i]; in verifyResultsAbsCharUchar()
77 CoreMathVerifier.computeAbs(args); in verifyResultsAbsCharUchar()
80 if (args.out != arrayOut[i * 1 + j]) { in verifyResultsAbsCharUchar()
87 appendVariableToMessage(message, args.inV); in verifyResultsAbsCharUchar()
90 appendVariableToMessage(message, args.out); in verifyResultsAbsCharUchar()
94 if (args.out != arrayOut[i * 1 + j]) { in verifyResultsAbsCharUchar()
142 ArgumentsCharUchar args = new ArgumentsCharUchar(); in verifyResultsAbsChar2Uchar2() local
143 args.inV = arrayInV[i * 2 + j]; in verifyResultsAbsChar2Uchar2()
145 CoreMathVerifier.computeAbs(args); in verifyResultsAbsChar2Uchar2()
[all …]
DTestFma.java88 ArgumentsFloatFloatFloatFloat args = new ArgumentsFloatFloatFloatFloat(); in verifyResultsFmaFloatFloatFloatFloat() local
89 args.inMultiplicand1 = arrayInMultiplicand1[i]; in verifyResultsFmaFloatFloatFloatFloat()
90 args.inMultiplicand2 = arrayInMultiplicand2[i]; in verifyResultsFmaFloatFloatFloatFloat()
91 args.inOffset = arrayInOffset[i]; in verifyResultsFmaFloatFloatFloatFloat()
94 CoreMathVerifier.computeFma(args, target); in verifyResultsFmaFloatFloatFloatFloat()
97 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsFmaFloatFloatFloatFloat()
104 appendVariableToMessage(message, args.inMultiplicand1); in verifyResultsFmaFloatFloatFloatFloat()
107 appendVariableToMessage(message, args.inMultiplicand2); in verifyResultsFmaFloatFloatFloatFloat()
110 appendVariableToMessage(message, args.inOffset); in verifyResultsFmaFloatFloatFloatFloat()
113 appendVariableToMessage(message, args.out); in verifyResultsFmaFloatFloatFloatFloat()
[all …]
DTestMad.java88 ArgumentsFloatFloatFloatFloat args = new ArgumentsFloatFloatFloatFloat(); in verifyResultsMadFloatFloatFloatFloat() local
89 args.inMultiplicand1 = arrayInMultiplicand1[i]; in verifyResultsMadFloatFloatFloatFloat()
90 args.inMultiplicand2 = arrayInMultiplicand2[i]; in verifyResultsMadFloatFloatFloatFloat()
91 args.inOffset = arrayInOffset[i]; in verifyResultsMadFloatFloatFloatFloat()
94 CoreMathVerifier.computeMad(args, target); in verifyResultsMadFloatFloatFloatFloat()
97 if (!args.out.couldBe(arrayOut[i * 1 + j])) { in verifyResultsMadFloatFloatFloatFloat()
104 appendVariableToMessage(message, args.inMultiplicand1); in verifyResultsMadFloatFloatFloatFloat()
107 appendVariableToMessage(message, args.inMultiplicand2); in verifyResultsMadFloatFloatFloatFloat()
110 appendVariableToMessage(message, args.inOffset); in verifyResultsMadFloatFloatFloatFloat()
113 appendVariableToMessage(message, args.out); in verifyResultsMadFloatFloatFloatFloat()
[all …]
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCtsApiCoverage.java68 public static void main(String[] args) throws Exception { in main() argument
77 for (int i = 0; i < args.length; i++) { in main()
78 if (args[i].startsWith("-")) { in main()
79 if ("-o".equals(args[i])) { in main()
80 outputFile = new File(getExpectedArg(args, ++i)); in main()
81 } else if ("-f".equals(args[i])) { in main()
82 String formatSpec = getExpectedArg(args, ++i); in main()
92 } else if ("-d".equals(args[i])) { in main()
93 dexDeps = getExpectedArg(args, ++i); in main()
94 } else if ("-a".equals(args[i])) { in main()
[all …]
/cts/tools/dasm/src/dasm/
DMain.java185 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 …]

12345678910