Searched refs:extension (Results 1 - 25 of 48) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/fragments/
H A DExtensionFragmentListener.java28 * selected by the extension.
40 private ExtensionFragmentListener(View view, String tag, int id, Extension<T> extension) { argument
43 mExtension = extension;
52 public void accept(T extension) { argument
54 Fragment.class.cast(extension);
56 mOldClass, extension.getClass().getName(), mExtension.getContext());
57 mOldClass = extension.getClass().getName();
59 Log.e(TAG, extension.getClass().getName() + " must be a Fragment", e);
65 Extension<T> extension) {
66 extension
64 attachExtensonToFragment(View view, String tag, int id, Extension<T> extension) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DMimeTypeMap.java40 * Returns the file extension or an empty string if there is no
41 * extension. This method is a convenience method for obtaining the
42 * extension of a url and has undefined results for other Strings.
44 * @return The file extension of the given url.
86 * Return the MIME type for the given extension.
87 * @param extension A file extension without the leading '.'
88 * @return The MIME type for the given extension or {@code null} if there is none.
91 public String getMimeTypeFromExtension(String extension) { argument
92 return MimeUtils.guessMimeTypeFromExtension(extension);
96 mimeTypeFromExtension(String extension) argument
105 hasExtension(String extension) argument
[all...]
H A DURLUtil.java294 * the URL and contentDisposition. File extension, if not defined,
307 String extension = null;
343 // Split filename between base and extension
344 // Add an extension if filename does not have one
348 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType);
349 if (extension != null) {
350 extension = "." + extension;
353 if (extension == null) {
356 extension
[all...]
/frameworks/support/app-toolkit/buildSrc/src/main/kotlin/androidx/build/
H A DMavenUploadHelper.kt27 fun apply(project: Project, extension: SupportLibraryExtension) {
29 if (extension.publish) {
30 if (extension.mavenGroup == null) {
33 if (extension.mavenVersion == null) {
36 project.group = extension.mavenGroup!!
37 project.version = extension.mavenVersion.toString()
58 if (extension.publish) {
64 "name"(extension.name)
65 "description"(extension.description)
66 "url"(extension
[all...]
H A DSourceJarTaskHelper.kt29 fun setUpSoureJarTaskForAndroidProject(project: Project, extension: LibraryExtension) {
31 extension.libraryVariants.all { libraryVariant ->
39 sourceJar.from(extension.sourceSets.findByName("main")!!.java.srcDirs)
H A DDiffAndDocs.kt162 private fun registerPrebuilts(extension: SupportLibraryExtension) =
167 val resolvedRule = rule.resolve(extension)
170 val dependency = strategy.dependency(extension)
181 private fun tipOfTreeTasks(extension: SupportLibraryExtension, setup: (DoclavaTask) -> Unit) {
182 rules.filter { rule -> rule.resolve(extension).strategy == TipOfTree }
191 fun registerJavaProject(project: Project, extension: SupportLibraryExtension) {
192 if (!hasApiTasks(project, extension)) {
197 registerPrebuilts(extension)
199 tipOfTreeTasks(extension) { task ->
222 extension
[all...]
/frameworks/support/buildSrc/src/main/kotlin/androidx/build/
H A DMavenUploadHelper.kt27 fun apply(project: Project, extension: SupportLibraryExtension) {
29 if (extension.publish) {
30 if (extension.mavenGroup == null) {
33 if (extension.mavenVersion == null) {
36 project.group = extension.mavenGroup!!
37 project.version = extension.mavenVersion.toString()
58 if (extension.publish) {
64 "name"(extension.name)
65 "description"(extension.description)
66 "url"(extension
[all...]
H A DSourceJarTaskHelper.kt29 fun setUpSoureJarTaskForAndroidProject(project: Project, extension: LibraryExtension) {
31 extension.libraryVariants.all { libraryVariant ->
39 sourceJar.from(extension.sourceSets.findByName("main")!!.java.srcDirs)
H A DDiffAndDocs.kt162 private fun registerPrebuilts(extension: SupportLibraryExtension) =
167 val resolvedRule = rule.resolve(extension)
170 val dependency = strategy.dependency(extension)
181 private fun tipOfTreeTasks(extension: SupportLibraryExtension, setup: (DoclavaTask) -> Unit) {
182 rules.filter { rule -> rule.resolve(extension).strategy == TipOfTree }
191 fun registerJavaProject(project: Project, extension: SupportLibraryExtension) {
192 if (!hasApiTasks(project, extension)) {
197 registerPrebuilts(extension)
199 tipOfTreeTasks(extension) { task ->
222 extension
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DGLExtensions.cpp54 bool GLExtensions::hasExtension(char const* extension) const {
55 const String8 s(extension);
80 // EGL_ANDROIDX_no_config_context is an experimental extension with no
86 // EGL_KHR_no_config_context is official extension to allow creating a
122 bool GLExtensions::hasEGLExtension(char const* extension) const {
123 const String8 s(extension);
H A DGLExtensions.h79 bool hasExtension(char const* extension) const;
84 bool hasEGLExtension(char const* extension) const;
/frameworks/av/media/libstagefright/
H A DStagefrightMediaScanner.cpp37 static bool FileHasAcceptableExtension(const char *extension) { argument
50 if (!strcasecmp(extension, kValidExtensions[i])) {
78 const char *extension = strrchr(path, '.'); local
80 if (!extension) {
84 if (!FileHasAcceptableExtension(extension)) {
/frameworks/base/tools/validatekeymaps/
H A DMain.cpp70 const char *extension = strrchr(filename, '.'); local
71 if (extension) {
72 if (strcmp(extension, ".kl") == 0) {
75 if (strcmp(extension, ".kcm") == 0) {
78 if (strcmp(extension, ".idc") == 0) {
/frameworks/base/tools/split-select/
H A DSplitDescription.cpp71 String8 extension; local
73 if (extension.isEmpty()) {
74 extension.append(":");
76 extension.append("-");
78 extension.append(abi::toString(abi));
81 str.append(extension);
/frameworks/support/documentfile/src/main/java/androidx/documentfile/provider/
H A DRawDocumentFile.java40 // Tack on extension when valid MIME type provided
41 final String extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType);
42 if (extension != null) {
43 displayName += "." + extension;
158 final String extension = name.substring(lastDot + 1).toLowerCase();
159 final String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
/frameworks/compile/mclinker/lib/MC/
H A DSearchDirs.cpp108 entry.path()->extension().native()) {
122 entry.path()->extension().native()) {
173 entry.path()->extension().native()) {
187 entry.path()->extension().native()) {
/frameworks/data-binding/developmentPlugins/localizeMavenPlugin/src/main/groovy/android/databinding/
H A DLocalizeDependenciesTask.groovy70 LocalizePluginExtension extension = project.extensions.
72 if (extension.localRepoDir == null || extension.otherRepoDirs == null) {
76 " otherRepoDirs. localRepoDir: " + extension.localRepoDir +
77 "\notherRepoDir:" + extension.otherRepoDirs;
82 localRepoDir = extension.localRepoDir
83 downloadAll(extension.localRepoDir, extension.otherRepoDirs)
/frameworks/layoutlib/rename_font/
H A 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':
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_dec_defs.h127 int32 extension; member in struct:__anon586
H A Dpvmp3_decode_header.cpp179 info->extension = (temp << 23) >> 31; /* 1 */
/frameworks/native/vulkan/libvulkan/
H A Ddriver_gen.h57 Extension extension; member in struct:vulkan::driver::ProcHook
/frameworks/base/media/java/android/media/
H A DMediaFile.java139 // maps file extension to MTP format code
149 static void addFileType(String extension, int fileType, String mimeType) { argument
150 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType));
154 private static void addFileType(String extension, int fileType, String mimeType, argument
156 addFileType(extension, fileType, mimeType);
157 sFileTypeToFormatMap.put(extension, Integer.valueOf(mtpFormatCode));
339 // truncate the file extension (if any)
366 String extension = fileName.substring(lastDot + 1).toUpperCase(Locale.ROOT);
367 Integer value = sFileTypeToFormatMap.get(extension);
/frameworks/native/vulkan/vkjson/
H A Dvkjson_instance.cc53 [extension_name](const char* extension) {
54 return strcmp(extension, extension_name) == 0;
61 [extension_name](const VkExtensionProperties& extension) {
62 return strcmp(extension.extensionName,
322 for (const auto extension : kSupportedInstanceExtensions) {
323 if (HasExtension(extension, instance.extensions))
324 instance_extensions.push_back(extension);
/frameworks/base/tools/aapt2/cmd/
H A DCompile.cpp63 std::string extension; member in struct:aapt::ResourcePathData
102 StringPiece extension; local
107 // Split on .9.png if this extension is present at the end of the file path
109 extension = "9.png";
114 extension = name.substr(dot_pos + 1, filename.size() - (dot_pos + 1));
120 extension.to_string(), config_str.to_string(), config};
140 if (!data.extension.empty()) {
141 name << "." << data.extension;
539 if (path_data.extension == "9.png") {
776 if (path_data.resource_dir == "values" && path_data.extension
[all...]
/frameworks/av/drm/drmserver/
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);

Completed in 419 milliseconds

12