/aosp14/frameworks/base/tools/aapt2/link/ |
H A D | XmlCompatVersioner.cpp | 28 if (src.compiled_value != nullptr) { in CopyAttr() 29 dst.compiled_value = src.compiled_value->Transform(cloner); in CopyAttr() 45 if (src_attr.compiled_value != nullptr) { in CopyAttribute() 46 dst_attr->compiled_value = src_attr.compiled_value->Transform(cloner); in CopyAttribute() 176 CloneIfNotNull(src_attr.compiled_value, out_string_pool)}, in Degrade()
|
H A D | XmlReferenceLinker.cpp | 93 attr.compiled_value = ResourceUtils::TryParseItemForAttribute(attr.value, attribute); in Visit() 94 if (attr.compiled_value) { in Visit() 96 attr.compiled_value->SetSource(source); in Visit() 97 attr.compiled_value = attr.compiled_value->Transform(reference_transformer_); in Visit()
|
H A D | ManifestFixer.cpp | 323 attr->compiled_value = std::move(result); in FixCoreAppAttribute() 726 attr->compiled_value = {}; in Consume() 732 attr->compiled_value = {}; in Consume() 741 attr->compiled_value = {}; in Consume() 747 attr->compiled_value = {}; in Consume()
|
H A D | ManifestFixer_test.cpp | 696 EXPECT_THAT(attr->compiled_value, NotNull()); in TEST_F() 697 EXPECT_THAT(ValueCast<BinaryPrimitive>(attr->compiled_value.get()), NotNull()); in TEST_F()
|
/aosp14/frameworks/base/tools/aapt2/cmd/ |
H A D | Util.cpp | 251 if (attr.compiled_value != nullptr) { in ExtractCompiledString() 252 const String* compiled_str = ValueCast<String>(attr.compiled_value.get()); in ExtractCompiledString() 275 if (attr.compiled_value != nullptr) { in ExtractCompiledInt() 276 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get()); in ExtractCompiledInt() 299 if (attr.compiled_value != nullptr) { in ExtractSdkVersion() 300 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get()); in ExtractSdkVersion() 310 const String* compiled_str = ValueCast<String>(attr.compiled_value.get()); in ExtractSdkVersion() 429 version_code->compiled_value = ResourceUtils::TryParseInt(version_code->value); in SetLongVersionCode() 436 version_major->compiled_value = ResourceUtils::TryParseInt(version_major->value); in SetLongVersionCode()
|
H A D | Link.cpp | 800 if (BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(attr->compiled_value.get())) { in ExtractCompileSdkVersions() 811 } else if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions() 824 if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions() 1082 if (localeConfig->compiled_value) { in VerifyLocaleFormat() 1083 const auto localeconfig_reference = ValueCast<Reference>(localeConfig->compiled_value.get()); in VerifyLocaleFormat() 1092 android::DiagMessage(localeConfig->compiled_value->GetSource()) in VerifyLocaleFormat() 1100 android::DiagMessage(localeConfig->compiled_value->GetSource()) in VerifyLocaleFormat() 1737 const auto icon_reference = ValueCast<Reference>(icon->compiled_value.get()); in AliasAdaptiveIcon() 1754 const auto round_icon_reference = ValueCast<Reference>(round_icon->compiled_value.get()); in AliasAdaptiveIcon() 1818 if (attr->compiled_value) { in VerifySharedUserId() [all …]
|
/aosp14/frameworks/base/tools/aapt2/optimize/ |
H A D | MultiApkGenerator.cpp | 298 auto version_code_value = ValueCast<BinaryPrimitive>(version_code->compiled_value.get()); in UpdateManifest() 308 version_code_major_value = ValueCast<BinaryPrimitive>(version_code_major->compiled_value.get()); in UpdateManifest() 331 min_sdk_attr->compiled_value = ResourceUtils::TryParseInt(min_sdk_str); in UpdateManifest() 396 size->compiled_value = ResourceUtils::MakeInt(screen_size); in AddScreens() 400 density->compiled_value = ResourceUtils::MakeInt(config.density); in AddScreens()
|
/aosp14/frameworks/base/tools/aapt2/format/binary/ |
H A D | XmlFlattener.cpp | 269 if (xml_attr->compiled_value != nullptr) { in WriteAttributes() 272 String* string_value = ValueCast<String>(xml_attr->compiled_value.get()); in WriteAttributes() 278 CHECK(xml_attr->compiled_value->Flatten(&flat_attr->typedValue)); in WriteAttributes()
|
H A D | XmlFlattener_test.cpp | 477 doc->root->attributes[0].compiled_value = in TEST_F() 500 doc->root->attributes[0].compiled_value = ResourceUtils::MakeBool(true); in TEST_F() 520 doc->root->attributes[0].compiled_value = ResourceUtils::MakeBool(true); in TEST_F()
|
/aosp14/frameworks/base/tools/aapt2/xml/ |
H A D | XmlDom.cpp | 259 attr.compiled_value = ResourceUtils::ParseBinaryResValue( in CopyAttributes() 389 if (attr.compiled_value != nullptr) { in Clone() 390 cloned_attr.compiled_value = attr.compiled_value->Transform(cloner); in Clone()
|
H A D | XmlDom.h | 82 std::unique_ptr<Item> compiled_value; member
|
/aosp14/frameworks/base/tools/aapt2/java/ |
H A D | ProguardRules.cpp | 69 if (attr.compiled_value) { in Visit() 70 auto ref = ValueCast<Reference>(attr.compiled_value.get()); in Visit()
|
/aosp14/frameworks/base/tools/aapt2/format/proto/ |
H A D | ProtoSerialize.cpp | 776 if (attr.compiled_value != nullptr) { in SerializeXmlToPb() 777 SerializeItemToPb(*attr.compiled_value, pb_attr->mutable_compiled_item()); in SerializeXmlToPb() 779 pb_src->set_line_number(attr.compiled_value->GetSource().line.value_or(0)); in SerializeXmlToPb()
|
H A D | ProtoSerialize_test.cpp | 272 attr.compiled_value = in TEST() 274 attr.compiled_value->SetSource(android::Source().WithLine(25)); in TEST() 319 ASSERT_THAT(actual_attr.compiled_value, NotNull()); in TEST() 320 const BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(actual_attr.compiled_value.get()); in TEST()
|
H A D | ProtoDeserialize.cpp | 1050 attr.compiled_value = in DeserializeXmlFromPb() 1052 if (attr.compiled_value == nullptr) { in DeserializeXmlFromPb() 1055 attr.compiled_value->SetSource(android::Source().WithLine(pb_attr.source().line_number())); in DeserializeXmlFromPb()
|
/aosp14/frameworks/base/tools/aapt2/dump/ |
H A D | DumpManifest.cpp | 351 if (attr->compiled_value) { in GetAttributeInteger() 353 Value* value = attr->compiled_value.get(); in GetAttributeInteger() 357 value = attr->compiled_value.get(); in GetAttributeInteger() 390 if (attr->compiled_value) { in GetAttributeString() 392 Value* value = attr->compiled_value.get(); in GetAttributeString() 396 value = attr->compiled_value.get(); in GetAttributeString()
|
/aosp14/frameworks/base/tools/aapt2/ |
H A D | Debug.cpp | 492 if (attr.compiled_value != nullptr) { in Visit() 493 attr.compiled_value->PrettyPrint(printer_); in Visit()
|