Home
last modified time | relevance | path

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

1234

/frameworks/av/media/libstagefright/
DStagefrightMediaScanner.cpp40 static bool FileHasAcceptableExtension(const char *extension) { in FileHasAcceptableExtension() argument
52 if (!strcasecmp(extension, kValidExtensions[i])) { in FileHasAcceptableExtension()
123 const char *extension = strrchr(path, '.'); in processFileInternal() local
125 if (!extension) { in processFileInternal()
129 if (!FileHasAcceptableExtension(extension)) { in processFileInternal()
133 if (!strcasecmp(extension, ".mid") in processFileInternal()
134 || !strcasecmp(extension, ".smf") in processFileInternal()
135 || !strcasecmp(extension, ".imy") in processFileInternal()
136 || !strcasecmp(extension, ".midi") in processFileInternal()
137 || !strcasecmp(extension, ".xmf") in processFileInternal()
[all …]
/frameworks/base/core/java/android/webkit/
DMimeTypeMap.java87 public String getMimeTypeFromExtension(String extension) { in getMimeTypeFromExtension() argument
88 return MimeUtils.guessMimeTypeFromExtension(extension); in getMimeTypeFromExtension()
92 private static String mimeTypeFromExtension(String extension) { in mimeTypeFromExtension() argument
93 return MimeUtils.guessMimeTypeFromExtension(extension); in mimeTypeFromExtension()
101 public boolean hasExtension(String extension) { in hasExtension() argument
102 return MimeUtils.hasExtension(extension); in hasExtension()
142 String extension = getFileExtensionFromUrl(url); in remapGenericMimeType() local
143 String newMimeType = getMimeTypeFromExtension(extension); in remapGenericMimeType()
DURLUtil.java306 String extension = null; in guessFileName() local
347 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in guessFileName()
348 if (extension != null) { in guessFileName()
349 extension = "." + extension; in guessFileName()
352 if (extension == null) { in guessFileName()
355 extension = ".html"; in guessFileName()
357 extension = ".txt"; in guessFileName()
360 extension = ".bin"; in guessFileName()
371 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in guessFileName()
372 if (extension != null) { in guessFileName()
[all …]
/frameworks/base/tools/validatekeymaps/
DMain.cpp51 const char *extension = strrchr(filename, '.'); in getFileType() local
52 if (extension) { in getFileType()
53 if (strcmp(extension, ".kl") == 0) { in getFileType()
56 if (strcmp(extension, ".kcm") == 0) { in getFileType()
59 if (strcmp(extension, ".idc") == 0) { in getFileType()
/frameworks/base/tools/split-select/
DSplitDescription.cpp71 String8 extension; in toString() local
73 if (extension.isEmpty()) { in toString()
74 extension.append(":"); in toString()
76 extension.append("-"); in toString()
78 extension.append(abi::toString(abi)); in toString()
81 str.append(extension); in toString()
/frameworks/base/libs/hwui/
DExtensions.cpp103 bool Extensions::hasGlExtension(const char* extension) const { in hasGlExtension()
104 const String8 s(extension); in hasGlExtension()
108 bool Extensions::hasEglExtension(const char* extension) const { in hasEglExtension()
109 const String8 s(extension); in hasEglExtension()
DExtensions.h52 bool hasGlExtension(const char* extension) const;
53 bool hasEglExtension(const char* extension) const;
/frameworks/support/v4/java/android/support/v4/provider/
DRawDocumentFile.java38 final String extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in createFile() local
39 if (extension != null) { in createFile()
40 displayName += "." + extension; in createFile()
148 final String extension = name.substring(lastDot + 1).toLowerCase(); in getTypeForName() local
149 final String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); in getTypeForName()
/frameworks/base/media/java/android/media/
DMediaFile.java133 static void addFileType(String extension, int fileType, String mimeType) { in addFileType() argument
134 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType)); in addFileType()
138 static void addFileType(String extension, int fileType, String mimeType, int mtpFormatCode) { in addFileType() argument
139 addFileType(extension, fileType, mimeType); in addFileType()
140 sFileTypeToFormatMap.put(extension, Integer.valueOf(mtpFormatCode)); in addFileType()
324 String extension = fileName.substring(lastDot + 1).toUpperCase(Locale.ROOT); in getFormatCode() local
325 Integer value = sFileTypeToFormatMap.get(extension); in getFormatCode()
/frameworks/compile/mclinker/lib/MC/
DSearchDirs.cpp116 entry.path()->extension().native()) { in find()
130 entry.path()->extension().native()) { in find()
183 entry.path()->extension().native()) { in find()
197 entry.path()->extension().native()) { in find()
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLExtensions.cpp60 bool GLExtensions::hasExtension(char const* extension) const in hasExtension()
62 const String8 s(extension); in hasExtension()
DGLExtensions.h70 bool hasExtension(char const* extension) const;
/frameworks/native/opengl/specs/
DEGL_ANDROID_image_native_buffer.txt37 This extension is written against the wording of the EGL 1.2
42 This extension enables using an Android window buffer (struct
96 1. Should this extension define what combinations of ANativeWindowBuffer
DEGL_ANDROID_recordable.txt33 This extension is written against the wording of the EGL 1.4 Specification
41 incompatible with these ANativeWindows. This extension introduces a new
100 bit in the limit-size bitfield for a platform-specific extension.
110 3. How is this extension expected to be implemented?
112 RESPONSE: There are two basic approaches to implementing this extension
DEGL_ANDROID_blob_cache.txt33 This extension is written against the wording of the EGL 1.4 Specification
44 This extension provides a mechanism through which client API
51 While the focus of this extension is on providing a persistent cache for
56 Note that although this extension is written as if the application
58 as part of the Android EGL module. This extension is not exposed to
204 - Fix typo in New Functions section & assign extension #.
DEGL_ANDROID_framebuffer_target.txt33 This extension is written against the wording of the EGL 1.4 Specification
41 be incompatible with these ANativeWindows. This extension introduces a
DEGL_ANDROID_native_fence_sync.txt33 This extension is written against the wording of the EGL 1.2 Specification
39 This extension enables the creation of EGL fence sync objects that are
42 identical semantics to those defined by the KHR_fence_sync extension,
46 This extension assumes the existence of a native fence synchronization
177 extension indicating it can place fence commands, then EGL_NO_SYNC_KHR
243 EGL call in this extension, ownership of that file descriptor is
266 - Reworded the extension to refer to "native fence" objects rather than
DEGL_ANDROID_presentation_time.txt35 This extension is written against the wording of the EGL 1.4 Specification
40 image is intended to be presented to the viewer. This extension allows
105 in this extension. Some possible uses include Audio/Video synchronization,
DREADME1 This directory contains OpenGL ES and EGL extension specifications that have
/frameworks/base/tools/layoutlib/rename_font/
Dbuild_font_single.py74 extension = os.path.splitext(input_path)[1].lower()
75 if extension in EXTENSIONS:
76 if not COPY_ONLY and extension == '.ttf':
Dbuild_font.py84 extension = os.path.splitext(filename)[1].lower()
85 if extension == '.ttf':
87 elif extension == '.xml':
/frameworks/av/drm/libdrmframework/include/
DPlugInManager.h231 String8 extension(sName.getPathExtension()); in isPlugIn()
233 return extension == String8(PLUGIN_EXTENSION); in isPlugIn()
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
DDrmPassthruPlugIn.cpp162 String8 extension = path.getPathExtension(); in onCanHandle() local
163 extension.toLower(); in onCanHandle()
164 return (String8(".passthru") == extension); in onCanHandle()
/frameworks/base/packages/Keyguard/scripts/
Dnew_merge.py119 def getFileList(rootdir, extension): argument
125 if (os.path.splitext(f)[1] == extension and (not inIgnore(f))):
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_decode_header.cpp179 info->extension = (temp << 23) >> 31; /* 1 */ in pvmp3_decode_header()

1234