/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | IconUtils.java | 32 private static void add(String mimeType, int resId) { argument 33 if (sMimeIcons.put(mimeType, resId) != null) { 34 throw new RuntimeException(mimeType + " already registered!"); 217 Context context, String mimeType, String authority, String docId, int mode) { 218 if (Document.MIME_TYPE_DIR.equals(mimeType)) { 232 return loadMimeIcon(context, mimeType); 235 public static Drawable loadMimeIcon(Context context, String mimeType) { argument 236 if (Document.MIME_TYPE_DIR.equals(mimeType)) { 241 Integer resId = sMimeIcons.get(mimeType); 246 if (mimeType 216 loadMimeIcon( Context context, String mimeType, String authority, String docId, int mode) argument [all...] |
H A D | FilteringCursorWrapper.java | 56 final String mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); 58 if (rejectMimes != null && MimePredicate.mimeMatches(rejectMimes, mimeType)) { 64 if (MimePredicate.mimeMatches(acceptMimes, mimeType)) {
|
/frameworks/av/drm/libdrmframework/include/ |
H A D | DrmManager.h | 77 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 88 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 104 int openConvertSession(int uniqueId, const String8& mimeType); 118 const String8& mimeType); 136 String8 getSupportedPlugInId(int uniqueId, const String8& path, const String8& mimeType); 138 String8 getSupportedPlugInId(const String8& mimeType);
|
H A D | NoOpDrmManagerClientImpl.h | 36 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 42 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 51 int openConvertSession(int uniqueId, const String8& mimeType); 60 const String8& mimeType);
|
H A D | DrmManagerClientImpl.h | 109 virtual bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 164 * @param[in] mimeType Mime type of the content or null. 168 virtual int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 248 * @param[in] mimeType Description/MIME type of the input data packet 251 virtual int openConvertSession(int uniqueId, const String8& mimeType); 328 * @param[in] mimeType Mime type of the protected content 333 const String8& mimeType);
|
H A D | DrmManagerService.h | 83 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 94 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 110 int openConvertSession(int uniqueId, const String8& mimeType); 125 const String8& mimeType);
|
/frameworks/av/include/drm/ |
H A D | DrmManagerClient.h | 89 * @param[in] mimeType Mime type of the protected content 93 sp<DecryptHandle> openDecryptSession(const DrmBuffer& buf, const String8& mimeType); 244 bool canHandle(const String8& path, const String8& mimeType); 294 * @param[in] mimeType Mime type of the content or null. 298 int getDrmObjectType(const String8& path, const String8& mimeType); 335 * @param[in] mimeType Description/MIME type of the input data packet 338 int openConvertSession(const String8& mimeType);
|
H A D | DrmSupportInfo.h | 133 * @param[in] mimeType mimetype to be added 136 status_t addMimeType(const String8& mimeType); 164 * @param[in] mimeType MIME type 169 bool isSupportedMimeType(const String8& mimeType) const;
|
/frameworks/av/include/media/ |
H A D | IMediaHTTPConnection.h | 40 virtual status_t getMIMEType(String8 *mimeType) = 0;
|
/frameworks/base/core/java/android/webkit/ |
H A D | URLUtil.java | 297 * @param mimeType Mime-type of the content or null 304 String mimeType) { 346 if (mimeType != null) { 347 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); 353 if (mimeType != null && mimeType.toLowerCase(Locale.ROOT).startsWith("text/")) { 354 if (mimeType.equalsIgnoreCase("text/html")) { 364 if (mimeType != null) { 370 if (typeFromExt != null && !typeFromExt.equalsIgnoreCase(mimeType)) { 371 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); 301 guessFileName( String url, String contentDisposition, String mimeType) argument [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | ImportTestProvider.java | 45 final String mimeType = expectedContentValues.getAsString(Data.MIMETYPE); 48 if (mMimeTypeToExpectedContentValues.containsKey(mimeType)) { 49 contentValuesCollection = mMimeTypeToExpectedContentValues.get(mimeType); 52 mMimeTypeToExpectedContentValues.put(mimeType, contentValuesCollection); 86 final String mimeType = actualContentValues.getAsString(Data.MIMETYPE); 87 if (!mMimeTypeToExpectedContentValues.containsKey(mimeType)) { 88 TestCase.fail("Unregistered MimeType " + mimeType); 109 mimeType, actualContentValues.toString())); */ 116 mMimeTypeToExpectedContentValues.get(mimeType); 118 TestCase.fail("ContentValues for MimeType " + mimeType [all...] |
/frameworks/base/drm/java/android/drm/ |
H A D | DrmManagerClient.java | 473 * @param mimeType MIME type of the object to be handled. 477 public boolean canHandle(String path, String mimeType) { argument 478 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { 481 return _canHandle(mUniqueId, path, mimeType); 488 * @param mimeType MIME type of the object to be handled 492 public boolean canHandle(Uri uri, String mimeType) { argument 493 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) { 496 return canHandle(convertUriToPath(uri), mimeType); 564 getDrmObjectType(String path, String mimeType) argument 581 getDrmObjectType(Uri uri, String mimeType) argument 754 openConvertSession(String mimeType) argument 882 _canHandle(int uniqueId, String path, String mimeType) argument 891 _getDrmObjectType(int uniqueId, String path, String mimeType) argument 901 _openConvertSession(int uniqueId, String mimeType) argument [all...] |
H A D | DrmOutputStream.java | 56 public DrmOutputStream(DrmManagerClient client, ParcelFileDescriptor pfd, String mimeType) argument 62 mSessionId = mClient.openConvertSession(mimeType); 64 throw new UnknownServiceException("Failed to open DRM session for " + mimeType);
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
H A D | StubProvider.java | 185 public String createDocument(String parentId, String mimeType, String displayName) argument 188 File file = createFile(parent, mimeType, displayName); 190 final StubDocument document = StubDocument.createRegularDocument(file, mimeType, parent); 296 StubDocument newDoc = StubDocument.createRegularDocument(after, oldDoc.mimeType, 366 for (final String mimeType : document.streamTypes) { 369 if (mimeType.equals(mimeTypeFilter)) { 519 String mimeType = extras.getString(Document.COLUMN_MIME_TYPE); 527 documentId = createDocument(rootId, mimeType, name, flags, streamTypes); 536 public String createDocument(String parentId, String mimeType, String displayName, int flags, argument 540 File file = createFile(parent, mimeType, displayNam 554 createFile(StubDocument parent, String mimeType, String displayName) argument 648 createRegularFile(String rootId, String path, String mimeType, byte[] content) argument 661 createVirtualFile( String rootId, String path, String mimeType, List<String> streamTypes, byte[] content) argument 692 createFile(String rootId, String path, String mimeType, byte[] content) argument 748 public final String mimeType; field in class:StubProvider.StubDocument 754 StubDocument(File file, String mimeType, List<String> streamTypes, int flags, StubDocument parent) argument 779 createRegularDocument( File file, String mimeType, StubDocument parent) argument 790 createDocumentWithFlags( File file, String mimeType, StubDocument parent, int flags, List<String> streamTypes) argument 796 createVirtualDocument( File file, String mimeType, List<String> streamTypes, StubDocument parent) argument [all...] |
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 50 bool DrmManagerClient::canHandle(const String8& path, const String8& mimeType) { argument 51 return mDrmManagerClientImpl->canHandle(mUniqueId, path, mimeType); 71 int DrmManagerClient::getDrmObjectType(const String8& path, const String8& mimeType) { argument 72 return mDrmManagerClientImpl->getDrmObjectType( mUniqueId, path, mimeType); 103 int DrmManagerClient::openConvertSession(const String8& mimeType) { argument 104 return mDrmManagerClientImpl->openConvertSession(mUniqueId, mimeType); 134 const DrmBuffer& buf, const String8& mimeType) { 135 return mDrmManagerClientImpl->openDecryptSession(mUniqueId, buf, mimeType); 133 openDecryptSession( const DrmBuffer& buf, const String8& mimeType) argument
|
H A D | DrmManagerClientImpl.cpp | 119 int uniqueId, const String8& path, const String8& mimeType) { 121 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { 122 retCode = getDrmManagerService()->canHandle(uniqueId, path, mimeType); 153 String8 mimeType = EMPTY_STRING; local 155 mimeType = getDrmManagerService()->getOriginalMimeType(uniqueId, path, fd); 157 return mimeType; 161 int uniqueId, const String8& path, const String8& mimeType) { 163 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { 165 getDrmManagerService()->getDrmObjectType(uniqueId, path, mimeType); 226 int uniqueId, const String8& mimeType) { 118 canHandle( int uniqueId, const String8& path, const String8& mimeType) argument 160 getDrmObjectType( int uniqueId, const String8& path, const String8& mimeType) argument 225 openConvertSession( int uniqueId, const String8& mimeType) argument 277 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | DrmConvertSession.java | 44 * @param mimeType Mimetype of content that shall be converted. 47 public static DrmConvertSession open(Context context, String mimeType) { argument 50 if (context != null && mimeType != null && !mimeType.equals("")) { 54 convertSessionId = drmClient.openConvertSession(mimeType); 56 Log.w(TAG, "Conversion of Mimetype: " + mimeType
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaScanner.cpp | 204 virtual status_t setMimeType(const char* mimeType) argument 206 ALOGV("setMimeType: %s", mimeType); 208 if ((mimeTypeStr = mEnv->NewStringUTF(mimeType)) == NULL) { 270 jstring mimeType, jobject client) 292 (mimeType ? env->GetStringUTFChars(mimeType, NULL) : NULL); 293 if (mimeType && mimeTypeStr == NULL) { // Out of memory 305 if (mimeType) { 306 env->ReleaseStringUTFChars(mimeType, mimeTypeStr); 268 android_media_MediaScanner_processFile( JNIEnv *env, jobject thiz, jstring path, jstring mimeType, jobject client) argument
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
H A D | DocumentInfo.java | 51 public String mimeType; field in class:DocumentInfo 70 mimeType = null; 89 mimeType = DurableUtils.readNullableString(in); 108 DurableUtils.writeNullableString(out, mimeType); 157 this.mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); 231 return Document.MIME_TYPE_DIR.equals(mimeType); 267 return derivedUri.hashCode() + mimeType.hashCode(); 283 && Objects.equals(mimeType, other.mimeType);
|
/frameworks/av/drm/libdrmframework/plugins/common/util/src/ |
H A D | MimeTypeUtil.cpp | 121 * @param mimeType - mimetype in lower case to convert. 125 String8 MimeTypeUtil::convertMimeType(String8& mimeType) { argument 126 String8 result = mimeType; 131 pMimeType = mimeType.string();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | WapPushOverSms.java | 197 String mimeType = pduDecoder.getValueString(); 206 if (mimeType != null && mimeType.equals(WspTypeDecoder.CONTENT_TYPE_B_PUSH_CO)) { 250 String contentType = ((mimeType == null) ? 251 Long.toString(binaryContentType) : mimeType); 259 result.mimeType = mimeType; 336 if (result.mimeType == null) { 342 intent.setType(result.mimeType); 369 handler.dispatchIntent(intent, getPermissionForType(result.mimeType), 554 getPermissionForType(String mimeType) argument 564 getAppOpsPermissionForIntent(String mimeType) argument 578 String mimeType; field in class:WapPushOverSms.DecodedResult [all...] |
/frameworks/av/media/libstagefright/include/ |
H A D | AACExtractor.h | 57 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
H A D | AMRExtractor.h | 58 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
/frameworks/base/core/java/android/content/ |
H A D | ClipDescription.java | 153 * @param mimeType The desired MIME type. May be a pattern. 157 public boolean hasMimeType(String mimeType) { argument 159 if (compareMimeTypes(mMimeTypes[i], mimeType)) { 170 * @param mimeType The desired MIME type. May be a pattern. 174 public String[] filterMimeTypes(String mimeType) { argument 177 if (compareMimeTypes(mMimeTypes[i], mimeType)) {
|
/frameworks/base/media/java/android/media/ |
H A D | MediaScannerConnection.java | 160 * @param mimeType an optional mimeType for the file. 161 * If mimeType is null, then the mimeType will be inferred from the file extension. 163 public void scanFile(String path, String mimeType) { argument 172 mService.requestScanFile(path, mimeType, mListener); 210 String mimeType = mMimeTypes != null ? mMimeTypes[mNextPath] : null; 211 mConnection.scanFile(mPaths[mNextPath], mimeType); 219 * <var>path</var> and <var>mimeType</var> when the connection is 227 * If mimeType i [all...] |