/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmInfoRequestTest.java | 99 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
|
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 | 118 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
|
D | DRMTest.java | 169 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/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() 571 private void doTest(String mimeType, int w, int h, boolean isPerf, boolean isGoog, int ix) in doTest() argument 573 MediaFormat format = MediaFormat.createVideoFormat(mimeType, w, h); in doTest() 590 CodecInfo infoEnc = CodecInfo.getSupportedFormatInfo(encoderName, mimeType, w, h, MAX_FPS); in doTest() 643 format.setString(MediaFormat.KEY_MIME, mimeType); in doTest() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
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 | MediaCodecTest.java | 140 String mimeType = format.getString(MediaFormat.KEY_MIME); in verifyException() local 141 if (!supportsCodec(mimeType, isEncoder)) { in verifyException() 143 + " found for mimeType= " + mimeType); in verifyException() 894 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in testDecodeAfterFlush() 895 mediaCodec = MediaCodec.createDecoderByType(mimeType); in testDecodeAfterFlush() 1026 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in runDecodeShortInput() local 1027 if (!supportsCodec(mimeType, false)) { in runDecodeShortInput() 1032 MediaCodec.createDecoderByType(mimeType); in runDecodeShortInput() 1464 private static MediaCodecInfo selectCodec(String mimeType) { in selectCodec() argument 1474 if (types[j].equalsIgnoreCase(mimeType)) { in selectCodec() [all …]
|
D | MediaSyncTest.java | 646 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in setup() local 647 if (!MediaUtils.hasDecoder(mimeType)) { in setup() 648 Log.i(LOG_TAG, "No decoder found for mimeType= " + mimeType); in setup() 651 mDecoder = MediaCodec.createDecoderByType(mimeType); in setup()
|
D | DecodeAccuracyTestBase.java | 1293 private String mimeType = MIMETYPE_UNSET; field in VideoFormat 1327 public void setMimeType(String mimeType) { in setMimeType() argument 1328 this.mimeType = mimeType; in setMimeType() 1332 return mimeType; in getMimeType() 1756 public static boolean isVideo(String mimeType) { in isVideo() argument 1757 return mimeType.startsWith("video"); in isVideo()
|
D | EncodeDecodeTest.java | 334 private void setParameters(int width, int height, int bitRate, String mimeType, in setParameters() argument 342 mMimeType = mimeType; in setParameters() 531 private static int selectColorFormat(MediaCodecInfo codecInfo, String mimeType) { in selectColorFormat() argument 532 MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(mimeType); in selectColorFormat() 539 fail("couldn't find a good color format for " + codecInfo.getName() + " / " + mimeType); in selectColorFormat()
|
D | ExtractDecodeEditEncodeMuxTest.java | 286 private void setVideoMimeType(String mimeType) { in setVideoMimeType() argument 287 mOutputVideoMimeType = mimeType; in setVideoMimeType() 1212 private static MediaCodecInfo selectCodec(String mimeType) { in selectCodec() argument 1223 if (types[j].equalsIgnoreCase(mimeType)) { in selectCodec()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
D | MyDocumentsProvider.java | 96 private Doc buildDoc(String docId, String displayName, String mimeType, in buildDoc() argument 101 doc.mimeType = mimeType; in buildDoc() 174 public String mimeType; field in MyDocumentsProvider.Doc 185 row.add(Document.COLUMN_MIME_TYPE, mimeType); in include() 197 if (Document.MIME_TYPE_DIR.equals(doc.mimeType)) { in isChildDocument() 207 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() argument 210 final Doc doc = buildDoc(docId, displayName, mimeType, null); in createDocument() 250 final Doc docCopy = buildDoc(doc.docId + "_copy", doc.displayName + "_COPY", doc.mimeType, in copyDocument()
|
/cts/tests/tests/nativemedia/sl/src/ |
D | SLObjectCreationTest.cpp | 141 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/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 408 public String getBinaryUrl(String mimeType, int contentLength) { in getBinaryUrl() argument 412 sb.append(mimeType); in getBinaryUrl() 596 String mimeType = null; in getResponse() local 601 mimeType = pair.getValue(); in getResponse() 606 if (length > 0 && mimeType != null) { in getResponse() 608 entity.setContentType(mimeType); in getResponse() 612 response.addHeader("Content-Type", mimeType); in getResponse() 639 String mimeType = in getResponse() local 641 if (mimeType == null) { in getResponse() 642 mimeType = "text/html"; in getResponse() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContract_TestDataBuilder.java | 264 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()
|
D | SettingsTest.java | 179 String mimeType = cr.getType(uri); in tryBadTableAccess() local 181 + uri, mimeType); in tryBadTableAccess()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 90 protected byte[] readTypedFully(Uri uri, String mimeType) throws IOException { in readTypedFully() argument 93 .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
|
D | WebViewTest.java | 2224 public String mimeType; 2232 this.mimeType = mimetype; 2239 final String mimeType = "application/octet-stream"; 2244 final String url = mWebServer.getBinaryUrl(mimeType, length); 2262 assertEquals(mimeType, listener.mimeType);
|
/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 | 487 final String mimeType, final String encoding) { 491 mWebView.loadData(data, mimeType, encoding); 497 final String data, final String mimeType, final String encoding, 502 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()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | TriggerContentTest.java | 82 public boolean scan(Context context, String file, String mimeType) in scan() argument 86 new String[] { file.toString() }, new String[] { mimeType }, this); in scan()
|