HomeSort by relevance Sort by last modified time
    Searched full:mimetype (Results 1 - 25 of 1259) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
MimeTypeTest.java 11 private static final String TEST_MIME_TYPE = "test/mimetype";
14 assertEquals(MimeType.EML_ATTACHMENT_CONTENT_TYPE,
15 MimeType.inferMimeType("filename.eml", MimeType.GENERIC_MIMETYPE));
18 assertEquals("video/mp4", MimeType.inferMimeType("video.mp4", MimeType.GENERIC_MIMETYPE));
20 // file with no extension, should return the mimetype that was specified
21 assertEquals(TEST_MIME_TYPE, MimeType.inferMimeType("filename", TEST_MIME_TYPE));
23 // file with extension, and empty mimetype, where an mimetype can be derive
    [all...]
  /hardware/intel/common/libmix/videodecoder/
VideoDecoderHost.cpp 32 IVideoDecoder* createVideoDecoder(const char* mimeType) {
33 if (mimeType == NULL) {
38 if (strcasecmp(mimeType, "video/wmv") == 0 ||
39 strcasecmp(mimeType, "video/vc1") == 0 ||
40 strcasecmp(mimeType, "video/x-ms-wmv") == 0) {
41 VideoDecoderWMV *p = new VideoDecoderWMV(mimeType);
43 } else if (strcasecmp(mimeType, "video/avc") == 0 ||
44 strcasecmp(mimeType, "video/h264") == 0) {
45 VideoDecoderAVC *p = new VideoDecoderAVC(mimeType);
47 } else if (strcasecmp(mimeType, "video/mp4v-es") == 0 |
    [all...]
  /frameworks/av/drm/libdrmframework/plugins/common/util/include/
MimeTypeUtil.h 33 * May convert the mimetype if there is a well known
34 * replacement mimetype otherwise the original mimetype
37 * @param mimeType - mimetype in lower case to convert.
39 * @return mimetype or null.
41 static String8 convertMimeType(String8& mimeType);
  /frameworks/base/media/java/android/media/
IMediaScannerService.aidl 29 * @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...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMimeTypeMap.java 14 * Shadow for {@code MimeTypeMap} that allows custom extension <-> mimetype mapping to be set up by tests.
51 public String getExtensionFromMimeType(String mimeType) {
52 if (mimeTypeToExtensionMap.containsKey(mimeType))
53 return mimeTypeToExtensionMap.get(mimeType);
58 public void addExtensionMimeTypMapping(String extension, String mimeType) {
59 extensionToMimeTypeMap.put(extension, mimeType);
60 mimeTypeToExtensionMap.put(mimeType, extension);
74 public boolean hasMimeType(String mimeType) {
75 return mimeTypeToExtensionMap.containsKey(mimeType);
ShadowWebView.java 49 public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) {
50 lastLoadDataWithBaseURL = new LoadDataWithBaseURL(baseUrl, data, mimeType, encoding, historyUrl);
54 public void loadData(String data, String mimeType, String encoding) {
55 lastLoadData = new LoadData(data, mimeType, encoding);
221 public final String mimeType;
225 public LoadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) {
228 this.mimeType = mimeType;
236 public final String mimeType;
239 public LoadData(String data, String mimeType, String encoding)
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/model/stream/
MediaStoreStreamLoader.java 14 private String mimeType;
18 public MediaStoreStreamLoader(Context context, ModelLoader<Uri, InputStream> uriLoader, String mimeType,
22 this.mimeType = mimeType;
30 height, mimeType, dateModified, orientation);
  /external/chromium_org/third_party/WebKit/Source/platform/
MIMETypeRegistry.cpp 59 String mimeType = getMIMETypeForExtension(extension);
60 if (mimeType.isEmpty()) {
61 // If there's no mimetype registered for the extension, check to see
63 mimeType = getPluginMimeTypeFromExtension(extension);
65 if (mimeType.isEmpty())
67 return mimeType;
70 bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType)
72 return blink::Platform::current()->mimeRegistry()->supportsImageMIMEType(mimeType.lower())
76 bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)
78 return isSupportedImageMIMEType(mimeType);
    [all...]
  /hardware/intel/common/libmix/videoencoder/
VideoEncoderHost.cpp 31 IVideoEncoder *createVideoEncoder(const char *mimeType) {
40 if (mimeType == NULL) {
45 if (strcasecmp(mimeType, "video/avc") == 0 ||
46 strcasecmp(mimeType, "video/h264") == 0) {
49 } else if (strcasecmp(mimeType, "video/h263") == 0) {
56 } else if (strcasecmp(mimeType, "video/mpeg4") == 0 ||
57 strcasecmp(mimeType, "video/mp4v-es") == 0) {
64 } else if (strcasecmp(mimeType, "video/x-vnd.on2.vp8") == 0) {
68 LOGE ("Unknown mime type: %s", mimeType);
  /packages/apps/Contacts/src/com/android/contacts/quickcontact/
ActionMultiMap.java 27 public void put(String mimeType, Action info) {
28 put(mimeType, info, false);
32 * Puts the (mimeType,Action) tuple into the multimap at the front if
35 public void put(String mimeType, Action info, boolean front) {
37 ArrayList<Action> collectList = get(mimeType);
42 put(mimeType, collectList);
  /packages/apps/Browser/src/com/android/browser/
FetchUrlMimeType.java 38 * we can analyse the mimetype and make any correction needed before we give
41 * we don't know the mimetype. If the user just clicks on the link, we will
42 * do the same steps of correcting the mimetype down in
88 String mimeType = null;
94 // the server sends the right mimetype
98 mimeType = header.getValue();
99 final int semicolonIndex = mimeType.indexOf(';');
101 mimeType = mimeType.substring(0, semicolonIndex);
121 if (mimeType != null)
    [all...]
BrowserDownloadListener.java 33 * @param mimetype The mimetype of the content reported by the server
38 String contentDisposition, String mimetype, String referer,
48 * @param mimetype The mimetype of the content reported by the server
53 String contentDisposition, String mimetype, long contentLength) {
55 onDownloadStart(url, userAgent, contentDisposition, mimetype, null,
  /frameworks/av/drm/libdrmframework/plugins/common/util/src/
MimeTypeUtil.cpp 50 const char* pMimeType; // Mimetype that should be returned
64 // Known mimetype groups
69 static const char mime_type_unsupported[] = "unsupported/drm.mimetype";
114 * May convert the mimetype if there is a well known
115 * replacement mimetype otherwise the original mimetype
118 * If the mimetype is of unsupported group i.e. application/*
119 * then "unsupported/drm.mimetype" will be returned.
121 * @param mimeType - mimetype in lower case to convert
    [all...]
  /frameworks/base/drm/java/android/drm/
DrmRights.java 50 * @param mimeType MIME type. Must not be null or an empty string.
52 public DrmRights(String rightsFilePath, String mimeType) {
54 instantiate(file, mimeType);
61 * @param mimeType MIME type. Must not be null or an empty string.
64 public DrmRights(String rightsFilePath, String mimeType, String accountId) {
65 this(rightsFilePath, mimeType);
74 * @param mimeType MIME type. Must not be null or an empty string.
79 String rightsFilePath, String mimeType, String accountId, String subscriptionId) {
80 this(rightsFilePath, mimeType);
90 * @param mimeType MIME type. Must not be null or an empty string
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/
TypePrecedence.java 79 * Returns the precedence (1 being the highest) of a type in the context of it's mimetype.
81 * @param mimetype The mimetype of the data with which the type is associated.
86 public static int getTypePrecedence(String mimetype, int type) {
87 int[] typePrecedence = getTypePrecedenceList(mimetype);
101 private static int[] getTypePrecedenceList(String mimetype) {
102 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) {
104 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) {
106 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE)) {
108 } else if (mimetype.equals(Im.CONTENT_ITEM_TYPE))
    [all...]
  /packages/experimental/LoaderApp/src/com/android/loaderapp/model/
TypePrecedence.java 71 * Returns the precedence (1 being the highest) of a type in the context of it's mimetype.
73 * @param mimetype The mimetype of the data with which the type is associated.
78 public static int getTypePrecedence(String mimetype, int type) {
79 int[] typePrecedence = getTypePrecedenceList(mimetype);
93 private static int[] getTypePrecedenceList(String mimetype) {
94 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) {
96 } else if (mimetype.equals(Constants.MIME_SMS_ADDRESS)) {
98 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) {
100 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE))
    [all...]
  /packages/apps/CertInstaller/
AndroidManifest.xml 21 <data android:mimeType="application/x-x509-ca-cert" />
22 <data android:mimeType="application/x-x509-user-cert" />
23 <data android:mimeType="application/x-x509-server-cert" />
24 <data android:mimeType="application/x-pkcs12" />
25 <data android:mimeType="application/application/x-pem-file" />
26 <data android:mimeType="application/pkix-cert" />
  /external/chromium_org/third_party/WebKit/public/platform/
WebMimeRegistry.h 44 virtual SupportsType supportsMIMEType(const WebString& mimeType) = 0;
45 virtual SupportsType supportsImageMIMEType(const WebString& mimeType) = 0;
46 virtual SupportsType supportsImagePrefixedMIMEType(const WebString& mimeType) = 0;
47 virtual SupportsType supportsJavaScriptMIMEType(const WebString& mimeType) = 0;
48 virtual SupportsType supportsMediaMIMEType(const WebString& mimeType, const WebString& codecs, const WebString& keySystem) = 0;
50 virtual bool supportsMediaSourceMIMEType(const WebString& mimeType, const WebString& codecs) = 0;
51 virtual bool supportsEncryptedMediaMIMEType(const WebString& keySystem, const WebString& mimeType, const WebString& codecs) = 0;
53 virtual SupportsType supportsNonImageMIMEType(const WebString& mimeType) = 0;
  /frameworks/base/core/java/android/webkit/
MimeTypeMap.java 75 * @param mimeType A MIME type (i.e. text/plain)
76 * @return True iff there is a mimeType entry in the map.
78 public boolean hasMimeType(String mimeType) {
79 return MimeUtils.hasMimeType(mimeType);
109 * @param mimeType A MIME type (i.e. text/plain)
112 public String getExtensionFromMimeType(String mimeType) {
113 return MimeUtils.guessExtensionFromMimeType(mimeType);
121 * @param mimeType MIME type provided by the server.
126 /* package */ String remapGenericMimeType(String mimeType, String url,
130 if ("text/plain".equals(mimeType) ||
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
DataItem.java 56 * Factory for creating subclasses of DataItem objects based on the mimetype in the
60 final String mimeType = values.getAsString(Data.MIMETYPE);
61 if (GroupMembership.CONTENT_ITEM_TYPE.equals(mimeType)) {
63 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimeType)) {
65 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) {
67 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) {
69 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) {
71 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) {
73 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) {
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/
DataItemTests.java 93 final DataKind kind = new DataKind("test.mimetype", 0, 0, false);
117 mValues1.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE);
118 mValues2.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE);
119 mValues3.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE);
147 mValues1.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE);
148 mValues2.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE);
149 mValues3.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE);
150 mValues4.put(Data.MIMETYPE, Event.CONTENT_ITEM_TYPE);
183 mValues1.put(Data.MIMETYPE, Im.CONTENT_ITEM_TYPE);
184 mValues2.put(Data.MIMETYPE, Im.CONTENT_ITEM_TYPE)
    [all...]
  /external/chromium_org/extensions/browser/guest_view/mime_handler_view/
mime_handler_view_constants.cc 9 const char kMimeType[] = "mimeType";
  /external/chromium_org/native_client_sdk/src/libraries/xray/
xray.odt 
  /external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
WebServerPluginInfo.java 12 WebServerPlugin getWebServerPlugin(String mimeType);
  /external/sonivox/docs/
EAS_Library_Integration_Guide.odt 

Completed in 1552 milliseconds

1 2 3 4 5 6 7 8 91011>>