/cts/tests/tests/media/src/android/media/cts/ |
D | EncodeVirtualDisplayWithCompositionTest.java | 39 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 …]
|
D | MediaCodecTest.java | 100 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 …]
|
D | DecodeEditEncodeTest.java | 57 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()
|
D | EncodeVirtualDisplayTest.java | 101 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()
|
D | EncodeVirtualDisplayWithCompositionTestImpl.java | 80 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/ |
D | RemoteInputTest.java | 30 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/ |
D | MediaStoreAudioTestHelper.java | 104 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()
|
D | MediaStore_DownloadsTest.java | 169 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()
|
D | MediaStore_Audio_Playlists_MembersTest.java | 78 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()
|
D | MediaStoreNotificationTest.java | 93 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg"); in testSimple() 138 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg"); in testCursor()
|
D | MediaStorePlacementTest.java | 258 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()
|
D | MediaStoreUtils.java | 105 this.insertValues.put(MediaColumns.MIME_TYPE, Objects.requireNonNull(mimeType)); in PendingParams()
|
D | MediaStore_FilesTest.java | 366 .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()
|
D | MediaStore_Video_MediaTest.java | 144 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()
|
D | MediaStore_Audio_MediaTest.java | 141 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testStoreAudioMedia()
|
D | MediaStore_Audio_Genres_MembersTest.java | 150 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Members.MIME_TYPE))); in testStoreAudioGenresMembersExternal()
|
/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 59 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, width, height); in runPlayTest()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | DocumentsContractTest.java | 105 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/ |
D | ChangeDefaultUris.java | 47 values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3"); in testChangeDefaultUris()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStoreUtils.java | 96 this.insertValues.put(MediaColumns.MIME_TYPE, Objects.requireNonNull(mimeType)); in PendingParams()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | FileObserverLegacyPathTest.java | 77 cv.put(MediaStore.Files.FileColumns.MIME_TYPE, "image/jpg"); in testCreateFile()
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingManagerTest.java | 90 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/ |
D | VoicemailContractTest.java | 100 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/ |
D | CommonExternalStorageTest.java | 377 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in assertMediaNoAccess() 396 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in assertMediaReadWriteAccess()
|