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()
117 attr.compiled_value = ResourceUtils::TryParseItemForAttribute(attr.value, attribute); in Visit()118 if (attr.compiled_value) { in Visit()120 attr.compiled_value->SetSource(source); in Visit()121 attr.compiled_value->Accept(&reference_visitor_); in Visit()
182 attr->compiled_value = std::move(result); in FixCoreAppAttribute()498 attr->compiled_value = {}; in Consume()504 attr->compiled_value = {}; in Consume()514 attr->compiled_value = {}; in Consume()520 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()
778 if (BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()789 } else if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()802 if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
287 auto version_code_value = ValueCast<BinaryPrimitive>(version_code->compiled_value.get()); in UpdateManifest()297 version_code_major_value = ValueCast<BinaryPrimitive>(version_code_major->compiled_value.get()); in UpdateManifest()320 min_sdk_attr->compiled_value = ResourceUtils::TryParseInt(min_sdk_str); in UpdateManifest()383 size->compiled_value = ResourceUtils::MakeInt(screen_size); in AddScreens()387 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()386 if (attr.compiled_value != nullptr) { in Clone()387 cloned_attr.compiled_value.reset(attr.compiled_value->Clone(&cloned->string_pool)); in Clone()
83 std::unique_ptr<Item> compiled_value; member
197 attr.compiled_value = in TEST()199 attr.compiled_value->SetSource(Source().WithLine(25)); in TEST()244 ASSERT_THAT(actual_attr.compiled_value, NotNull()); in TEST()245 const BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(actual_attr.compiled_value.get()); in TEST()
685 if (attr.compiled_value != nullptr) { in SerializeXmlToPb()686 SerializeItemToPb(*attr.compiled_value, pb_attr->mutable_compiled_item()); in SerializeXmlToPb()688 pb_src->set_line_number(attr.compiled_value->GetSource().line.value_or_default(0)); in SerializeXmlToPb()
980 attr.compiled_value = in DeserializeXmlFromPb()982 if (attr.compiled_value == nullptr) { in DeserializeXmlFromPb()985 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()
489 if (attr.compiled_value != nullptr) { in Visit()490 attr.compiled_value->PrettyPrint(printer_); in Visit()
235 if (attr->compiled_value) { in GetAttributeInteger()237 Value* value = attr->compiled_value.get(); in GetAttributeInteger()241 value = attr->compiled_value.get(); in GetAttributeInteger()274 if (attr->compiled_value) { in GetAttributeString()276 Value* value = attr->compiled_value.get(); in GetAttributeString()280 value = attr->compiled_value.get(); in GetAttributeString()