Home
last modified time | relevance | path

Searched refs:mimeType (Results 1 – 25 of 69) sorted by relevance

123

/cts/tests/tests/mimemap/src/android/content/type/cts/
DMimeMapTest.java215 String mimeType = "application/vnd.ms-word.document.macroEnabled.12".toLowerCase(Locale.US); in nonLowercaseMimeType() local
216 assertBidirectional(mimeType, "docm"); in nonLowercaseMimeType()
221 String mimeType = mimeMap.guessMimeTypeFromExtension("apk"); in caseInsensitiveKeys() local
222 assertNotNull(mimeType); in caseInsensitiveKeys()
224 assertEquals(mimeType, mimeMap.guessMimeTypeFromExtension("APK")); in caseInsensitiveKeys()
225 assertEquals(mimeType, mimeMap.guessMimeTypeFromExtension("aPk")); in caseInsensitiveKeys()
227 assertEquals("apk", mimeMap.guessExtensionFromMimeType(mimeType)); in caseInsensitiveKeys()
229 mimeType.toUpperCase(Locale.US))); in caseInsensitiveKeys()
231 mimeType.toLowerCase(Locale.US))); in caseInsensitiveKeys()
254 for (String mimeType : stockAndroidMimeMap.mimeTypes()) { in containsAllStockAndroidMappings_mimeToExt()
[all …]
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/assertions/
DMimeGroupAssertions.java26 public abstract void assertMatchedByMimeGroup(String mimeGroup, String mimeType); in assertMatchedByMimeGroup() argument
28 public abstract void assertNotMatchedByMimeGroup(String mimeGroup, String mimeType); in assertNotMatchedByMimeGroup() argument
45 for (String mimeType: mimeTypes) { in assertMatchedByMimeGroup()
46 assertMatchedByMimeGroup(mimeGroup, mimeType); in assertMatchedByMimeGroup()
51 for (String mimeType: mimeTypes) { in assertNotMatchedByMimeGroup()
52 assertNotMatchedByMimeGroup(mimeGroup, mimeType); in assertNotMatchedByMimeGroup()
74 public void assertMatchedByMimeGroup(String mimeGroup, String mimeType) { in noOp()
78 public void assertNotMatchedByMimeGroup(String mimeGroup, String mimeType) { in noOp()
109 public void assertMatchedByMimeGroup(String mimeGroup, String mimeType) {
110 other.assertMatchedByMimeGroup(mimeGroup, mimeType);
[all …]
DAssertionsByIntentResolution.java51 public void assertMatchedByMimeGroup(String mimeGroup, String mimeType) { in assertMatchedByMimeGroup() argument
52 resolve(mContext, intentSend(mimeType)) in assertMatchedByMimeGroup()
57 public void assertNotMatchedByMimeGroup(String mimeGroup, String mimeType) { in assertNotMatchedByMimeGroup() argument
58 resolve(mContext, intentSend(mimeType)) in assertNotMatchedByMimeGroup()
74 for (String mimeType: mimeTypes) { in assertMimeGroupInternal()
75 assertMatchedByMimeGroup(mimeGroup, mimeType); in assertMimeGroupInternal()
115 private static Intent intentSend(String mimeType) { in intentSend() argument
118 sendIntent.setType(mimeType); in intentSend()
DAssertionsByGroupData.java30 public void assertMatchedByMimeGroup(String mimeGroup, String mimeType) { in assertMatchedByMimeGroup() argument
35 public void assertNotMatchedByMimeGroup(String mimeGroup, String mimeType) { in assertNotMatchedByMimeGroup() argument
/cts/tests/tests/media/src/android/media/cts/
DDrmInitDataTest.java34 String mimeType = "mime/type"; in testSchemeInitDataConstructor() local
37 new DrmInitData.SchemeInitData(uuid, mimeType, data); in testSchemeInitDataConstructor()
39 assertSame(mimeType, schemeInitData.mimeType); in testSchemeInitDataConstructor()
DIvfWriter.java56 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()
DMediaExtractorTest.java219 final String mimeType = trackFormatForDolbyVision.getString(MediaFormat.KEY_MIME); in testDolbyVisionMediaExtractorProfileDvheDtr() local
220 assertEquals("video/dolby-vision", mimeType); in testDolbyVisionMediaExtractorProfileDvheDtr()
236 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME); in testDolbyVisionMediaExtractorProfileDvheDtr() local
237 assertEquals("video/hevc", mimeType); in testDolbyVisionMediaExtractorProfileDvheDtr()
251 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME); in SKIP_testDolbyVisionMediaExtractorProfileDvheStn() local
252 assertEquals("video/dolby-vision", mimeType); in SKIP_testDolbyVisionMediaExtractorProfileDvheStn()
291 final String mimeType = trackFormatForDolbyVision.getString(MediaFormat.KEY_MIME); in testDolbyVisionMediaExtractorProfileDvheSt() local
292 assertEquals("video/dolby-vision", mimeType); in testDolbyVisionMediaExtractorProfileDvheSt()
308 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME); in testDolbyVisionMediaExtractorProfileDvheSt() local
309 assertEquals("video/hevc", mimeType); in testDolbyVisionMediaExtractorProfileDvheSt()
[all …]
DNativeMediaDrmClearkeyTest.java81 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()
DEncodeVirtualDisplayWithCompositionTestImpl.java142 void runTestRenderingInSeparateThread(final Context context, final String mimeType, in runTestRenderingInSeparateThread() argument
146 context, mimeType, w, h, runRemotely, multipleWindows, /* degrees */ 0, null); in runTestRenderingInSeparateThread()
149 void runTestRenderingInSeparateThread(final Context context, final String mimeType, in runTestRenderingInSeparateThread() argument
157 context, mimeType, w, h, runRemotely, multipleWindows, in runTestRenderingInSeparateThread()
173 private void doTestRenderingOutput(final Context context, String mimeType, int w, int h, in doTestRenderingOutput() argument
177 Log.i(TAG, "doTestRenderingOutput for type:" + mimeType + " w:" + w + " h:" + h); in doTestRenderingOutput()
182 mDecoder = MediaCodec.createDecoderByType(mimeType); in doTestRenderingOutput()
186 MediaFormat decoderFormat = MediaFormat.createVideoFormat(mimeType, w, h); in doTestRenderingOutput()
204 mEncodingSurface = mEncodingHelper.startEncoding(mimeType, w, h, in doTestRenderingOutput()
521 Surface startEncoding(String mimeType, int w, int h, EncoderEventListener eventListener) { in startEncoding() argument
[all …]
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/preferred/
DPreferredActivitiesTest.java109 addMimeTypeToGroup(GROUP_FIRST, mimeType()); in testRemoveFromGroup()
114 removeMimeTypeFromGroup(GROUP_FIRST, mimeType()); in testRemoveFromGroup()
129 addMimeTypeToGroup(GROUP_FIRST, mimeType()); in testAddToGroup()
154 addMimeTypeToGroup(GROUP_FIRST, mimeType()); in testClearGroup()
174 addMimeTypeToGroup(GROUP_FIRST, mimeType()); in testModifyGroupWithoutActualGroupChanges()
179 addMimeTypeToGroup(GROUP_FIRST, mimeType()); in testModifyGroupWithoutActualGroupChanges()
204 addMimeTypeToGroup(GROUP_THIRD, mimeType()); in testModifyGroupWithoutActualIntentFilterChanges()
205 addMimeTypeToGroup(GROUP_SECOND, mimeType()); in testModifyGroupWithoutActualIntentFilterChanges()
210 removeMimeTypeFromGroup(GROUP_THIRD, mimeType()); in testModifyGroupWithoutActualIntentFilterChanges()
215 addMimeTypeToGroup(GROUP_THIRD, mimeType()); in testModifyGroupWithoutActualIntentFilterChanges()
[all …]
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/
DMimeGroupOperations.java40 public final void assertMatchedByMimeGroup(String mimeGroup, String mimeType) { in assertMatchedByMimeGroup() argument
41 mAssertions.assertMatchedByMimeGroup(mimeGroup, mimeType); in assertMatchedByMimeGroup()
45 public final void assertNotMatchedByMimeGroup(String mimeGroup, String mimeType) { in assertNotMatchedByMimeGroup() argument
46 mAssertions.assertNotMatchedByMimeGroup(mimeGroup, mimeType); in assertNotMatchedByMimeGroup()
/cts/tests/tests/drm/src/android/drm/cts/
DDrmInfoRequestTest.java101 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
DDrmSupportInfoTest.java126 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()
DDrmInfoTest.java121 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
/cts/tests/video/src/android/video/cts/
DCodecInfo.java58 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()
/cts/tests/mediapc/src/android/mediapc/cts/
DFrameDropTest.java37 public FrameDropTest(String mimeType, String decoderName, boolean isAsync) { in FrameDropTest() argument
38 super(mimeType, decoderName, isAsync); in FrameDropTest()
DAdaptivePlaybackFrameDropTest.java39 public AdaptivePlaybackFrameDropTest(String mimeType, String decoderName, boolean isAsync) { in AdaptivePlaybackFrameDropTest() argument
40 super(mimeType, decoderName, isAsync); in AdaptivePlaybackFrameDropTest()
DMultiEncoderPerfTest.java49 public MultiEncoderPerfTest(String mimeType, String encoderName, boolean isAsync) { in MultiEncoderPerfTest() argument
50 super(mimeType, null, isAsync); in MultiEncoderPerfTest()
DMultiDecoderPerfTest.java48 public MultiDecoderPerfTest(String mimeType, String testFile, String decoderName, in MultiDecoderPerfTest() argument
50 super(mimeType, testFile, isAsync); in MultiDecoderPerfTest()
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/
DSimPhonebookContract_ElementaryFilesNoSimTest.java63 String mimeType = mResolver.getType(ElementaryFiles.CONTENT_URI); in getType_elementaryFiles() local
65 assertThat(mimeType).isEqualTo(ElementaryFiles.CONTENT_TYPE); in getType_elementaryFiles()
70 String mimeType = mResolver.getType( in getType_itemUri() local
73 assertThat(mimeType).isEqualTo(ElementaryFiles.CONTENT_ITEM_TYPE); in getType_itemUri()
/cts/tests/tests/assist/common/src/android/assist/common/
DMyWebView.java39 public void myLoadData(String url, String data, String mimeType, String encoding) { in myLoadData() argument
41 super.loadData(data, mimeType, encoding); in myLoadData()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewSyncLoader.java209 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/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DMyDocumentsProvider.java119 private Doc buildDoc(String docId, String displayName, String mimeType, in buildDoc() argument
124 doc.mimeType = mimeType; in buildDoc()
209 public String mimeType; field in MyDocumentsProvider.Doc
220 row.add(Document.COLUMN_MIME_TYPE, mimeType); in include()
232 if (Document.MIME_TYPE_DIR.equals(doc.mimeType)) { in isChildDocument()
242 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() argument
245 final Doc doc = buildDoc(docId, displayName, mimeType, null); in createDocument()
285 final Doc docCopy = buildDoc(doc.docId + "_copy", doc.displayName + "_COPY", doc.mimeType, in copyDocument()
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp138 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/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DDataSharingService.java132 public void setMimeType(String mimeType) { in setMimeType() argument
133 mMimeType = mimeType; in setMimeType()

123