Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 130) sorted by relevance

123456

/cts/tests/tests/media/src/android/media/cts/
DEncoderTest.java52 MediaFormat format = new MediaFormat(); in testAMRNBEncoders() local
53 format.setString(MediaFormat.KEY_MIME, "audio/3gpp"); in testAMRNBEncoders()
54 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 8000); in testAMRNBEncoders()
55 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in testAMRNBEncoders()
56 format.setInteger(MediaFormat.KEY_BIT_RATE, kBitRates[j]); in testAMRNBEncoders()
57 formats.push(format); in testAMRNBEncoders()
70 MediaFormat format = new MediaFormat(); in testAMRWBEncoders() local
71 format.setString(MediaFormat.KEY_MIME, "audio/amr-wb"); in testAMRWBEncoders()
72 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 16000); in testAMRWBEncoders()
73 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in testAMRWBEncoders()
[all …]
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java17 package android.text.format.cts;
24 import android.text.format.DateFormat;
89 String source = dateFormat.format(date); in testFormatMethods()
97 source = dateFormat.format(date); in testFormatMethods()
101 source = dateFormat.format(date); in testFormatMethods()
105 source = dateFormat.format(date); in testFormatMethods()
115 String format = "MM/dd/yy"; in testFormatMethods() local
118 CharSequence actual = DateFormat.format(format, calendar); in testFormatMethods()
121 actual = DateFormat.format(format, formatDate); in testFormatMethods()
123 actual = DateFormat.format(format, formatDate.getTime()); in testFormatMethods()
[all …]
/cts/tools/dasm/src/dasm/
DDopInfo.java124 InsnFormat format = dop.getFormat(); in getArgsFormat() local
126 if (format instanceof Form10x) return ""; in getArgsFormat()
127 if (format instanceof Form12x) return ARG_REG_REG; in getArgsFormat()
128 if (format instanceof Form11n) return ARG_REG_LITERAL; in getArgsFormat()
129 if (format instanceof Form11x) return ARG_REGISTER; in getArgsFormat()
130 if (format instanceof Form10t || format instanceof Form20t) in getArgsFormat()
132 if (format instanceof Form22x) return ARG_REG_REG; in getArgsFormat()
133 if (format instanceof Form21t) return ARG_REG_ADDRESS; in getArgsFormat()
134 if (format instanceof Form21s) return ARG_REG_LITERAL; in getArgsFormat()
135 if (format instanceof Form21h) return ARG_REG_LITERAL; in getArgsFormat()
[all …]
/cts/tools/dex-tools/src/dex/reader/
DTypeFormatter.java45 public String format(String typeName) { in format() method in TypeFormatter
72 return format(typeName.substring(1)) + "[]"; in format()
79 public String format(List<String> typeNames) { in format() method in TypeFormatter
82 types.add(format(type)); in format()
84 return format(types, ", "); in format()
88 return format(new ArrayList<DexAnnotation>(annotations), "\n") + "\n"; in formatAnnotations()
91 private String format(List<?> elements, String separator) { in format() method in TypeFormatter
/cts/tests/tests/jni/libjnitest/
Dhelper.c27 char *failure(const char *format, ...) { in failure() argument
31 va_start(args, format); in failure()
32 LOG_PRI_VA(ANDROID_LOG_ERROR, LOG_TAG, format, args); in failure()
35 va_start(args, format); in failure()
36 int count = vasprintf(&result, format, args); in failure()
Dhelper.h50 char *failure(const char *format, ...) __attribute__((format(printf, 1, 2)));
/cts/tools/tradefed-host/src/com/android/cts/tradefed/build/
DCtsBuildHelper.java78 throw new IllegalArgumentException(String.format( in createBuildHelper()
116 throw new FileNotFoundException(String.format("CTS test app file %s does not exist", in getTestApp()
160 String ctsPlanRelativePath = String.format("%s.xml", planName); in getTestPlanFile()
170 throw new FileNotFoundException(String.format( in validateStructure()
174 throw new FileNotFoundException(String.format( in validateStructure()
179 throw new FileNotFoundException(String.format( in validateStructure()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/analyzer/
DMeteringTest.java94 Log.v(TAG, String.format("Maximum number if metering area is %d", mMaxNumMeteringArea)); in updateCamera()
191 mDebugText += String.format( in prepareDebugText()
195 mDebugText += String.format( in prepareDebugText()
202 mDebugText += String.format( in prepareDebugText()
206 mDebugText += String.format( in prepareDebugText()
218 Log.v(TAG, String.format("%s", mDebugText)); in prepareDebugText()
254 Log.v(TAG, String.format("Running test for %d square with weights %d, %d", in runOneAreaTest()
256 mReferenceLogs.add(String.format( in runOneAreaTest()
274 mReferenceLogs.add(String.format( in runOneAreaTest()
293 mReferenceLogs.add(String.format( in runOneAreaTest()
[all …]
DExposureCompensationTest.java61 Log.v(TAG, String.format("Exposure level is from %d to %d", in updateCamera()
107 Log.v(TAG, String.format("Current exposure level is %d", i)); in run()
124 Log.v(TAG, String.format("Camera exposure level is %d", mCameraExposure)); in run()
150 Log.v(TAG, String.format("Current exposure is %f", mExposureLevel));
180 return String.format("EC %d -> %d", (index - mNumTests / 2 - 1) * 10, in getTestName()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DUiAutomatorJarTest.java81 String fullJarPath = String.format("%s%s", SHELL_EXE_BASE, mTestJarFileName); in installJar()
85 Assert.assertTrue(String.format("Failed to push file to %s", fullJarPath), result); in installJar()
88 Assert.fail(String.format("Could not find file %s", mTestJarFileName)); in installJar()
94 String fullJarPath = String.format("%s%s", SHELL_EXE_BASE, mTestJarFileName); in uninstallJar()
95 getDevice().executeShellCommand(String.format("rm %s", fullJarPath)); in uninstallJar()
DInstrumentationApkTest.java75 Log.d(LOG_TAG, String.format("Installing %s on %s", apkFileName, in run()
80 Assert.assertNull(String.format("Failed to install %s on %s. Reason: %s", in run()
84 Assert.fail(String.format("Could not find file %s", apkFileName)); in run()
89 Log.d(LOG_TAG, String.format("Uninstalling %s on %s", packageName, in run()
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java129 int format = mFormats[0]; in testYuvImage() local
133 image = new YuvImage(yuv, format, -1, height, null); in testYuvImage()
141 image = new YuvImage(yuv, format, width, -1, null); in testYuvImage()
149 image = new YuvImage(null, format, width, height, null); in testYuvImage()
232 private YuvImage generateYuvImage(int format, Bitmap bitmap, int paddings) { in generateYuvImage() argument
241 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage()
244 if (format == ImageFormat.NV21) { in generateYuvImage()
246 } else if (format == ImageFormat.YUY2) { in generateYuvImage()
249 image = new YuvImage(yuv, format, width, height, strides); in generateYuvImage()
304 int format) { in convertArgbsToYuvs() argument
[all …]
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCtsApiCoverage.java69 int format = FORMAT_TXT; in main() local
80 format = FORMAT_XML; in main()
82 format = FORMAT_TXT; in main()
84 format = FORMAT_HTML; in main()
116 outputCoverageReport(apiCoverage, testApks, outputFile, format); in main()
175 File outputFile, int format) throws IOException, TransformerException, in outputCoverageReport() argument
183 switch (format) { in outputCoverageReport()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DCtsXmlResultReporter.java127 throw new IllegalArgumentException(String.format("Could not find session %d", in invocationStarted()
177 logResult(String.format("Saved log %s", logFile.getName())); in testLog()
296 private void logResult(String format, Object... args) { in logResult() argument
298 CLog.i(format, args); in logResult()
300 Log.logAndDisplay(LogLevel.INFO, mDeviceSerial, String.format(format, args)); in logResult()
332 String msg = String.format("XML test result file generated at %s. Passed %d, " + in createXmlResult()
386 InputStream configStream = getClass().getResourceAsStream(String.format("/report/%s", in copyFormattingFiles()
393 Log.w(LOG_TAG, String.format("Failed to write %s to file", resultFileName)); in copyFormattingFiles()
396 Log.w(LOG_TAG, String.format("Failed to load %s from jar", resultFileName)); in copyFormattingFiles()
409 File zipResultFile = new File(resultsDir.getParent(), String.format("%s.zip", in zipResults()
[all …]
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/
DAppSecurityTests.java139 assertNull(String.format("failed to install shared uid app, Reason: %s", installResult), in testSharedUidDifferentCerts()
165 assertNull(String.format("failed to install simple app. Reason: %s", installResult), in testAppUpgradeDifferentCerts()
190 assertNull(String.format("failed to install app with data. Reason: %s", installResult), in testAppFailAccessPrivateData()
198 assertNull(String.format("failed to install app access data. Reason: %s", in testAppFailAccessPrivateData()
280 assertNull(String.format("failed to install app with data. Reason: %s", installResult), in testUninstallRemovesData()
290 assertNull(String.format("failed to install app with data second time. Reason: %s", in testUninstallRemovesData()
314 assertNull(String.format("failed to install target instrumentation app. Reason: %s", in testInstrumentationDiffCert()
320 assertNull(String.format( in testInstrumentationDiffCert()
349 assertNull(String.format("failed to install declare permission app. Reason: %s", in testPermissionDiffCert()
354 assertNull(String.format("failed to install declare permission compat app. Reason: %s", in testPermissionDiffCert()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/format/
DAllTests.java17 package dot.junit.format;
35 suite.addTestSuite(dot.junit.format.f1.Test_f1.class); in suite()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
DTestPlanTest.java45 String.format("<Entry uri=\"%s\" />", TEST_URI1) +
46 String.format("<Entry uri=\"%s\" />", TEST_URI2) +
51 String.format("<Entry uri=\"%s\" exclude=\"%s#%s\" />", TEST_URI1, EXCLUDE_TEST_CLASS,
57 String.format("<Entry uri=\"%s\" exclude=\"%s#%s;%s#%s\" />", TEST_URI1,
64 String.format("<Entry uri=\"%s\" exclude=\"%s\" />", TEST_URI1,
/cts/tools/vm-tests-tf/src/dot/junit/format/f1/d/
DT_f1_11.dfh1 // Processing 'out/classes_dasm/dot/junit/format/f1/d/T_f1_11.dex'...
2 // Opened 'out/classes_dasm/dot/junit/format/f1/d/T_f1_11.dex', DEX version '035'
56 // parsed: offset 116, len 4: [1] string_data_off: 288 (0x000120) "Ldot/junit/format/f1/d/T_f1_11;"
68 // parsed: offset 136, len 4: [0] descriptor_idx: 1 (0x000001) "Ldot/junit/format/f1/d/T_f1_11;"
94 // class_idx: 0 "Ldot/junit/format/f1/d/T_f1_11;"
104 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_11.<init>"
124 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_11.run"
158 // parsed: offset 288, len 33: TYPE_STRING_DATA_ITEM [1] "Ldot/junit/format/f1/d/T_f1_11;"
168 // CLASS_DATA_ITEM for class [0] "Ldot/junit/format/f1/d/T_f1_11;"
DT_f1_7.dfh1 // Processing 'out/classes_dasm/dot/junit/format/f1/d/T_f1_7.dex'...
2 // Opened 'out/classes_dasm/dot/junit/format/f1/d/T_f1_7.dex', DEX version '035'
56 // parsed: offset 116, len 4: [1] string_data_off: 288 (0x000120) "Ldot/junit/format/f1/d/T_f1_7;"
68 // parsed: offset 136, len 4: [0] descriptor_idx: 1 (0x000001) "Ldot/junit/format/f1/d/T_f1_7;"
94 // class_idx: 0 "Ldot/junit/format/f1/d/T_f1_7;"
104 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_7.<init>"
124 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_7.run"
158 // parsed: offset 288, len 32: TYPE_STRING_DATA_ITEM [1] "Ldot/junit/format/f1/d/T_f1_7;"
168 // CLASS_DATA_ITEM for class [0] "Ldot/junit/format/f1/d/T_f1_7;"
DT_f1_3.dfh1 // Processing 'out/classes_dasm/dot/junit/format/f1/d/T_f1_3.dex'...
2 // Opened 'out/classes_dasm/dot/junit/format/f1/d/T_f1_3.dex', DEX version '999'
56 // parsed: offset 116, len 4: [1] string_data_off: 288 (0x000120) "Ldot/junit/format/f1/d/T_f1_3;"
68 // parsed: offset 136, len 4: [0] descriptor_idx: 1 (0x000001) "Ldot/junit/format/f1/d/T_f1_3;"
94 // class_idx: 0 "Ldot/junit/format/f1/d/T_f1_3;"
104 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_3.<init>"
124 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_3.run"
158 // parsed: offset 288, len 32: TYPE_STRING_DATA_ITEM [1] "Ldot/junit/format/f1/d/T_f1_3;"
168 // CLASS_DATA_ITEM for class [0] "Ldot/junit/format/f1/d/T_f1_3;"
DT_f1_12.dfh1 // Processing 'out/classes_dasm/dot/junit/format/f1/d/T_f1_12.dex'...
2 // Opened 'out/classes_dasm/dot/junit/format/f1/d/T_f1_12.dex', DEX version '035'
56 // parsed: offset 116, len 4: [1] string_data_off: 288 (0x000120) "Ldot/junit/format/f1/d/T_f1_12;"
68 // parsed: offset 136, len 4: [0] descriptor_idx: 1 (0x000001) "Ldot/junit/format/f1/d/T_f1_12;"
94 // class_idx: 0 "Ldot/junit/format/f1/d/T_f1_12;"
104 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_12.<init>"
124 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_12.run"
158 // parsed: offset 288, len 33: TYPE_STRING_DATA_ITEM [1] "Ldot/junit/format/f1/d/T_f1_12;"
168 // CLASS_DATA_ITEM for class [0] "Ldot/junit/format/f1/d/T_f1_12;"
DT_f1_6.dfh1 // Processing 'out/classes_dasm/dot/junit/format/f1/d/T_f1_6.dex'...
2 // Opened 'out/classes_dasm/dot/junit/format/f1/d/T_f1_6.dex', DEX version '035'
56 // parsed: offset 116, len 4: [1] string_data_off: 288 (0x000120) "Ldot/junit/format/f1/d/T_f1_6;"
68 // parsed: offset 136, len 4: [0] descriptor_idx: 1 (0x000001) "Ldot/junit/format/f1/d/T_f1_6;"
94 // class_idx: 0 "Ldot/junit/format/f1/d/T_f1_6;"
104 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_6.<init>"
124 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_6.run"
158 // parsed: offset 288, len 32: TYPE_STRING_DATA_ITEM [1] "Ldot/junit/format/f1/d/T_f1_6;"
168 // CLASS_DATA_ITEM for class [0] "Ldot/junit/format/f1/d/T_f1_6;"
DT_f1_4.dfh1 // Processing 'out/classes_dasm/dot/junit/format/f1/d/T_f1_4.dex'...
2 // Opened 'out/classes_dasm/dot/junit/format/f1/d/T_f1_4.dex', DEX version '035'
56 // parsed: offset 116, len 4: [1] string_data_off: 288 (0x000120) "Ldot/junit/format/f1/d/T_f1_4;"
68 // parsed: offset 136, len 4: [0] descriptor_idx: 1 (0x000001) "Ldot/junit/format/f1/d/T_f1_4;"
94 // class_idx: 0 "Ldot/junit/format/f1/d/T_f1_4;"
104 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_4.<init>"
124 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_4.run"
158 // parsed: offset 288, len 32: TYPE_STRING_DATA_ITEM [1] "Ldot/junit/format/f1/d/T_f1_4;"
168 // CLASS_DATA_ITEM for class [0] "Ldot/junit/format/f1/d/T_f1_4;"
DT_f1_2.dfh1 // Processing 'out/classes_dasm/dot/junit/format/f1/d/T_f1_2.dex'...
2 // Opened 'out/classes_dasm/dot/junit/format/f1/d/T_f1_2.dex', DEX version '035'
56 // parsed: offset 116, len 4: [1] string_data_off: 288 (0x000120) "Ldot/junit/format/f1/d/T_f1_2;"
68 // parsed: offset 136, len 4: [0] descriptor_idx: 1 (0x000001) "Ldot/junit/format/f1/d/T_f1_2;"
94 // class_idx: 0 "Ldot/junit/format/f1/d/T_f1_2;"
104 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_2.<init>"
124 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_2.run"
158 // parsed: offset 288, len 32: TYPE_STRING_DATA_ITEM [1] "Ldot/junit/format/f1/d/T_f1_2;"
168 // CLASS_DATA_ITEM for class [0] "Ldot/junit/format/f1/d/T_f1_2;"
DT_f1_9.dfh1 // Processing 'out/classes_dasm/dot/junit/format/f1/d/T_f1_9.dex'...
3 // Opened 'out/classes_dasm/dot/junit/format/f1/d/T_f1_9.dex', DEX version '035'
57 // parsed: offset 116, len 4: [1] string_data_off: 288 (0x000120) "Ldot/junit/format/f1/d/T_f1_9;"
69 // parsed: offset 136, len 4: [0] descriptor_idx: 1 (0x000001) "Ldot/junit/format/f1/d/T_f1_9;"
95 // class_idx: 0 "Ldot/junit/format/f1/d/T_f1_9;"
105 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_9.<init>"
125 // CODE_ITEM for "dot.junit.format.f1.d.T_f1_9.run"
159 // parsed: offset 288, len 32: TYPE_STRING_DATA_ITEM [1] "Ldot/junit/format/f1/d/T_f1_9;"
169 // CLASS_DATA_ITEM for class [0] "Ldot/junit/format/f1/d/T_f1_9;"

123456