Searched refs:extension (Results 1 - 20 of 20) 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...]
H A DURLUtil.java291 * the URL and contentDisposition. File extension, if not defined,
304 String extension = null;
340 // Split filename between base and extension
341 // Add an extension if filename does not have one
345 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType);
346 if (extension != null) {
347 extension = "." + extension;
350 if (extension == null) {
353 extension
[all...]
H A DBrowserFrame.java1166 String extension = url.substring(url.lastIndexOf('.') + 1);
1167 mimeType = libcore.net.MimeUtils.guessMimeTypeFromExtension(extension);
/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/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/base/libs/hwui/
H A DExtensions.h84 bool hasExtension(const char* extension) const {
85 const String8 s(extension);
/frameworks/base/media/jni/mediaeditor/
H A DVideoEditorPropertiesMain.cpp147 // Retrieve the extension.
154 // Get the file type and Media type from extension
329 M4OSA_Char extension[5] = {0, 0, 0, 0, 0}; local
345 // Check if the length of the extension is valid.
348 // Convert the extension to lowercase.
351 extension[index] = tolower((int)pExtension[index]);
354 // Check if the extension is ".mp3".
355 if (!(VideoEdit_chrCompare(extension, (M4OSA_Char*)"mp3", &cmpResult)))
360 // Check if the extension is ".mp4".
361 else if (!(VideoEdit_chrCompare(extension, (M4OSA_Cha
[all...]
/frameworks/compile/mclinker/lib/MC/
H A DSearchDirs.cpp62 if(mcld::sys::fs::detail::shared_library_extension == entry.path()->extension().native()) {
75 mcld::sys::fs::detail::static_library_extension == entry.path()->extension().native()) {
/frameworks/native/services/surfaceflinger/
H A DGLExtensions.cpp101 bool GLExtensions::hasExtension(char const* extension) const
103 const String8 s(extension);
H A DGLExtensions.h92 bool hasExtension(char const* extension) const;
/frameworks/base/media/java/android/media/
H A DMediaFile.java127 // maps file extension to MTP format code
137 static void addFileType(String extension, int fileType, String mimeType) { argument
138 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType));
142 static void addFileType(String extension, int fileType, String mimeType, int mtpFormatCode) { argument
143 addFileType(extension, fileType, mimeType);
144 sFileTypeToFormatMap.put(extension, Integer.valueOf(mtpFormatCode));
301 // truncate the file extension (if any)
328 String extension = fileName.substring(lastDot + 1).toUpperCase();
329 Integer value = sFileTypeToFormatMap.get(extension);
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
H A DManagerService.java258 private byte[] getExpectedResult(String relativePath, String extension) { argument
260 FileFilter.setPathEnding(relativePath, "-expected." + extension);
284 private String getExpectedResultPath(String relativePath, String extension) { argument
286 FileFilter.setPathEnding(relativePath, "-expected." + extension);
288 getExpectedResult(relativePath, extension);
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_dec_defs.h127 int32 extension; member in struct:__anon667
H A Dpvmp3_decode_header.cpp179 info->extension = (temp << 23) >> 31; /* 1 */
/frameworks/av/drm/libdrmframework/include/
H A DPlugInManager.h231 String8 extension(sName.getPathExtension());
232 // Note that the plug-in extension must exactly match case
233 return extension == String8(PLUGIN_EXTENSION);
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp161 String8 extension = path.getPathExtension(); local
162 extension.toLower();
163 return (String8(".passthru") == extension);
/frameworks/ex/variablespeed/jni/
H A DAndroid.mk18 # TODO: Remove the .cc extension, just .cpp.
/frameworks/compile/mclinker/include/mcld/Support/
H A DPath.h93 Path extension() const;
/frameworks/compile/mclinker/lib/Support/
H A DPath.cpp159 Path Path::extension() const function in class:Path
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp213 String8 extension = path.getPathExtension(); local
214 if (String8("") != extension) {

Completed in 305 milliseconds