/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 | MediaDrmMockTest.java | 67 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 …]
|
D | NativeMediaDrmClearkeyTest.java | 83 public String mimeType; field in NativeMediaDrmClearkeyTest.PlaybackParams 207 … UUID drmSchemeUuid, String mimeType, /*String initDataType,*/ Uri audioUrl, Uri videoUrl, in testClearKeyPlayback() argument 241 videoWidth + "x" + videoHeight + " resolution for " + mimeType); in testClearKeyPlayback() 247 params.mimeType = mimeType; in testClearKeyPlayback()
|
D | MediaCodecTest.java | 158 String mimeType = format.getString(MediaFormat.KEY_MIME); in verifyException() local 159 if (!supportsCodec(mimeType, isEncoder)) { in verifyException() 161 + " found for mimeType= " + mimeType); in verifyException() 165 final boolean isVideoEncoder = isEncoder && mimeType.startsWith("video/"); in verifyException() 601 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in testAsyncReset() local 602 final MediaCodec mediaCodec = MediaCodec.createDecoderByType(mimeType); in testAsyncReset() 1046 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in testDecodeAfterFlush() 1047 mediaCodec = MediaCodec.createDecoderByType(mimeType); in testDecodeAfterFlush() 1237 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in runDecodeShortInput() local 1238 if (!supportsCodec(mimeType, false)) { in runDecodeShortInput() [all …]
|
D | MediaSyncTest.java | 649 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()
|
D | DecodeAccuracyTestBase.java | 1565 private String mimeType = STRING_UNSET; field in VideoFormat 1591 public void setMimeType(String mimeType) { in setMimeType() argument 1592 this.mimeType = mimeType; in setMimeType() 1596 if (mimeType.equals(STRING_UNSET)) { in getMimeType() 1599 return mimeType; in getMimeType() 2095 public static boolean isVideo(String mimeType) { in isVideo() argument 2096 return mimeType.startsWith("video"); in isVideo()
|
/cts/tests/tests/drm/src/android/drm/cts/ |
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 | 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 | 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 | 188 int type, HashMap<String, String> request, String mimeType) throws Exception { in executeAcquireDrmInfo() argument 189 DrmInfoRequest infoRequest = new DrmInfoRequest(type, mimeType); in executeAcquireDrmInfo() 318 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 | 176 private void perf(String mimeType, int w, int h, boolean isGoog, int ix) throws Exception { in perf() argument 177 doTest(mimeType, w, h, true /* isPerf */, isGoog, ix); in perf() 181 private void qual(String mimeType, int w, int h, boolean isGoog, int ix) throws Exception { in qual() argument 182 doTest(mimeType, w, h, false /* isPerf */, isGoog, ix); in qual() 186 private void qual(String mimeType, int w, int h, boolean isGoog, int ix, double margin) in qual() argument 189 doTest(mimeType, w, h, false /* isPerf */, isGoog, ix); in qual() 658 private void doTest(String mimeType, int w, int h, boolean isPerf, boolean isGoog, int ix) in doTest() argument 660 MediaFormat format = MediaFormat.createVideoFormat(mimeType, w, h); in doTest() 677 CodecInfo infoEnc = CodecInfo.getSupportedFormatInfo(encoderName, mimeType, w, h, MAX_FPS); in doTest() 730 format.setString(MediaFormat.KEY_MIME, mimeType); in doTest() [all …]
|
/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/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
D | MyDocumentsProvider.java | 118 private Doc buildDoc(String docId, String displayName, String mimeType, in buildDoc() argument 123 doc.mimeType = mimeType; in buildDoc() 207 public String mimeType; field in MyDocumentsProvider.Doc 218 row.add(Document.COLUMN_MIME_TYPE, mimeType); in include() 230 if (Document.MIME_TYPE_DIR.equals(doc.mimeType)) { in isChildDocument() 240 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() argument 243 final Doc doc = buildDoc(docId, displayName, mimeType, null); in createDocument() 283 final Doc docCopy = buildDoc(doc.docId + "_copy", doc.displayName + "_COPY", doc.mimeType, in copyDocument()
|
/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 | 275 public TestData newDataRow(String mimeType) { in newDataRow() argument 276 return new TestData(this, mimeType); in newDataRow() 328 public TestData(TestRawContact rawContact, String mimeType) { in TestData() argument 330 mValues.put(Data.MIMETYPE, mimeType); in TestData()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | EphemeralTest.java | 421 String action, String category, String mimeType) { in makeArgs() argument 430 if (mimeType != null && mimeType.length() > 0) { in makeArgs() 431 testArgs.put("mime_type", mimeType); in makeArgs()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 105 protected byte[] readTypedFully(Uri uri, String mimeType) throws IOException { in readTypedFully() argument 108 .openTypedAssetFileDescriptor(uri, mimeType, null, null); in readTypedFully()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | MockContentProvider.java | 81 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, in writeDataToPipe() argument
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-mediadrm-jni.cpp | 45 jfieldID mimeType; member 52 jstring mimeType; member 154 params.mimeType = static_cast<jstring>(env->GetObjectField( in initPlaybackParams() 155 playbackParams, gFieldIds.mimeType)); in initPlaybackParams() 839 gFieldIds.mimeType = env->GetFieldID(playbackParamsClass, in register_android_media_cts_NativeMediaDrmClearkeyTest()
|
/cts/tests/tests/drm/lib/ |
D | TestPlugin.h | 52 int onGetDrmObjectType(int uniqueId, const String8& path, const String8& mimeType);
|
D | TestPlugin.cpp | 104 int uniqueId, const String8& path, const String8& mimeType) { in onGetDrmObjectType() argument
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 519 final String mimeType, final String encoding) { 523 mWebView.loadData(data, mimeType, encoding); 529 final String data, final String mimeType, final String encoding, 534 mWebView.loadDataWithBaseURL(baseUrl, data, mimeType, encoding,
|
/cts/tests/tests/media/libaudiojni/ |
D | appendix-b-1-2-recording.cpp | 150 mime.mimeType = (SLchar *) "audio/x-wav"; in TestAudioRecording()
|