Searched defs:mimeType (Results 1 - 25 of 70) sorted by path

123

/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
H A DBluetoothMapEmailProvider.java126 * @param mimeType The desired type of data to be written.
130 public void readDataFromPipe(ParcelFileDescriptor input, Uri uri, String mimeType, argument
141 String mimeType, Bundle opts, Cursor args) {
183 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, argument
348 * @param mimeType The desired type of data to be written.
357 private <T> ParcelFileDescriptor openInversePipeHelper(final Uri uri, final String mimeType, argument
366 func.readDataFromPipe(fds[0], uri, mimeType, opts, args);
140 readDataFromPipe(ParcelFileDescriptor input, Uri uri, String mimeType, Bundle opts, Cursor args) argument
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppManager.java249 public void saveSendingFileInfo(String mimeType, String uriString, boolean isHandover) { argument
252 mMimeTypeOfSendingFile = mimeType;
256 BluetoothOppSendFileInfo.generateFileInfo(mContext, uri, mimeType);
264 public void saveSendingFileInfo(String mimeType, ArrayList<Uri> uris, boolean isHandover) { argument
267 mMimeTypeOfSendingFiles = mimeType;
272 BluetoothOppSendFileInfo.generateFileInfo(mContext, uri, mimeType);
H A DConstants.java297 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { argument
299 if (mimeTypeMatches(mimeType, matchType)) {
306 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { argument
309 return p.matcher(mimeType).matches();
/packages/apps/Browser/src/com/android/browser/
H A DPreloadController.java156 String contentDisposition, String mimeType,
155 onDownloadStart(Tab tab, String url, String useragent, String contentDisposition, String mimeType, String referer, long contentLength) argument
H A DWebViewController.java77 String mimeType, String referer, long contentLength);
76 onDownloadStart(Tab tab, String url, String useragent, String contentDisposition, String mimeType, String referer, long contentLength) argument
/packages/apps/Camera2/src/com/android/camera/
H A DStorage.java105 * @param mimeType The MIME type of the data.
111 int height, String mimeType) {
117 path, width, height, mimeType);
134 * @param mimeType The MIME type of the data.
140 String mimeType) {
144 height, mimeType);
163 String path, int width, int height, String mimeType) {
172 values.put(ImageColumns.MIME_TYPE, mimeType);
235 * @param mimeType of the image
240 byte[] jpeg, int width, int height, String mimeType) {
109 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] data, int width, int height, String mimeType) argument
138 addImageToMediaStore(ContentResolver resolver, String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument
161 getContentValuesForData(String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument
238 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
308 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/data/
H A DLocalDataUtil.java42 * @param mimeType The MIME type to check.
45 public static boolean isMimeTypeVideo(String mimeType) { argument
46 return mimeType.startsWith("video/");
50 * @param mimeType The MIME type to check.
53 public static boolean isMimeTypeImage(String mimeType) { argument
54 return mimeType.startsWith("image/");
H A DLocalMediaData.java86 public LocalMediaData(long contentId, String title, String mimeType, argument
92 mMimeType = mimeType;
374 public PhotoData(long id, String title, String mimeType, argument
378 super(id, title, mimeType, dateTakenInMilliSeconds, dateModifiedInSeconds,
381 mSignature = mimeType + orientation + dateModifiedInSeconds;
392 String mimeType = c.getString(COL_MIME_TYPE);
428 PhotoData result = new PhotoData(id, title, mimeType, dateTakenInMilliSeconds,
441 return "Photo:" + ",data=" + mPath + ",mimeType=" + mMimeType
639 public VideoData(long id, String title, String mimeType, argument
643 super(id, title, mimeType, dateTakenInMilliSecond
[all...]
/packages/apps/Camera2/src/com/android/camera/session/
H A DPlaceholderManager.java102 * @param mimeType the mime type of the image
106 ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) {
109 session.time, location, orientation, exif, jpeg, width, height, mimeType);
105 finishPlaceholder(Session session, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DCertInstallerMain.java112 private void startInstallActivity(String mimeType, Uri uri) { argument
113 if (mimeType == null) {
114 mimeType = getContentResolver().getType(uri);
122 startInstallActivity(mimeType, raw);
132 private void startInstallActivity(String mimeType, byte[] value) { argument
134 if ("application/x-pkcs12".equals(mimeType)) {
136 } else if ("application/x-x509-ca-cert".equals(mimeType)
137 || "application/x-x509-user-cert".equals(mimeType)
138 || "application/x-x509-server-cert".equals(mimeType)
139 || "application/x-pem-file".equals(mimeType)
[all...]
/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 DExpandingEntryCardView.java942 public EntryContextMenuInfo(String copyText, String copyLabel, String mimeType, long id, argument
946 mMimeType = mimeType;
H A DQuickContactActivity.java603 for (String mimeType : LEADING_MIMETYPES) {
604 if (lhsMimeType.equals(mimeType)) {
606 } else if (rhsMimeType.equals(mimeType)) {
840 private boolean isMimeExcluded(String mimeType) { argument
843 if (TextUtils.equals(excludedMime, mimeType)) {
1032 /* mimeType = */ null, /* id = */ -1, /* isPrimary = */ false),
1138 final String mimeType = dataItem.getMimeType();
1139 if (mimeType == null) continue;
1143 .getKindOrFallback(accountType, mimeType);
1151 if (isMimeExcluded(mimeType) || !hasDat
[all...]
H A DResolveCache.java123 protected Entry getEntry(String mimeType, Intent intent) { argument
124 Entry entry = mCache.get(mimeType);
128 if (SipAddress.CONTENT_ITEM_TYPE.equals(mimeType)
154 mCache.put(mimeType, entry);
199 public boolean hasResolve(String mimeType, Intent intent) { argument
200 return getEntry(mimeType, intent).bestResolve != null;
208 public Drawable getIcon(String mimeType, Intent intent) { argument
209 return getEntry(mimeType, intent).icon;
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DAccountTypeManager.java149 * {@link AccountType#accountType}, {@link AccountType#dataSet}, and {@link DataKind#mimeType}.
152 public DataKind getKindOrFallback(AccountType type, String mimeType) { argument
153 return type == null ? null : type.getKindForMimetype(mimeType);
585 * {@link AccountType#accountType}, {@link AccountType#dataSet}, and {@link DataKind#mimeType}.
589 public DataKind getKindOrFallback(AccountType type, String mimeType) { argument
595 kind = type.getKindForMimetype(mimeType);
600 kind = mFallbackAccountType.getKindForMimetype(mimeType);
605 Log.d(TAG, "Unknown type=" + type + ", mime=" + mimeType);
H A DRawContactDelta.java155 public ValuesDelta getPrimaryEntry(String mimeType) { argument
156 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false);
173 public ValuesDelta getSuperPrimaryEntry(String mimeType) { argument
174 return getSuperPrimaryEntry(mimeType, true);
184 public ValuesDelta getSuperPrimaryEntry(String mimeType, boolean forceSelection) { argument
185 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false);
246 private ArrayList<ValuesDelta> getMimeEntries(String mimeType, boolean lazyCreate) { argument
247 ArrayList<ValuesDelta> mimeEntries = mEntries.get(mimeType);
250 mEntries.put(mimeType, mimeEntries);
255 public ArrayList<ValuesDelta> getMimeEntries(String mimeType) { argument
259 getMimeEntriesCount(String mimeType, boolean onlyVisible) argument
272 hasMimeEntries(String mimeType) argument
[all...]
H A DRawContactDeltaList.java352 public ValuesDelta getSuperPrimaryEntry(final String mimeType) { argument
356 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType);
H A DRawContactModifier.java92 final int visibleCount = state.getMimeEntriesCount(kind.mimeType, true);
114 RawContactDelta state, AccountType accountType, String mimeType) {
115 final DataKind kind = accountType.getKindForMimetype(mimeType);
116 final boolean hasChild = state.getMimeEntriesCount(mimeType, true) > 0;
121 return state.getMimeEntries(mimeType).get(0);
125 if (kind.mimeType.equals(Photo.CONTENT_ITEM_TYPE)) {
213 final List<ValuesDelta> mimeEntries = state.getMimeEntries(kind.mimeType);
371 after.put(Data.MIMETYPE, kind.mimeType);
432 final String mimeType = kind.mimeType;
113 ensureKindExists( RawContactDelta state, AccountType accountType, String mimeType) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
H A DAccountType.java93 * Lookup map of {@link #mKinds} on {@link DataKind#mimeType}.
319 public DataKind getKindForMimetype(String mimeType) { argument
320 return this.mMimeKinds.get(mimeType);
327 if (kind.mimeType == null) {
330 if (mMimeKinds.get(kind.mimeType) != null) {
332 "mime type '" + kind.mimeType + "' is already registered");
337 this.mMimeKinds.put(kind.mimeType, kind);
H A DBaseAccountType.java759 AttributeSet attrs, boolean isPseudo, String mimeType, String typeColumn,
764 Log.d(TAG, "Adding DataKind: " + mimeType);
767 final DataKind kind = new DataKind(mimeType, titleRes, weight, true);
787 "Kind " + kind.mimeType + " must have at least one type");
821 "Kind " + kind.mimeType + " can't have types");
842 "Undefined type '" + typeName + "' for data kind '" + kind.mimeType + "'");
861 "Kind " + kind.mimeType + " must have 'overallMax=\"1\"'");
758 newDataKind(Context context, XmlPullParser parser, AttributeSet attrs, boolean isPseudo, String mimeType, String typeColumn, int titleRes, int weight, StringInflater actionHeader, StringInflater actionBody) argument
H A DExternalAccountType.java217 private void checkKindExists(String mimeType) throws DefinitionException { argument
218 if (getKindForMimetype(mimeType) == null) {
219 throw new DefinitionException(mimeType + " must be supported");
367 kind.mimeType = a
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
H A DDataItem.java60 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)) {
75 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimeType)) {
77 } else if (Note.CONTENT_ITEM_TYPE.equals(mimeType)) {
123 setMimeType(String mimeType) argument
[all...]
H A DDataKind.java44 public String mimeType; field in class:DataKind
91 public DataKind(String mimeType, int titleRes, int weight, boolean editable) { argument
92 this.mimeType = mimeType;
109 sb.append(" mimeType=").append(mimeType);
/packages/apps/Dialer/src/com/android/dialer/interactions/
H A DPhoneNumberInteraction.java88 String mimeType; field in class:PhoneNumberInteraction.PhoneItem
100 this.mimeType = in.readString();
111 dest.writeString(mimeType);
411 item.mimeType = cursor.getString(MIMETYPE);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java213 * @param mimeType The given mime type
216 public static String inferMimeType(final String fileName, final String mimeType) { argument
219 boolean isTextPlain = "text/plain".equalsIgnoreCase(mimeType);
225 isTextPlain || "application/octet-stream".equalsIgnoreCase(mimeType);
227 if (isGenericType || TextUtils.isEmpty(mimeType)) {
233 resultType = isTextPlain ? mimeType : "application/" + fileExtension;
237 resultType = mimeType;
432 final String mimeType = TextUtils.isEmpty(attachment.mMimeType) ?
441 mimeType, absolutePath, size,

Completed in 592 milliseconds

123