/cts/tests/tests/mimemap/src/android/content/type/cts/ |
D | MimeMapTest.java | 185 String mimeType = "application/vnd.ms-word.document.macroEnabled.12".toLowerCase(Locale.US); in nonLowercaseMimeType() local 186 assertBidirectional(mimeType, "docm"); in nonLowercaseMimeType() 191 String mimeType = mimeMap.guessMimeTypeFromExtension("apk"); in caseInsensitiveKeys() local 192 assertNotNull(mimeType); in caseInsensitiveKeys() 194 assertEquals(mimeType, mimeMap.guessMimeTypeFromExtension("APK")); in caseInsensitiveKeys() 195 assertEquals(mimeType, mimeMap.guessMimeTypeFromExtension("aPk")); in caseInsensitiveKeys() 197 assertEquals("apk", mimeMap.guessExtensionFromMimeType(mimeType)); in caseInsensitiveKeys() 199 mimeType.toUpperCase(Locale.US))); in caseInsensitiveKeys() 201 mimeType.toLowerCase(Locale.US))); in caseInsensitiveKeys() 224 for (String mimeType : stockAndroidMimeMap.mimeTypes()) { in containsAllStockAndroidMappings_mimeToExt() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | IvfWriter.java | 56 String filename, String mimeType, int width, int height, int scale, in IvfWriter() argument 59 mMimeType = mimeType; in IvfWriter() 79 public IvfWriter(String filename, String mimeType, int width, int height) throws IOException { in IvfWriter() argument 80 this(filename, mimeType, width, height, 1, 1000000); in IvfWriter() 117 int frameCount, int width, int height, int scale, int rate, String mimeType) { in makeIvfHeader() argument 127 ivfHeader[10] = (byte) (MediaFormat.MIMETYPE_VIDEO_VP8.equals(mimeType) ? '8' : '9'); in makeIvfHeader()
|
D | MediaExtractorTest.java | 163 final String mimeType = trackFormatForDolbyVision.getString(MediaFormat.KEY_MIME); in testDolbyVisionMediaExtractorProfileDvheDtr() local 164 assertEquals("video/dolby-vision", mimeType); in testDolbyVisionMediaExtractorProfileDvheDtr() 180 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME); in testDolbyVisionMediaExtractorProfileDvheDtr() local 181 assertEquals("video/hevc", mimeType); in testDolbyVisionMediaExtractorProfileDvheDtr() 193 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME); in testDolbyVisionMediaExtractorProfileDvheStn() local 194 assertEquals("video/dolby-vision", mimeType); in testDolbyVisionMediaExtractorProfileDvheStn() 232 final String mimeType = trackFormatForDolbyVision.getString(MediaFormat.KEY_MIME); in testDolbyVisionMediaExtractorProfileDvheSt() local 233 assertEquals("video/dolby-vision", mimeType); in testDolbyVisionMediaExtractorProfileDvheSt() 249 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME); in testDolbyVisionMediaExtractorProfileDvheSt() local 250 assertEquals("video/hevc", mimeType); in testDolbyVisionMediaExtractorProfileDvheSt() [all …]
|
D | MediaDrmMockTest.java | 73 String mimeType = "video/mp4"; in testIsMimeTypeSupported() local 74 assertTrue(MediaDrm.isCryptoSchemeSupported(mockScheme, mimeType)); in testIsMimeTypeSupported() 81 String mimeType = "video/foo"; in testIsMimeTypeNotSupported() local 82 assertFalse(MediaDrm.isCryptoSchemeSupported(mockScheme, mimeType)); in testIsMimeTypeNotSupported() 248 String mimeType = "video/iso.segment"; in testGetKeyRequest() local 249 KeyRequest request = md.getKeyRequest(sessionId, initData, mimeType, in testGetKeyRequest() 257 assertTrue(mimeType.equals(md.getPropertyString("mock-mimetype"))); in testGetKeyRequest() 281 String mimeType = "video/iso.segment"; in testGetKeyRequestNoOptionalParameters() local 282 KeyRequest request = md.getKeyRequest(sessionId, initData, mimeType, in testGetKeyRequestNoOptionalParameters() 290 assertTrue(mimeType.equals(md.getPropertyString("mock-mimetype"))); in testGetKeyRequestNoOptionalParameters() [all …]
|
D | NativeMediaDrmClearkeyTest.java | 81 public String mimeType; field in NativeMediaDrmClearkeyTest.PlaybackParams 213 … UUID drmSchemeUuid, String mimeType, /*String initDataType,*/ Uri audioUrl, Uri videoUrl, in testClearKeyPlayback() argument 247 videoWidth + "x" + videoHeight + " resolution for " + mimeType); in testClearKeyPlayback() 253 params.mimeType = mimeType; in testClearKeyPlayback()
|
D | MediaCodecTest.java | 172 String mimeType = format.getString(MediaFormat.KEY_MIME); in verifyException() local 173 if (!supportsCodec(mimeType, isEncoder)) { in verifyException() 175 + " found for mimeType= " + mimeType); in verifyException() 179 final boolean isVideoEncoder = isEncoder && mimeType.startsWith("video/"); in verifyException() 615 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in testAsyncReset() local 616 final MediaCodec mediaCodec = MediaCodec.createDecoderByType(mimeType); in testAsyncReset() 1063 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in testDecodeAfterFlush() 1064 mediaCodec = MediaCodec.createDecoderByType(mimeType); in testDecodeAfterFlush() 1254 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in runDecodeShortInput() local 1255 if (!supportsCodec(mimeType, false)) { in runDecodeShortInput() [all …]
|
D | MediaSyncTest.java | 650 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in setup() local 651 if (!MediaUtils.hasDecoder(mimeType)) { in setup() 652 Log.i(LOG_TAG, "No decoder found for mimeType= " + mimeType); in setup() 655 mDecoder = MediaCodec.createDecoderByType(mimeType); in setup()
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmSupportInfoTest.java | 126 private static void checkAddInvalidMimeType(String mimeType) throws Exception { in checkAddInvalidMimeType() argument 129 info.addMimeType(mimeType); in checkAddInvalidMimeType() 130 fail("Mime type '" + mimeType + "' was accepted for DrmSupportInfo"); in checkAddInvalidMimeType() 136 private static void checkAddValidMimeType(String mimeType) throws Exception { in checkAddValidMimeType() argument 138 info.addMimeType(mimeType); in checkAddValidMimeType() 142 assertEquals(mime, mimeType); in checkAddValidMimeType()
|
D | DrmInfoRequestTest.java | 101 private static void checkInvalidMimeType(String mimeType) throws Exception { in checkInvalidMimeType() argument 103 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkInvalidMimeType() 104 fail("Mime type " + mimeType + " was accepted for DrmInfoRequest"); in checkInvalidMimeType() 110 private static void checkGetMimeType(String mimeType) throws Exception { in checkGetMimeType() argument 111 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkGetMimeType() 112 assertEquals(request.getMimeType(), mimeType); in checkGetMimeType() local
|
D | DrmInfoTest.java | 121 private static void checkInvalidMimeType(String mimeType) throws Exception { in checkInvalidMimeType() argument 123 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, mimeType); in checkInvalidMimeType() 124 fail("Mime type " + mimeType + " was accepted for DrmInfo"); in checkInvalidMimeType() 135 private static void checkGetMimeType(String mimeType) throws Exception { in checkGetMimeType() argument 136 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, mimeType); in checkGetMimeType() 137 assertEquals(info.getMimeType(), mimeType); in checkGetMimeType() local
|
D | DRMTest.java | 195 int type, HashMap<String, String> request, String mimeType) throws Exception { in executeAcquireDrmInfo() argument 196 DrmInfoRequest infoRequest = new DrmInfoRequest(type, mimeType); in executeAcquireDrmInfo() 326 mDrmRights = new DrmRights(infoStatus.data, infoStatus.mimeType); in onEvent()
|
/cts/tests/video/src/android/video/cts/ |
D | CodecInfo.java | 58 String codecName, String mimeType, int w, int h, int maxFps) { in getSupportedFormatInfo() argument 66 CodecCapabilities cap = codec.getCodecInfo().getCapabilitiesForType(mimeType); in getSupportedFormatInfo() 84 MediaFormat format = MediaFormat.createVideoFormat(mimeType, w, h); in getSupportedFormatInfo()
|
D | VideoEncoderDecoderTest.java | 205 private void perf(String mimeType, int w, int h, boolean isGoog, int ix) throws Exception { in perf() argument 206 doTest(mimeType, w, h, true /* isPerf */, isGoog, ix); in perf() 210 private void qual(String mimeType, int w, int h, boolean isGoog, int ix) throws Exception { in qual() argument 211 doTest(mimeType, w, h, false /* isPerf */, isGoog, ix); in qual() 215 private void qual(String mimeType, int w, int h, boolean isGoog, int ix, double margin) in qual() argument 218 doTest(mimeType, w, h, false /* isPerf */, isGoog, ix); in qual() 687 private void doTest(String mimeType, int w, int h, boolean isPerf, boolean isGoog, int ix) in doTest() argument 689 MediaFormat format = MediaFormat.createVideoFormat(mimeType, w, h); in doTest() 706 CodecInfo infoEnc = CodecInfo.getSupportedFormatInfo(encoderName, mimeType, w, h, MAX_FPS); in doTest() 763 format.setString(MediaFormat.KEY_MIME, mimeType); in doTest() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
D | MyDocumentsProvider.java | 119 private Doc buildDoc(String docId, String displayName, String mimeType, in buildDoc() argument 124 doc.mimeType = mimeType; in buildDoc() 208 public String mimeType; field in MyDocumentsProvider.Doc 219 row.add(Document.COLUMN_MIME_TYPE, mimeType); in include() 231 if (Document.MIME_TYPE_DIR.equals(doc.mimeType)) { in isChildDocument() 241 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() argument 244 final Doc doc = buildDoc(docId, displayName, mimeType, null); in createDocument() 284 final Doc docCopy = buildDoc(doc.docId + "_copy", doc.displayName + "_COPY", doc.mimeType, in copyDocument()
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewSyncLoader.java | 209 final String mimeType, final String encoding) { in loadDataAndWaitForCompletion() argument 210 callAndWait(() -> mWebView.loadData(data, mimeType, encoding)); in loadDataAndWaitForCompletion() 220 final String data, final String mimeType, final String encoding, in loadDataWithBaseURLAndWaitForCompletion() argument 223 () -> mWebView.loadDataWithBaseURL(baseUrl, data, mimeType, encoding, historyUrl)); in loadDataWithBaseURLAndWaitForCompletion()
|
/cts/tests/tests/assist/common/src/android/assist/common/ |
D | MyWebView.java | 39 public void myLoadData(String url, String data, String mimeType, String encoding) { in myLoadData() argument 41 super.loadData(data, mimeType, encoding); in myLoadData()
|
/cts/tests/tests/nativemedia/sl/src/ |
D | SLObjectCreationTest.cpp | 138 formatMimeSrc.mimeType = (SLchar *) NULL; in UriSourceInitialization() 150 formatMimeSrc.mimeType = (SLchar *) NULL; in FdSourceInitialization() 232 formatMimeSrc.mimeType = (SLchar *) "video/mp2ts"; in AudioPlayerFromTsAbqCreation() 269 formatMimeSrc.mimeType = (SLchar *)"audio/aac-adts"; in AudioPlayerFromAdtsAbqToPcmBqCreation()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 409 public String getBinaryUrl(String mimeType, int contentLength) { in getBinaryUrl() argument 413 sb.append(mimeType); in getBinaryUrl() 597 String mimeType = null; in getResponse() local 602 mimeType = pair.getValue(); in getResponse() 607 if (length > 0 && mimeType != null) { in getResponse() 609 entity.setContentType(mimeType); in getResponse() 613 response.addHeader("Content-Type", mimeType); in getResponse() 640 String mimeType = in getResponse() local 642 if (mimeType == null) { in getResponse() 643 mimeType = "text/html"; in getResponse() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_TestDataBuilder.java | 272 public TestData newDataRow(String mimeType) { in newDataRow() argument 273 return new TestData(this, mimeType); in newDataRow() 325 public TestData(TestRawContact rawContact, String mimeType) { in TestData() argument 327 mValues.put(Data.MIMETYPE, mimeType); in TestData()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | EphemeralTest.java | 485 String action, String category, String mimeType) { in makeArgs() argument 494 if (mimeType != null && mimeType.length() > 0) { in makeArgs() 495 testArgs.put("mime_type", mimeType); in makeArgs()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStoreUtils.java | 91 @NonNull String mimeType) { in PendingParams() argument 96 this.insertValues.put(MediaColumns.MIME_TYPE, Objects.requireNonNull(mimeType)); in PendingParams()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStoreUtils.java | 97 @NonNull String mimeType) { in PendingParams() argument 102 this.insertValues.put(MediaColumns.MIME_TYPE, Objects.requireNonNull(mimeType)); in PendingParams()
|
D | MediaStore_DownloadsTest.java | 174 final String mimeType = "text/html"; in testInsertDownload() local 179 mExternalDownloads, displayName, mimeType); in testInsertDownload() 200 assertEquals(mimeType, in testInsertDownload() 337 File file, String mimeType, int resourceId) throws Exception { in insertImage() argument 351 values.put(Images.Media.MIME_TYPE, mimeType); in insertImage()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 121 protected byte[] readTypedFully(Uri uri, String mimeType) throws IOException { in readTypedFully() argument 124 .openTypedAssetFileDescriptor(uri, mimeType, null, null); in readTypedFully()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-mediadrm-jni.cpp | 45 jfieldID mimeType; member 52 jstring mimeType; member 156 params.mimeType = static_cast<jstring>(env->GetObjectField( in initPlaybackParams() 157 playbackParams, gFieldIds.mimeType)); in initPlaybackParams() 978 gFieldIds.mimeType = env->GetFieldID(playbackParamsClass, in register_android_media_cts_NativeMediaDrmClearkeyTest()
|