Home
last modified time | relevance | path

Searched refs:overlayable (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceTable_test.cpp247 auto overlayable = std::make_shared<Overlayable>("Name", "overlay://theme", in TEST() local
249 OverlayableItem overlayable_item(overlayable); in TEST()
263 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST()
264 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
265 EXPECT_THAT(result_overlayable_item.overlayable->source.path, Eq("res/values/overlayable.xml")); in TEST()
266 EXPECT_THAT(result_overlayable_item.overlayable->source.line, 40); in TEST()
279 OverlayableItem overlayable(group); in TEST() local
280 overlayable.policies = OverlayableItem::Policy::kProduct; in TEST()
281 ASSERT_TRUE(table.SetOverlayable(foo, overlayable, test::GetDiagnostics())); in TEST()
312 auto overlayable = std::make_shared<Overlayable>("Name", "overlay://theme"); in TEST() local
[all …]
DResourceParser_test.cpp923 </overlayable>)"; in TEST_F()
940 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
941 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST_F()
987 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
995 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1003 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1011 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1019 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1027 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1035 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
[all …]
DResourceTable.h76 explicit OverlayableItem(const std::shared_ptr<Overlayable>& overlayable) in OverlayableItem()
77 : overlayable(overlayable) {} in OverlayableItem()
106 std::shared_ptr<Overlayable> overlayable; member
267 bool SetOverlayable(const ResourceNameRef& name, const OverlayableItem& overlayable,
338 bool SetOverlayableImpl(const ResourceNameRef &name, const OverlayableItem& overlayable,
DResources.proto59 // The <overlayable> declarations within the resource table.
60 repeated Overlayable overlayable = 3; field
148 // Represents a set of overlayable resources.
150 // The name of the <overlayable>.
153 // The location of the <overlayable> declaration in the source.
156 // The component responsible for enabling and disabling overlays targeting this <overlayable>.
160 // Represents an overlayable <item> declaration within an <overlayable> tag.
182 // The index into overlayable list that points to the <overlayable> tag that contains
DResourceTable.cpp598 bool ResourceTable::SetOverlayable(const ResourceNameRef& name, const OverlayableItem& overlayable, in SetOverlayable() argument
600 return SetOverlayableImpl(name, overlayable, ResourceNameValidator, diag); in SetOverlayable()
604 const OverlayableItem& overlayable, in SetOverlayableImpl() argument
608 if (!ValidateName(name_validator, name, overlayable.source, diag)) { in SetOverlayableImpl()
617 diag->Error(DiagMessage(overlayable.source) in SetOverlayableImpl()
624 entry->overlayable_item = overlayable; in SetOverlayableImpl()
DResourceParser.cpp1062 auto overlayable = std::make_shared<Overlayable>( in ParseOverlayable() local
1126 OverlayableItem overlayable_item(overlayable); in ParseOverlayable()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp454 auto iter = overlayable_chunks.find(item.overlayable->name); in FlattenOverlayable()
456 OverlayableChunk chunk{item.overlayable->actor, item.overlayable->source}; in FlattenOverlayable()
458 &overlayable_chunks.insert({item.overlayable->name, chunk}).first->second; in FlattenOverlayable()
461 if (!(chunk.source == item.overlayable->source)) { in FlattenOverlayable()
463 context_->GetDiagnostics()->Error(DiagMessage(item.overlayable->source) in FlattenOverlayable()
465 << item.overlayable->name << "'"); in FlattenOverlayable()
471 CHECK(chunk.actor == item.overlayable->actor); in FlattenOverlayable()
476 context_->GetDiagnostics()->Error(DiagMessage(item.overlayable->source) in FlattenOverlayable()
518 OverlayableChunk& overlayable = overlayable_pair.second; in FlattenOverlayable() local
534 if (overlayable.actor.size() >= arraysize(overlayable_type->actor)) { in FlattenOverlayable()
[all …]
DTableFlattener_test.cpp658 auto overlayable = std::make_shared<Overlayable>("TestName", "overlay://theme"); in TEST_F() local
660 OverlayableItem overlayable_item_zero(overlayable); in TEST_F()
665 OverlayableItem overlayable_item_one(overlayable); in TEST_F()
669 OverlayableItem overlayable_item_two(overlayable); in TEST_F()
755 EXPECT_EQ(result_overlayable.overlayable->name, "TestName"); in TEST_F()
756 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://theme"); in TEST_F()
765 EXPECT_EQ(result_overlayable.overlayable->name, "OtherName"); in TEST_F()
766 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://customization"); in TEST_F()
774 EXPECT_EQ(result_overlayable.overlayable->name, "TestName"); in TEST_F()
775 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://theme"); in TEST_F()
[all …]
DBinaryResourceParser.cpp445 auto overlayable = std::make_shared<Overlayable>(); in ParseOverlayable() local
446 overlayable->name = util::Utf16ToUtf8(strcpy16_dtoh((const char16_t*)header->name, in ParseOverlayable()
448 overlayable->actor = util::Utf16ToUtf8(strcpy16_dtoh((const char16_t*)header->actor, in ParseOverlayable()
503 OverlayableItem overlayable_item(overlayable); in ParseOverlayable()
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp32 namespace overlayable = com::android::overlayable;
289 get_package_id(overlayable::R::string::not_overlayable)); in TEST()
292 overlayable::R::string::not_overlayable); in TEST()
295 info = package->GetOverlayableInfo(overlayable::R::string::overlayable1); in TEST()
301 info = package->GetOverlayableInfo(overlayable::R::string::overlayable2); in TEST()
309 info = package->GetOverlayableInfo(overlayable::R::string::overlayable3); in TEST()
317 info = package->GetOverlayableInfo(overlayable::R::string::overlayable4); in TEST()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp168 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("OverlayableName")); in TEST()
169 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
170 EXPECT_THAT(result_overlayable_item.overlayable->source.path, Eq("res/values/overlayable.xml")); in TEST()
171 EXPECT_THAT(result_overlayable_item.overlayable->source.line, Eq(40)); in TEST()
564 EXPECT_THAT(overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST()
565 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST()
573 EXPECT_THAT(overlayable_item.overlayable->name, Eq("TaskBar")); in TEST()
574 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
582 EXPECT_THAT(overlayable_item.overlayable->name, Eq("FontPack")); in TEST()
583 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
[all …]
DProtoSerialize.cpp282 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()
DProtoDeserialize.cpp551 for (const pb::Overlayable& pb_overlayable : pb_table.overlayable()) { in DeserializeTableFromPb()
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp496 auto overlayable = std::make_shared<Overlayable>("CustomizableResources", in TEST_F() local
498 OverlayableItem overlayable_item(overlayable); in TEST_F()
526 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST_F()
527 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST_F()
533 auto overlayable = std::make_shared<Overlayable>("CustomizableResources", in TEST_F() local
541 OverlayableItem overlayable_item(overlayable); in TEST_F()
562 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST_F()
563 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST_F()
656 auto overlayable = std::make_shared<Overlayable>("CustomizableResources", in TEST_F() local
659 OverlayableItem overlayable_item_first(overlayable); in TEST_F()
[all …]
DTableMerger.cpp141 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()
/frameworks/base/libs/androidfw/tests/data/overlayable/
DR.h24 namespace overlayable {
Dbuild21 aapt2 link --manifest AndroidManifest.xml -o overlayable.apk compiled.flata
/frameworks/base/cmds/idmap2/tests/data/target/
Dbuild20 aapt2 link --manifest AndroidManifest.xml -A assets -o target-no-overlayable.apk values_values.arsc…
/frameworks/base/tools/aapt2/test/
DBuilders.cpp139 const OverlayableItem& overlayable) { in SetOverlayable() argument
142 CHECK(table_->SetOverlayable(res_name, overlayable, GetDiagnostics())); in SetOverlayable()
DBuilders.h77 const OverlayableItem& overlayable);