/frameworks/base/core/java/android/webkit/ |
H A D | MimeTypeMap.java | 37 * 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...] |
H A D | URLUtil.java | 292 * the URL and contentDisposition. File extension, if not defined, 305 String extension = null; 341 // Split filename between base and extension 342 // Add an extension if filename does not have one 346 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); 347 if (extension != null) { 348 extension = "." + extension; 351 if (extension == null) { 354 extension [all...] |
/frameworks/av/media/libstagefright/ |
H A D | StagefrightMediaScanner.cpp | 39 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/tools/validatekeymaps/ |
H A D | Main.cpp | 51 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/native/services/surfaceflinger/RenderEngine/ |
H A D | GLExtensions.cpp | 60 bool GLExtensions::hasExtension(char const* extension) const 62 const String8 s(extension);
|
H A D | GLExtensions.h | 70 bool hasExtension(char const* extension) const;
|
/frameworks/base/libs/hwui/ |
H A D | Extensions.cpp | 103 bool Extensions::hasGlExtension(const char* extension) const { 104 const String8 s(extension); 108 bool Extensions::hasEglExtension(const char* extension) const { 109 const String8 s(extension);
|
H A D | Extensions.h | 52 bool hasGlExtension(const char* extension) const; 53 bool hasEglExtension(const char* extension) const;
|
/frameworks/base/media/jni/mediaeditor/ |
H A D | VideoEditorPropertiesMain.cpp | 149 // 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/MC/ |
H A D | SearchDirs.cpp | 93 if(mcld::sys::fs::detail::shared_library_extension == entry.path()->extension().native()) { 106 mcld::sys::fs::detail::static_library_extension == entry.path()->extension().native()) { 137 if(mcld::sys::fs::detail::shared_library_extension == entry.path()->extension().native()) { 150 mcld::sys::fs::detail::static_library_extension == entry.path()->extension().native()) {
|
/frameworks/base/media/java/android/media/ |
H A D | MediaFile.java | 128 // 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/av/media/libstagefright/codecs/mp3dec/src/ |
H A D | pvmp3_dec_defs.h | 127 int32 extension; member in struct:__anon691
|
H A D | pvmp3_decode_header.cpp | 179 info->extension = (temp << 23) >> 31; /* 1 */
|
/frameworks/av/drm/libdrmframework/include/ |
H A D | PlugInManager.h | 231 String8 extension(sName.getPathExtension()); 232 // Note that the plug-in extension must exactly match case 233 return extension == String8(PLUGIN_EXTENSION);
|
/frameworks/base/packages/Keyguard/scripts/ |
H A D | new_merge.py | 119 def getFileList(rootdir, extension): 125 if (os.path.splitext(f)[1] == extension and (not inIgnore(f))):
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
H A D | ExternalStorageProvider.java | 406 final String extension = name.substring(lastDot + 1).toLowerCase(); 407 final String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); 417 * Remove file extension from name, but only if exact MIME type mapping 418 * exists. This means we can reapply the extension later. 423 final String extension = name.substring(lastDot + 1).toLowerCase(); 424 final String nameMime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); 433 * Add file extension to name, but only if exact MIME type mapping exists. 436 final String extension = MimeTypeMap.getSingleton() 438 if (extension != null) { 439 return name + "." + extension; [all...] |
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
H A D | DrmPassthruPlugIn.cpp | 162 String8 extension = path.getPathExtension(); local 163 extension.toLower(); 164 return (String8(".passthru") == extension);
|
/frameworks/ex/variablespeed/jni/ |
H A D | Android.mk | 18 # TODO: Remove the .cc extension, just .cpp.
|
/frameworks/compile/mclinker/include/mcld/Support/ |
H A D | Path.h | 86 Path extension() const;
|
/frameworks/compile/mclinker/lib/Support/ |
H A D | Path.cpp | 198 Path Path::extension() const function in class:Path
|
/frameworks/support/v4/java/android/support/v4/content/ |
H A D | FileProvider.java | 198 * extension). For example: 445 * @return If the associated file has an extension, the MIME type associated with that 446 * extension; otherwise <code>application/octet-stream</code>. 455 final String extension = file.getName().substring(lastDot + 1); 456 final String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
|
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 188 String8 extension = path.getPathExtension(); local 189 if (String8("") != extension) {
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 846 protected static CompressFormat convertExtensionToCompressFormat(String extension) { argument 847 return extension.equals("png") ? CompressFormat.PNG : CompressFormat.JPEG;
|