Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/link/
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()
DXmlReferenceLinker.cpp93 attr.compiled_value = ResourceUtils::TryParseItemForAttribute(context_->GetDiagnostics(), in Visit()
95 if (attr.compiled_value) { in Visit()
97 attr.compiled_value->SetSource(source); in Visit()
98 attr.compiled_value = attr.compiled_value->Transform(reference_transformer_); in Visit()
DManifestFixer.cpp323 attr->compiled_value = std::move(result); in FixCoreAppAttribute()
738 attr->compiled_value = {}; in Consume()
744 attr->compiled_value = {}; in Consume()
753 attr->compiled_value = {}; in Consume()
759 attr->compiled_value = {}; in Consume()
DManifestFixer_test.cpp773 EXPECT_THAT(attr->compiled_value, NotNull()); in TEST_F()
774 EXPECT_THAT(ValueCast<BinaryPrimitive>(attr->compiled_value.get()), NotNull()); in TEST_F()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp301 if (attr.compiled_value != nullptr) { in ExtractCompiledString()
302 const String* compiled_str = ValueCast<String>(attr.compiled_value.get()); in ExtractCompiledString()
325 if (attr.compiled_value != nullptr) { in ExtractCompiledInt()
326 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get()); in ExtractCompiledInt()
349 if (attr.compiled_value != nullptr) { in ExtractSdkVersion()
350 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get()); in ExtractSdkVersion()
360 const String* compiled_str = ValueCast<String>(attr.compiled_value.get()); in ExtractSdkVersion()
479 version_code->compiled_value = ResourceUtils::TryParseInt(version_code->value); in SetLongVersionCode()
486 version_major->compiled_value = ResourceUtils::TryParseInt(version_major->value); in SetLongVersionCode()
DLink.cpp803 if (BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
814 } else if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
827 if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
1085 if (localeConfig->compiled_value) { in VerifyLocaleFormat()
1086 const auto localeconfig_reference = ValueCast<Reference>(localeConfig->compiled_value.get()); in VerifyLocaleFormat()
1095 android::DiagMessage(localeConfig->compiled_value->GetSource()) in VerifyLocaleFormat()
1103 android::DiagMessage(localeConfig->compiled_value->GetSource()) in VerifyLocaleFormat()
1740 const auto icon_reference = ValueCast<Reference>(icon->compiled_value.get()); in AliasAdaptiveIcon()
1757 const auto round_icon_reference = ValueCast<Reference>(round_icon->compiled_value.get()); in AliasAdaptiveIcon()
1821 if (attr->compiled_value) { in VerifySharedUserId()
[all …]
/frameworks/base/tools/aapt2/optimize/
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()
/frameworks/base/tools/aapt2/format/binary/
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()
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()
/frameworks/base/tools/aapt2/xml/
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()
DXmlDom.h82 std::unique_ptr<Item> compiled_value; member
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp69 if (attr.compiled_value) { in Visit()
70 auto ref = ValueCast<Reference>(attr.compiled_value.get()); in Visit()
/frameworks/base/tools/aapt2/format/proto/
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()
DProtoSerialize_test.cpp273 attr.compiled_value = ResourceUtils::TryParseItemForAttribute( in TEST()
275 attr.compiled_value->SetSource(android::Source().WithLine(25)); in TEST()
320 ASSERT_THAT(actual_attr.compiled_value, NotNull()); in TEST()
321 const BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(actual_attr.compiled_value.get()); in TEST()
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()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp349 if (attr->compiled_value) { in GetAttributeInteger()
351 Value* value = attr->compiled_value.get(); in GetAttributeInteger()
355 value = attr->compiled_value.get(); in GetAttributeInteger()
388 if (attr->compiled_value) { in GetAttributeString()
390 Value* value = attr->compiled_value.get(); in GetAttributeString()
394 value = attr->compiled_value.get(); in GetAttributeString()
/frameworks/base/tools/aapt2/
DDebug.cpp502 if (attr.compiled_value != nullptr) { in Visit()
503 attr.compiled_value->PrettyPrint(printer_); in Visit()