Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp98 OverlayableItem overlayable_item(std::make_shared<Overlayable>( in TEST() local
100 overlayable_item.source = Source("res/values/overlayable.xml", 42); in TEST()
102 overlayable_item, test::GetDiagnostics())); in TEST()
170 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
171 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST()
572 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
573 OverlayableItem& overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST() local
574 EXPECT_THAT(overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST()
575 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST()
576 EXPECT_THAT(overlayable_item.policies, Eq(PolicyFlags::SYSTEM_PARTITION in TEST()
[all …]
DProtoSerialize.cpp277 static void SerializeOverlayableItemToPb(const OverlayableItem& overlayable_item, in SerializeOverlayableItemToPb() argument
284 if (overlayable_item.overlayable.get() == serialized_overlayables[i]) { in SerializeOverlayableItemToPb()
291 serialized_overlayables.push_back(overlayable_item.overlayable.get()); in SerializeOverlayableItemToPb()
293 pb_overlayable->set_name(overlayable_item.overlayable->name); in SerializeOverlayableItemToPb()
294 pb_overlayable->set_actor(overlayable_item.overlayable->actor); in SerializeOverlayableItemToPb()
296 SerializeSourceToPb(overlayable_item.overlayable->source, source_pool, in SerializeOverlayableItemToPb()
304 if (overlayable_item.policies & PolicyFlags::PUBLIC) { in SerializeOverlayableItemToPb()
307 if (overlayable_item.policies & PolicyFlags::PRODUCT_PARTITION) { in SerializeOverlayableItemToPb()
310 if (overlayable_item.policies & PolicyFlags::SYSTEM_PARTITION) { in SerializeOverlayableItemToPb()
313 if (overlayable_item.policies & PolicyFlags::VENDOR_PARTITION) { in SerializeOverlayableItemToPb()
[all …]
DProtoDeserialize.cpp488 pb::OverlayableItem pb_overlayable_item = pb_entry.overlayable_item(); in DeserializePackageFromPb()
495 OverlayableItem overlayable_item(overlayables[pb_overlayable_item.overlayable_idx()]); in DeserializePackageFromPb() local
496 if (!DeserializeOverlayableItemFromPb(pb_overlayable_item, src_pool, &overlayable_item, in DeserializePackageFromPb()
501 entry->overlayable_item = std::move(overlayable_item); in DeserializePackageFromPb()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp139 if (src_entry->overlayable_item) { in MergeEntry()
140 if (dst_entry->overlayable_item) { in MergeEntry()
141 CHECK(src_entry->overlayable_item.value().overlayable != nullptr); in MergeEntry()
142 Overlayable* src_overlayable = src_entry->overlayable_item.value().overlayable.get(); in MergeEntry()
144 CHECK(dst_entry->overlayable_item.value().overlayable != nullptr); in MergeEntry()
145 Overlayable* dst_overlayable = dst_entry->overlayable_item.value().overlayable.get(); in MergeEntry()
149 || src_entry->overlayable_item.value().policies != in MergeEntry()
150 dst_entry->overlayable_item.value().policies) { in MergeEntry()
154 context->GetDiagnostics()->Error(DiagMessage(src_entry->overlayable_item.value().source) in MergeEntry()
157 context->GetDiagnostics()->Error(DiagMessage(dst_entry->overlayable_item.value().source) in MergeEntry()
[all …]
DTableMerger_test.cpp491 OverlayableItem overlayable_item(overlayable); in TEST_F() local
492 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
493 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F()
498 .SetOverlayable("bool/foo", overlayable_item) in TEST_F()
517 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
518 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
534 OverlayableItem overlayable_item(overlayable); in TEST_F() local
535 overlayable_item.policies |= PolicyFlags::PUBLIC; in TEST_F()
536 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F()
540 .SetOverlayable("bool/foo", overlayable_item) in TEST_F()
[all …]
DReferenceLinker.cpp406 if (entry->overlayable_item && entry->values.empty()) { in Consume()
407 context->GetDiagnostics()->Error(DiagMessage(entry->overlayable_item.value().source) in Consume()
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp251 OverlayableItem overlayable_item(overlayable); in TEST() local
252 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST()
253 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST()
254 overlayable_item.comment = "comment"; in TEST()
255 overlayable_item.source = Source("res/values/overlayable.xml", 42); in TEST()
258 ASSERT_TRUE(table.SetOverlayable(name, overlayable_item, test::GetDiagnostics())); in TEST()
262 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
264 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST()
300 OverlayableItem overlayable_item(std::make_shared<Overlayable>("Name", "overlay://theme")); in TEST() local
301 overlayable_item.policies = PolicyFlags::PRODUCT_PARTITION; in TEST()
[all …]
DResourceParser_test.cpp969 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
970 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1019 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1020 OverlayableItem result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1027 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1028 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1035 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1036 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1043 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1044 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
[all …]
DDebug.cpp321 if (entry->overlayable_item) { in PrintTable()
549 if (entry->overlayable_item) { in DumpOverlayable()
550 const auto& overlayable_item = entry->overlayable_item.value(); in DumpOverlayable() local
552 overlayable_item.overlayable->name.c_str(), in DumpOverlayable()
553 overlayable_item.overlayable->actor.c_str()); in DumpOverlayable()
555 android::idmap2::policy::PoliciesToDebugString(overlayable_item.policies).c_str()); in DumpOverlayable()
DResourceTable.cpp614 if (entry->overlayable_item) { in SetOverlayableImpl()
617 diag->Error(DiagMessage(entry->overlayable_item.value().source) in SetOverlayableImpl()
622 entry->overlayable_item = overlayable; in SetOverlayableImpl()
658 new_entry->overlayable_item = entry->overlayable_item; in Clone()
DResourceParser.cpp106 Maybe<OverlayableItem> overlayable_item; member
140 if (res->overlayable_item) { in AddResourcesToTable()
141 if (!table->SetOverlayable(res->name, res->overlayable_item.value(), diag)) { in AddResourcesToTable()
1128 OverlayableItem overlayable_item(overlayable); in ParseOverlayable() local
1129 overlayable_item.policies = current_policies; in ParseOverlayable()
1130 overlayable_item.comment = comment; in ParseOverlayable()
1131 overlayable_item.source = element_source; in ParseOverlayable()
1136 child_resource.overlayable_item = overlayable_item; in ParseOverlayable()
DResourceTable.h120 Maybe<OverlayableItem> overlayable_item; variable
DResources.proto214 OverlayableItem overlayable_item = 5; field
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp675 OverlayableItem overlayable_item(std::make_shared<Overlayable>("TestName", "overlay://theme")); in TEST_F() local
676 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
677 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F()
678 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F()
685 .SetOverlayable(name, overlayable_item) in TEST_F()
694 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
695 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
735 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
736 OverlayableItem& overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() local
737 EXPECT_EQ(overlayable_item.policies, PolicyFlags::SYSTEM_PARTITION in TEST_F()
[all …]
DBinaryResourceParser.cpp474 OverlayableItem overlayable_item(overlayable); in ParseOverlayable() local
475 overlayable_item.policies = policy_header->policy_flags; in ParseOverlayable()
476 if (!table_->SetOverlayable(iter->second, overlayable_item, diag_)) { in ParseOverlayable()
DTableFlattener.cpp451 if (!entry->overlayable_item) { in FlattenOverlayable()
455 OverlayableItem& item = entry->overlayable_item.value(); in FlattenOverlayable()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp253 split_entry->overlayable_item = entry->overlayable_item; in SplitTable()