/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 166 OverlayableItem overlayable_item(std::make_shared<Overlayable>( in TEST() local 168 overlayable_item.source = 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() 643 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST() 644 OverlayableItem& overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST() local 645 EXPECT_THAT(overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST() 646 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST() 647 EXPECT_THAT(overlayable_item.policies, Eq(PolicyFlags::SYSTEM_PARTITION in TEST() [all …]
|
D | ProtoSerialize.cpp | 277 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 …]
|
D | ProtoDeserialize.cpp | 487 pb::OverlayableItem pb_overlayable_item = pb_entry.overlayable_item(); in DeserializePackageFromPb() 496 OverlayableItem overlayable_item(overlayables[pb_overlayable_item.overlayable_idx()]); in DeserializePackageFromPb() local 497 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/ |
D | TableMerger.cpp | 127 if (src_entry->overlayable_item) { in MergeEntry() 128 if (dst_entry->overlayable_item) { in MergeEntry() 129 CHECK(src_entry->overlayable_item.value().overlayable != nullptr); in MergeEntry() 130 Overlayable* src_overlayable = src_entry->overlayable_item.value().overlayable.get(); in MergeEntry() 132 CHECK(dst_entry->overlayable_item.value().overlayable != nullptr); in MergeEntry() 133 Overlayable* dst_overlayable = dst_entry->overlayable_item.value().overlayable.get(); in MergeEntry() 137 || src_entry->overlayable_item.value().policies != in MergeEntry() 138 dst_entry->overlayable_item.value().policies) { in MergeEntry() 142 context->GetDiagnostics()->Error(DiagMessage(src_entry->overlayable_item.value().source) in MergeEntry() 145 context->GetDiagnostics()->Error(DiagMessage(dst_entry->overlayable_item.value().source) in MergeEntry() [all …]
|
D | TableMerger_test.cpp | 464 OverlayableItem overlayable_item(overlayable); in TEST_F() local 465 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 466 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F() 470 .SetOverlayable("bool/foo", overlayable_item) in TEST_F() 488 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F() 489 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() 504 OverlayableItem overlayable_item(overlayable); in TEST_F() local 505 overlayable_item.policies |= PolicyFlags::PUBLIC; in TEST_F() 506 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F() 509 .SetOverlayable("bool/foo", overlayable_item) in TEST_F() [all …]
|
D | ReferenceLinker.cpp | 481 if (entry->overlayable_item && entry->values.empty()) { in Consume() 482 context->GetDiagnostics()->Error(DiagMessage(entry->overlayable_item.value().source) in Consume()
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable_test.cpp | 268 OverlayableItem overlayable_item(overlayable); in TEST() local 269 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST() 270 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST() 271 overlayable_item.comment = "comment"; in TEST() 272 overlayable_item.source = Source("res/values/overlayable.xml", 42); in TEST() 275 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetOverlayable(overlayable_item).Build(), in TEST() 280 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST() 282 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST() 321 OverlayableItem overlayable_item(std::make_shared<Overlayable>("Name", "overlay://theme")); in TEST() local 322 overlayable_item.policies = PolicyFlags::PRODUCT_PARTITION; in TEST() [all …]
|
D | ResourceParser_test.cpp | 1066 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F() 1067 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() 1116 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F() 1117 OverlayableItem result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() 1124 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F() 1125 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() 1132 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F() 1133 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() 1140 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F() 1141 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() [all …]
|
D | ResourceTable.cpp | 346 const Maybe<OverlayableItem>& overlayable_item, in InsertEntryIntoTableView() argument 369 .overlayable_item = overlayable_item, in InsertEntryIntoTableView() 398 entry->visibility, entry->allow_new, entry->overlayable_item, in GetPartitionedView() 404 entry->visibility, entry->allow_new, entry->overlayable_item, {}, in GetPartitionedView() 533 if (entry->overlayable_item) { in AddResource() 536 diag->Error(DiagMessage(entry->overlayable_item.value().source) in AddResource() 540 entry->overlayable_item = res.overlayable.value(); in AddResource() 664 new_entry->overlayable_item = entry->overlayable_item; in Clone()
|
D | Debug.cpp | 309 if (entry.overlayable_item) { in PrintTable() 542 if (entry->overlayable_item) { in DumpOverlayable() 543 const auto& overlayable_item = entry->overlayable_item.value(); in DumpOverlayable() local 545 overlayable_item.overlayable->name.c_str(), in DumpOverlayable() 546 overlayable_item.overlayable->actor.c_str()); in DumpOverlayable() 548 android::idmap2::policy::PoliciesToDebugString(overlayable_item.policies).c_str()); in DumpOverlayable()
|
D | ResourceTable.h | 131 Maybe<OverlayableItem> overlayable_item; variable 211 Maybe<OverlayableItem> overlayable_item; member
|
D | ResourceParser.cpp | 112 Maybe<OverlayableItem> overlayable_item; member 149 if (res->overlayable_item) { in AddResourcesToTable() 150 res_builder.SetOverlayable(res->overlayable_item.value()); in AddResourcesToTable() 1222 OverlayableItem overlayable_item(overlayable); in ParseOverlayable() local 1223 overlayable_item.policies = current_policies; in ParseOverlayable() 1224 overlayable_item.comment = comment; in ParseOverlayable() 1225 overlayable_item.source = element_source; in ParseOverlayable() 1230 child_resource.overlayable_item = overlayable_item; in ParseOverlayable()
|
D | Resources.proto | 226 OverlayableItem overlayable_item = 5; field
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener_test.cpp | 666 OverlayableItem overlayable_item(std::make_shared<Overlayable>("TestName", "overlay://theme")); in TEST_F() local 667 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 668 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F() 669 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F() 675 .SetOverlayable(name, overlayable_item) in TEST_F() 684 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F() 685 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() 724 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F() 725 OverlayableItem& overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F() local 726 EXPECT_EQ(overlayable_item.policies, PolicyFlags::SYSTEM_PARTITION in TEST_F() [all …]
|
D | BinaryResourceParser.cpp | 481 OverlayableItem overlayable_item(overlayable); in ParseOverlayable() local 482 overlayable_item.policies = policy_header->policy_flags; in ParseOverlayable() 485 .SetOverlayable(std::move(overlayable_item)) in ParseOverlayable()
|
D | TableFlattener.cpp | 440 if (!entry.overlayable_item) { in FlattenOverlayable() 444 const OverlayableItem& item = entry.overlayable_item.value(); in FlattenOverlayable()
|
/frameworks/base/tools/aapt2/split/ |
D | TableSplitter.cpp | 251 split_entry->overlayable_item = entry->overlayable_item; in SplitTable()
|