/cts/tests/tests/media/src/android/media/cts/ |
D | MediaFormatTest.java | 46 MediaFormat format, String key, String type) { in assertGetByteBuffersThrowClassCastException() argument 48 ByteBuffer value = format.getByteBuffer(key); in assertGetByteBuffersThrowClassCastException() 54 ByteBuffer value = format.getByteBuffer(key, defaultByteBuffer); in assertGetByteBuffersThrowClassCastException() 61 MediaFormat format, String key, String type) { in assertGetFloatsThrowClassCastException() argument 63 float value = format.getFloat(key); in assertGetFloatsThrowClassCastException() 69 float value = format.getFloat(key, 321.f); in assertGetFloatsThrowClassCastException() 76 MediaFormat format, String key, String type) { in assertGetIntegersThrowClassCastException() argument 78 int value = format.getInteger(key); in assertGetIntegersThrowClassCastException() 84 int value = format.getInteger(key, 123); in assertGetIntegersThrowClassCastException() 91 MediaFormat format, String key, String type) { in assertGetLongsThrowClassCastException() argument [all …]
|
D | EncoderTest.java | 86 MediaFormat format = new MediaFormat(); in testAMRNBEncoders() local 87 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AMR_NB); in testAMRNBEncoders() 88 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 8000); in testAMRNBEncoders() 89 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in testAMRNBEncoders() 90 format.setInteger(MediaFormat.KEY_BIT_RATE, kBitRates[j]); in testAMRNBEncoders() 91 formats.push(format); in testAMRNBEncoders() 104 MediaFormat format = new MediaFormat(); in testAMRWBEncoders() local 105 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AMR_WB); in testAMRWBEncoders() 106 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 16000); in testAMRWBEncoders() 107 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in testAMRWBEncoders() [all …]
|
D | NdkMediaCodec.java | 112 public void configure(MediaFormat format, int flags) { in configure() argument 113 configure(format, flags, null /* surface */); in configure() 117 public void configure(MediaFormat format, int flags, Surface surface) { in configure() argument 119 int width = format.getInteger(MediaFormat.KEY_WIDTH, -1); in configure() 120 int height = format.getInteger(MediaFormat.KEY_HEIGHT, -1); in configure() 121 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT, -1); in configure() 122 int bitRate = format.getInteger(MediaFormat.KEY_BIT_RATE, -1); in configure() 123 int frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE, -1); in configure() 124 int iFrameInterval = format.getInteger(MediaFormat.KEY_I_FRAME_INTERVAL, -1); in configure() 125 int lowLatency = format.getInteger(MediaFormat.KEY_LOW_LATENCY, -1); in configure() [all …]
|
D | MediaCodecTunneledPlayer.java | 127 MediaFormat format = mAudioExtractor.getTrackFormat(i); in prepareAudio() local 128 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() 134 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio() 135 " Is ADTS:" + getMediaFormatInteger(format, MediaFormat.KEY_IS_ADTS) + in prepareAudio() 136 " Sample rate:" + getMediaFormatInteger(format, MediaFormat.KEY_SAMPLE_RATE) + in prepareAudio() 138 getMediaFormatInteger(format, MediaFormat.KEY_CHANNEL_COUNT)); in prepareAudio() 141 if (!addTrack(i, format)) { in prepareAudio() 146 if (format.containsKey(MediaFormat.KEY_DURATION)) { in prepareAudio() 147 long durationUs = format.getLong(MediaFormat.KEY_DURATION); in prepareAudio() 161 MediaFormat format = mVideoExtractor.getTrackFormat(i); in prepareVideo() local [all …]
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecUnitTest.java | 77 MediaFormat format = new MediaFormat(); in getSampleAudioFormat() local 79 format.setString(MediaFormat.KEY_MIME, mime); in getSampleAudioFormat() 80 format.setInteger(MediaFormat.KEY_BIT_RATE, 64000); in getSampleAudioFormat() 81 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 16000); in getSampleAudioFormat() 82 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in getSampleAudioFormat() 83 return format; in getSampleAudioFormat() 87 MediaFormat format = new MediaFormat(); in getSampleVideoFormat() local 89 format.setString(MediaFormat.KEY_MIME, mime); in getSampleVideoFormat() 90 format.setInteger(MediaFormat.KEY_BIT_RATE, 256000); in getSampleVideoFormat() 91 format.setInteger(MediaFormat.KEY_WIDTH, 352); in getSampleVideoFormat() [all …]
|
D | MuxerUnitTest.java | 227 MediaFormat format = new MediaFormat(); in testIfInvalidMediaFormatIsRejected() local 228 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_CEA_608); in testIfInvalidMediaFormatIsRejected() 229 muxer.addTrack(format); in testIfInvalidMediaFormatIsRejected() 249 MediaFormat format = new MediaFormat(); in testIfCorruptMediaFormatIsRejected() local 250 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AAC); in testIfCorruptMediaFormatIsRejected() 251 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, -1); in testIfCorruptMediaFormatIsRejected() 252 muxer.addTrack(format); in testIfCorruptMediaFormatIsRejected() 266 MediaFormat format = new MediaFormat(); in testIfAddTrackSucceedsAfterStart() local 267 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfAddTrackSucceedsAfterStart() 268 muxer.addTrack(format); in testIfAddTrackSucceedsAfterStart() [all …]
|
D | CodecEncoderTest.java | 178 for (MediaFormat format : mFormats) { in testSimpleEncode() 181 mSampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE); in testSimpleEncode() 182 mChannels = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT); in testSimpleEncode() 184 mWidth = format.getInteger(MediaFormat.KEY_WIDTH); in testSimpleEncode() 185 mHeight = format.getInteger(MediaFormat.KEY_HEIGHT); in testSimpleEncode() 189 String log = String.format( in testSimpleEncode() 191 format, mCodecName, mInputFile, (isAsync ? "async" : "sync"), in testSimpleEncode() 197 configureCodec(format, isAsync, eosType, true); in testSimpleEncode() 202 validateMetrics(mCodecName, format); in testSimpleEncode() 252 for (MediaFormat format : mFormats) { in testLosslessEncodeDecode() [all …]
|
D | CodecDecoderSurfaceTest.java | 75 MediaFormat format = setUpSource(file); in decodeAndSavePts() local 76 configureCodec(format, false, true, false); in decodeAndSavePts() 159 MediaFormat format = setUpSource(mTestFile); in testSimpleDecodeToSurface() local 161 activity.setScreenParams(getWidth(format), getHeight(format), true); in testSimpleDecodeToSurface() 163 String log = String.format("codec: %s, file: %s, mode: %s:: ", mCodecName, in testSimpleDecodeToSurface() 168 configureCodec(format, isAsync, true, false); in testSimpleDecodeToSurface() 201 MediaFormat format = setUpSource(mTestFile); in testFlush() local 206 if (format.containsKey(csdKey)) { in testFlush() 207 mCsdBuffers.add(format.getByteBuffer(csdKey)); in testFlush() 228 activity.setScreenParams(getWidth(format), getHeight(format), false); in testFlush() [all …]
|
D | CodecDecoderTest.java | 192 assertTrue(String.format("%s rms error too high ref/exp/got %f/%f/%f", refFile, in verify() 211 MediaFormat format = setUpSource(mTestFile); in testSimpleDecode() local 227 String log = String.format("codec: %s, file: %s, mode: %s, eos type: %s:: ", in testSimpleDecode() 233 configureCodec(format, isAsync, eosType, false); in testSimpleDecode() 235 if (isFormatSimilar(format, defFormat)) { in testSimpleDecode() 245 validateMetrics(mCodecName, format); in testSimpleDecode() 269 isFormatSimilar(format, in testSimpleDecode() 292 MediaFormat format = setUpSource(mTestFile); in testFlush() local 297 if (format.containsKey(csdKey)) { in testFlush() 298 mCsdBuffers.add(format.getByteBuffer(csdKey)); in testFlush() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | RetryableException.java | 33 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()
|
D | BusinessLogicDeviceExecutor.java | 53 public void logInfo(String format, Object... args) { in logInfo() argument 54 Log.i(LOG_TAG, String.format(format, args)); in logInfo() 61 public void logDebug(String format, Object... args) { in logDebug() argument 62 Log.d(LOG_TAG, String.format(format, args)); in logDebug() 70 return String.format("%s(%s)", method, TextUtils.join(", ", formatArgs(args))); in formatExecutionString() 114 throw new RuntimeException(String.format( in getResolvedMethod()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 17 package android.text.format.cts; 32 import android.text.format.DateFormat; 137 assertEquals("D", DateFormat.format("MMMMM", c)); in test_format_M() 138 assertEquals("December", DateFormat.format("MMMM", c)); in test_format_M() 139 assertEquals("Dec", DateFormat.format("MMM", c)); in test_format_M() 140 assertEquals("12", DateFormat.format("MM", c)); in test_format_M() 141 assertEquals("12", DateFormat.format("M", c)); in test_format_M() 148 assertEquals("D", DateFormat.format("LLLLL", c)); in test_format_L() 149 assertEquals("December", DateFormat.format("LLLL", c)); in test_format_L() 150 assertEquals("Dec", DateFormat.format("LLL", c)); in test_format_L() [all …]
|
/cts/tests/media/jni/ |
D | NativeMuxerUnitTest.cpp | 125 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfInvalidMediaFormatIsRejected() local 127 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfInvalidMediaFormatIsRejected() 132 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "text/cea-608"); in nativeTestIfInvalidMediaFormatIsRejected() 133 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfInvalidMediaFormatIsRejected() 137 AMediaFormat_delete(format); in nativeTestIfInvalidMediaFormatIsRejected() 149 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfCorruptMediaFormatIsRejected() local 150 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, AMEDIA_MIMETYPE_AUDIO_AAC); in nativeTestIfCorruptMediaFormatIsRejected() 151 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, -1); in nativeTestIfCorruptMediaFormatIsRejected() 152 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfCorruptMediaFormatIsRejected() 156 AMediaFormat_delete(format); in nativeTestIfCorruptMediaFormatIsRejected() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
D | GarageModeTestActivity.java | 141 resultsString = String.format("Waitng for Garage Mode to start.\n\n" in verifyStatus() 143 dateTime.format(initiateTime)); in verifyStatus() 145 resultsString = String.format("Test failed.\n" in verifyStatus() 148 dateTime.format(initiateTime)); in verifyStatus() 152 resultsString = String.format("Test %s.\n" in verifyStatus() 160 dateTime.format(initiateTime), dateTime.format(garageModeStart), in verifyStatus() 161 dateTime.format(garageModeEnd)); in verifyStatus() 164 resultsString = String.format("Test %s.\n" in verifyStatus() 174 dateTime.format(initiateTime), dateTime.format(garageModeStart), in verifyStatus() 175 dateTime.format(termination)); in verifyStatus() [all …]
|
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/ |
D | AppCompatOverridesServiceTest.java | 99 String.format(OVERRIDE_FORMAT, OVERRIDE_PKG, true)); in testPackageOverrideFlagPackageInstalledAfterFlagAdded() 102 String.format(OVERRIDE_FORMAT, OVERRIDE_PKG, true)); in testPackageOverrideFlagPackageInstalledAfterFlagAdded() 120 String.format(OVERRIDE_FORMAT, OVERRIDE_PKG, true)); in testPackageOverrideFlagForAllVersions() 123 String.format(OVERRIDE_FORMAT, OVERRIDE_PKG, true)); in testPackageOverrideFlagForAllVersions() 131 String.format(OVERRIDE_FORMAT, OVERRIDE_PKG, true)); in testPackageOverrideFlagForAllVersions() 134 String.format(OVERRIDE_FORMAT, OVERRIDE_PKG, true)); in testPackageOverrideFlagForAllVersions() 145 String.format(OVERRIDE_WITH_VERSIONS_FORMAT, OVERRIDE_PKG, 2, Long.MAX_VALUE, in testPackageOverrideFlagForNewerVersion() 155 String.format(OVERRIDE_WITH_VERSIONS_FORMAT, OVERRIDE_PKG, 2, Long.MAX_VALUE, in testPackageOverrideFlagForNewerVersion() 159 String.format(OVERRIDE_FORMAT, OVERRIDE_PKG, true)); in testPackageOverrideFlagForNewerVersion() 170 String.format(OVERRIDE_WITH_VERSIONS_FORMAT, OVERRIDE_PKG, Long.MIN_VALUE, 1, in testPackageOverrideFlagForOlderVersion() [all …]
|
/cts/tests/tests/view/jni/ |
D | jniAssert.h | 23 static void fail(JNIEnv *env, const char *format, ...) { in fail() argument 26 va_start(args, format); in fail() 28 vasprintf(&msg, format, args); in fail() 38 #define ASSERT(condition, format, args...) \ argument 40 fail(env, format, ##args); \
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_BitmapTest.cpp | 43 int32_t format = is565 ? ANDROID_BITMAP_FORMAT_RGB_565 : ANDROID_BITMAP_FORMAT_RGBA_8888; in validateBitmapInfo() local 44 ASSERT_EQ(format, info.format); in validateBitmapInfo() 64 ASSERT_EQ(AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM, description.format); in fillRgbaHardwareBuffer() 86 info.format = ANDROID_BITMAP_FORMAT_NONE; in getFormat() 93 return info.format; in getFormat() 148 ASSERT_EQ(androidBitmapFormat, info.format); in testInfo() 259 static jboolean compress(JNIEnv* env, jclass, jobject jbitmap, jint format, jint quality, in compress() argument 270 err = AndroidBitmap_compress(&info, AndroidBitmap_getDataSpace(env, jbitmap), pixels, format, in compress() 324 mBadInfo.format = ANDROID_BITMAP_FORMAT_NONE; in next() 327 mBadInfo.format = ANDROID_BITMAP_FORMAT_RGBA_4444; in next() [all …]
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | EncoderInitializationLatencyTest.java | 301 String statsLog = String.format("CodecInitialization latency for mime: %s, " + in testInitializationLatency() 307 String errorLog = String.format( in testInitializationLatency() 341 MediaFormat format = new MediaFormat(); in setUpFormat() local 342 format.setString(MediaFormat.KEY_MIME, mMime); in setUpFormat() 345 format.setInteger(MediaFormat.KEY_FLAC_COMPRESSION_LEVEL, 10000); in setUpFormat() 347 format.setInteger(MediaFormat.KEY_BIT_RATE, 128000); in setUpFormat() 349 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, mSampleRate); in setUpFormat() 350 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in setUpFormat() 356 format.setInteger(MediaFormat.KEY_WIDTH, 1920); in setUpFormat() 357 format.setInteger(MediaFormat.KEY_HEIGHT, 1080); in setUpFormat() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | MultiResolutionImageReaderTest.java | 130 for (int format : multiResolutionOutputFormats) { in testMultiResolutionCaptureCharacteristics() 131 assertTrue(String.format("Camera %s: multi-resolution output format %d " in testMultiResolutionCaptureCharacteristics() 132 + "isn't a supported format", id, format), in testMultiResolutionCaptureCharacteristics() 133 CameraTestUtils.contains(outputFormats, format)); in testMultiResolutionCaptureCharacteristics() 136 multiResolutionMap.getOutputInfo(format); in testMultiResolutionCaptureCharacteristics() 137 assertTrue(String.format("Camera %s supports %d multi-resolution " in testMultiResolutionCaptureCharacteristics() 157 Size[] sizes = CameraTestUtils.getSupportedSizeForFormat(format, in testMultiResolutionCaptureCharacteristics() 159 assertTrue(String.format("Camera %s must " in testMultiResolutionCaptureCharacteristics() 161 + "format %d.", physicalCameraId, format), in testMultiResolutionCaptureCharacteristics() 166 Size[] maxResSizes = CameraTestUtils.getSupportedSizeForFormat(format, in testMultiResolutionCaptureCharacteristics() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0470/ |
D | poc.cpp | 56 AMediaFormat *format = AMediaFormat_new(); in main() local 57 if (!format) { in main() 62 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "video/av01"); in main() 63 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, FILE_SIZE); in main() 64 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_WIDTH, VIDEO_MAX_WIDTH); in main() 65 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_HEIGHT, VIDEO_MAX_HEIGHT); in main() 66 AMediaCodec_configure(codec, format, nullptr, nullptr, isEncoder); in main() 124 AMediaFormat_delete(format); in main()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DeviceIdentifiersTest.java | 49 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getDeviceId"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 52 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getImei"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 55 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getMeid"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 58 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getSubscriberId"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 62 String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getSimSerialNumber"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 66 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getNai"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 69 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "Build#getSerial"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission() 82 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getIccId"), in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | DeviceIdentifiersTest.java | 46 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getDeviceId"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 49 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getImei"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 52 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getMeid"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 55 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getSubscriberId"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 59 String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getSimSerialNumber"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 64 String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getNai"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 67 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "Build#getSerial"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission() 80 assertEquals(String.format(DEVICE_ID_WITH_PERMISSION_ERROR_MESSAGE, "getIccId"), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
|
/cts/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/ |
D | MediaPreparerAppTest.java | 79 return String.format("%dx%d", width, height); in toString() 90 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions() 92 width = Math.max(width, format.getInteger(MediaFormat.KEY_WIDTH)); in testGetResolutions() 93 height = Math.max(height, format.getInteger(MediaFormat.KEY_HEIGHT)); in testGetResolutions() 103 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions() 104 supported &= MediaUtils.checkDecoderForFormat(format); in testGetResolutions() 141 MediaFormat format = new MediaFormat(); in parseTrackFormat() local 142 format.setString(MediaFormat.KEY_MIME, ""); in parseTrackFormat() 151 format.setInteger(k, Integer.parseInt(v)); in parseTrackFormat() 153 format.setString(k, v); in parseTrackFormat() [all …]
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 151 AMediaFormat* format = mFormats.front(); in ~CallbackData() local 153 AMediaFormat_delete(format); in ~CallbackData() 182 void addOutputFormat(AMediaFormat *format) { in addOutputFormat() argument 185 mFormats.push(format); in addOutputFormat() 189 int32_t getOutput(AMediaCodecBufferInfo *bufferInfo, AMediaFormat **format) { in getOutput() argument 200 *format = mFormats.front(); in getOutput() 233 AMediaFormat *format) { in OnFormatChangedCB() argument 234 ALOGV("OnFormatChangedCB: format(%s)", AMediaFormat_toString(format)); in OnFormatChangedCB() 236 callbackData->addOutputFormat(format); in OnFormatChangedCB() 269 AMediaFormat *format = AMediaExtractor_getTrackFormat(ex, i); in testExtractor() local [all …]
|
/cts/tools/manifest-generator/tests/src/com/android/compatibility/common/generator/ |
D | ManifestGeneratorTest.java | 93 String permissionXml = String.format(PERMISSION, PERMISSION_A) in testManifest() 94 + String.format(PERMISSION, PERMISSION_B); in testManifest() 95 String activityXml = String.format(ACTIVITY, ACTIVITY_A) in testManifest() 96 + String.format(ACTIVITY, ACTIVITY_B); in testManifest() 97 String libraryXml = String.format(USES_LIBRARY, LIBRARY); in testManifest() 98 String optionalLibraryXml = String.format(USES_OPTIONAL_LIBRARY, OPTIONAL_LIBRARY); in testManifest() 100 String.format(MANIFEST, permissionXml, libraryXml, optionalLibraryXml, activityXml); in testManifest()
|