Searched refs:mimeType (Results 1 - 25 of 57) sorted by relevance

123

/frameworks/base/media/java/android/media/
H A DIMediaScannerService.aidl29 * @param mimeType an optional mimeType for the file.
30 * If mimeType is null, then the mimeType will be inferred from the file extension.
34 void requestScanFile(String path, String mimeType, in IMediaScannerListener listener);
40 * @param mimeType an optional mimeType for the file.
41 * If mimeType is null, then the mimeType will be inferred from the file extension.
43 void scanFile(String path, String mimeType);
[all...]
H A DMediaScannerClient.java26 public void scanFile(String path, String mimeType, long lastModified, long fileSize); argument
38 public void setMimeType(String mimeType); argument
H A DMediaFile.java91 String mimeType; field in class:MediaFile.MediaFileType
93 MediaFileType(int fileType, String mimeType) { argument
95 this.mimeType = mimeType;
103 static void addFileType(String extension, int fileType, String mimeType) { argument
104 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType));
105 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType));
220 public static int getFileTypeForMimeType(String mimeType) { argument
221 Integer value = sMimeTypeMap.get(mimeType);
H A DMediaScannerConnection.java158 * @param mimeType an optional mimeType for the file.
159 * If mimeType is null, then the mimeType will be inferred from the file extension.
161 public void scanFile(String path, String mimeType) { argument
170 mService.requestScanFile(path, mimeType, mListener);
208 String mimeType = mMimeTypes != null ? mMimeTypes[mNextPath] : null;
209 mConnection.scanFile(mPaths[mNextPath], mimeType);
217 * <var>path</var> and <var>mimeType</var> when the connection is
225 * If mimeType i
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DWapPushOverSms.java109 String mimeType = pduDecoder.getValueString();
110 if (mimeType == null) {
112 // TODO we should have more generic way to map binaryContentType code to mimeType.
115 mimeType = WspTypeDecoder.CONTENT_MIME_TYPE_B_DRM_RIGHTS_XML;
118 mimeType = WspTypeDecoder.CONTENT_MIME_TYPE_B_DRM_RIGHTS_WBXML;
121 mimeType = WspTypeDecoder.CONTENT_MIME_TYPE_B_PUSH_SI;
124 mimeType = WspTypeDecoder.CONTENT_MIME_TYPE_B_PUSH_SL;
127 mimeType = WspTypeDecoder.CONTENT_MIME_TYPE_B_PUSH_CO;
130 mimeType = WspTypeDecoder.CONTENT_MIME_TYPE_B_MMS;
133 mimeType
194 dispatchWapPdu_default(byte[] pdu, int transactionId, int pduType, String mimeType, int headerStartIndex, int headerLength) argument
[all...]
/frameworks/base/media/java/android/drm/mobile1/
H A DDrmRightsManager.java95 int mimeType = 0;
98 mimeType = DRM_MIMETYPE_RIGHTS_XML;
100 mimeType = DRM_MIMETYPE_RIGHTS_WBXML;
102 mimeType = DRM_MIMETYPE_MESSAGE;
104 throw new IllegalArgumentException("mimeType must be DRM_MIMETYPE_RIGHTS_XML or DRM_MIMETYPE_RIGHTS_WBXML or DRM_MIMETYPE_MESSAGE");
112 int res = nativeInstallDrmRights(rightsData, len, mimeType, rights);
193 * @param mimeType the mime type of this DRM rights object. the value of this field includes:
201 private native int nativeInstallDrmRights(InputStream data, int len, int mimeType, DrmRights rights); argument
H A DDrmRawContent.java132 int mimeType;
139 mimeType = DRM_MIMETYPE_MESSAGE;
141 mimeType = DRM_MIMETYPE_CONTENT;
143 throw new IllegalArgumentException("mimeType must be DRM_MIMETYPE_MESSAGE or DRM_MIMETYPE_CONTENT");
149 id = nativeConstructDrmContent(inData, inDataLen, mimeType);
387 * @param mimeType the mime type of this DRM content. the value of this field includes:
394 private native int nativeConstructDrmContent(InputStream data, int len, int mimeType); argument
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
H A DContactEntry.java33 public ContentValuesBuilder addContentValues(String mimeType) { argument
35 contentValues.put(Data.MIMETYPE, mimeType);
H A DImportTestProvider.java80 final String mimeType = expectedContentValues.getAsString(Data.MIMETYPE);
81 if (!sKnownMimeTypeSet.contains(mimeType)) {
84 mimeType));
88 mMimeTypeToExpectedContentValues.get(mimeType);
120 final String mimeType = actualContentValues.getAsString(Data.MIMETYPE);
121 if (!sKnownMimeTypeSet.contains(mimeType)) {
124 mimeType));
145 mimeType, actualContentValues.toString())); */
152 mMimeTypeToExpectedContentValues.get(mimeType);
154 TestCase.fail("ContentValues for MimeType " + mimeType
[all...]
H A DContentValuesVerifierElem.java43 public ContentValuesBuilder addExpected(String mimeType) { argument
45 contentValues.put(Data.MIMETYPE, mimeType);
/frameworks/base/include/media/stagefright/
H A DStagefrightMediaScanner.h32 const char *path, const char *mimeType,
H A DDataSource.h64 bool sniff(String8 *mimeType, float *confidence, sp<AMessage> *meta);
70 const sp<DataSource> &source, String8 *mimeType,
/frameworks/base/core/java/android/provider/
H A DDrmStore.java145 String mimeType = content.getContentType();
153 if (mimeType.startsWith("audio/")) {
155 } else if (mimeType.startsWith("image/")) {
158 Log.w(TAG, "unsupported mime type " + mimeType);
165 values.put(DrmStore.Columns.MIME_TYPE, mimeType);
178 result.setDataAndType(uri, mimeType);
/frameworks/base/core/java/android/webkit/
H A DURLUtil.java294 * @param mimeType Mime-type of the content or null
301 String mimeType) {
343 if (mimeType != null) {
344 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType);
350 if (mimeType != null && mimeType.toLowerCase().startsWith("text/")) {
351 if (mimeType.equalsIgnoreCase("text/html")) {
361 if (mimeType != null) {
367 if (typeFromExt != null && !typeFromExt.equalsIgnoreCase(mimeType)) {
368 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType);
298 guessFileName( String url, String contentDisposition, String mimeType) argument
[all...]
H A DMimeTypeMap.java85 private void loadEntry(String mimeType, String extension) { argument
94 if (!mMimeTypeToExtensionMap.containsKey(mimeType)) {
95 mMimeTypeToExtensionMap.put(mimeType, extension);
98 mExtensionToMimeTypeMap.put(extension, mimeType);
103 * @param mimeType A MIME type (i.e. text/plain)
104 * @return True iff there is a mimeType entry in the map.
106 public boolean hasMimeType(String mimeType) { argument
107 if (mimeType != null && mimeType.length() > 0) {
108 return mMimeTypeToExtensionMap.containsKey(mimeType);
151 getExtensionFromMimeType(String mimeType) argument
[all...]
H A DCacheManager.java98 String mimeType; field in class:CacheManager.CacheResult
138 return mimeType;
388 Headers headers, String mimeType, boolean forceCache) {
389 return createCacheFile(url, statusCode, headers, mimeType, 0,
394 Headers headers, String mimeType, long postIdentifier,
417 CacheResult ret = parseHeaders(statusCode, headers, mimeType);
442 ret.mimeType = mimeType;
695 String mimeType) {
703 // except for the manifest, which has its own mimeType
387 createCacheFile(String url, int statusCode, Headers headers, String mimeType, boolean forceCache) argument
393 createCacheFile(String url, int statusCode, Headers headers, String mimeType, long postIdentifier, boolean forceCache) argument
694 parseHeaders(int statusCode, Headers headers, String mimeType) argument
[all...]
/frameworks/base/include/media/
H A Dmediascanner.h36 const char *path, const char *mimeType,
78 virtual bool setMimeType(const char* mimeType) = 0;
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp107 virtual bool setMimeType(const char* mimeType) argument
110 if ((mimeTypeStr = mEnv->NewStringUTF(mimeType)) == NULL) return false;
181 android_media_MediaScanner_processFile(JNIEnv *env, jobject thiz, jstring path, jstring mimeType, jobject client) argument
195 const char *mimeTypeStr = (mimeType ? env->GetStringUTFChars(mimeType, NULL) : NULL);
196 if (mimeType && mimeTypeStr == NULL) { // Out of memory
205 if (mimeType) {
206 env->ReleaseStringUTFChars(mimeType, mimeTypeStr);
/frameworks/base/media/libstagefright/
H A DDataSource.cpp61 String8 *mimeType, float *confidence, sp<AMessage> *meta) {
62 *mimeType = "";
74 *mimeType = newMimeType;
60 sniff( String8 *mimeType, float *confidence, sp<AMessage> *meta) argument
H A DAMRExtractor.cpp88 String8 mimeType; local
90 if (!SniffAMR(mDataSource, &mimeType, &confidence, NULL)) {
94 mIsWide = (mimeType == MEDIA_MIMETYPE_AUDIO_AMR_WB);
279 const sp<DataSource> &source, String8 *mimeType, float *confidence,
288 *mimeType = MEDIA_MIMETYPE_AUDIO_AMR_NB;
293 *mimeType = MEDIA_MIMETYPE_AUDIO_AMR_WB;
278 SniffAMR( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *) argument
/frameworks/base/media/libstagefright/include/
H A DAMRExtractor.h53 const sp<DataSource> &source, String8 *mimeType, float *confidence,
H A DMP3Extractor.h55 const sp<DataSource> &source, String8 *mimeType, float *confidence,
H A DOggExtractor.h57 const sp<DataSource> &source, String8 *mimeType, float *confidence,
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListWithMailMessages.java122 final String mimeType = "text/html"; field in class:ListWithMailMessages.MyAdapter
140 body.loadData(message.getBody(), mimeType, encoding);
/frameworks/base/tools/layoutlib/bridge/src/android/webkit/
H A DWebView.java113 public void loadData(String data, String mimeType, String encoding) { argument
117 String mimeType, String encoding, String failUrl) {
116 loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String failUrl) argument

Completed in 298 milliseconds

123