Home
last modified time | relevance | path

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

12345678910>>...20

/cts/tests/autofillservice/src/android/autofillservice/cts/
DRetryableException.java33 public RetryableException(String format, Object...args) { in RetryableException() argument
34 this((Timeout) null, String.format(format, args)); in RetryableException()
37 public RetryableException(Throwable cause, String format, Object...args) { in RetryableException() argument
38 this((Timeout) null, cause, String.format(format, args), cause); in RetryableException()
46 public RetryableException(@Nullable Timeout timeout, String format, Object...args) { in RetryableException() argument
47 super(String.format(format, args)); in RetryableException()
51 public RetryableException(@Nullable Timeout timeout, Throwable cause, String format, in RetryableException() argument
53 super(String.format(format, args), cause); in RetryableException()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java17 package android.text.format.cts;
36 import android.text.format.DateFormat;
136 assertEquals("D", DateFormat.format("MMMMM", c)); in test_format_M()
137 assertEquals("December", DateFormat.format("MMMM", c)); in test_format_M()
138 assertEquals("Dec", DateFormat.format("MMM", c)); in test_format_M()
139 assertEquals("12", DateFormat.format("MM", c)); in test_format_M()
140 assertEquals("12", DateFormat.format("M", c)); in test_format_M()
147 assertEquals("D", DateFormat.format("LLLLL", c)); in test_format_L()
148 assertEquals("December", DateFormat.format("LLLL", c)); in test_format_L()
149 assertEquals("Dec", DateFormat.format("LLL", c)); in test_format_L()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DEncoderTest.java77 MediaFormat format = new MediaFormat(); in testAMRNBEncoders() local
78 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AMR_NB); in testAMRNBEncoders()
79 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 8000); in testAMRNBEncoders()
80 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in testAMRNBEncoders()
81 format.setInteger(MediaFormat.KEY_BIT_RATE, kBitRates[j]); in testAMRNBEncoders()
82 formats.push(format); in testAMRNBEncoders()
95 MediaFormat format = new MediaFormat(); in testAMRWBEncoders() local
96 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AMR_WB); in testAMRWBEncoders()
97 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 16000); in testAMRWBEncoders()
98 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in testAMRWBEncoders()
[all …]
DMediaCodecTunneledPlayer.java123 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 …]
DMediaCodecClearKeyPlayer.java199 MediaFormat format = mAudioExtractor.getTrackFormat(i); in prepareAudio() local
200 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio()
205 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio()
206 " Is ADTS:" + getMediaFormatInteger(format, MediaFormat.KEY_IS_ADTS) + in prepareAudio()
207 " Sample rate:" + getMediaFormatInteger(format, MediaFormat.KEY_SAMPLE_RATE) + in prepareAudio()
209 getMediaFormatInteger(format, MediaFormat.KEY_CHANNEL_COUNT)); in prepareAudio()
213 addTrack(i, format, mEncryptedAudio); in prepareAudio()
216 if (format.containsKey(MediaFormat.KEY_DURATION)) { in prepareAudio()
217 long durationUs = format.getLong(MediaFormat.KEY_DURATION); in prepareAudio()
237 MediaFormat format = mVideoExtractor.getTrackFormat(i); in prepareVideo() local
[all …]
DMediaCodecCapabilitiesTest.java415 MediaFormat format = MediaFormat.createVideoFormat(mime, 176, 144); in testHaveAdaptiveVideoDecoderForAllSupportedFormats() local
416 format.setFeatureEnabled(CodecCapabilities.FEATURE_AdaptivePlayback, true); in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
417 String codec = mAllCodecs.findDecoderForFormat(format); in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
454 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); in createReasonableVideoFormat() local
465 format.setInteger(format.KEY_BIT_RATE, bitrate); in createReasonableVideoFormat()
466 format.setInteger(format.KEY_FRAME_RATE, maxRate); in createReasonableVideoFormat()
467 format.setInteger(format.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); in createReasonableVideoFormat()
469 return format; in createReasonableVideoFormat()
503 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); in createVideoFormatForBitrateMode() local
509 format.setInteger(MediaFormat.KEY_BITRATE_MODE, bitrateMode); in createVideoFormatForBitrateMode()
[all …]
DNdkMediaCodec.java104 public void configure(MediaFormat format, int flags) { in configure() argument
106 int width = format.getInteger(MediaFormat.KEY_WIDTH, -1); in configure()
107 int height = format.getInteger(MediaFormat.KEY_HEIGHT, -1); in configure()
108 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT, -1); in configure()
109 int bitRate = format.getInteger(MediaFormat.KEY_BIT_RATE, -1); in configure()
110 int frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE, -1); in configure()
111 int iFrameInterval = format.getInteger(MediaFormat.KEY_I_FRAME_INTERVAL, -1); in configure()
114 if (format.containsKey(CSD_0)) { in configure()
115 ByteBuffer csdBufOld = format.getByteBuffer(CSD_0); in configure()
123 format.getString(MediaFormat.KEY_MIME), in configure()
[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/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp148 AMediaFormat* format = mFormats.front(); in ~CallbackData() local
150 AMediaFormat_delete(format); in ~CallbackData()
179 void addOutputFormat(AMediaFormat *format) { in addOutputFormat() argument
182 mFormats.push(format); in addOutputFormat()
186 int32_t getOutput(AMediaCodecBufferInfo *bufferInfo, AMediaFormat **format) { in getOutput() argument
197 *format = mFormats.front(); in getOutput()
230 AMediaFormat *format) { in OnFormatChangedCB() argument
231 ALOGV("OnFormatChangedCB: format(%s)", AMediaFormat_toString(format)); in OnFormatChangedCB()
233 callbackData->addOutputFormat(format); in OnFormatChangedCB()
251 AMediaFormat *format = AMediaExtractor_getTrackFormat(ex, i); in testExtractor() local
[all …]
/cts/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/
DMediaPreparerAppTest.java78 return String.format("%dx%d", width, height); in toString()
89 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions()
91 width = Math.max(width, format.getInteger(MediaFormat.KEY_WIDTH)); in testGetResolutions()
92 height = Math.max(height, format.getInteger(MediaFormat.KEY_HEIGHT)); in testGetResolutions()
102 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions()
103 supported &= MediaUtils.checkDecoderForFormat(format); in testGetResolutions()
140 MediaFormat format = new MediaFormat(); in parseTrackFormat() local
141 format.setString(MediaFormat.KEY_MIME, ""); in parseTrackFormat()
150 format.setInteger(k, Integer.parseInt(v)); in parseTrackFormat()
152 format.setString(k, v); in parseTrackFormat()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java122 public static Size getMaxOutputSize(CameraCharacteristics ccs, int format) in getMaxOutputSize() argument
124 return getMaxSize(getOutputSizes(ccs, format)); in getMaxOutputSize()
131 private static Size[] getOutputSizes(CameraCharacteristics ccs, int format) in getOutputSizes() argument
138 Size[] normalSizes = configMap.getOutputSizes(format); in getOutputSizes()
139 Size[] slowSizes = configMap.getHighResolutionOutputSizes(format); in getOutputSizes()
176 int format = image.getFormat(); in getDataFromImage() local
190 if (format == ImageFormat.JPEG) { in getDataFromImage()
206 } else if (format == ImageFormat.YUV_420_888 || format == ImageFormat.RAW_SENSOR in getDataFromImage()
207 || format == ImageFormat.RAW10 || format == ImageFormat.RAW12) { in getDataFromImage()
209 int dataSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage()
[all …]
DLogt.java24 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/tools/testng/src/com/android/cts/testng/
DSingleTestNGTestRunListener.java34 System.out.println(String.format("%s", Prefixes.TEST_RUN_MARKER)); in onFinish()
39 System.out.println(String.format("%s", Prefixes.INFORMATIONAL_MARKER)); in onStart()
55 System.out.println(String.format("%s %s ::: %s", Prefixes.ERROR_TEST_RUN_MARKER, in onTestFailure()
61 System.out.println(String.format("%s %s", Prefixes.SKIPPED_TEST_MARKER, in onTestSkipped()
67 System.out.println(String.format("%s %s", Prefixes.START_TEST_MARKER, in onTestStart()
73 System.out.println(String.format("%s", Prefixes.OK_TEST_MARKER)); in onTestSuccess()
88 return String.format("%s#%s", className, msg.toDisplayString()); in getId()
/cts/tests/tests/nativehardware/src/android/hardware/nativehardware/cts/
DHardwareBufferVrTest.java39 for (final int format : formats) { in testLayeredBuffersForVr()
40 HardwareBuffer buffer = HardwareBuffer.create(2, 4, format, 2, flags); in testLayeredBuffersForVr()
44 assertEquals(format, buffer.getFormat()); in testLayeredBuffersForVr()
47 buffer = HardwareBuffer.create(345, 231, format, 5, flags); in testLayeredBuffersForVr()
51 assertEquals(format, buffer.getFormat()); in testLayeredBuffersForVr()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java218 for (MediaFormat format : formats) { in getCodecNames()
219 String mime = format.getString(MediaFormat.KEY_MIME); in getCodecNames()
227 if (caps.isFormatSupported(format)) { in getCodecNames()
255 MediaFormat format = new MediaFormat(); in getDecoderNamesForMime() local
256 format.setString(MediaFormat.KEY_MIME, mime); in getDecoderNamesForMime()
257 return getCodecNames(false /* isEncoder */, null /* isGoog */, format); in getDecoderNamesForMime()
261 MediaFormat format = new MediaFormat(); in getEncoderNamesForMime() local
262 format.setString(MediaFormat.KEY_MIME, mime); in getEncoderNamesForMime()
263 return getCodecNames(true /* isEncoder */, null /* isGoog */, format); in getEncoderNamesForMime()
279 public static MediaCodec getDecoder(MediaFormat format) { in getDecoder() argument
[all …]
/cts/tests/tests/jni/libjnitest/
Dhelper.c28 char *failure(const char *format, ...) { in failure() argument
32 va_start(args, format); in failure()
33 __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, format, args); in failure()
36 va_start(args, format); in failure()
37 int count = vasprintf(&result, format, args); in failure()
/cts/tests/tests/location/src/android/location/cts/
DMultiConstellationNotSupportedException.java23 public MultiConstellationNotSupportedException(String format, Object... params) { in MultiConstellationNotSupportedException() argument
24 this(String.format(format, params)); in MultiConstellationNotSupportedException()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorTestPlatformException.java24 public SensorTestPlatformException(String format, Object ... params) { in SensorTestPlatformException() argument
25 this(String.format(format, params)); in SensorTestPlatformException()
DSensorTestStateNotSupportedException.java25 public SensorTestStateNotSupportedException(String format, Object ... params) { in SensorTestStateNotSupportedException() argument
26 super(String.format(format, params)); in SensorTestStateNotSupportedException()
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1UTCTime.java110 builder.append(twoDigit.format(year % 100)); in encodeToIA5String()
111 builder.append(twoDigit.format(month)); in encodeToIA5String()
112 builder.append(twoDigit.format(day)); in encodeToIA5String()
113 builder.append(twoDigit.format(hour % 100)); in encodeToIA5String()
114 builder.append(twoDigit.format(minute)); in encodeToIA5String()
115 builder.append(twoDigit.format(second)); in encodeToIA5String()
125 builder.append(fourDigit.format(year)); in toHumanReadableString()
127 builder.append(twoDigit.format(month)); in toHumanReadableString()
129 builder.append(twoDigit.format(day)); in toHumanReadableString()
131 builder.append(twoDigit.format(hour)); in toHumanReadableString()
[all …]
/cts/tests/core/runner/src/com/android/cts/core/runner/support/
DSingleTestNGTestRunListener.java59 System.out.println(String.format("%s", Prefixes.TEST_RUN_MARKER)); in onFinish()
64 System.out.println(String.format("%s", Prefixes.INFORMATIONAL_MARKER)); in onStart()
82 System.out.println(String.format("%s %s ::: %s", Prefixes.ERROR_TEST_RUN_MARKER, in onTestFailure()
89 System.out.println(String.format("%s %s", Prefixes.SKIPPED_TEST_MARKER, in onTestSkipped()
96 System.out.println(String.format("%s %s", Prefixes.START_TEST_MARKER, in onTestStart()
102 System.out.println(String.format("%s", Prefixes.OK_TEST_MARKER)); in onTestSuccess()
117 return String.format("%s#%s", className, msg.toDisplayString()); in getId()
/cts/tests/tests/graphics/jni/
DNativeTestHelpers.cpp23 void fail(JNIEnv *env, const char *format, ...) { in fail() argument
26 va_start(args, format); in fail()
28 vasprintf(&msg, format, args); in fail()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DAllocationInfo.java89 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/hostsidetests/appsecurity/src/android/appsecurity/cts/
DKeySetHostTest.java115 assertFalse(String.format("Failed to successfully run device tests for %s. Reason: %s", in assertDeviceTestsPass()
141 assertFalse(String.format("Failed to successfully run device tests for %s. Reason: %s", in assertDeviceTestsFail()
212 assertNull(String.format("failed to install %s, Reason: %s", pkgName, in testPackageUpgrade()
258 assertNull(String.format("failed to upgrade keyset app from no specified upgrade-key-set" in testNoKSToUpgradeKS()
269 assertNull(String.format("failed to upgrade keyset app from specified upgrade-key-set" in testUpgradeKSToNoKS()
299 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithUpgradeKey()
310 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithSigningUpgradeKey()
322 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testMultipleUpgradeKSWithUpgradeKey()
344 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithMultipleUpgradeKeySetsFirstKey()
349 assertNull(String.format("failed to upgrade keyset app from one signed by key-a" in testUpgradeKSWithMultipleUpgradeKeySetsFirstKey()
[all …]
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaPlayerStressTest.java106 MediaFormat format = new MediaFormat(); in parseTrackFormat() local
107 format.setString(MediaFormat.KEY_MIME, ""); in parseTrackFormat()
118 format.setInteger(k, Integer.parseInt(v)); in parseTrackFormat()
120 format.setString(k, v); in parseTrackFormat()
124 return format; in parseTrackFormat()
136 MediaFormat format = parseTrackFormat(trackFormatString); in getClipFormats() local
137 mediaFormats.add(format); in getClipFormats()
157 for (MediaFormat format: getClipFormats(mediaName)) { in doTestVideoPlayback()
158 if (!MediaUtils.checkDecoderForFormat(format)) { in doTestVideoPlayback()
160 + " test clip " + mediaName + " format " + format); in doTestVideoPlayback()

12345678910>>...20