Home
last modified time | relevance | path

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

12345678910>>...22

/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java17 package android.text.format.cts;
32 import android.text.format.DateFormat;
132 assertEquals("D", DateFormat.format("MMMMM", c)); in test_format_M()
133 assertEquals("December", DateFormat.format("MMMM", c)); in test_format_M()
134 assertEquals("Dec", DateFormat.format("MMM", c)); in test_format_M()
135 assertEquals("12", DateFormat.format("MM", c)); in test_format_M()
136 assertEquals("12", DateFormat.format("M", c)); in test_format_M()
143 assertEquals("D", DateFormat.format("LLLLL", c)); in test_format_L()
144 assertEquals("December", DateFormat.format("LLLL", c)); in test_format_L()
145 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 …]
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 …]
DMediaCodecCapabilitiesTest.java389 MediaFormat format = MediaFormat.createVideoFormat(mime, 176, 144); in testHaveAdaptiveVideoDecoderForAllSupportedFormats() local
390 format.setFeatureEnabled(CodecCapabilities.FEATURE_AdaptivePlayback, true); in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
391 String codec = mAllCodecs.findDecoderForFormat(format); in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
428 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); in createReasonableVideoFormat() local
439 format.setInteger(format.KEY_BIT_RATE, bitrate); in createReasonableVideoFormat()
440 format.setInteger(format.KEY_FRAME_RATE, maxRate); in createReasonableVideoFormat()
441 format.setInteger(format.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); in createReasonableVideoFormat()
443 return format; in createReasonableVideoFormat()
495 MediaFormat format = null; in testAllNonTunneledVideoCodecsSupportFlexibleYUV() local
499 format = createReasonableVideoFormat(caps, mime, isEncoder, 176, 144); in testAllNonTunneledVideoCodecsSupportFlexibleYUV()
[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/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DConsoleReporter.java166 private void logProgress(String format, Object... args) { in logProgress() argument
167 format = String.format("[%s %s %s] %s", progress(), mModuleId, mDeviceSerial, format); in logProgress()
168 log(format, args); in logProgress()
174 private void logMessage(String format, Object... args) { in logMessage() argument
175 format = String.format("[%s] %s", mDeviceSerial, format); in logMessage()
176 log(format, args); in logMessage()
182 private void log(String format, Object... args) { in log() argument
184 CLog.i(format, args); in log()
186 CLog.logAndDisplay(LogLevel.INFO, format, args); in log()
204 return String.format("%d/%d", mCurrentTestNum, mTotalTestsInModule); in progress()
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp87 AMediaFormat *format = AMediaExtractor_getTrackFormat(ex, i); in testExtractor() local
88 const char *s = AMediaFormat_toString(format); in testExtractor()
91 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)) { in testExtractor()
98 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, &val32); in testExtractor()
100 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &val32); in testExtractor()
102 AMediaFormat_getInt64(format, AMEDIAFORMAT_KEY_DURATION, &val64); in testExtractor()
108 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_WIDTH, &val32); in testExtractor()
110 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_HEIGHT, &val32); in testExtractor()
112 AMediaFormat_getInt64(format, AMEDIAFORMAT_KEY_DURATION, &val64); in testExtractor()
117 AMediaFormat_delete(format); in testExtractor()
[all …]
/cts/tests/tests/mediastress/preconditions/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 …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp27 #define ASSERT(condition, format, args...) \ argument
29 fail(env, format, ## args); \
48 static void fail(JNIEnv* env, const char* format, ...) { in fail() argument
51 va_start(args, format); in fail()
53 vasprintf(&msg, format, args); in fail()
72 int32_t format = is565 ? ANDROID_BITMAP_FORMAT_RGB_565 : ANDROID_BITMAP_FORMAT_RGBA_8888; in validateBitmapInfo() local
73 ASSERT_EQ(format, info.format); in validateBitmapInfo()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java212 for (MediaFormat format : formats) { in getCodecNames()
213 String mime = format.getString(MediaFormat.KEY_MIME); in getCodecNames()
221 if (caps.isFormatSupported(format)) { in getCodecNames()
261 public static MediaCodec getDecoder(MediaFormat format) { in getDecoder() argument
262 String decoder = sMCL.findDecoderForFormat(format); in getDecoder()
272 public static boolean canEncode(MediaFormat format) { in canEncode() argument
273 if (sMCL.findEncoderForFormat(format) == null) { in canEncode()
274 Log.i(TAG, "no encoder for " + format); in canEncode()
280 public static boolean canDecode(MediaFormat format) { in canDecode() argument
281 if (sMCL.findDecoderForFormat(format) == null) { in canDecode()
[all …]
/cts/hostsidetests/aadb/src/android/aadb/cts/
DTestDeviceFuncTest.java67 assertTrue(String.format("Expected at least %d characters; only saw %d", mMinBugreportBytes, in testBugreport()
107 deviceFilePath = String.format("%s/%s", externalStorePath, "tmp_testPushPull.txt"); in testPushPull_normal()
109 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal()
110 assertFalse(String.format("%s exists", deviceFilePath), in testPushPull_normal()
123 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal()
145 deviceFilePath = String.format("%s/%s", externalStorePath, filename); in testPushPull_extStorageVariable()
147 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable()
148 assertFalse(String.format("%s exists", deviceFilePath), in testPushPull_extStorageVariable()
168 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable()
184 String deviceFilePath = String.format("%s/%s", externalStorePath, "thisfiledoesntexist"); in testPull_noexist()
[all …]
DTestDeviceStressTest.java59 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/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/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/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/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/jdwp/runner/host-side/src/com/android/compatibility/testtype/
DDalvikTest.java83 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "ArrayReference")); in String.format()
84 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "ArrayType")); in String.format()
85 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "ClassLoaderReference")); in String.format()
86 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "ClassObjectReference")); in String.format()
87 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "ClassType")); in String.format()
88 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "DebuggerOnDemand")); in String.format()
89 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "Deoptimization")); in String.format()
90 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "EventModifiers")); in String.format()
91 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "Events")); in String.format()
92 TEST_PACKAGES.add(String.format(JDWP_PACKAGE_BASE, "InterfaceType")); in String.format()
[all …]
/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/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/autofillservice/src/android/autofillservice/cts/
DRetryableException.java28 public RetryableException(String format, Object...args) { in RetryableException() argument
29 this(String.format(format, args)); in RetryableException()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorTestStateNotSupportedException.java25 public SensorTestStateNotSupportedException(String format, Object ... params) { in SensorTestStateNotSupportedException() argument
26 super(String.format(format, params)); in SensorTestStateNotSupportedException()
DSensorTestPlatformException.java24 public SensorTestPlatformException(String format, Object ... params) { in SensorTestPlatformException() argument
25 this(String.format(format, params)); in SensorTestPlatformException()

12345678910>>...22