/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecTest.java | 63 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in MediaCodecTest 299 if (!supportsCodec(MIME_TYPE, true)) { in testCreateInputSurfaceErrors() 300 Log.i(TAG, "No encoder found for mimeType= " + MIME_TYPE); in testCreateInputSurfaceErrors() 309 MediaCodecInfo codecInfo = selectCodec(MIME_TYPE); in testCreateInputSurfaceErrors() 310 int colorFormat = findNonSurfaceColorFormat(codecInfo, MIME_TYPE); in testCreateInputSurfaceErrors() 358 if (!supportsCodec(MIME_TYPE, true)) { in testSignalSurfaceEOS() 359 Log.i(TAG, "No encoder found for mimeType= " + MIME_TYPE); in testSignalSurfaceEOS() 369 encoder = MediaCodec.createEncoderByType(MIME_TYPE); in testSignalSurfaceEOS() 371 fail("failed to create " + MIME_TYPE + " encoder"); in testSignalSurfaceEOS() 415 if (!supportsCodec(MIME_TYPE, true)) { in testAbruptStop() [all …]
|
D | EncodeVirtualDisplayTest.java | 87 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in EncodeVirtualDisplayTest 171 MIME_TYPE, ENCODER_PARAM_TABLE[i][0], ENCODER_PARAM_TABLE[i][1]); in verifySupportForEncoderLevel() 211 MediaFormat encoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, sWidth, sHeight); in encodeVirtualDisplayTest() 236 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in encodeVirtualDisplayTest() 237 MediaFormat decoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, sWidth, sHeight); in encodeVirtualDisplayTest()
|
D | DecodeEditEncodeTest.java | 57 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in DecodeEditEncodeTest 196 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); in generateVideoFile() 201 Log.e(TAG, "Unable to find an appropriate codec for " + MIME_TYPE); in generateVideoFile() 399 MediaFormat outputFormat = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); in editVideoFile() 411 encoder = MediaCodec.createEncoderByType(MIME_TYPE); in editVideoFile() 418 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in editVideoFile() 619 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in checkVideoFile()
|
D | EncodeVirtualDisplayWithCompositionTest.java | 82 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in EncodeVirtualDisplayWithCompositionTest 234 mDecoder = MediaCodec.createDecoderByType(MIME_TYPE); in doTestRenderingOutput() 235 MediaFormat decoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, w, h); in doTestRenderingOutput() 531 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mW, mH); in doEncoding() 545 mEncoder = MediaCodec.createEncoderByType(MIME_TYPE); in doEncoding() 1334 MIME_TYPE, sz.getWidth(), sz.getHeight()); in getMaxSupportedEncoderSize() 1366 MediaFormat testFormat = MediaFormat.createVideoFormat(MIME_TYPE, w, h); in isConcurrentEncodingDecodingSupported() 1378 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in isConcurrentEncodingDecodingSupported() 1379 MediaFormat decoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, w, h); in isConcurrentEncodingDecodingSupported() 1385 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, w, h); in isConcurrentEncodingDecodingSupported() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStoreAudioTestHelper.java | 105 public static final String MIME_TYPE = "audio/x-mpeg"; field in MediaStoreAudioTestHelper.Audio1 126 values.put(Media.MIME_TYPE, MIME_TYPE); in getContentValues() 183 public static final String MIME_TYPE = "audio/x-mpeg"; field in MediaStoreAudioTestHelper.Audio2 205 values.put(Media.MIME_TYPE, MIME_TYPE); in getContentValues()
|
D | MediaStore_Images_MediaTest.java | 120 new String[] { Media.TITLE, Media.DESCRIPTION, Media.MIME_TYPE }); in testInsertImageWithImagePath() 125 assertEquals(MIME_TYPE_JPEG, c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testInsertImageWithImagePath() 131 new String[] { Media.TITLE, Media.DESCRIPTION, Media.MIME_TYPE }, null, in testInsertImageWithImagePath() 137 assertEquals(MIME_TYPE_JPEG, c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testInsertImageWithImagePath() 141 assertEquals(MIME_TYPE_JPEG, c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testInsertImageWithImagePath() 146 new String[] { Media.DESCRIPTION, Media.MIME_TYPE }, Media.TITLE + "=?", in testInsertImageWithImagePath() 151 assertEquals(MIME_TYPE_JPEG, c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testInsertImageWithImagePath() 225 values.put(Media.MIME_TYPE, "image/jpeg"); in testStoreImagesMediaExternal() 255 assertEquals("image/jpeg", c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testStoreImagesMediaExternal() 278 values.put(Media.MIME_TYPE, "image/jpeg"); in testStoreImagesMediaExternal() [all …]
|
D | MediaStore_Audio_MediaTest.java | 102 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testStoreAudioMedia() 144 assertEquals(Audio2.MIME_TYPE, c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testStoreAudioMedia()
|
D | MediaStore_Video_MediaTest.java | 98 values.put(Media.MIME_TYPE, "video/3gpp"); in testStoreVideoMediaExternal() 133 assertEquals("video/3gpp", c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testStoreVideoMediaExternal() 159 values.put(Media.MIME_TYPE, "video/3gpp"); in testStoreVideoMediaExternal() 187 assertEquals("video/3gpp", c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testStoreVideoMediaExternal()
|
D | MediaStore_Audio_Playlists_MembersTest.java | 58 Members.MIME_TYPE, 88 Members.MIME_TYPE, 224 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Members.MIME_TYPE))); in testStoreAudioPlaylistsMembersExternal() 268 assertEquals(Audio2.MIME_TYPE, c.getString(c.getColumnIndex(Members.MIME_TYPE))); in testStoreAudioPlaylistsMembersExternal()
|
D | VoicemailContractTest.java | 66 Voicemails.HAS_CONTENT, Voicemails.MIME_TYPE}; in testVoicemailsTable() 95 value.put(Voicemails.MIME_TYPE, insertMimeType); in testVoicemailsTable() 197 value.put(Voicemails.MIME_TYPE, insertMimeType); in buildContentValuesForNewVoicemail()
|
D | MediaStore_Audio_Genres_MembersTest.java | 125 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Members.MIME_TYPE))); in testStoreAudioGenresMembersExternal()
|
D | MediaStore_FilesTest.java | 215 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg"); in testAccess() 379 values.put(MediaStore.Audio.Media.MIME_TYPE, "audio/mp3"); in testAccess()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
D | NdefTagTester.java | 41 private static final String MIME_TYPE = "application/com.android.cts.verifier.nfc"; field in NdefTagTester 74 NfcUtils.displayByteArray(mimeRecord.getId()), MIME_TYPE, PAYLOAD); in writeTag() 100 byte[] mimeBytes = MIME_TYPE.getBytes(Charset.forName("US-ASCII"));
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | NativeMediaTest.java | 33 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in NativeMediaTest 60 if (!MediaUtils.checkDecoder(MIME_TYPE)) { in runPlayTest()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTest.java | 159 final String MIME_TYPE = "image/png"; in testCreateNew() local 164 intent.setType(MIME_TYPE); in testCreateNew() 179 assertEquals(MIME_TYPE, getColumn(uri, Document.COLUMN_MIME_TYPE)); in testCreateNew()
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | CommonExternalStorageTest.java | 313 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in assertMediaNoAccess() 326 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in assertMediaReadWriteAccess()
|