Searched defs:extension (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/java/android/webkit/
H A DMimeTypeMap.java37 * Returns the file extension or an empty string iff there is no
38 * extension. This method is a convenience method for obtaining the
39 * extension of a url and has undefined results for other Strings.
41 * @return The file extension of the given url.
83 * Return the MIME type for the given extension.
84 * @param extension A file extension without the leading '.'
85 * @return The MIME type for the given extension or null iff there is none.
87 public String getMimeTypeFromExtension(String extension) { argument
88 return MimeUtils.guessMimeTypeFromExtension(extension);
92 mimeTypeFromExtension(String extension) argument
101 hasExtension(String extension) argument
[all...]
/frameworks/base/tools/validatekeymaps/
H A DMain.cpp51 const char *extension = strrchr(filename, '.'); local
52 if (extension) {
53 if (strcmp(extension, ".kl") == 0) {
56 if (strcmp(extension, ".kcm") == 0) {
59 if (strcmp(extension, ".idc") == 0) {
/frameworks/av/media/libstagefright/
H A DStagefrightMediaScanner.cpp39 static bool FileHasAcceptableExtension(const char *extension) { argument
51 if (!strcasecmp(extension, kValidExtensions[i])) {
122 const char *extension = strrchr(path, '.'); local
124 if (!extension) {
128 if (!FileHasAcceptableExtension(extension)) {
132 if (!strcasecmp(extension, ".mid")
133 || !strcasecmp(extension, ".smf")
134 || !strcasecmp(extension, ".imy")
135 || !strcasecmp(extension, ".midi")
136 || !strcasecmp(extension, "
[all...]
/frameworks/base/media/jni/mediaeditor/
H A DVideoEditorPropertiesMain.cpp149 // Retrieve the extension.
156 // Get the file type and Media type from extension
331 M4OSA_Char extension[5] = {0, 0, 0, 0, 0}; local
347 // Check if the length of the extension is valid.
350 // Convert the extension to lowercase.
353 extension[index] = tolower((int)pExtension[index]);
356 // Check if the extension is ".mp3".
357 if (!(VideoEdit_chrCompare(extension, (M4OSA_Char*)"mp3", &cmpResult)))
362 // Check if the extension is ".mp4".
363 else if (!(VideoEdit_chrCompare(extension, (M4OSA_Cha
[all...]
/frameworks/compile/mclinker/lib/Support/
H A DPath.cpp198 Path Path::extension() const function in class:Path
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_dec_defs.h127 int32 extension; member in struct:__anon691
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp162 String8 extension = path.getPathExtension(); local
163 extension.toLower();
164 return (String8(".passthru") == extension);
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp188 String8 extension = path.getPathExtension(); local
189 if (String8("") != extension) {
/frameworks/base/media/java/android/media/
H A DMediaFile.java128 // maps file extension to MTP format code
138 static void addFileType(String extension, int fileType, String mimeType) { argument
139 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType));
143 static void addFileType(String extension, int fileType, String mimeType, int mtpFormatCode) { argument
144 addFileType(extension, fileType, mimeType);
145 sFileTypeToFormatMap.put(extension, Integer.valueOf(mtpFormatCode));
302 // truncate the file extension (if any)
329 String extension = fileName.substring(lastDot + 1).toUpperCase(Locale.ROOT);
330 Integer value = sFileTypeToFormatMap.get(extension);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java742 protected static CompressFormat convertExtensionToCompressFormat(String extension) { argument
743 return extension.equals("png") ? CompressFormat.PNG : CompressFormat.JPEG;

Completed in 183 milliseconds