Searched refs:compiled_value (Results 1 – 17 of 17) sorted by relevance
27 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()
126 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()
182 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()
588 EXPECT_THAT(attr->compiled_value, NotNull()); in TEST_F()589 EXPECT_THAT(ValueCast<BinaryPrimitive>(attr->compiled_value.get()), NotNull()); in TEST_F()
250 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()
786 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()
291 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()
268 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()
478 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()
257 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()
83 std::unique_ptr<Item> compiled_value; member
201 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()
707 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()
988 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()
69 if (attr.compiled_value) { in Visit()70 auto ref = ValueCast<Reference>(attr.compiled_value.get()); in Visit()
236 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()
497 if (attr.compiled_value != nullptr) { in Visit()498 attr.compiled_value->PrettyPrint(printer_); in Visit()