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

12345

/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DActionMultiMap.java27 public void put(String mimeType, Action info) { argument
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) { argument
37 ArrayList<Action> collectList = get(mimeType);
42 put(mimeType, collectList);
H A DQuickContactActivity.java320 private boolean isMimeExcluded(String mimeType) { argument
323 if (TextUtils.equals(excludedMime, mimeType)) {
358 final String mimeType = entryValues.getAsString(Data.MIMETYPE);
361 if (isMimeExcluded(mimeType)) continue;
370 accountTypes.getKindOrFallback(accountType, dataSet, mimeType);
376 final Action action = new DataAction(context, mimeType, kind, dataId,
381 if (isSuperPrimary || (isPrimary && (mDefaultsMap.get(mimeType) == null))) {
382 mDefaultsMap.put(mimeType, action);
389 if (status != null && Email.CONTENT_ITEM_TYPE.equals(mimeType)) {
417 for (String mimeType
479 inflateAction(String mimeType, ResolveCache resolveCache, ViewGroup root) argument
[all...]
H A DDataAction.java71 public DataAction(Context context, String mimeType, DataKind kind, long dataId, argument
75 mMimeType = mimeType;
113 if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) {
136 } else if (SipAddress.CONTENT_ITEM_TYPE.equals(mimeType)) {
150 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) {
157 } else if (Website.CONTENT_ITEM_TYPE.equals(mimeType)) {
164 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) {
213 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) {
224 mIntent.setDataAndType(mDataUri, mimeType);
/packages/apps/Browser/src/com/android/browser/
H A DFetchUrlMimeType.java88 String mimeType = null;
98 mimeType = header.getValue();
99 final int semicolonIndex = mimeType.indexOf(';');
101 mimeType = mimeType.substring(0, semicolonIndex);
117 if (mimeType != null) {
118 if (mimeType.equalsIgnoreCase("text/plain") ||
119 mimeType.equalsIgnoreCase("application/octet-stream")) {
128 mimeType);
/packages/apps/Email/src/org/apache/james/mime4j/field/
H A DContentTypeField.java71 private String mimeType = ""; field in class:ContentTypeField
75 protected ContentTypeField(String name, String body, String raw, String mimeType, Map<String, String> parameters, ParseException parseException) { argument
77 this.mimeType = mimeType;
96 return mimeType;
190 * @param mimeType the MIME type to match against.
194 public boolean isMimeType(String mimeType) { argument
195 return this.mimeType.equalsIgnoreCase(mimeType);
205 return mimeType
[all...]
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
H A DMessageTestUtils.java72 * @param mimeType MIME type of body part
77 public static BodyPart bodyPart(String mimeType, String contentId) throws MessagingException { argument
78 final MimeBodyPart bp = new MimeBodyPart(null, mimeType);
88 * @param mimeType MIME type of text
93 public static BodyPart textPart(String mimeType, String text) throws MessagingException { argument
96 textPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType);
114 * @param mimeType MIME type of this Multipart
116 public MultipartBuilder(String mimeType) { argument
117 this(mimeType, "this_is_boundary");
123 * @param mimeType MIM
126 MultipartBuilder(String mimeType, String boundary) argument
[all...]
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DDrmImageList.java62 long miniThumbMagic, String mimeType, long dateTaken,
65 mimeType, dateTaken, title, rotation);
100 String mimeType = cursor.getString(INDEX_MIME_TYPE);
102 contentUri(id), dataPath, 0, mimeType, 0, "DrmImage-" + id,
60 DrmImage(BaseImageList container, ContentResolver cr, long id, int index, Uri uri, String dataPath, long miniThumbMagic, String mimeType, long dateTaken, String title, int rotation) argument
H A DImage.java47 String mimeType, long dateTaken, String title,
50 mimeType, dateTaken, title);
71 String mimeType = getMimeType();
72 return !"image/jpeg".equals(mimeType) && !"image/png".equals(mimeType);
45 Image(BaseImageList container, ContentResolver cr, long id, int index, Uri uri, String dataPath, String mimeType, long dateTaken, String title, int rotation) argument
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPendingAddItemInfo.java61 String mimeType; field in class:PendingAddWidgetInfo
75 mimeType = dataMimeType;
90 mimeType = copy.mimeType;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBitmapUtils.java248 public static boolean isSupportedByRegionDecoder(String mimeType) { argument
249 if (mimeType == null) return false;
250 mimeType = mimeType.toLowerCase();
251 return mimeType.startsWith("image/") &&
252 (!mimeType.equals("image/gif") && !mimeType.endsWith("bmp"));
255 public static boolean isRotationSupported(String mimeType) { argument
256 if (mimeType == null) return false;
257 mimeType
[all...]
/packages/apps/Contacts/src/com/android/contacts/model/
H A DDataKind.java44 public String mimeType; field in class:DataKind
98 public DataKind(String mimeType, int titleRes, int weight, boolean editable, argument
100 this.mimeType = mimeType;
114 sb.append(" mimeType=").append(mimeType);
/packages/apps/Email/src/org/apache/james/mime4j/
H A DBodyDescriptor.java35 private String mimeType = "text/plain"; field in class:BodyDescriptor
58 mimeType = "message/rfc822";
60 mimeType = "text/plain";
126 mimeType = main;
321 public boolean isMimeType(String mimeType) { argument
322 return this.mimeType.equals(mimeType.toLowerCase());
329 return mimeType.equals("message/rfc822");
336 return mimeType.startsWith("multipart/");
343 return mimeType;
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DHelpers.java77 String mimeType,
81 checkCanHandleDownload(context, mimeType, destination, isPublicApi);
87 base = storageManager.locateDestinationDirectory(mimeType, destination,
93 path = getFullPath(path, mimeType, destination, base);
94 if (DownloadDrmHelper.isDrmConvertNeeded(mimeType)) {
100 static String getFullPath(String filename, String mimeType, int destination, File base) argument
117 extension = chooseExtensionFromMimeType(mimeType, true);
119 extension = chooseExtensionFromFilename(mimeType, destination, filename, dotIndex);
136 private static void checkCanHandleDownload(Context context, String mimeType, int destination, argument
144 if (mimeType
71 generateSaveFile( Context context, String url, String hint, String contentDisposition, String contentLocation, String mimeType, int destination, long contentLength, boolean isPublicApi, StorageManager storageManager) argument
256 chooseExtensionFromMimeType(String mimeType, boolean useDefaults) argument
294 chooseExtensionFromFilename(String mimeType, int destination, String filename, int lastDotIndex) argument
[all...]
H A DDrmConvertSession.java43 * @param mimeType Mimetype of content that shall be converted.
46 public static DrmConvertSession open(Context context, String mimeType) { argument
49 if (context != null && mimeType != null && !mimeType.equals("")) {
53 convertSessionId = drmClient.openConvertSession(mimeType);
55 Log.w(Constants.TAG, "Conversion of Mimetype: " + mimeType
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DUriSource.java69 String mimeType = getMimeType(uri);
73 && mimeType.startsWith(IMAGE_TYPE_PREFIX))) {
74 type = mimeType;
H A DLocalMediaItem.java38 public String mimeType; field in class:LocalMediaItem
99 return mimeType;
/packages/apps/Mms/src/com/android/mms/drm/
H A DDrmUtils.java45 public static boolean isDrmType(String mimeType) { argument
50 if (drmManagerClient.canHandle("", mimeType)) {
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
H A DEmailSyncAdapterTests.java62 String mimeType = p.getMimeTypeFromFileName("foo.jpg");
63 assertEquals("image/jpeg", mimeType);
65 mimeType = p.getMimeTypeFromFileName("foo.JPG");
66 assertEquals("image/jpeg", mimeType);
67 mimeType = p.getMimeTypeFromFileName("this_is_a_weird_filename.gif");
68 assertEquals("image/gif", mimeType);
70 mimeType = p.getMimeTypeFromFileName("foo.");
71 assertEquals("application/octet-stream", mimeType);
73 mimeType = p.getMimeTypeFromFileName(".....");
74 assertEquals("application/octet-stream", mimeType);
[all...]
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
H A DEmailSyncAdapterTests.java62 String mimeType = p.getMimeTypeFromFileName("foo.jpg");
63 assertEquals("image/jpeg", mimeType);
65 mimeType = p.getMimeTypeFromFileName("foo.JPG");
66 assertEquals("image/jpeg", mimeType);
67 mimeType = p.getMimeTypeFromFileName("this_is_a_weird_filename.gif");
68 assertEquals("image/gif", mimeType);
70 mimeType = p.getMimeTypeFromFileName("foo.");
71 assertEquals("application/octet-stream", mimeType);
73 mimeType = p.getMimeTypeFromFileName(".....");
74 assertEquals("application/octet-stream", mimeType);
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DMimeBodyPart.java52 public MimeBodyPart(Body body, String mimeType) throws MessagingException { argument
53 if (mimeType != null) {
54 setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType);
134 public boolean isMimeType(String mimeType) throws MessagingException { argument
135 return getMimeType().equals(mimeType);
H A DMimeUtility.java217 public static Part findFirstPartByMimeType(Part part, String mimeType) argument
223 Part ret = findFirstPartByMimeType(bodyPart, mimeType);
229 else if (part.getMimeType().equalsIgnoreCase(mimeType)) {
264 String mimeType = part.getMimeType();
265 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) {
319 * Returns true if the given mimeType matches the matchAgainst specification. The comparison
322 * @param mimeType A MIME type to check.
324 * @return true if the mimeType matches
326 public static boolean mimeTypeMatches(String mimeType, Strin argument
341 mimeTypeMatches(String mimeType, String[] matchAgainst) argument
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DEntityDelta.java150 public ValuesDelta getPrimaryEntry(String mimeType) { argument
151 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false);
168 public ValuesDelta getSuperPrimaryEntry(String mimeType) { argument
169 return getSuperPrimaryEntry(mimeType, true);
178 public ValuesDelta getSuperPrimaryEntry(String mimeType, boolean forceSelection) { argument
179 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false);
206 private ArrayList<ValuesDelta> getMimeEntries(String mimeType, boolean lazyCreate) { argument
207 ArrayList<ValuesDelta> mimeEntries = mEntries.get(mimeType);
210 mEntries.put(mimeType, mimeEntries);
215 public ArrayList<ValuesDelta> getMimeEntries(String mimeType) { argument
219 getMimeEntriesCount(String mimeType, boolean onlyVisible) argument
232 hasMimeEntries(String mimeType) argument
[all...]
H A DContactsSource.java72 * Lookup map of {@link #mKinds} on {@link DataKind#mimeType}.
169 public DataKind getKindForMimetype(String mimeType) { argument
170 return this.mMimeKinds.get(mimeType);
179 this.mMimeKinds.put(kind.mimeType, kind);
191 public String mimeType; field in class:ContactsSource.DataKind
227 public DataKind(String mimeType, int titleRes, int iconRes, int weight, boolean editable) { argument
228 this.mimeType = mimeType;
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaScannerService.java186 private Uri scanFile(String path, String mimeType) { argument
190 return scanner.scanSingleFile(path, volumeName, mimeType);
201 public void requestScanFile(String path, String mimeType, IMediaScannerListener listener)
204 Log.d(TAG, "IMediaScannerService.scanFile: " + path + " mimeType: " + mimeType);
208 args.putString("mimetype", mimeType);
216 public void scanFile(String path, String mimeType) {
217 requestScanFile(path, mimeType, null);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppHandoverReceiver.java55 if (D) Log.d(TAG, "No mimeType or stream attached to handover request");
59 String mimeType = intent.getType();
61 if (mimeType != null && uris != null) {
62 BluetoothOppManager.getInstance(context).saveSendingFileInfo(mimeType,
65 if (D) Log.d(TAG, "No mimeType or stream attached to handover request");

Completed in 729 milliseconds

12345