Home
last modified time | relevance | path

Searched refs:ValueCast (Results 1 – 25 of 32) sorted by relevance

12

/aosp14/frameworks/base/tools/aapt2/
H A DValueVisitor_test.cpp74 TEST(ValueVisitorTest, ValueCast) { in TEST() argument
76 EXPECT_NE(ValueCast<Reference>(ref.get()), nullptr); in TEST()
83 EXPECT_NE(ValueCast<Style>(style.get()), nullptr); in TEST()
84 EXPECT_EQ(ValueCast<Reference>(style.get()), nullptr); in TEST()
H A DResourceValues.cpp82 const RawString* other = ValueCast<RawString>(value); in Equals()
111 const Reference* other = ValueCast<Reference>(value); in Equals()
215 return ValueCast<Id>(value) != nullptr; in Equals()
232 const String* other = ValueCast<String>(value); in Equals()
280 const StyledString* other = ValueCast<StyledString>(value); in Equals()
511 const Attribute* other = ValueCast<Attribute>(value); in Equals()
838 const Style* other = ValueCast<Style>(value); in Equals()
938 const Array* other = ValueCast<Array>(value); in Equals()
958 const Plural* other = ValueCast<Plural>(value); in Equals()
1008 const Styleable* other = ValueCast<Styleable>(value); in Equals()
[all …]
H A DValueVisitor.h183 const T* ValueCast(const Value* value) {
194 T* ValueCast(Value* value) {
195 return const_cast<T*>(ValueCast<T>(static_cast<const Value*>(value)));
H A DDebug.cpp117 if (const Reference* ref = ValueCast<Reference>(item)) { in VisitItem()
247 if (const Reference* ref = ValueCast<Reference>(&item)) { in PrintItem()
372 if (Style* style = ValueCast<Style>(value->value.get())) { in PrintStyleGraph()
H A DResourceParser.cpp614 String* empty = ValueCast<String>(out_resource->value.get()); in ParseResource()
619 Reference* ref = ValueCast<Reference>(out_resource->value.get()); in ParseResource()
806 if (auto ref = ValueCast<Reference>(processed_item.get())) { in ParseXml()
864 if (String* string_value = ValueCast<String>(out_resource->value.get())) { in ParseString()
881 } else if (StyledString* string_value = ValueCast<StyledString>(out_resource->value.get())) { in ParseString()
1822 Attribute* attr = ValueCast<Attribute>(child_resource.value.get()); in ParseDeclareStyleable()
H A DResourceUtils_test.cpp121 Reference* ref = ValueCast<Reference>(item.get()); in TEST()
H A DResourceTable.cpp253 Attribute* existing_attr = ValueCast<Attribute>(existing); in ResolveValueCollision()
254 Attribute* incoming_attr = ValueCast<Attribute>(incoming); in ResolveValueCollision()
H A DLoadedApk.cpp215 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteToArchive()
/aosp14/frameworks/base/tools/aapt2/link/
H A DTableMerger.cpp182 if (Styleable* existing_styleable = ValueCast<Styleable>(existing)) { in ResolveMergeCollision()
183 if (Styleable* incoming_styleable = ValueCast<Styleable>(incoming)) { in ResolveMergeCollision()
189 if (Style* existing_style = ValueCast<Style>(existing)) { in ResolveMergeCollision()
190 if (Style* incoming_style = ValueCast<Style>(incoming)) { in ResolveMergeCollision()
298 if (FileReference* f = ValueCast<FileReference>(src_config_value->value.get())) { in DoMerge()
H A DReferenceLinker.cpp81 if (auto ref = ValueCast<Reference>(linked_item_ptr)) { in TransformDerived()
166 if (RawString* raw_string = ValueCast<RawString>(value.get())) { in ParseValueWithAttribute()
402 auto macro = ValueCast<Macro>(macro_values[0]->value.get()); in LinkReference()
431 if (auto ref = ValueCast<Reference>(new_value.get())) { in LinkReference()
H A DAutoVersioner.cpp92 if (Style* style = ValueCast<Style>(config_value->value.get())) { in Consume()
H A DReferenceLinker_test.cpp130 ASSERT_THAT(ValueCast<BinaryPrimitive>(style->entries[0].value.get()), NotNull()); in TEST()
134 ASSERT_THAT(ValueCast<BinaryPrimitive>(style->entries[1].value.get()), NotNull()); in TEST()
/aosp14/frameworks/base/tools/aapt2/cmd/
H A DConvert_test.cpp198 auto value = ValueCast<BinaryPrimitive>(entry->FindValue({})->value.get())->value; in TEST_F()
205 auto value = ValueCast<String>(entry->FindValue({})->value.get())->value; in TEST_F()
213 auto value = ValueCast<BinaryPrimitive>(entry->FindValue({})->value.get())->value; in TEST_F()
H A DUtil.cpp252 const String* compiled_str = ValueCast<String>(attr.compiled_value.get()); in ExtractCompiledString()
276 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get()); in ExtractCompiledInt()
300 const BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr.compiled_value.get()); in ExtractSdkVersion()
310 const String* compiled_str = ValueCast<String>(attr.compiled_value.get()); in ExtractSdkVersion()
H A DLink.cpp543 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in Flatten()
800 if (BinaryPrimitive* prim = ValueCast<BinaryPrimitive>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
811 } else if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
824 if (String* str = ValueCast<String>(attr->compiled_value.get())) { in ExtractCompileSdkVersions()
1024 if (ValueCast<Id>(config_value->value.get()) && package->name == "android") { in VerifyNoExternalPackages()
1083 const auto localeconfig_reference = ValueCast<Reference>(localeConfig->compiled_value.get()); in VerifyLocaleFormat()
1097 const FileReference* file_ref = ValueCast<FileReference>(value->value.get()); in VerifyLocaleFormat()
1737 const auto icon_reference = ValueCast<Reference>(icon->compiled_value.get()); in AliasAdaptiveIcon()
1754 const auto round_icon_reference = ValueCast<Reference>(round_icon->compiled_value.get()); in AliasAdaptiveIcon()
1819 const auto ref = ValueCast<Reference>(attr->compiled_value.get()); in VerifySharedUserId()
[all …]
H A DOptimize.cpp265 auto* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteSplitApk()
/aosp14/frameworks/base/tools/aapt2/format/proto/
H A DProtoSerialize_test.cpp717 Reference* actual_ref = ValueCast<Reference>(item.get()); in TEST()
735 Reference* actual_ref = ValueCast<Reference>(item.get()); in TEST()
795 Reference* ref = ValueCast<Reference>(config_value->value.get()); in TEST()
803 BinaryPrimitive* bp = ValueCast<BinaryPrimitive>(config_value->value.get()); in TEST()
807 bp = ValueCast<BinaryPrimitive>(config_value->value.get()); in TEST()
815 String* s = ValueCast<String>(config_value->value.get()); in TEST()
823 FileReference* f = ValueCast<FileReference>(config_value->value.get()); in TEST()
877 Reference* ref = ValueCast<Reference>(config_value->value.get()); in TEST()
886 BinaryPrimitive* bp = ValueCast<BinaryPrimitive>(config_value->value.get()); in TEST()
890 bp = ValueCast<BinaryPrimitive>(config_value->value.get()); in TEST()
[all …]
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DResEntryWriter.cpp214 CHECK(ValueCast<Item>(entry->value)->Flatten(&value)) << "flatten failed"; in WriteEntry()
243 CHECK(ValueCast<Item>(item_entry->value)->Flatten(&out_entry->value)) << "flatten failed"; in WriteItemToBuffer()
H A DResEntryWriter.h93 if (ValueCast<Item>(entry->value) != nullptr) { in Write()
H A DXmlFlattener.cpp272 String* string_value = ValueCast<String>(xml_attr->compiled_value.get()); in WriteAttributes()
/aosp14/frameworks/base/tools/aapt2/optimize/
H A DMultiApkGenerator.cpp298 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()
H A DObfuscator.cpp99 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in HandleShortenFilePaths()
/aosp14/frameworks/base/tools/aapt2/dump/
H A DDumpManifest.cpp334 if (ValueCast<Reference>(value)) { in ResolveReference()
335 ref = ValueCast<Reference>(value); in ResolveReference()
354 if (ValueCast<Reference>(value)) { in GetAttributeInteger()
355 value = ResolveReference(ValueCast<Reference>(value), config); in GetAttributeInteger()
361 if (BinaryPrimitive* intValue = ValueCast<BinaryPrimitive>(value)) { in GetAttributeInteger()
393 if (ValueCast<Reference>(value)) { in GetAttributeString()
394 value = ResolveReference(ValueCast<Reference>(value), config); in GetAttributeString()
401 if (String* intValue = ValueCast<String>(value)) { in GetAttributeString()
403 } else if (RawString* rawValue = ValueCast<RawString>(value)) { in GetAttributeString()
405 } else if (StyledString* styledStrValue = ValueCast<StyledString>(value)) { in GetAttributeString()
[all …]
/aosp14/frameworks/base/tools/aapt2/test/
H A DCommon.h62 return ValueCast<T>(config_value->value.get()); in GetValueForConfigAndProduct()
/aosp14/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp211 if (Attribute* attr = ValueCast<Attribute>(config_value->value.get())) { in FindByName()

12