/frameworks/base/tools/aapt2/link/ |
D | TableMerger.cpp | 130 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 …]
|
D | TableMerger_test.cpp | 463 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 …]
|
D | ReferenceLinker.cpp | 479 if (entry->overlayable_item && entry->values.empty()) { in Consume() 481 android::DiagMessage(entry->overlayable_item.value().source) in Consume()
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable_test.cpp | 269 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 …]
|
D | ResourceParser_test.cpp | 1068 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 …]
|
D | ResourceTable.cpp | 354 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()
|
D | Debug.cpp | 322 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()
|
D | ResourceTable.h | 131 std::optional<OverlayableItem> overlayable_item; variable 215 std::optional<OverlayableItem> overlayable_item; member
|
D | ResourceParser.cpp | 111 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()
|
D | Resources.proto | 235 OverlayableItem overlayable_item = 5; field
|
/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 = 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 …]
|
D | ProtoSerialize.cpp | 284 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 …]
|
D | ProtoDeserialize.cpp | 488 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/ |
D | TableFlattener_test.cpp | 809 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 …]
|
D | TableFlattener.cpp | 282 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()
|
D | BinaryResourceParser.cpp | 500 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/ |
D | Obfuscator.cpp | 164 if (entry.overlayable_item) { in ObfuscateResourceName() 204 .overlayable_item = entry->overlayable_item, in HandleCollapseKeyStringPool()
|
D | Obfuscator_test.cpp | 305 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/ |
D | TableSplitter.cpp | 249 split_entry->overlayable_item = entry->overlayable_item; in SplitTable()
|