/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 17 package android.text.format.cts; 25 import android.text.format.DateFormat; 114 assertEquals("D", DateFormat.format("MMMMM", c)); in test_format_M() 115 assertEquals("December", DateFormat.format("MMMM", c)); in test_format_M() 116 assertEquals("Dec", DateFormat.format("MMM", c)); in test_format_M() 117 assertEquals("12", DateFormat.format("MM", c)); in test_format_M() 118 assertEquals("12", DateFormat.format("M", c)); in test_format_M() 124 assertEquals("D", DateFormat.format("LLLLL", c)); in test_format_L() 125 assertEquals("December", DateFormat.format("LLLL", c)); in test_format_L() 126 assertEquals("Dec", DateFormat.format("LLL", c)); in test_format_L() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EncoderTest.java | 52 MediaFormat format = new MediaFormat(); in testAMRNBEncoders() local 53 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AMR_NB); 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, MediaFormat.MIMETYPE_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 …]
|
D | MediaCodecTunneledPlayer.java | 123 MediaFormat format = mAudioExtractor.getTrackFormat(i); in prepareAudio() local 124 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() 130 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio() 131 " Is ADTS:" + getMediaFormatInteger(format, MediaFormat.KEY_IS_ADTS) + in prepareAudio() 132 " Sample rate:" + getMediaFormatInteger(format, MediaFormat.KEY_SAMPLE_RATE) + in prepareAudio() 134 getMediaFormatInteger(format, MediaFormat.KEY_CHANNEL_COUNT)); in prepareAudio() 137 if (!addTrack(i, format)) { in prepareAudio() 142 if (format.containsKey(MediaFormat.KEY_DURATION)) { in prepareAudio() 143 long durationUs = format.getLong(MediaFormat.KEY_DURATION); in prepareAudio() 157 MediaFormat format = mVideoExtractor.getTrackFormat(i); in prepareVideo() local [all …]
|
D | MediaCodecCencPlayer.java | 161 MediaFormat format = mAudioExtractor.getTrackFormat(i); in prepareAudio() local 162 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() 164 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio() 165 " Is ADTS:" + getMediaFormatInteger(format, MediaFormat.KEY_IS_ADTS) + in prepareAudio() 166 " Sample rate:" + getMediaFormatInteger(format, MediaFormat.KEY_SAMPLE_RATE) + in prepareAudio() 168 getMediaFormatInteger(format, MediaFormat.KEY_CHANNEL_COUNT)); in prepareAudio() 172 addTrack(i, format, mEncryptedAudio); in prepareAudio() 175 if (format.containsKey(MediaFormat.KEY_DURATION)) { in prepareAudio() 176 long durationUs = format.getLong(MediaFormat.KEY_DURATION); in prepareAudio() 196 MediaFormat format = mVideoExtractor.getTrackFormat(i); in prepareVideo() local [all …]
|
D | MediaCodecCapabilitiesTest.java | 392 MediaFormat format = MediaFormat.createVideoFormat(mime, 176, 144); in testHaveAdaptiveVideoDecoderForAllSupportedFormats() local 393 format.setFeatureEnabled(CodecCapabilities.FEATURE_AdaptivePlayback, true); in testHaveAdaptiveVideoDecoderForAllSupportedFormats() 394 String codec = mAllCodecs.findDecoderForFormat(format); in testHaveAdaptiveVideoDecoderForAllSupportedFormats() 431 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); in createReasonableVideoFormat() local 442 format.setInteger(format.KEY_BIT_RATE, bitrate); in createReasonableVideoFormat() 443 format.setInteger(format.KEY_FRAME_RATE, maxRate); in createReasonableVideoFormat() 444 format.setInteger(format.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); in createReasonableVideoFormat() 446 return format; in createReasonableVideoFormat() 498 MediaFormat format = null; in testAllNonTunneledVideoCodecsSupportFlexibleYUV() local 502 format = createReasonableVideoFormat(caps, mime, isEncoder, 176, 144); in testAllNonTunneledVideoCodecsSupportFlexibleYUV() [all …]
|
D | MediaCodecTest.java | 94 MediaFormat format = MediaFormat.createAudioFormat( in testException() local 96 tested = verifyException(format, false /* isEncoder */) || tested; in testException() 99 format = MediaFormat.createAudioFormat( in testException() 101 format.setInteger(MediaFormat.KEY_BIT_RATE, 19850); in testException() 102 tested = verifyException(format, true /* isEncoder */) || tested; in testException() 105 format = createMediaFormat(); in testException() 106 tested = verifyException(format, false /* isEncoder */) || tested; in testException() 109 tested = verifyException(format, true /* isEncoder */) || tested; in testException() 136 private static boolean verifyException(MediaFormat format, boolean isEncoder) in verifyException() argument 138 String mimeType = format.getString(MediaFormat.KEY_MIME); in verifyException() [all …]
|
D | ResourceManagerTestActivityBase.java | 61 public void onOutputFormatChanged(MediaCodec codec, MediaFormat format) { in onOutputFormatChanged() argument 74 MediaFormat format = MediaFormat.createVideoFormat(MIME, width, height); in getTestFormat() local 75 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, caps.colorFormats[0]); in getTestFormat() 76 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in getTestFormat() 77 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); in getTestFormat() 78 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); in getTestFormat() 79 format.setFeatureEnabled(CodecCapabilities.FEATURE_SecurePlayback, securePlayback); in getTestFormat() 80 return format; in getTestFormat() 160 MediaFormat format = getTestFormat(caps, securePlayback); in allocateCodecs() local 167 Log.d(TAG, "Configure codec " + format); in allocateCodecs() [all …]
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 85 AMediaFormat *format = AMediaExtractor_getTrackFormat(ex, i); in testExtractor() local 86 const char *s = AMediaFormat_toString(format); in testExtractor() 89 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)) { in testExtractor() 96 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, &val32); in testExtractor() 98 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &val32); in testExtractor() 100 AMediaFormat_getInt64(format, AMEDIAFORMAT_KEY_DURATION, &val64); in testExtractor() 106 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_WIDTH, &val32); in testExtractor() 108 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_HEIGHT, &val32); in testExtractor() 110 AMediaFormat_getInt64(format, AMEDIAFORMAT_KEY_DURATION, &val64); in testExtractor() 115 AMediaFormat_delete(format); in testExtractor() [all …]
|
/cts/tools/dasm/src/dasm/ |
D | DopInfo.java | 124 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/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 119 public static Size getMaxOutputSize(CameraCharacteristics ccs, int format) in getMaxOutputSize() argument 121 return getMaxSize(getOutputSizes(ccs, format)); in getMaxOutputSize() 124 private static Size[] getOutputSizes(CameraCharacteristics ccs, int format) in getOutputSizes() argument 131 Size[] normalSizes = configMap.getOutputSizes(format); in getOutputSizes() 132 Size[] slowSizes = configMap.getHighResolutionOutputSizes(format); in getOutputSizes() 166 int format = image.getFormat(); in getDataFromImage() local 180 if (format == ImageFormat.JPEG) { in getDataFromImage() 186 } else if (format == ImageFormat.YUV_420_888 || format == ImageFormat.RAW_SENSOR in getDataFromImage() 187 || format == ImageFormat.RAW10 || format == ImageFormat.RAW12) { in getDataFromImage() 189 data = new byte[width * height * ImageFormat.getBitsPerPixel(format) / 8]; in getDataFromImage() [all …]
|
D | Logt.java | 24 Log.i(tag, String.format("[%d] %s", t, msg)); in i() 28 Log.e(tag, String.format("[%d] %s", t, msg)); in e() 32 Log.w(tag, String.format("[%d] %s", t, msg)); in w() 36 Log.e(tag, String.format("[%d] %s", t, msg), tr); in e()
|
/cts/suite/cts/hostTests/jank/app/src/com/android/cts/jank/opengl/ |
D | CtsDeviceJankOpenGl.java | 63 sb.append(String.format(START_CMD, COMPONENT)); in runBenchmark() 64 sb.append(String.format(INTENT_STRING_EXTRA, "benchmark_name", benchmark)); in runBenchmark() 65 sb.append(String.format(INTENT_BOOLEAN_EXTRA, "offscreen", false)); in runBenchmark() 66 sb.append(String.format(INTENT_INTEGER_EXTRA, "num_frames", 1000)); in runBenchmark() 67 sb.append(String.format(INTENT_INTEGER_EXTRA, "num_iterations", 1)); in runBenchmark() 68 sb.append(String.format(INTENT_INTEGER_EXTRA, "timeout", 10000)); in runBenchmark() 70 final String stopCommand = String.format(STOP_CMD, PACKAGE); in runBenchmark()
|
/cts/tools/dex-tools/src/dex/reader/ |
D | TypeFormatter.java | 45 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/ |
D | helper.c | 27 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()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorTestPlatformException.java | 24 public SensorTestPlatformException(String format, Object ... params) { in SensorTestPlatformException() argument 25 this(String.format(format, params)); in SensorTestPlatformException()
|
D | SensorTestStateNotSupportedException.java | 25 public SensorTestStateNotSupportedException(String format, Object ... params) { in SensorTestStateNotSupportedException() argument 26 super(String.format(format, params)); in SensorTestStateNotSupportedException()
|
/cts/hostsidetests/aadb/src/com/android/cts/aadb/ |
D | TestDeviceFuncTest.java | 69 assertTrue(String.format("Expected at least %d characters; only saw %d", mMinBugreportBytes, in testBugreport() 108 deviceFilePath = String.format("%s/%s", externalStorePath, "tmp_testPushPull.txt"); in testPushPull_normal() 110 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() 111 assertFalse(String.format("%s exists", deviceFilePath), in testPushPull_normal() 124 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() 146 deviceFilePath = String.format("%s/%s", externalStorePath, filename); in testPushPull_extStorageVariable() 148 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable() 149 assertFalse(String.format("%s exists", deviceFilePath), in testPushPull_extStorageVariable() 169 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable() 185 String deviceFilePath = String.format("%s/%s", externalStorePath, "thisfiledoesntexist"); in testPull_noexist() [all …]
|
D | TestDeviceStressTest.java | 59 tmpFile = FileUtil.createTempFile(String.format("tmp_%d", i), ".txt", tmpDir); in createTempTestFiles() 75 deviceFilePath = String.format("%s/%s", externalStorePath, "testDir"); in testPushFolderWithManyFiles() 83 mTestDevice.executeShellCommand(String.format("rm -r %s", deviceFilePath)); in testPushFolderWithManyFiles() 84 assertFalse(String.format("%s exists", deviceFilePath), in testPushFolderWithManyFiles() 93 mTestDevice.executeShellCommand(String.format("rm -r %s", deviceFilePath)); in testPushFolderWithManyFiles() 94 assertFalse(String.format("%s exists", deviceFilePath), in testPushFolderWithManyFiles()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/build/ |
D | CtsBuildHelper.java | 71 throw new IllegalArgumentException(String.format( in createBuildHelper() 109 throw new FileNotFoundException(String.format("CTS test app file %s does not exist", in getTestApp() 153 String ctsPlanRelativePath = String.format("%s.xml", planName); in getTestPlanFile() 163 throw new FileNotFoundException(String.format( in validateStructure() 167 throw new FileNotFoundException(String.format( in validateStructure() 172 throw new FileNotFoundException(String.format( in validateStructure()
|
/cts/common/host-side/manifest-generator/tests/src/com/android/compatibility/common/generator/ |
D | ManifestGeneratorTest.java | 70 String permissionXml = String.format(PERMISSION, PERMISSION_A) in testManifest() 71 + String.format(PERMISSION, PERMISSION_B); in testManifest() 72 String activityXml = String.format(ACTIVITY, ACTIVITY_A) in testManifest() 73 + String.format(ACTIVITY, ACTIVITY_B); in testManifest() 74 String expected = String.format(MANIFEST, permissionXml, activityXml); in testManifest()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/ |
D | AllocationInfo.java | 89 public static AllocationInfo newInstance(Size size, int format, int usage) { in newInstance() argument 93 switch (format) { in newInstance() 102 throw new UnsupportedOperationException("Unsupported format " + format); in newInstance() 127 public static AllocationInfo newInstance(Size size, int format) { in newInstance() argument 128 return newInstance(size, format, Allocation.USAGE_SCRIPT); in newInstance() 192 public AllocationInfo changeFormatAndUsage(int format, int usage) { in changeFormatAndUsage() argument 193 return newInstance(getSize(), format, usage); in changeFormatAndUsage() 222 public AllocationInfo changeFormatWithDefaultUsage(int format) { in changeFormatWithDefaultUsage() argument 223 return newInstance(getSize(), format, Allocation.USAGE_SCRIPT); in changeFormatWithDefaultUsage() 358 return String.format("Size: %s, Element: %s, Usage: %x", mSize, in toString()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | ImageReaderTest.java | 300 for (int format : YUVFormats) { in testAllOutputYUVResolutions() 301 if (CameraTestUtils.contains(supportedFormats, format)) { in testAllOutputYUVResolutions() 302 supportedYUVFormats.add(format); in testAllOutputYUVResolutions() 313 for (int format : supportedYUVFormats) { in testAllOutputYUVResolutions() 315 mStaticInfo.getAvailableSizesForFormatChecked(format, in testAllOutputYUVResolutions() 329 yuvReader = createImageReader(captureSz, format, MAX_NUM_IMAGES, in testAllOutputYUVResolutions() 381 captureSz.getHeight(), format, /*filePath*/null); in testAllOutputYUVResolutions() 582 private void bufferFormatWithYuvTestByCamera(int format) throws Exception { in bufferFormatWithYuvTestByCamera() argument 583 if (format != ImageFormat.JPEG && format != ImageFormat.RAW_SENSOR in bufferFormatWithYuvTestByCamera() 584 && format != ImageFormat.YUV_420_888) { in bufferFormatWithYuvTestByCamera() [all …]
|
D | ExtendedCameraCharacteristicsTest.java | 117 assertNotNull(String.format("Can't get camera characteristics from: ID %s", mIds[i]), in setUp() 145 assertNotNull(String.format("No stream configuration map found for: ID %s", in testAvailableStreamConfigs() 161 String.format("No valid YUV_420_888 preview formats found for: ID %s", in testAvailableStreamConfigs() 163 assertArrayContains(String.format("No JPEG image format for: ID %s", in testAvailableStreamConfigs() 171 String.format("No sizes for preview format %x for: ID %s", in testAvailableStreamConfigs() 181 assertArrayContains(String.format( in testAvailableStreamConfigs() 188 assertArrayContains(String.format( in testAvailableStreamConfigs() 195 assertArrayContains(String.format( in testAvailableStreamConfigs() 202 assertArrayContains(String.format( in testAvailableStreamConfigs() 501 assertNotNull(String.format("No stream configuration map found for: ID %s", in testStaticBurstCharacteristics() [all …]
|
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/ |
D | KeySetHostTest.java | 114 assertFalse(String.format("Failed to successfully run device tests for %s. Reason: %s", in assertDeviceTestsPass() 140 assertFalse(String.format("Failed to successfully run device tests for %s. Reason: %s", in assertDeviceTestsFail() 211 assertNull(String.format("failed to install %s, Reason: %s", pkgName, in testPackageUpgrade() 254 assertNull(String.format("failed to upgrade keyset app from no specified upgrade-key-set" in testNoKSToUpgradeKS() 265 assertNull(String.format("failed to upgrade keyset app from specified upgrade-key-set" in testUpgradeKSToNoKS() 295 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithUpgradeKey() 306 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithSigningUpgradeKey() 318 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testMultipleUpgradeKSWithUpgradeKey() 340 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithMultipleUpgradeKeySetsFirstKey() 345 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithMultipleUpgradeKeySetsFirstKey() [all …]
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | UiAutomatorJarTest.java | 81 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()
|