Searched refs:compiled_value (Results 1 – 17 of 17) sorted by relevance
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()
93 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()
323 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()
773 EXPECT_THAT(attr->compiled_value, NotNull()); in TEST_F()774 EXPECT_THAT(ValueCast<BinaryPrimitive>(attr->compiled_value.get()), NotNull()); in TEST_F()
301 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()
803 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 …]
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()
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()
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()
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()
82 std::unique_ptr<Item> compiled_value; member
69 if (attr.compiled_value) { in Visit()70 auto ref = ValueCast<Reference>(attr.compiled_value.get()); in Visit()
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()
273 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()
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()
349 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()
502 if (attr.compiled_value != nullptr) { in Visit()503 attr.compiled_value->PrettyPrint(printer_); in Visit()