/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 102 String extension = null; in getFullPath() local 108 extension = ""; in getFullPath() 110 extension = filename.substring(dotIndex); in getFullPath() 117 extension = chooseExtensionFromMimeType(mimeType, true); in getFullPath() 119 extension = chooseExtensionFromFilename(mimeType, destination, filename, dotIndex); in getFullPath() 124 boolean recoveryDir = Constants.RECOVERY_DIRECTORY.equalsIgnoreCase(filename + extension); in getFullPath() 131 Log.v(Constants.TAG, "target file: " + filename + extension); in getFullPath() 133 return chooseUniqueFilename(destination, filename, extension, recoveryDir); in getFullPath() 257 String extension = null; in chooseExtensionFromMimeType() local 259 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in chooseExtensionFromMimeType() [all …]
|
/packages/apps/Mms/src/com/android/mms/model/ |
D | VideoModel.java | 75 String extension = MimeTypeMap.getFileExtensionFromUrl(mSrc); in initFromFile() local 76 if (TextUtils.isEmpty(extension)) { in initFromFile() 81 extension = mSrc.substring(dotPos + 1); in initFromFile() 84 mContentType = mimeTypeMap.getMimeTypeFromExtension(extension); in initFromFile() 122 String extension = mSrc.substring(index + 1); in initFromContentUri() local 123 if (!(TextUtils.isEmpty(extension)) && in initFromContentUri() 124 (extension.equalsIgnoreCase("3gp") || in initFromContentUri() 125 extension.equalsIgnoreCase("3gpp") || in initFromContentUri() 126 extension.equalsIgnoreCase("3g2"))) { in initFromContentUri()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfo.java | 143 String extension = null; in generateFileInfo() local 150 extension = ""; in generateFileInfo() 153 extension = filename.substring(dotIndex); in generateFileInfo() 158 String fullfilename = chooseUniquefilename(filename, extension); in generateFileInfo() 212 private static String chooseUniquefilename(String filename, String extension) { in chooseUniquefilename() argument 213 String fullfilename = filename + extension; in chooseUniquefilename() 233 fullfilename = filename + sequence + extension; in chooseUniquefilename()
|
D | BluetoothOppObexServerSession.java | 215 String extension, type; in onPut() local 223 extension = name.substring(dotIndex + 1).toLowerCase(); in onPut() 225 type = map.getMimeTypeFromExtension(extension); in onPut() 226 … if (V) Log.v(TAG, "Mimetype guessed from extension " + extension + " is " + type); in onPut()
|
/packages/apps/Email/src/com/android/email/ |
D | AttachmentInfo.java | 127 String extension = AttachmentUtilities.getFilenameExtension(mName); in AttachmentInfo() local 128 if (!TextUtils.isEmpty(extension) && in AttachmentInfo() 130 extension)) { in AttachmentInfo() 144 extension = AttachmentUtilities.getFilenameExtension(mName); in AttachmentInfo() 145 if (!TextUtils.isEmpty(extension) && in AttachmentInfo() 147 extension)) { in AttachmentInfo()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothOppHandover.java | 81 String extension = MimeTypeMap.getFileExtensionFromUrl(uri.getPath()).toLowerCase(); in getMimeTypeForUri() local 82 if (extension != null) { in getMimeTypeForUri() 83 return MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); in getMimeTypeForUri()
|
D | HandoverTransfer.java | 388 String extension = null; in generateUniqueDestination() local 391 extension = ""; in generateUniqueDestination() 394 extension = fileName.substring(dotIndex); in generateUniqueDestination() 401 Integer.toString(count) + extension); in generateUniqueDestination()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | UriSource.java | 60 String extension = in getMimeType() local 63 .getMimeTypeFromExtension(extension.toLowerCase()); in getMimeType()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | UriImage.java | 83 String extension = MimeTypeMap.getFileExtensionFromUrl(mPath); in initFromFile() local 84 if (TextUtils.isEmpty(extension)) { in initFromFile() 89 extension = mPath.substring(dotPos + 1); in initFromFile() 92 mContentType = mimeTypeMap.getMimeTypeFromExtension(extension); in initFromFile()
|
D | ComposeMessageActivity.java | 1603 String extension; in copyPart() local 1606 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(type); in copyPart() 1608 extension = fileName.substring(index + 1, fileName.length()); in copyPart() 1612 extension += DrmUtils.getConvertExtension(type); in copyPart() 1614 File file = getUniqueDestination(dir + fileName, extension); in copyPart() 1663 private File getUniqueDestination(String base, String extension) { in getUniqueDestination() argument 1664 File file = new File(base + "." + extension); in getUniqueDestination() 1667 file = new File(base + "_" + i + "." + extension); in getUniqueDestination()
|
/packages/apps/Email/src/org/apache/commons/io/ |
D | FilenameUtils.java | 1010 public static boolean isExtension(String filename, String extension) { in isExtension() argument 1014 if (extension == null || extension.length() == 0) { in isExtension() 1018 return fileExt.equals(extension); in isExtension()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 262 String extension = null; in getFilenameExtension() local 266 extension = fileName.substring(lastDot + 1).toLowerCase(); in getFilenameExtension() 269 return extension; in getFilenameExtension()
|
D | Utility.java | 591 String extension = filename.substring(index); 592 format = name + "-%d" + extension;
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
D | Recorder.java | 146 public void startRecording(int outputfileformat, String extension, Context context) { in startRecording() argument 155 mSampleFile = File.createTempFile(SAMPLE_PREFIX, extension, sampleDir); in startRecording()
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | VCardService.java | 161 for (String extension : additionalExtensions.split(",")) { in initExporterParams() 162 String trimed = extension.trim(); in initExporterParams()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | EmailSyncAdapter.java | 905 String extension = null; 907 extension = fileName.substring(lastDot + 1).toLowerCase(); 909 if (extension == null) { 913 mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); 915 mimeType = "application/" + extension;
|
/packages/apps/Browser/src/com/android/browser/ |
D | Controller.java | 2236 String extension = mimeTypeMap.getExtensionFromMimeType(mimeType); in getTarget() local 2237 if (extension == null) { in getTarget() 2239 extension = FALLBACK_EXTENSION; in getTarget() 2241 extension = "." + extension; // createTempFile needs the '.' in getTarget() 2242 File targetFile = File.createTempFile(nameBase, extension, dir); in getTarget()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | EmailContent.java | 1263 String extension = ""; in createUniqueFile() local 1266 extension = filename.substring(index); in createUniqueFile() 1269 file = new File(directory, name + '-' + i + extension); in createUniqueFile()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | CropImage.java | 582 private CompressFormat convertExtensionToCompressFormat(String extension) { in convertExtensionToCompressFormat() argument 583 return extension.equals("png") in convertExtensionToCompressFormat()
|
/packages/apps/LegacyCamera/jni/feature_stab/doc/ |
D | dbreg_API_doxyfile | 220 # Doxygen selects the parser to use depending on the extension of the files it parses. 221 # With this tag you can assign which parser to use for a given extension. 223 # The format is ext=language, where ext is a file extension, and language is one of 814 # The HTML_FILE_EXTENSION tag can be used to specify the file extension for 816 # doxygen will generate files with .html extension. 1163 # The MAN_EXTENSION tag determines the extension that is added to
|
/packages/apps/Camera/jni/feature_mos/doc/ |
D | feature_mos_API_doxyfile | 220 # Doxygen selects the parser to use depending on the extension of the files it parses. 221 # With this tag you can assign which parser to use for a given extension. 223 # The format is ext=language, where ext is a file extension, and language is one of 814 # The HTML_FILE_EXTENSION tag can be used to specify the file extension for 816 # doxygen will generate files with .html extension. 1163 # The MAN_EXTENSION tag determines the extension that is added to
|
/packages/apps/Camera/jni/feature_stab/doc/ |
D | dbreg_API_doxyfile | 220 # Doxygen selects the parser to use depending on the extension of the files it parses. 221 # With this tag you can assign which parser to use for a given extension. 223 # The format is ext=language, where ext is a file extension, and language is one of 814 # The HTML_FILE_EXTENSION tag can be used to specify the file extension for 816 # doxygen will generate files with .html extension. 1163 # The MAN_EXTENSION tag determines the extension that is added to
|
/packages/apps/LegacyCamera/jni/feature_mos/doc/ |
D | feature_mos_API_doxyfile | 220 # Doxygen selects the parser to use depending on the extension of the files it parses. 221 # With this tag you can assign which parser to use for a given extension. 223 # The format is ext=language, where ext is a file extension, and language is one of 814 # The HTML_FILE_EXTENSION tag can be used to specify the file extension for 816 # doxygen will generate files with .html extension. 1163 # The MAN_EXTENSION tag determines the extension that is added to
|