/frameworks/base/tools/aapt2/util/ |
D | Maybe.h | 35 class Maybe { 40 Maybe(); 42 ~Maybe(); 44 Maybe(const Maybe& rhs); 47 Maybe(const Maybe<U>& rhs); // NOLINT(google-explicit-constructor) 49 Maybe(Maybe&& rhs) noexcept; 52 Maybe(Maybe<U>&& rhs); // NOLINT(google-explicit-constructor) 54 Maybe& operator=(const Maybe& rhs); 57 Maybe& operator=(const Maybe<U>& rhs); 59 Maybe& operator=(Maybe&& rhs) noexcept; [all …]
|
D | Maybe_test.cpp | 82 Maybe<int> val = make_nothing<int>(); in TEST() 85 Maybe<std::string> val2 = make_nothing<std::string>(); in TEST() 93 Maybe<int> val = make_value(23); in TEST() 97 Maybe<std::string> val2 = make_value(std::string("hey")); in TEST() 103 Maybe<Dummy> val = make_nothing<Dummy>(); in TEST() 105 Maybe<Dummy> val2 = make_value(Dummy()); in TEST() 109 Maybe<Dummy> val; in TEST() 111 Maybe<Dummy> val2 = Dummy(); in TEST() 117 Maybe<int> a = 1; in TEST() 118 Maybe<int> b = 1; in TEST() [all …]
|
D | Files.h | 84 Maybe<android::FileMap> MmapPath(const std::string& path, std::string* out_error); 127 Maybe<std::vector<std::string>> FindFiles(const android::StringPiece& path, IDiagnostics* diag,
|
/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer.h | 33 Maybe<std::string> min_sdk_version_default; 36 Maybe<std::string> target_sdk_version_default; 41 Maybe<std::string> rename_manifest_package; 45 Maybe<std::string> rename_instrumentation_target_package; 49 Maybe<std::string> rename_overlay_target_package; 53 Maybe<std::string> version_name_default; 57 Maybe<std::string> version_code_default; 61 Maybe<std::string> version_code_major_default; 65 Maybe<std::string> compile_sdk_version; 69 Maybe<std::string> compile_sdk_version_codename;
|
/frameworks/base/tools/aapt2/cmd/ |
D | Link.h | 46 Maybe<std::string> rename_resources_package; 49 Maybe<std::string> generate_java_class_path; 50 Maybe<std::string> custom_java_package; 52 Maybe<std::string> generate_text_symbols_path; 53 Maybe<std::string> generate_proguard_rules_path; 54 Maybe<std::string> generate_main_dex_proguard_rules_path; 59 Maybe<std::string> private_symbols; 70 Maybe<std::regex> regex_to_not_compress; 95 Maybe<std::string> resource_id_map_path; 300 Maybe<std::string> package_id_; [all …]
|
D | Optimize.h | 32 Maybe<std::string> output_path; 34 Maybe<std::string> output_dir; 53 Maybe<std::vector<aapt::configuration::OutputArtifact>> apk_artifacts; 63 Maybe<std::string> shortened_paths_map_path; 127 Maybe<std::string> config_path_; 128 Maybe<std::string> whitelist_path_; 129 Maybe<std::string> resources_config_path_; 130 Maybe<std::string> target_densities_;
|
D | Compile.h | 31 Maybe<std::string> res_dir; 32 Maybe<std::string> res_zip; 33 Maybe<std::string> generate_text_symbols_path; 34 Maybe<Visibility::Level> visibility; 79 Maybe<std::string> visibility_; 80 Maybe<std::string> trace_folder_;
|
D | Util.cpp | 38 Maybe<uint16_t> ParseTargetDensityParameter(const StringPiece& arg, IDiagnostics* diag) { in ParseTargetDensityParameter() 248 static Maybe<std::string> ExtractCompiledString(const xml::Attribute& attr, in ExtractCompiledString() 272 static Maybe<uint32_t> ExtractCompiledInt(const xml::Attribute& attr, std::string* out_error) { in ExtractCompiledInt() 286 Maybe<uint32_t> integer = ResourceUtils::ParseInt(attr.value); in ExtractCompiledInt() 296 static Maybe<int> ExtractSdkVersion(const xml::Attribute& attr, std::string* out_error) { in ExtractSdkVersion() 310 Maybe<int> sdk_version = ResourceUtils::ParseSdkVersion(*compiled_str->value); in ExtractSdkVersion() 323 Maybe<int> sdk_version = ResourceUtils::ParseSdkVersion(attr.value); in ExtractSdkVersion() 333 Maybe<AppInfo> ExtractAppInfoFromBinaryManifest(const xml::XmlResource& xml_res, in ExtractAppInfoFromBinaryManifest() 355 Maybe<std::string> maybe_package = ExtractCompiledString(*package_attr, &error_msg); in ExtractAppInfoFromBinaryManifest() 365 Maybe<uint32_t> maybe_code = ExtractCompiledInt(*version_code_attr, &error_msg); in ExtractAppInfoFromBinaryManifest() [all …]
|
D | Util.h | 36 Maybe<uint16_t> ParseTargetDensityParameter(const android::StringPiece& arg, IDiagnostics* diag); 62 Maybe<AppInfo> ExtractAppInfoFromBinaryManifest(const xml::XmlResource& xml_res,
|
/frameworks/base/tools/aapt2/configuration/ |
D | ConfigurationParser.internal.h | 87 ComparisonChain& Add(const Group<T>& groups, const Maybe<std::string>& lhs, in Add() 88 const Maybe<std::string>& rhs) { in Add() 111 inline size_t GetGroupOrder(const Entry<T>& groups, const Maybe<std::string>& label) { in GetGroupOrder() 125 Maybe<std::string> name; 127 Maybe<std::string> abi_group; 129 Maybe<std::string> screen_density_group; 131 Maybe<std::string> locale_group; 133 Maybe<std::string> android_sdk; 135 Maybe<std::string> device_feature_group; 137 Maybe<std::string> gl_texture_group; [all …]
|
D | ConfigurationParser.h | 58 Maybe<std::string> lang; 60 Maybe<std::string> region; 77 Maybe<int> target_sdk_version; 78 Maybe<int> max_sdk_version; 79 Maybe<AndroidManifest> manifest; 115 Maybe<AndroidSdk> android_sdk; 139 static Maybe<ConfigurationParser> ForPath(const std::string& path); 157 Maybe<std::vector<configuration::OutputArtifact>> Parse(const android::StringPiece& apk_path);
|
D | ConfigurationParser.cpp | 116 Maybe<int32_t> GetVersionCodeOrder(const Element* element, IDiagnostics* diag) { in GetVersionCodeOrder() 138 bool CopyXmlReferences(const Maybe<std::string>& name, const Group<T>& groups, in CopyXmlReferences() 162 bool ReplacePlaceholder(const StringPiece& placeholder, const Maybe<StringPiece>& value, in ReplacePlaceholder() 210 Maybe<OutputArtifact> ToOutputArtifact(const ConfiguredArtifact& artifact, in ToOutputArtifact() 220 Maybe<std::string> artifact_name = in ToOutputArtifact() 290 Maybe<PostProcessingConfiguration> ExtractConfiguration(const std::string& contents, in ExtractConfiguration() 354 Maybe<std::string> ToBaseName(std::string result, const StringPiece& apk_name, IDiagnostics* diag) { in ToBaseName() 362 Maybe<StringPiece> maybe_base_name = in ToBaseName() 363 base_name.empty() ? Maybe<StringPiece>{} : Maybe<StringPiece>{base_name}; in ToBaseName() 386 Maybe<std::string> ConfiguredArtifact::ToArtifactName(const StringPiece& format, in ToArtifactName() [all …]
|
/frameworks/base/tools/aapt2/ |
D | AppInfo.h | 32 Maybe<int> min_sdk_version; 35 Maybe<uint32_t> version_code; 38 Maybe<uint32_t> version_code_major; 41 Maybe<uint32_t> revision_code; 44 Maybe<std::string> split_name;
|
D | ResourceTable.h | 138 Maybe<uint16_t> id; 143 Maybe<AllowNew> allow_new; 146 Maybe<OverlayableItem> overlayable_item; 186 Maybe<uint8_t> id; 197 Maybe<uint16_t> id = Maybe<uint16_t>()); 199 Maybe<uint16_t> id = Maybe<uint16_t>()); 210 Maybe<uint8_t> id; 215 ResourceTableType* FindType(ResourceType type, Maybe<uint8_t> id = Maybe<uint8_t>()); 217 Maybe<uint8_t> id = Maybe<uint8_t>()); 280 Maybe<SearchResult> FindResource(const ResourceNameRef& name) const; [all …]
|
D | ResourceUtils.h | 78 Maybe<ResourceName> ToResourceName( 84 Maybe<ResourceName> ToResourceName( 91 Maybe<bool> ParseBool(const android::StringPiece& str); 96 Maybe<uint32_t> ParseInt(const android::StringPiece& str); 101 Maybe<ResourceId> ParseResourceId(const android::StringPiece& str); 106 Maybe<int> ParseSdkVersion(const android::StringPiece& str); 119 Maybe<Reference> ParseStyleParentReference(const android::StringPiece& str, std::string* out_error); 128 Maybe<Reference> ParseXmlAttributeName(const android::StringPiece& str);
|
D | ResourceUtils_test.cpp | 33 EXPECT_THAT(ResourceUtils::ParseBool("true"), Eq(Maybe<bool>(true))); in TEST() 34 EXPECT_THAT(ResourceUtils::ParseBool("TRUE"), Eq(Maybe<bool>(true))); in TEST() 35 EXPECT_THAT(ResourceUtils::ParseBool("True"), Eq(Maybe<bool>(true))); in TEST() 37 EXPECT_THAT(ResourceUtils::ParseBool("false"), Eq(Maybe<bool>(false))); in TEST() 38 EXPECT_THAT(ResourceUtils::ParseBool("FALSE"), Eq(Maybe<bool>(false))); in TEST() 39 EXPECT_THAT(ResourceUtils::ParseBool("False"), Eq(Maybe<bool>(false))); in TEST() 41 EXPECT_THAT(ResourceUtils::ParseBool(" False\n "), Eq(Maybe<bool>(false))); in TEST() 144 Maybe<Reference> ref = ResourceUtils::ParseStyleParentReference("@android:style/foo", &err_str); in TEST() 217 EXPECT_THAT(ResourceUtils::ParseSdkVersion("Q"), Eq(Maybe<int>(10000))); in TEST() 220 Eq(Maybe<int>(10000))); in TEST() [all …]
|
D | ResourceParser.cpp | 102 Maybe<OverlayableItem> overlayable_item; 239 Maybe<size_t> untranslatable_start_depth; in FlattenXmlSubtree() 455 if (Maybe<StringPiece> maybe_product = xml::FindNonEmptyAttribute(parser, "product")) { in ParseResources() 545 if (Maybe<StringPiece> maybe_type = xml::FindNonEmptyAttribute(parser, "type")) { in ParseResource() 553 if (Maybe<StringPiece> maybe_format = xml::FindNonEmptyAttribute(parser, "format")) { in ParseResource() 569 if (Maybe<StringPiece> maybe_type = xml::FindNonEmptyAttribute(parser, "type")) { in ParseResource() 580 Maybe<StringPiece> maybe_name = xml::FindNonEmptyAttribute(parser, "name"); in ParseResource() 790 if (Maybe<StringPiece> formatted_attr = in ParseString() 792 Maybe<bool> maybe_formatted = in ParseString() 803 if (Maybe<StringPiece> translatable_attr = xml::FindAttribute(parser, "translatable")) { in ParseString() [all …]
|
D | ResourceTable.cpp | 47 const std::pair<ResourceType, Maybe<uint8_t>>& rhs) { in less_than_type_and_id() 58 const std::pair<StringPiece, Maybe<uint16_t>>& rhs) { in less_than_struct_with_name_and_id() 82 ResourceTablePackage* ResourceTable::CreatePackage(const StringPiece& name, Maybe<uint8_t> id) { in CreatePackage() 97 const Maybe<uint8_t> id) { in CreatePackageAllowingDuplicateNames() 125 ResourceTableType* ResourceTablePackage::FindType(ResourceType type, const Maybe<uint8_t> id) { in FindType() 136 const Maybe<uint8_t> id) { in FindOrCreateType() 149 ResourceEntry* ResourceTableType::FindEntry(const StringPiece& name, const Maybe<uint16_t> id) { in FindEntry() 160 const Maybe<uint16_t > id) { in FindOrCreateEntry() 417 : Maybe<uint8_t>()); in AddResourceImpl() 429 : Maybe<uint16_t>()); in AddResourceImpl() [all …]
|
D | SdkConstants.cpp | 77 Maybe<ApiVersion> GetDevelopmentSdkCodeNameVersion(const StringPiece& code_name) { in GetDevelopmentSdkCodeNameVersion() 79 ? Maybe<ApiVersion>() : sDevelopmentSdkLevel; in GetDevelopmentSdkCodeNameVersion()
|
D | ResourceUtils.cpp | 43 Maybe<ResourceName> ToResourceName( in ToResourceName() 81 Maybe<ResourceName> ToResourceName(const android::AssetManager2::ResourceName& name_in) { in ToResourceName() 254 Maybe<Reference> ParseStyleParentReference(const StringPiece& str, in ParseStyleParentReference() 304 Maybe<Reference> ParseXmlAttributeName(const StringPiece& str) { in ParseXmlAttributeName() 329 return Maybe<Reference>(std::move(ref)); in ParseXmlAttributeName() 491 Maybe<bool> ParseBool(const StringPiece& str) { in ParseBool() 494 return Maybe<bool>(true); in ParseBool() 497 return Maybe<bool>(false); in ParseBool() 502 Maybe<uint32_t> ParseInt(const StringPiece& str) { in ParseInt() 511 Maybe<ResourceId> ParseResourceId(const StringPiece& str) { in ParseResourceId() [all …]
|
D | Source.h | 33 Maybe<size_t> line; 34 Maybe<std::string> archive;
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator.h | 49 Maybe<OnResourcesLoadedCallbackOptions> rewrite_callback_options; 86 bool SkipSymbol(const Maybe<SymbolTable::Symbol>& symbol); 90 Maybe<std::string> UnmangleResource(const android::StringPiece& package_name,
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlUtil.h | 56 Maybe<ExtractedPackage> ExtractPackageFromNamespace(const std::string& namespace_uri); 72 virtual Maybe<ExtractedPackage> TransformPackageAlias(
|
D | XmlDom.h | 68 explicit AaptAttribute(const ::aapt::Attribute& attr, const Maybe<ResourceId>& resid = {}) 73 Maybe<ResourceId> id; 82 Maybe<AaptAttribute> compiled_attribute; 238 Maybe<ExtractedPackage> TransformPackageAlias(const android::StringPiece& alias) const override;
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 79 Maybe<ResourceName> name_with_package_impl; in FindByName() 93 Maybe<ResourceName> mangled_name_impl; in FindByName() 186 Maybe<ResourceTable::SearchResult> result = table_->FindResource(name); in FindByName() 307 Maybe<ResourceName> parsed_name = ResourceUtils::ToResourceName(name); in LookupAttributeInTable() 370 static Maybe<ResourceName> GetResourceName(android::AssetManager2& am, in GetResourceName() 390 Maybe<ResourceName> maybe_name = GetResourceName(asset_manager_, id); in FindById()
|