Home
last modified time | relevance | path

Searched refs:overlayable_item (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/tools/aapt2/link/
DTableMerger.cpp130 if (src_entry->overlayable_item) { in MergeEntry()
131 if (dst_entry->overlayable_item) { in MergeEntry()
132 CHECK(src_entry->overlayable_item.value().overlayable != nullptr); in MergeEntry()
133 Overlayable* src_overlayable = src_entry->overlayable_item.value().overlayable.get(); in MergeEntry()
135 CHECK(dst_entry->overlayable_item.value().overlayable != nullptr); in MergeEntry()
136 Overlayable* dst_overlayable = dst_entry->overlayable_item.value().overlayable.get(); in MergeEntry()
140 || src_entry->overlayable_item.value().policies != in MergeEntry()
141 dst_entry->overlayable_item.value().policies) { in MergeEntry()
146 android::DiagMessage(src_entry->overlayable_item.value().source) in MergeEntry()
149 android::DiagMessage(dst_entry->overlayable_item.value().source) in MergeEntry()
[all …]
DTableMerger_test.cpp463 OverlayableItem overlayable_item(overlayable); in TEST_F() local
464 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
465 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F()
469 .SetOverlayable("bool/foo", overlayable_item) in TEST_F()
487 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
488 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
503 OverlayableItem overlayable_item(overlayable); in TEST_F() local
504 overlayable_item.policies |= PolicyFlags::PUBLIC; in TEST_F()
505 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F()
508 .SetOverlayable("bool/foo", overlayable_item) in TEST_F()
[all …]
DReferenceLinker.cpp479 if (entry->overlayable_item && entry->values.empty()) { in Consume()
481 android::DiagMessage(entry->overlayable_item.value().source) in Consume()
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp269 OverlayableItem overlayable_item(overlayable); in TEST() local
270 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST()
271 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST()
272 overlayable_item.comment = "comment"; in TEST()
273 overlayable_item.source = android::Source("res/values/overlayable.xml", 42); in TEST()
276 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetOverlayable(overlayable_item).Build(), in TEST()
281 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
283 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST()
322 OverlayableItem overlayable_item(std::make_shared<Overlayable>("Name", "overlay://theme")); in TEST() local
323 overlayable_item.policies = PolicyFlags::PRODUCT_PARTITION; in TEST()
[all …]
DResourceParser_test.cpp1068 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1069 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1118 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1119 OverlayableItem result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1126 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1127 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1134 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1135 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1142 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1143 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
[all …]
DResourceTable.cpp354 const std::optional<OverlayableItem>& overlayable_item, in InsertEntryIntoTableView() argument
378 .overlayable_item = overlayable_item, in InsertEntryIntoTableView()
407 entry->visibility, entry->allow_new, entry->overlayable_item, in GetPartitionedView()
413 entry->visibility, entry->allow_new, entry->overlayable_item, {}, in GetPartitionedView()
544 if (entry->overlayable_item) { in AddResource()
547 diag->Error(android::DiagMessage(entry->overlayable_item.value().source) in AddResource()
551 entry->overlayable_item = res.overlayable.value(); in AddResource()
677 new_entry->overlayable_item = entry->overlayable_item; in Clone()
DDebug.cpp322 if (entry.overlayable_item) { in PrintTable()
555 if (entry->overlayable_item) { in DumpOverlayable()
556 const auto& overlayable_item = entry->overlayable_item.value(); in DumpOverlayable() local
558 overlayable_item.overlayable->name.c_str(), in DumpOverlayable()
559 overlayable_item.overlayable->actor.c_str()); in DumpOverlayable()
561 android::idmap2::policy::PoliciesToDebugString(overlayable_item.policies).c_str()); in DumpOverlayable()
DResourceTable.h131 std::optional<OverlayableItem> overlayable_item; variable
215 std::optional<OverlayableItem> overlayable_item; member
DResourceParser.cpp111 std::optional<OverlayableItem> overlayable_item; member
149 if (res->overlayable_item) { in AddResourcesToTable()
150 res_builder.SetOverlayable(res->overlayable_item.value()); in AddResourcesToTable()
1227 OverlayableItem overlayable_item(overlayable); in ParseOverlayable() local
1228 overlayable_item.policies = current_policies; in ParseOverlayable()
1229 overlayable_item.comment = comment; in ParseOverlayable()
1230 overlayable_item.source = element_source; in ParseOverlayable()
1235 child_resource.overlayable_item = overlayable_item; in ParseOverlayable()
DResources.proto235 OverlayableItem overlayable_item = 5; field
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp166 OverlayableItem overlayable_item(std::make_shared<Overlayable>( in TEST() local
168 overlayable_item.source = android::Source("res/values/overlayable.xml", 42); in TEST()
171 .SetOverlayable(overlayable_item) in TEST()
241 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
242 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST()
648 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
649 OverlayableItem& overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST() local
650 EXPECT_THAT(overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST()
651 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST()
652 EXPECT_THAT(overlayable_item.policies, Eq(PolicyFlags::SYSTEM_PARTITION in TEST()
[all …]
DProtoSerialize.cpp284 static void SerializeOverlayableItemToPb(const OverlayableItem& overlayable_item, in SerializeOverlayableItemToPb() argument
291 if (overlayable_item.overlayable.get() == serialized_overlayables[i]) { in SerializeOverlayableItemToPb()
298 serialized_overlayables.push_back(overlayable_item.overlayable.get()); in SerializeOverlayableItemToPb()
300 pb_overlayable->set_name(overlayable_item.overlayable->name); in SerializeOverlayableItemToPb()
301 pb_overlayable->set_actor(overlayable_item.overlayable->actor); in SerializeOverlayableItemToPb()
303 SerializeSourceToPb(overlayable_item.overlayable->source, source_pool, in SerializeOverlayableItemToPb()
311 if (overlayable_item.policies & PolicyFlags::PUBLIC) { in SerializeOverlayableItemToPb()
314 if (overlayable_item.policies & PolicyFlags::PRODUCT_PARTITION) { in SerializeOverlayableItemToPb()
317 if (overlayable_item.policies & PolicyFlags::SYSTEM_PARTITION) { in SerializeOverlayableItemToPb()
320 if (overlayable_item.policies & PolicyFlags::VENDOR_PARTITION) { in SerializeOverlayableItemToPb()
[all …]
DProtoDeserialize.cpp488 pb::OverlayableItem pb_overlayable_item = pb_entry.overlayable_item(); in DeserializePackageFromPb()
497 OverlayableItem overlayable_item(overlayables[pb_overlayable_item.overlayable_idx()]); in DeserializePackageFromPb() local
498 if (!DeserializeOverlayableItemFromPb(pb_overlayable_item, src_pool, &overlayable_item, in DeserializePackageFromPb()
502 entry->overlayable_item = std::move(overlayable_item); in DeserializePackageFromPb()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp809 OverlayableItem overlayable_item(std::make_shared<Overlayable>("TestName", "overlay://theme")); in TEST_F() local
810 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
811 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F()
812 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F()
818 .SetOverlayable(name, overlayable_item) in TEST_F()
827 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
828 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
867 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
868 OverlayableItem& overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() local
869 EXPECT_EQ(overlayable_item.policies, PolicyFlags::SYSTEM_PARTITION in TEST_F()
[all …]
DTableFlattener.cpp282 if (!entry.overlayable_item) { in FlattenOverlayable()
286 const OverlayableItem& item = entry.overlayable_item.value(); in FlattenOverlayable()
486 const OverlayableItem& item = entry.overlayable_item.value(); in FlattenTypes()
DBinaryResourceParser.cpp500 OverlayableItem overlayable_item(overlayable); in ParseOverlayable() local
501 overlayable_item.policies = policy_header->policy_flags; in ParseOverlayable()
504 .SetOverlayable(std::move(overlayable_item)) in ParseOverlayable()
/frameworks/base/tools/aapt2/optimize/
DObfuscator.cpp164 if (entry.overlayable_item) { in ObfuscateResourceName()
204 .overlayable_item = entry->overlayable_item, in HandleCollapseKeyStringPool()
DObfuscator_test.cpp305 OverlayableItem overlayable_item(std::make_shared<Overlayable>("TestName", "overlay://theme")); in TEST() local
306 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST()
307 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST()
308 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST()
324 .SetOverlayable(name, overlayable_item) in TEST()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp249 split_entry->overlayable_item = entry->overlayable_item; in SplitTable()