Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp96 OverlayableItem overlayable_item(std::make_shared<Overlayable>( in TEST() local
98 overlayable_item.source = Source("res/values/overlayable.xml", 42); in TEST()
100 overlayable_item, test::GetDiagnostics())); in TEST()
166 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
167 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST()
562 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
563 OverlayableItem& overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST() local
564 EXPECT_THAT(overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST()
565 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST()
566 EXPECT_THAT(overlayable_item.policies, Eq(OverlayableItem::Policy::kSystem in TEST()
[all …]
DProtoSerialize.cpp275 static void SerializeOverlayableItemToPb(const OverlayableItem& overlayable_item, in SerializeOverlayableItemToPb() argument
282 if (overlayable_item.overlayable.get() == serialized_overlayables[i]) { in SerializeOverlayableItemToPb()
289 serialized_overlayables.push_back(overlayable_item.overlayable.get()); in SerializeOverlayableItemToPb()
291 pb_overlayable->set_name(overlayable_item.overlayable->name); in SerializeOverlayableItemToPb()
292 pb_overlayable->set_actor(overlayable_item.overlayable->actor); in SerializeOverlayableItemToPb()
293 SerializeSourceToPb(overlayable_item.overlayable->source, source_pool, in SerializeOverlayableItemToPb()
300 if (overlayable_item.policies & OverlayableItem::Policy::kPublic) { in SerializeOverlayableItemToPb()
303 if (overlayable_item.policies & OverlayableItem::Policy::kProduct) { in SerializeOverlayableItemToPb()
306 if (overlayable_item.policies & OverlayableItem::Policy::kSystem) { in SerializeOverlayableItemToPb()
309 if (overlayable_item.policies & OverlayableItem::Policy::kVendor) { in SerializeOverlayableItemToPb()
[all …]
DProtoDeserialize.cpp483 pb::OverlayableItem pb_overlayable_item = pb_entry.overlayable_item(); in DeserializePackageFromPb()
490 OverlayableItem overlayable_item(overlayables[pb_overlayable_item.overlayable_idx()]); in DeserializePackageFromPb() local
491 if (!DeserializeOverlayableItemFromPb(pb_overlayable_item, src_pool, &overlayable_item, in DeserializePackageFromPb()
496 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.cpp498 OverlayableItem overlayable_item(overlayable); in TEST_F() local
499 overlayable_item.policies |= OverlayableItem::Policy::kProduct; in TEST_F()
500 overlayable_item.policies |= OverlayableItem::Policy::kVendor; in TEST_F()
505 .SetOverlayable("bool/foo", overlayable_item) in TEST_F()
524 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
525 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
541 OverlayableItem overlayable_item(overlayable); in TEST_F() local
542 overlayable_item.policies |= OverlayableItem::Policy::kPublic; in TEST_F()
543 overlayable_item.policies |= OverlayableItem::Policy::kSystem; in TEST_F()
547 .SetOverlayable("bool/foo", overlayable_item) in TEST_F()
[all …]
DReferenceLinker.cpp379 if (entry->overlayable_item && entry->values.empty()) { in Consume()
380 context->GetDiagnostics()->Error(DiagMessage(entry->overlayable_item.value().source) in Consume()
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp249 OverlayableItem overlayable_item(overlayable); in TEST() local
250 overlayable_item.policies |= OverlayableItem::Policy::kProduct; in TEST()
251 overlayable_item.policies |= OverlayableItem::Policy::kVendor; in TEST()
252 overlayable_item.comment = "comment"; in TEST()
253 overlayable_item.source = Source("res/values/overlayable.xml", 42); in TEST()
256 ASSERT_TRUE(table.SetOverlayable(name, overlayable_item, test::GetDiagnostics())); in TEST()
260 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
262 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST()
298 OverlayableItem overlayable_item(std::make_shared<Overlayable>("Name", "overlay://theme")); in TEST() local
299 overlayable_item.policies = OverlayableItem::Policy::kProduct; in TEST()
[all …]
DResourceParser_test.cpp964 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
965 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1011 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1012 OverlayableItem 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 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()
[all …]
DResourceTable.cpp616 if (entry->overlayable_item) { in SetOverlayableImpl()
619 diag->Error(DiagMessage(entry->overlayable_item.value().source) in SetOverlayableImpl()
624 entry->overlayable_item = overlayable; in SetOverlayableImpl()
660 new_entry->overlayable_item = entry->overlayable_item; in Clone()
DResourceParser.cpp102 Maybe<OverlayableItem> overlayable_item; member
136 if (res->overlayable_item) { in AddResourcesToTable()
137 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.h146 Maybe<OverlayableItem> overlayable_item; variable
DResources.proto214 OverlayableItem overlayable_item = 5; field
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp631 OverlayableItem overlayable_item(std::make_shared<Overlayable>("TestName", "overlay://theme")); in TEST_F() local
632 overlayable_item.policies |= OverlayableItem::Policy::kProduct; in TEST_F()
633 overlayable_item.policies |= OverlayableItem::Policy::kSystem; in TEST_F()
634 overlayable_item.policies |= OverlayableItem::Policy::kVendor; in TEST_F()
641 .SetOverlayable(name, overlayable_item) in TEST_F()
650 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
651 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
691 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
692 OverlayableItem& overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() local
693 EXPECT_EQ(overlayable_item.policies, OverlayableItem::Policy::kSystem in TEST_F()
[all …]
DBinaryResourceParser.cpp503 OverlayableItem overlayable_item(overlayable); in ParseOverlayable() local
504 overlayable_item.policies = policies; in ParseOverlayable()
505 if (!table_->SetOverlayable(iter->second, overlayable_item, diag_)) { in ParseOverlayable()
DTableFlattener.cpp438 if (!entry->overlayable_item) { in FlattenOverlayable()
442 OverlayableItem& item = entry->overlayable_item.value(); in FlattenOverlayable()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp253 split_entry->overlayable_item = entry->overlayable_item; in SplitTable()