Home
last modified time | relevance | path

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

12

/cts/tests/tests/drm/src/android/drm/cts/
DDrmInfoRequestTest.java99 private static void checkInvalidMimeType(String mimeType) throws Exception { in checkInvalidMimeType() argument
101 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkInvalidMimeType()
102 fail("Mime type " + mimeType + " was accepted for DrmInfoRequest"); in checkInvalidMimeType()
108 private static void checkGetMimeType(String mimeType) throws Exception { in checkGetMimeType() argument
109 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkGetMimeType()
110 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.java118 private static void checkInvalidMimeType(String mimeType) throws Exception { in checkInvalidMimeType() argument
120 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, mimeType); in checkInvalidMimeType()
121 fail("Mime type " + mimeType + " was accepted for DrmInfo"); in checkInvalidMimeType()
132 private static void checkGetMimeType(String mimeType) throws Exception { in checkGetMimeType() argument
133 DrmInfo info = new DrmInfo(DEFAULT_TYPE, DEFAULT_DATA, mimeType); in checkGetMimeType()
134 assertEquals(info.getMimeType(), mimeType); in checkGetMimeType() local
DDRMTest.java169 int type, HashMap<String, String> request, String mimeType) throws Exception { in executeAcquireDrmInfo() argument
170 DrmInfoRequest infoRequest = new DrmInfoRequest(type, mimeType); in executeAcquireDrmInfo()
215 mDrmRights = new DrmRights(infoStatus.data, infoStatus.mimeType); in onEvent()
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DMyDocumentsProvider.java92 private Doc buildDoc(String docId, String displayName, String mimeType) { in buildDoc() argument
96 doc.mimeType = mimeType; in buildDoc()
153 public String mimeType; field in MyDocumentsProvider.Doc
163 row.add(Document.COLUMN_MIME_TYPE, mimeType); in include()
175 if (Document.MIME_TYPE_DIR.equals(doc.mimeType)) { in isChildDocument()
183 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() argument
186 final Doc doc = buildDoc(docId, displayName, mimeType); in createDocument()
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DVideoEncoderDecoderTest.java375 private void doTestGoog(String mimeType, int w, int h) throws Exception { in doTestGoog() argument
380 doTest(true /* isGoog */, mimeType, w, h); in doTestGoog()
383 private void doTestOther(String mimeType, int w, int h) throws Exception { in doTestOther() argument
388 doTest(false /* isGoog */, mimeType, w, h); in doTestOther()
391 private void doTestDefault(String mimeType, int w, int h) throws Exception { in doTestDefault() argument
392 String encoderName = getEncoderName(mimeType); in doTestDefault()
394 Log.i(TAG, "Encoder for " + mimeType + " not found"); in doTestDefault()
398 String decoderName = getDecoderName(mimeType); in doTestDefault()
400 Log.i(TAG, "Encoder for " + mimeType + " not found"); in doTestDefault()
404 doTestByName(encoderName, decoderName, mimeType, w, h); in doTestDefault()
[all …]
DCodecInfo.java56 String codecName, String mimeType, int w, int h) { in getSupportedFormatInfo() argument
64 CodecCapabilities cap = codec.getCodecInfo().getCapabilitiesForType(mimeType); in getSupportedFormatInfo()
/cts/tests/tests/media/src/android/media/cts/
DMediaDrmMockTest.java67 String mimeType = "video/mp4"; in testIsMimeTypeSupported() local
68 assertTrue(MediaDrm.isCryptoSchemeSupported(mockScheme, mimeType)); in testIsMimeTypeSupported()
75 String mimeType = "video/foo"; in testIsMimeTypeNotSupported() local
76 assertFalse(MediaDrm.isCryptoSchemeSupported(mockScheme, mimeType)); in testIsMimeTypeNotSupported()
242 String mimeType = "video/iso.segment"; in testGetKeyRequest() local
243 KeyRequest request = md.getKeyRequest(sessionId, initData, mimeType, in testGetKeyRequest()
251 assertTrue(mimeType.equals(md.getPropertyString("mock-mimetype"))); in testGetKeyRequest()
275 String mimeType = "video/iso.segment"; in testGetKeyRequestNoOptionalParameters() local
276 KeyRequest request = md.getKeyRequest(sessionId, initData, mimeType, in testGetKeyRequestNoOptionalParameters()
284 assertTrue(mimeType.equals(md.getPropertyString("mock-mimetype"))); in testGetKeyRequestNoOptionalParameters()
[all …]
DMediaCodecTest.java138 String mimeType = format.getString(MediaFormat.KEY_MIME); in verifyException() local
139 if (!supportsCodec(mimeType, isEncoder)) { in verifyException()
141 + " found for mimeType= " + mimeType); in verifyException()
823 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in testDecodeAfterFlush()
824 mediaCodec = MediaCodec.createDecoderByType(mimeType); in testDecodeAfterFlush()
955 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in runDecodeShortInput() local
956 if (!supportsCodec(mimeType, false)) { in runDecodeShortInput()
961 MediaCodec.createDecoderByType(mimeType); in runDecodeShortInput()
1374 private static MediaCodecInfo selectCodec(String mimeType) { in selectCodec() argument
1384 if (types[j].equalsIgnoreCase(mimeType)) { in selectCodec()
[all …]
DMediaSyncTest.java586 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in setup() local
587 if (!MediaUtils.hasDecoder(mimeType)) { in setup()
588 Log.i(LOG_TAG, "No decoder found for mimeType= " + mimeType); in setup()
591 mDecoder = MediaCodec.createDecoderByType(mimeType); in setup()
DEncodeDecodeTest.java329 private void setParameters(int width, int height, int bitRate, String mimeType, in setParameters() argument
337 mMimeType = mimeType; in setParameters()
495 private static int selectColorFormat(MediaCodecInfo codecInfo, String mimeType) { in selectColorFormat() argument
496 MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(mimeType); in selectColorFormat()
503 fail("couldn't find a good color format for " + codecInfo.getName() + " / " + mimeType); in selectColorFormat()
DDecoderTest.java1939 private boolean isVideoFeatureSupported(String mimeType, String feature) { in isVideoFeatureSupported() argument
1940 MediaFormat format = MediaFormat.createVideoFormat( mimeType, 1920, 1080); in isVideoFeatureSupported()
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp141 formatMimeSrc.mimeType = (SLchar *) NULL; in UriSourceInitialization()
153 formatMimeSrc.mimeType = (SLchar *) NULL; in FdSourceInitialization()
235 formatMimeSrc.mimeType = (SLchar *) "video/mp2ts"; in AudioPlayerFromTsAbqCreation()
272 formatMimeSrc.mimeType = (SLchar *)"audio/aac-adts"; in AudioPlayerFromAdtsAbqToPcmBqCreation()
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_TestDataBuilder.java264 public TestData newDataRow(String mimeType) { in newDataRow() argument
265 return new TestData(this, mimeType); in newDataRow()
317 public TestData(TestRawContact rawContact, String mimeType) { in TestData() argument
319 mValues.put(Data.MIMETYPE, mimeType); in TestData()
DSettingsTest.java171 String mimeType = cr.getType(uri); in tryBadTableAccess() local
173 + uri, mimeType); in tryBadTableAccess()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java473 public String getBinaryUrl(String mimeType, int contentLength) { in getBinaryUrl() argument
477 sb.append(mimeType); in getBinaryUrl()
661 String mimeType = null; in getResponse() local
666 mimeType = pair.getValue(); in getResponse()
671 if (length > 0 && mimeType != null) { in getResponse()
673 entity.setContentType(mimeType); in getResponse()
677 response.addHeader("Content-Type", mimeType); in getResponse()
704 String mimeType = in getResponse() local
706 if (mimeType == null) { in getResponse()
707 mimeType = "text/html"; in getResponse()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DMockContentProvider.java81 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, in writeDataToPipe() argument
DWebViewTest.java2138 public String mimeType;
2146 this.mimeType = mimetype;
2153 final String mimeType = "application/octet-stream";
2158 final String url = mWebServer.getBinaryUrl(mimeType, length);
2176 assertEquals(mimeType, listener.mimeType);
/cts/tests/tests/drm/lib/
DTestPlugin.h52 int onGetDrmObjectType(int uniqueId, const String8& path, const String8& mimeType);
DTestPlugin.cpp104 int uniqueId, const String8& path, const String8& mimeType) { in onGetDrmObjectType() argument
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java481 final String mimeType, final String encoding) {
485 mWebView.loadData(data, mimeType, encoding);
491 final String data, final String mimeType, final String encoding,
496 mWebView.loadDataWithBaseURL(baseUrl, data, mimeType, encoding,
/cts/tests/tests/media/libaudiojni/
Dappendix-b-1-2-recording.cpp152 mime.mimeType = (SLchar *) "audio/x-wav"; in TestAudioRecording()
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java500 String codecName, String mimeType, int width, int height) { in getAchievableFrameRatesFor() argument
501 VideoCapabilities cap = getVideoCapabilities(codecName, mimeType); in getAchievableFrameRatesFor()
/cts/tests/tests/content/src/android/content/cts/
DMockContentProvider.java368 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, in writeDataToPipe() argument
DIntentFilterTest.java956 public final String mimeType; field in IntentFilterTest.MatchCondition
964 mimeType = _mimeType; in MatchCondition()
982 int result = filter.match(mc.action, mc.mimeType, mc.data != null ? mc.data.getScheme() in checkMatches()
992 msg.append(mc.mimeType); in checkMatches()

12