Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/link/
DXmlCompatVersioner.cpp27 if (src.compiled_value != nullptr) { in CopyAttr()
28 dst.compiled_value.reset(src.compiled_value->Clone(out_string_pool)); in CopyAttr()
43 if (src_attr.compiled_value != nullptr) { in CopyAttribute()
44 dst_attr->compiled_value.reset(src_attr.compiled_value->Clone(out_string_pool)); in CopyAttribute()
173 CloneIfNotNull(src_attr.compiled_value, out_string_pool)}, in Degrade()
DXmlReferenceLinker.cpp126 attr.compiled_value = ResourceUtils::TryParseItemForAttribute(attr.value, attribute); in Visit()
127 if (attr.compiled_value) { in Visit()
129 attr.compiled_value->SetSource(source); in Visit()
130 attr.compiled_value->Accept(&reference_visitor_); in Visit()
DManifestFixer.cpp182 attr->compiled_value = std::move(result); in FixCoreAppAttribute()
544 attr->compiled_value = {}; in Consume()
550 attr->compiled_value = {}; in Consume()
560 attr->compiled_value = {}; in Consume()
566 attr->compiled_value = {}; in Consume()
DManifestFixer_test.cpp588 EXPECT_THAT(attr->compiled_value, NotNull()); in TEST_F()
589 EXPECT_THAT(ValueCast<BinaryPrimitive>(attr->compiled_value.get()), NotNull()); in TEST_F()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp250 if (attr.compiled_value != nullptr) { in ExtractCompiledString()
251 const String* compiled_str = ValueCast<String>(attr.compiled_value.get()); in ExtractCompiledString()
273 if (attr.compiled_value != nullptr) { in ExtractCompiledInt()
274 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get()); in ExtractCompiledInt()
297 if (attr.compiled_value != nullptr) { in ExtractSdkVersion()
298 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get()); in ExtractSdkVersion()
308 const String* compiled_str = ValueCast<String>(attr.compiled_value.get()); in ExtractSdkVersion()
425 version_code->compiled_value = ResourceUtils::TryParseInt(version_code->value); in SetLongVersionCode()
432 version_major->compiled_value = ResourceUtils::TryParseInt(version_major->value); in SetLongVersionCode()
DLink.cpp786 if (BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
797 } else if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
810 if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
1593 auto icon_reference = ValueCast<Reference>(icon->compiled_value.get()); in AliasAdaptiveIcon()
1621 auto round_icon_reference = ValueCast<Reference>(round_icon->compiled_value.get()); in AliasAdaptiveIcon()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp291 auto version_code_value = ValueCast<BinaryPrimitive>(version_code->compiled_value.get()); in UpdateManifest()
301 version_code_major_value = ValueCast<BinaryPrimitive>(version_code_major->compiled_value.get()); in UpdateManifest()
324 min_sdk_attr->compiled_value = ResourceUtils::TryParseInt(min_sdk_str); in UpdateManifest()
387 size->compiled_value = ResourceUtils::MakeInt(screen_size); in AddScreens()
391 density->compiled_value = ResourceUtils::MakeInt(config.density); in AddScreens()
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.cpp268 if (xml_attr->compiled_value != nullptr) { in WriteAttributes()
271 String* string_value = ValueCast<String>(xml_attr->compiled_value.get()); in WriteAttributes()
277 CHECK(xml_attr->compiled_value->Flatten(&flat_attr->typedValue)); in WriteAttributes()
DXmlFlattener_test.cpp478 doc->root->attributes[0].compiled_value = in TEST_F()
501 doc->root->attributes[0].compiled_value = ResourceUtils::MakeBool(true); in TEST_F()
521 doc->root->attributes[0].compiled_value = ResourceUtils::MakeBool(true); in TEST_F()
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp257 attr.compiled_value = ResourceUtils::ParseBinaryResValue( in CopyAttributes()
384 if (attr.compiled_value != nullptr) { in Clone()
385 cloned_attr.compiled_value.reset(attr.compiled_value->Clone(&cloned->string_pool)); in Clone()
DXmlDom.h83 std::unique_ptr<Item> compiled_value; member
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp201 attr.compiled_value = in TEST()
203 attr.compiled_value->SetSource(Source().WithLine(25)); in TEST()
248 ASSERT_THAT(actual_attr.compiled_value, NotNull()); in TEST()
249 const BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(actual_attr.compiled_value.get()); in TEST()
DProtoSerialize.cpp707 if (attr.compiled_value != nullptr) { in SerializeXmlToPb()
708 SerializeItemToPb(*attr.compiled_value, pb_attr->mutable_compiled_item()); in SerializeXmlToPb()
710 pb_src->set_line_number(attr.compiled_value->GetSource().line.value_or_default(0)); in SerializeXmlToPb()
DProtoDeserialize.cpp988 attr.compiled_value = in DeserializeXmlFromPb()
990 if (attr.compiled_value == nullptr) { in DeserializeXmlFromPb()
993 attr.compiled_value->SetSource(Source().WithLine(pb_attr.source().line_number())); in DeserializeXmlFromPb()
/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/dump/
DDumpManifest.cpp236 if (attr->compiled_value) { in GetAttributeInteger()
238 Value* value = attr->compiled_value.get(); in GetAttributeInteger()
242 value = attr->compiled_value.get(); in GetAttributeInteger()
275 if (attr->compiled_value) { in GetAttributeString()
277 Value* value = attr->compiled_value.get(); in GetAttributeString()
281 value = attr->compiled_value.get(); in GetAttributeString()
/frameworks/base/tools/aapt2/
DDebug.cpp497 if (attr.compiled_value != nullptr) { in Visit()
498 attr.compiled_value->PrettyPrint(printer_); in Visit()