HomeSort by relevance Sort by last modified time
    Searched full:mimetype (Results 1 - 25 of 1068) 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...]
  /external/dropbear/libtommath/pics/
design_process.sxd 
radix.sxd 
  /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);
217 public final String mimeType;
221 public LoadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) {
224 this.mimeType = mimeType;
232 public final String mimeType;
235 public LoadData(String data, String mimeType, String encoding)
    [all...]
  /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)
76 bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)
78 return isSupportedImageMIMEType(mimeType);
    [all...]
MIMETypeRegistry.h 46 static bool isSupportedImageMIMEType(const String& mimeType);
50 static bool isSupportedImageResourceMIMEType(const String& mimeType);
53 static bool isSupportedImageMIMETypeForEncoding(const String& mimeType);
57 static bool isSupportedJavaScriptMIMEType(const String& mimeType);
61 static bool isSupportedNonImageMIMEType(const String& mimeType);
64 static bool isSupportedMediaSourceMIMEType(const String& mimeType, const String& codecs);
67 static bool isJavaAppletMIMEType(const String& 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/ContactsCommon/src/com/android/contacts/common/model/dataitem/
DataItem.java 52 * Factory for creating subclasses of DataItem objects based on the mimetype in the
56 final String mimeType = values.getAsString(Data.MIMETYPE);
57 if (GroupMembership.CONTENT_ITEM_TYPE.equals(mimeType)) {
59 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimeType)) {
61 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) {
63 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) {
65 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) {
67 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) {
69 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) {
    [all...]
  /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...]
  /frameworks/base/core/java/android/webkit/
BrowserDownloadListener.java 32 * @param mimetype The mimetype of the content reported by the server
37 String contentDisposition, String mimetype, String referer,
47 * @param mimetype The mimetype of the content reported by the server
52 String contentDisposition, String mimetype, long contentLength) {
54 onDownloadStart(url, userAgent, contentDisposition, mimetype, null,
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...]
  /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/chrome/common/extensions/docs/server2/
content_provider.py 26 sense). Content-type is determined from Python's mimetype library which
57 mimetype = mimetypes.guess_type(path)[0]
58 if mimetype is None:
60 mimetype = 'text/plain'
61 elif mimetype == 'text/html':
65 elif (mimetype.startswith('text/') or
66 mimetype in ('application/javascript', 'application/json')):
70 return ContentAndType(content, mimetype)
  /external/chromium_org/native_client_sdk/src/libraries/xray/
xray.odt 
  /external/sonivox/docs/
EAS_Library_Integration_Guide.odt 
  /frameworks/av/drm/common/
DrmRights.cpp 22 DrmRights::DrmRights(const String8& rightsFilePath, const String8& mimeType,
24 mMimeType(mimeType),
35 DrmRights::DrmRights(const DrmBuffer& rightsData, const String8& mimeType,
38 mMimeType(mimeType),
  /external/chromium_org/third_party/WebKit/Source/platform/mhtml/
ArchiveResource.cpp 34 inline ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data, const KURL& url, const AtomicString& mimeType, const AtomicString& textEncoding, const String& frameName, const ResourceResponse& response)
38 , m_mimeType(mimeType)
45 PassRefPtr<ArchiveResource> ArchiveResource::create(PassRefPtr<SharedBuffer> data, const KURL& url, const AtomicString& mimeType, const AtomicString& textEncoding, const String& frameName, const ResourceResponse& response)
51 return adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName,
52 ResourceResponse(url, mimeType, dataSize, textEncoding, String())));
54 return adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName, response));
59 return create(data, url, response.mimeType(), response.textEncodingName(), String(), response);
  /packages/apps/Music/
AndroidManifest.xml 80 <data android:mimeType="audio/*"/>
81 <data android:mimeType="application/ogg"/>
82 <data android:mimeType="application/x-ogg"/>
83 <data android:mimeType="application/itunes"/>
98 <data android:mimeType="audio/*"/>
99 <data android:mimeType="application/ogg"/>
100 <data android:mimeType="application/x-ogg"/>
101 <data android:mimeType="application/itunes"/>
108 <data android:mimeType="audio/*"/>
109 <data android:mimeType="application/ogg"/
    [all...]

Completed in 568 milliseconds

1 2 3 4 5 6 7 8 91011>>