Searched defs:mimeType (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/base/media/java/android/media/
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 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...]
H A DMediaFile.java88 String mimeType; field in class:MediaFile.MediaFileType
90 MediaFileType(int fileType, String mimeType) { argument
92 this.mimeType = mimeType;
100 static void addFileType(String extension, int fileType, String mimeType) { argument
101 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType));
102 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType));
212 public static int getFileTypeForMimeType(String mimeType) { argument
213 Integer value = sMimeTypeMap.get(mimeType);
/frameworks/base/media/libdrm/mobile2/src/drmmanager/
H A DDrmManager.cpp34 DrmManager::DrmManager(istream * inRawData, string mimeType) argument
/frameworks/base/core/java/android/webkit/
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 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 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/core/tests/coretests/src/android/pim/vcard/
H A DContentValuesVerifierElem.java45 public ContentValuesBuilder addExpected(String mimeType) { argument
47 contentValues.put(Data.MIMETYPE, mimeType);
H A DExportTestResolver.java90 public ContentValuesBuilder addContentValues(String mimeType) { argument
92 contentValues.put(Data.MIMETYPE, mimeType);
H A DVCardExporterTests.java767 private String getAndroidPropValue(final String mimeType, String value, Integer type) { argument
768 return getAndroidPropValue(mimeType, value, type, null);
771 private String getAndroidPropValue(final String mimeType, String value, argument
773 return (mimeType + ";" + value + ";"
/frameworks/base/media/libstagefright/
H A DDataSource.cpp56 bool DataSource::sniff(String8 *mimeType, float *confidence) { argument
57 *mimeType = "";
67 *mimeType = newMimeType;
H A DStagefrightMediaScanner.cpp148 const char *path, const char *mimeType,
147 processFile( const char *path, const char *mimeType, MediaScannerClient &client) argument
H A DAMRExtractor.cpp88 String8 mimeType; local
90 if (!SniffAMR(mDataSource, &mimeType, &confidence)) {
94 mIsWide = (mimeType == MEDIA_MIMETYPE_AUDIO_AMR_WB);
277 const sp<DataSource> &source, String8 *mimeType, float *confidence) {
285 *mimeType = MEDIA_MIMETYPE_AUDIO_AMR_NB;
290 *mimeType = MEDIA_MIMETYPE_AUDIO_AMR_WB;
276 SniffAMR( const sp<DataSource> &source, String8 *mimeType, float *confidence) argument
H A DWAVExtractor.cpp369 const sp<DataSource> &source, String8 *mimeType, float *confidence) {
379 *mimeType = MEDIA_MIMETYPE_CONTAINER_WAV;
368 SniffWAV( const sp<DataSource> &source, String8 *mimeType, float *confidence) argument
H A DMP3Extractor.cpp759 const sp<DataSource> &source, String8 *mimeType, float *confidence) {
766 *mimeType = MEDIA_MIMETYPE_AUDIO_MPEG;
758 SniffMP3( const sp<DataSource> &source, String8 *mimeType, float *confidence) argument
H A DOggExtractor.cpp585 const sp<DataSource> &source, String8 *mimeType, float *confidence) {
591 mimeType->setTo(MEDIA_MIMETYPE_CONTAINER_OGG);
584 SniffOgg( const sp<DataSource> &source, String8 *mimeType, float *confidence) argument
/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
184 dispatchWapPdu_default(byte[] pdu, int transactionId, int pduType, String mimeType, int headerStartIndex, int headerLength) argument
[all...]
/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/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/media/jni/
H A Dandroid_media_MediaScanner.cpp113 virtual bool setMimeType(const char* mimeType) argument
116 if ((mimeTypeStr = mEnv->NewStringUTF(mimeType)) == NULL) return false;
187 android_media_MediaScanner_processFile(JNIEnv *env, jobject thiz, jstring path, jstring mimeType, jobject client) argument
201 const char *mimeTypeStr = (mimeType ? env->GetStringUTFChars(mimeType, NULL) : NULL);
202 if (mimeType && mimeTypeStr == NULL) { // Out of memory
211 if (mimeType) {
212 env->ReleaseStringUTFChars(mimeType, mimeTypeStr);
/frameworks/base/media/libdrm/mobile1/include/objmng/
H A Ddrm_inner.h66 int32_t mimeType; member in struct:_T_DRM_Session_Node
H A Dsvc_drm.h91 int32_t mimeType; member in struct:_T_DRM_Input_Data
/frameworks/base/core/java/android/pim/vcard/
H A DVCardBuilder.java1540 public void appendAndroidSpecificProperty(final String mimeType, ContentValues contentValues) { argument
1541 if (!sAllowedAndroidPropertySet.contains(mimeType)) {
1569 mBuilder.append(mimeType); // Should not be encoded.
/frameworks/base/media/libstagefright/omx/tests/
H A DOMXHarness.cpp260 const char *mimeType) {
273 if (!strcasecmp(trackMIME, mimeType)) {
258 MakeSource( const char *uri, const char *mimeType) argument

Completed in 298 milliseconds

12