/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 96 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 …]
|
D | ProtoSerialize.cpp | 275 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 …]
|
D | ProtoDeserialize.cpp | 483 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/ |
D | TableMerger.cpp | 139 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 …]
|
D | TableMerger_test.cpp | 498 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 …]
|
D | ReferenceLinker.cpp | 379 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/ |
D | ResourceTable_test.cpp | 249 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 …]
|
D | ResourceParser_test.cpp | 964 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 …]
|
D | ResourceTable.cpp | 616 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()
|
D | ResourceParser.cpp | 102 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()
|
D | ResourceTable.h | 146 Maybe<OverlayableItem> overlayable_item; variable
|
D | Resources.proto | 214 OverlayableItem overlayable_item = 5; field
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener_test.cpp | 631 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 …]
|
D | BinaryResourceParser.cpp | 503 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()
|
D | TableFlattener.cpp | 438 if (!entry->overlayable_item) { in FlattenOverlayable() 442 OverlayableItem& item = entry->overlayable_item.value(); in FlattenOverlayable()
|
/frameworks/base/tools/aapt2/split/ |
D | TableSplitter.cpp | 253 split_entry->overlayable_item = entry->overlayable_item; in SplitTable()
|