Home
last modified time | relevance | path

Searched refs:MIME_TYPE (Results 1 – 25 of 34) sorted by relevance

12

/cts/tests/tests/media/src/android/media/cts/
DEncodeVirtualDisplayWithCompositionTest.java39 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in EncodeVirtualDisplayWithCompositionTest
52 MIME_TYPE, 800, 480, mImpl.BITRATE_800x480)) { in testRendering800x480Locally()
54 getContext(), MIME_TYPE, 800, 480, false, false); in testRendering800x480Locally() local
69 getContext(), MIME_TYPE, maxRes.getWidth(), maxRes.getHeight(), false, false); in testRenderingMaxResolutionLocally() local
77 MIME_TYPE, 800, 480, mImpl.BITRATE_800x480)) { in testRendering800x480Remotely()
78 mImpl.runTestRenderingInSeparateThread(getContext(), MIME_TYPE, 800, 480, true, false); in testRendering800x480Remotely() local
93 getContext(), MIME_TYPE, maxRes.getWidth(), maxRes.getHeight(), true, false); in testRenderingMaxResolutionRemotely() local
101 MIME_TYPE, 800, 480, mImpl.BITRATE_800x480)) { in testRendering800x480RemotelyWith3Windows()
102 mImpl.runTestRenderingInSeparateThread(getContext(), MIME_TYPE, 800, 480, true, true); in testRendering800x480RemotelyWith3Windows() local
112 MIME_TYPE, 800, 480, mImpl.BITRATE_800x480)) { in testRendering800x480LocallyWith3Windows()
[all …]
DMediaCodecTest.java100 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in MediaCodecTest
539 if (!supportsCodec(MIME_TYPE, true)) { in testCreateInputSurfaceErrors()
540 Log.i(TAG, "No encoder found for mimeType= " + MIME_TYPE); in testCreateInputSurfaceErrors()
549 MediaCodecInfo codecInfo = selectCodec(MIME_TYPE); in testCreateInputSurfaceErrors()
550 int colorFormat = findNonSurfaceColorFormat(codecInfo, MIME_TYPE); in testCreateInputSurfaceErrors()
589 if (!supportsCodec(MIME_TYPE, true)) { in testSignalSurfaceEOS()
590 Log.i(TAG, "No encoder found for mimeType= " + MIME_TYPE); in testSignalSurfaceEOS()
600 encoder = MediaCodec.createEncoderByType(MIME_TYPE); in testSignalSurfaceEOS()
602 fail("failed to create " + MIME_TYPE + " encoder"); in testSignalSurfaceEOS()
646 if (!supportsCodec(MIME_TYPE, true)) { in testAbruptStop()
[all …]
DDecodeEditEncodeTest.java57 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in DecodeEditEncodeTest
209 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); in generateVideoFile()
214 Log.e(TAG, "Unable to find an appropriate codec for " + MIME_TYPE); in generateVideoFile()
412 MediaFormat outputFormat = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); in editVideoFile()
424 encoder = MediaCodec.createEncoderByType(MIME_TYPE); in editVideoFile()
431 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in editVideoFile()
640 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in checkVideoFile()
DEncodeVirtualDisplayTest.java101 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in EncodeVirtualDisplayTest
192 MIME_TYPE, ENCODER_PARAM_TABLE[i][0], ENCODER_PARAM_TABLE[i][1]); in verifySupportForEncoderLevel()
232 MediaFormat encoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, sWidth, sHeight); in encodeVirtualDisplayTest()
260 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in encodeVirtualDisplayTest()
261 MediaFormat decoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, sWidth, sHeight); in encodeVirtualDisplayTest()
DEncodeVirtualDisplayWithCompositionTestImpl.java80 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in EncodeVirtualDisplayWithCompositionTestImpl
454 MIME_TYPE, maxSize.getWidth(), maxSize.getHeight(), mEncoderEventListener); in doTestVirtualDisplayRecycles()
587 … throw new RuntimeException("encoder "+ MIME_TYPE + " not support : " + format.toString()); in doEncoding()
1444 MIME_TYPE, sz.getWidth(), sz.getHeight()); in getMaxSupportedEncoderSize()
1474 if (isConcurrentEncodingDecodingSupported(MIME_TYPE, 1920, 1080, BITRATE_1080p)) { in checkMaxConcurrentEncodingDecodingResolution()
1476 } else if (isConcurrentEncodingDecodingSupported(MIME_TYPE, 1280, 720, BITRATE_720p)) { in checkMaxConcurrentEncodingDecodingResolution()
1478 } else if (isConcurrentEncodingDecodingSupported(MIME_TYPE, 800, 480, BITRATE_800x480)) { in checkMaxConcurrentEncodingDecodingResolution()
1480 } else if (isConcurrentEncodingDecodingSupported(MIME_TYPE, 720, 480, BITRATE_DEFAULT)) { in checkMaxConcurrentEncodingDecodingResolution()
/cts/tests/app/src/android/app/cts/
DRemoteInputTest.java30 private static final String MIME_TYPE = "mimeType"; // value doesn't matter field in RemoteInputTest
41 assertTrue(input.getAllowedDataTypes().contains(MIME_TYPE)); in testRemoteInputBuilder_setDataOnly()
73 .setAllowDataType(MIME_TYPE, true) in testRemoteInputBuilder_setDataAndTextAndChoices()
82 assertTrue(input.getAllowedDataTypes().contains(MIME_TYPE)); in testRemoteInputBuilder_setDataAndTextAndChoices()
116 putResults.put(MIME_TYPE, uri); in testRemoteInputBuilder_addAndGetDataResultsFromIntent()
215 dataResults.put(MIME_TYPE, uri); in addDataResultsToIntent()
230 assertTrue(getResults.containsKey(MIME_TYPE)); in verifyIntentHasDataResults()
231 assertEquals(expectedUri, getResults.get(MIME_TYPE)); in verifyIntentHasDataResults()
251 .setAllowDataType(MIME_TYPE, true) in newDataOnlyRemoteInput()
258 .setAllowDataType(MIME_TYPE, true) in newTextAndDataRemoteInput()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreAudioTestHelper.java104 public static final String MIME_TYPE = "audio/x-mpeg"; field in MediaStoreAudioTestHelper.Audio1
126 values.put(Media.MIME_TYPE, MIME_TYPE); in getContentValues()
168 public static final String MIME_TYPE = "audio/x-mpeg"; field in MediaStoreAudioTestHelper.Audio2
189 values.put(Media.MIME_TYPE, MIME_TYPE); in getContentValues()
DMediaStore_DownloadsTest.java169 cursor.getString(cursor.getColumnIndex(Images.Media.MIME_TYPE))); in testMediaInDownloadsDir()
210 cursor.getString(cursor.getColumnIndex(Downloads.MIME_TYPE))); in testInsertDownload()
252 updateValues.put(Downloads.MIME_TYPE, "audio/3gpp"); in testUpdateDownload()
260 cursor.getString(cursor.getColumnIndex(Downloads.MIME_TYPE))); in testUpdateDownload()
329 updateValues.put(Downloads.MIME_TYPE, "audio/3gp"); in testNotifyChange()
375 values.put(Images.Media.MIME_TYPE, mimeType); in insertImage()
DMediaStore_Audio_Playlists_MembersTest.java78 Members.MIME_TYPE,
107 Members.MIME_TYPE,
259 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Members.MIME_TYPE))); in testStoreAudioPlaylistsMembersExternal()
304 assertEquals(Audio2.MIME_TYPE, c.getString(c.getColumnIndex(Members.MIME_TYPE))); in testStoreAudioPlaylistsMembersExternal()
DMediaStoreNotificationTest.java93 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg"); in testSimple()
138 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg"); in testCursor()
DMediaStorePlacementTest.java258 mValues.put(MediaColumns.MIME_TYPE, "image/png"); in testRelated()
294 mValues.put(MediaColumns.MIME_TYPE, "video/mp4"); in testRelated_InvalidMime()
310 mValues.put(MediaColumns.MIME_TYPE, "image/jpeg"); in testRelated_InvalidPath()
DMediaStoreUtils.java105 this.insertValues.put(MediaColumns.MIME_TYPE, Objects.requireNonNull(mimeType)); in PendingParams()
DMediaStore_FilesTest.java366 .withValue(MediaColumns.MIME_TYPE, "image/png").build(); in testGeneration()
369 .withValue(MediaColumns.MIME_TYPE, "image/png").build(); in testGeneration()
372 .withValue(MediaColumns.MIME_TYPE, "image/png").build(); in testGeneration()
DMediaStore_Video_MediaTest.java144 values.put(Media.MIME_TYPE, "video/3gpp"); in testStoreVideoMediaExternal()
173 assertEquals("video/3gpp", c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testStoreVideoMediaExternal()
421 assertEquals("video/dng", c.getString(c.getColumnIndex(VideoColumns.MIME_TYPE))); in testMetadata()
DMediaStore_Audio_MediaTest.java141 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testStoreAudioMedia()
DMediaStore_Audio_Genres_MembersTest.java150 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Members.MIME_TYPE))); in testStoreAudioGenresMembersExternal()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
DNdefTagTester.java41 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/
DNativeMediaTest.java33 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in NativeMediaTest
59 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, width, height); in runPlayTest()
/cts/tests/tests/provider/src/android/provider/cts/
DDocumentsContractTest.java105 private static final String MIME_TYPE = "application/octet-stream"; field in DocumentsContractTest
270 doReturn(DOC_RESULT).when(mProvider).createDocument(DOC_RED, MIME_TYPE, DISPLAY_NAME); in testCreateDocument()
271 assertEquals(URI_RESULT, createDocument(mResolver, URI_RED, MIME_TYPE, DISPLAY_NAME)); in testCreateDocument()
377 final String[] res = new String[] { MIME_TYPE }; in testGetDocumentStreamTypes()
379 doReturn(res).when(mProvider).getDocumentStreamTypes(DOC_RED, MIME_TYPE); in testGetDocumentStreamTypes()
380 assertArrayEquals(res, mResolver.getStreamTypes(URI_RED, MIME_TYPE)); in testGetDocumentStreamTypes()
385 doReturn(MIME_TYPE).when(mProvider).getDocumentType(DOC_RED); in testGetDocumentType()
386 assertEquals(MIME_TYPE, mResolver.getType(URI_RED)); in testGetDocumentType()
410 assertEquals(res, mResolver.openTypedAssetFile(URI_RED, MIME_TYPE, opts, null)); in testOpenDocumentThumbnail()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DChangeDefaultUris.java47 values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3"); in testChangeDefaultUris()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStoreUtils.java96 this.insertValues.put(MediaColumns.MIME_TYPE, Objects.requireNonNull(mimeType)); in PendingParams()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverLegacyPathTest.java77 cv.put(MediaStore.Files.FileColumns.MIME_TYPE, "image/jpg"); in testCreateFile()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingManagerTest.java90 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC; field in MediaTranscodingManagerTest
132 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, WIDTH, HEIGHT); in createMediaFormat()
791 destinationFormat.setString(MediaFormat.KEY_MIME, MIME_TYPE); in isVideoTranscodingSupported()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DVoicemailContractTest.java100 Voicemails.MIME_TYPE, in testVoicemailsTable()
151 value.put(Voicemails.MIME_TYPE, insertMimeType); in testVoicemailsTable()
440 value.put(Voicemails.MIME_TYPE, insertMimeType); in buildContentValuesForNewVoicemail()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java377 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in assertMediaNoAccess()
396 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in assertMediaReadWriteAccess()

12