/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | EntitySet.java | 275 public ValuesDelta getSuperPrimaryEntry(final String mimeType) { argument 279 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType);
|
H A D | Sources.java | 269 * {@link ContactsSource#accountType} and {@link DataKind#mimeType}. If no 274 public DataKind getKindOrFallback(String accountType, String mimeType, Context context, argument 282 kind = source.getKindForMimetype(mimeType); 288 kind = mFallbackSource.getKindForMimetype(mimeType); 292 Log.w(TAG, "Unknown type=" + accountType + ", mime=" + mimeType);
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MediaScannerService.java | 189 private Uri scanFile(String path, String mimeType) { argument 196 return scanner.scanSingleFile(canonicalPath, volumeName, mimeType); 211 public void requestScanFile(String path, String mimeType, IMediaScannerListener listener) 214 Log.d(TAG, "IMediaScannerService.scanFile: " + path + " mimeType: " + mimeType); 218 args.putString("mimetype", mimeType); 226 public void scanFile(String path, String mimeType) { 227 requestScanFile(path, mimeType, null);
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | Storage.java | 105 * @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/ContactsCommon/src/com/android/contacts/common/model/ |
H A D | RawContactDelta.java | 155 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 D | RawContactDeltaList.java | 352 public ValuesDelta getSuperPrimaryEntry(final String mimeType) { argument 356 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType);
|
H A D | AccountTypeManager.java | 149 * {@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 D | RawContactModifier.java | 92 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 D | ExternalAccountType.java | 217 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/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | AttachmentUtilities.java | 213 * @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,
|
/packages/apps/Email/src/com/android/email/ |
H A D | AttachmentInfo.java | 107 public AttachmentInfo(Context context, long id, long size, String fileName, String mimeType, argument 110 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType);
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | BaseImage.java | 59 long id, int index, Uri uri, String dataPath, String mimeType, 67 mMimeType = mimeType; 58 BaseImage(BaseImageList container, ContentResolver cr, long id, int index, Uri uri, String dataPath, String mimeType, long dateTaken, String title) argument
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | InstallWidgetReceiver.java | 84 public WidgetListAdapter(Launcher l, String mimeType, ClipData data, argument 88 mMimeType = mimeType;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InstallWidgetReceiver.java | 81 public WidgetListAdapter(Launcher l, String mimeType, ClipData data, argument 84 mMimeType = mimeType;
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
H A D | Message.java | 91 public boolean isMimeType(String mimeType) throws MessagingException { argument 92 return getContentType().startsWith(mimeType);
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | AttachmentActionHandler.java | 257 public boolean shouldShowExtraOption1(String mimeType) { argument 258 return (sOptionHandler != null) && sOptionHandler.shouldShowExtraOption1(mimeType); 277 public boolean shouldShowExtraOption1(String mimeType) { argument
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
H A D | ContactsUtils.java | 48 * provided cursor, assuming the given mimeType. 51 String mimeType, Cursor cursor) { 56 if (Phone.CONTENT_ITEM_TYPE.equals(mimeType) 57 || Constants.MIME_SMS_ADDRESS.equals(mimeType)) { 59 mimeType = Phone.CONTENT_ITEM_TYPE; 62 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) { 65 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) { 68 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) { 78 return getDisplayLabel(context, mimeType, type, label); 50 getDisplayLabel(Context context, String mimeType, Cursor cursor) argument
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadStorageProvider.java | 105 public String createDocument(String docId, String mimeType, String displayName) argument 107 if (Document.MIME_TYPE_DIR.equals(mimeType)) { 118 displayName = removeExtension(mimeType, displayName); 119 File file = new File(parent, addExtension(mimeType, displayName)); 124 file = new File(parent, addExtension(mimeType, displayName + " (" + n + ")")); 136 file.getName(), file.getName(), true, mimeType, file.getAbsolutePath(), 0L, 238 final String mimeType = cursor.getString( 245 if (mimeType == null 246 || (mimeType.startsWith("image/") && !TextUtils.isEmpty(uri))) { 297 String mimeType 358 removeExtension(String mimeType, String name) argument 373 addExtension(String mimeType, String name) argument [all...] |
H A D | Helpers.java | 75 String contentDisposition, String contentLocation, String mimeType, int destination) 103 if (DownloadDrmHelper.isDrmConvertNeeded(mimeType)) { 125 suffix = chooseExtensionFromMimeType(mimeType, true); 128 suffix = chooseExtensionFromFilename(mimeType, destination, name, dotIndex); 222 private static String chooseExtensionFromMimeType(String mimeType, boolean useDefaults) { argument 224 if (mimeType != null) { 225 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); 233 Log.v(Constants.TAG, "couldn't find extension for " + mimeType); 238 if (mimeType != null && mimeType 74 generateSaveFile(Context context, String url, String hint, String contentDisposition, String contentLocation, String mimeType, int destination) argument 260 chooseExtensionFromFilename(String mimeType, int destination, String filename, int lastDotIndex) argument [all...] |
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
H A D | BluetoothMapEmailProvider.java | 126 * @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 D | BluetoothOppManager.java | 249 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 D | Constants.java | 297 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 D | PreloadController.java | 156 String contentDisposition, String mimeType, 155 onDownloadStart(Tab tab, String url, String useragent, String contentDisposition, String mimeType, String referer, long contentLength) argument
|
H A D | WebViewController.java | 77 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/Dialer/src/com/android/dialer/interactions/ |
H A D | PhoneNumberInteraction.java | 88 String mimeType; field in class:PhoneNumberInteraction.PhoneItem 100 this.mimeType = in.readString(); 111 dest.writeString(mimeType); 411 item.mimeType = cursor.getString(MIMETYPE);
|