Home
last modified time | relevance | path

Searched refs:extension (Results 1 – 23 of 23) sorted by relevance

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java102 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/
DVideoModel.java75 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/
DBluetoothOppReceiveFileInfo.java143 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()
DBluetoothOppObexServerSession.java215 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/
DAttachmentInfo.java127 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/
DBluetoothOppHandover.java81 String extension = MimeTypeMap.getFileExtensionFromUrl(uri.getPath()).toLowerCase(); in getMimeTypeForUri() local
82 if (extension != null) { in getMimeTypeForUri()
83 return MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); in getMimeTypeForUri()
DHandoverTransfer.java388 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/
DUriSource.java60 String extension = in getMimeType() local
63 .getMimeTypeFromExtension(extension.toLowerCase()); in getMimeType()
/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java83 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()
DComposeMessageActivity.java1603 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/
DFilenameUtils.java1010 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/
DAttachmentUtilities.java262 String extension = null; in getFilenameExtension() local
266 extension = fileName.substring(lastDot + 1).toLowerCase(); in getFilenameExtension()
269 return extension; in getFilenameExtension()
DUtility.java591 String extension = filename.substring(index);
592 format = name + "-%d" + extension;
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DRecorder.java146 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/
DVCardService.java161 for (String extension : additionalExtensions.split(",")) { in initExporterParams()
162 String trimed = extension.trim(); in initExporterParams()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DEmailSyncAdapter.java905 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/
DController.java2236 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/
DEmailContent.java1263 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/
DCropImage.java582 private CompressFormat convertExtensionToCompressFormat(String extension) { in convertExtensionToCompressFormat() argument
583 return extension.equals("png") in convertExtensionToCompressFormat()
/packages/apps/LegacyCamera/jni/feature_stab/doc/
Ddbreg_API_doxyfile220 # 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/
Dfeature_mos_API_doxyfile220 # 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/
Ddbreg_API_doxyfile220 # 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/
Dfeature_mos_API_doxyfile220 # 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