Searched refs:compiled_value (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/tools/aapt2/link/
H A DXmlCompatVersioner.cpp27 if (src.compiled_value != nullptr) {
28 dst.compiled_value.reset(src.compiled_value->Clone(out_string_pool));
43 if (src_attr.compiled_value != nullptr) {
44 dst_attr->compiled_value.reset(src_attr.compiled_value->Clone(out_string_pool));
173 CloneIfNotNull(src_attr.compiled_value, out_string_pool)},
H A DXmlReferenceLinker.cpp116 attr.compiled_value = ResourceUtils::TryParseItemForAttribute(attr.value, attribute);
117 if (attr.compiled_value) {
119 attr.compiled_value->SetSource(source);
120 attr.compiled_value->Accept(&reference_visitor_);
H A DManifestFixer.cpp181 attr->compiled_value = std::move(result);
463 attr->compiled_value = {};
473 attr->compiled_value = {};
H A DManifestFixer_test.cpp368 EXPECT_THAT(attr->compiled_value, NotNull());
369 EXPECT_THAT(ValueCast<BinaryPrimitive>(attr->compiled_value.get()), NotNull());
/frameworks/base/tools/aapt2/cmd/
H A DUtil.cpp234 if (attr.compiled_value != nullptr) {
235 const String* compiled_str = ValueCast<String>(attr.compiled_value.get());
257 if (attr.compiled_value != nullptr) {
258 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get());
281 if (attr.compiled_value != nullptr) {
282 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get());
292 const String* compiled_str = ValueCast<String>(attr.compiled_value.get());
H A DLink.cpp811 if (BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(attr->compiled_value.get())) {
822 } else if (String* str = ValueCast<String>(attr->compiled_value.get())) {
835 if (String* str = ValueCast<String>(attr->compiled_value.get())) {
/frameworks/base/tools/aapt2/optimize/
H A DMultiApkGenerator.cpp284 auto* compiled_version = ValueCast<BinaryPrimitive>(versionCode->compiled_value.get());
291 versionCode->compiled_value = ResourceUtils::TryParseInt(std::to_string(new_version));
303 min_sdk_attr->compiled_value = ResourceUtils::TryParseInt(min_sdk_str);
366 size->compiled_value = ResourceUtils::MakeInt(screen_size);
370 density->compiled_value = ResourceUtils::MakeInt(config.density);
/frameworks/base/tools/aapt2/format/binary/
H A DXmlFlattener.cpp271 if (xml_attr->compiled_value != nullptr) {
274 String* string_value = ValueCast<String>(xml_attr->compiled_value.get());
280 CHECK(xml_attr->compiled_value->Flatten(&flat_attr->typedValue));
H A DXmlFlattener_test.cpp471 doc->root->attributes[0].compiled_value =
494 doc->root->attributes[0].compiled_value = ResourceUtils::MakeBool(true);
514 doc->root->attributes[0].compiled_value = ResourceUtils::MakeBool(true);
/frameworks/base/tools/aapt2/format/proto/
H A DProtoSerialize_test.cpp184 attr.compiled_value =
186 attr.compiled_value->SetSource(Source().WithLine(25));
231 ASSERT_THAT(actual_attr.compiled_value, NotNull());
232 const BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(actual_attr.compiled_value.get());
H A DProtoSerialize.cpp627 if (attr.compiled_value != nullptr) {
628 SerializeItemToPb(*attr.compiled_value, pb_attr->mutable_compiled_item());
630 pb_src->set_line_number(attr.compiled_value->GetSource().line.value_or_default(0));
H A DProtoDeserialize.cpp919 attr.compiled_value =
921 if (attr.compiled_value == nullptr) {
924 attr.compiled_value->SetSource(Source().WithLine(pb_attr.source().line_number()));
/frameworks/base/tools/aapt2/java/
H A DProguardRules.cpp65 if (attr.compiled_value) {
66 auto ref = ValueCast<Reference>(attr.compiled_value.get());
/frameworks/base/tools/aapt2/xml/
H A DXmlDom.cpp256 attr.compiled_value = ResourceUtils::ParseBinaryResValue(
382 if (attr.compiled_value != nullptr) {
383 cloned_attr.compiled_value.reset(attr.compiled_value->Clone(&cloned->string_pool));
H A DXmlDom.h83 std::unique_ptr<Item> compiled_value; member in struct:aapt::xml::Attribute
/frameworks/base/tools/aapt2/
H A DDebug.cpp450 if (attr.compiled_value != nullptr) {
451 attr.compiled_value->PrettyPrint(printer_);

Completed in 179 milliseconds