Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
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()
DMediaDrmMockTest.java73 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 …]
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()
DMediaCodecTest.java171 String mimeType = format.getString(MediaFormat.KEY_MIME); in verifyException() local
172 if (!supportsCodec(mimeType, isEncoder)) { in verifyException()
174 + " found for mimeType= " + mimeType); in verifyException()
178 final boolean isVideoEncoder = isEncoder && mimeType.startsWith("video/"); in verifyException()
614 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in testAsyncReset() local
615 final MediaCodec mediaCodec = MediaCodec.createDecoderByType(mimeType); in testAsyncReset()
1062 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in testDecodeAfterFlush()
1063 mediaCodec = MediaCodec.createDecoderByType(mimeType); in testDecodeAfterFlush()
1253 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in runDecodeShortInput() local
1254 if (!supportsCodec(mimeType, false)) { in runDecodeShortInput()
[all …]
DMediaSyncTest.java649 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in setup() local
650 if (!MediaUtils.hasDecoder(mimeType)) { in setup()
651 Log.i(LOG_TAG, "No decoder found for mimeType= " + mimeType); in setup()
654 mDecoder = MediaCodec.createDecoderByType(mimeType); in setup()
/cts/tests/tests/drm/src/android/drm/cts/
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()
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
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
DDRMTest.java195 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/
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()
DVideoEncoderDecoderTest.java205 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/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/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()
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/
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/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/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java409 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/
DContactsContract_TestDataBuilder.java272 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/tests/tests/provider/src/android/provider/cts/
DMediaStoreUtils.java97 @NonNull String mimeType) { in PendingParams() argument
102 this.insertValues.put(MediaColumns.MIME_TYPE, Objects.requireNonNull(mimeType)); in PendingParams()
DMediaStore_DownloadsTest.java174 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/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStoreUtils.java91 @NonNull String mimeType) { in PendingParams() argument
96 this.insertValues.put(MediaColumns.MIME_TYPE, Objects.requireNonNull(mimeType)); in PendingParams()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DEphemeralTest.java485 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/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTestCase.java121 protected byte[] readTypedFully(Uri uri, String mimeType) throws IOException { in readTypedFully() argument
124 .openTypedAssetFileDescriptor(uri, mimeType, null, null); in readTypedFully()
/cts/tests/tests/webkit/src/android/webkit/cts/
DMockContentProvider.java81 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, in writeDataToPipe() argument
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp45 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()
/cts/tests/tests/drm/lib/
DTestPlugin.h52 int onGetDrmObjectType(int uniqueId, const String8& path, const String8& mimeType);

12