Home
last modified time | relevance | path

Searched refs:compiled_value (Results 1 – 17 of 17) sorted by relevance

/aosp14/frameworks/base/tools/aapt2/link/
H A DXmlCompatVersioner.cpp28 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 DXmlReferenceLinker.cpp93 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 DManifestFixer.cpp323 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 DManifestFixer_test.cpp696 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 DUtil.cpp251 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 DLink.cpp800 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 DMultiApkGenerator.cpp298 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 DXmlFlattener.cpp269 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 DXmlFlattener_test.cpp477 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 DXmlDom.cpp259 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 DXmlDom.h82 std::unique_ptr<Item> compiled_value; member
/aosp14/frameworks/base/tools/aapt2/java/
H A DProguardRules.cpp69 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 DProtoSerialize.cpp776 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 DProtoSerialize_test.cpp272 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 DProtoDeserialize.cpp1050 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 DDumpManifest.cpp351 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 DDebug.cpp492 if (attr.compiled_value != nullptr) { in Visit()
493 attr.compiled_value->PrettyPrint(printer_); in Visit()