/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/core/platform/chromium/ |
MIMETypeRegistryChromium.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 WebKit::Platform::current()->mimeRegistry()->supportsImageMIMEType(mimeType) 76 bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType) 78 return isSupportedImageMIMEType(mimeType); [all...] |
/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/Contacts/src/com/android/contacts/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...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ContentViewDownloadDelegate.java | 18 * @param mimetype The mimetype of the content reported by the server. 24 String mimetype, String cookie, String referer, long contentLength); 29 * @param mimeType Mime of the downloaded item. 31 void onDownloadStarted(String filename, String mimeType);
|
DownloadController.java | 30 * @param mimetype The mimetype of downloaded file. 36 void onDownloadCompleted(Context context, String url, String mimetype, String path, 70 String userAgent, String contentDisposition, String mimetype, 76 mimetype, cookie, referer, contentLength); 85 * @param mimeType Mime of the downloaded item. 88 public void onDownloadStarted(ContentViewCore view, String filename, String mimeType) { 92 downloadDelagate.onDownloadStarted(filename, mimeType); 101 public void onDownloadCompleted(Context context, String url, String mimetype, 104 sDownloadNotificationService.onDownloadCompleted(context, url, mimetype, path [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...] |
/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/core/loader/archive/ |
ArchiveResource.cpp | 36 inline ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data, const KURL& url, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse& response) 40 , m_mimeType(mimeType) 47 PassRefPtr<ArchiveResource> ArchiveResource::create(PassRefPtr<SharedBuffer> data, const KURL& url, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse& response) 53 return adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName, 54 ResourceResponse(url, mimeType, dataSize, textEncoding, String()))); 56 return adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName, response)); 61 return create(data, url, response.mimeType(), response.textEncodingName(), String(), response);
|
/external/chromium_org/third_party/WebKit/Source/core/platform/ |
MIMETypeRegistry.h | 45 static bool isSupportedImageMIMEType(const String& mimeType); 49 static bool isSupportedImageResourceMIMEType(const String& mimeType); 52 static bool isSupportedImageMIMETypeForEncoding(const String& mimeType); 56 static bool isSupportedJavaScriptMIMEType(const String& mimeType); 60 static bool isSupportedNonImageMIMEType(const String& mimeType); 63 static bool isSupportedMediaSourceMIMEType(const String& mimeType, const String& codecs); 66 static bool isJavaAppletMIMEType(const String& mimeType);
|
/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...] |