Home
last modified time | relevance | path

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

12

/frameworks/base/libs/androidfw/tests/
DIdmap_test.cpp33 namespace overlayable = com::android::overlayable;
81 auto value = asset_manager.GetResource(overlayable::R::string::overlayable5); in TEST_F()
93 auto value = asset_manager.GetResource(overlayable::R::string::overlayable10); in TEST_F()
105 auto value = asset_manager.GetResource(overlayable::R::string::overlayable8); in TEST_F()
117 auto value = asset_manager.GetResource(overlayable::R::integer::config_integer); in TEST_F()
129 auto value = asset_manager.GetResource(overlayable::R::string::overlayable11); in TEST_F()
141 auto value = asset_manager.GetResource(overlayable::R::string::overlayable9); in TEST_F()
145 ASSERT_EQ(value->data, overlayable::R::string::overlayable7); in TEST_F()
153 auto value = asset_manager.GetResource(overlayable::R::layout::hello_view); in TEST_F()
172 ASSERT_EQ(xml_tree->getAttributeData(0), overlayable::R::id::hello_view); in TEST_F()
[all …]
DLoadedArsc_test.cpp33 namespace overlayable = com::android::overlayable;
269 get_package_id(overlayable::R::string::not_overlayable)); in TEST()
272 overlayable::R::string::not_overlayable); in TEST()
275 info = package->GetOverlayableInfo(overlayable::R::string::overlayable1); in TEST()
281 info = package->GetOverlayableInfo(overlayable::R::string::overlayable2); in TEST()
289 info = package->GetOverlayableInfo(overlayable::R::string::overlayable3); in TEST()
297 info = package->GetOverlayableInfo(overlayable::R::string::overlayable4); in TEST()
386 loaded_arsc->GetPackageById(get_package_id(overlayable::R::string::overlayable11)); in TEST()
391 const uint8_t type_index = get_type_id(overlayable::R::string::overlayable11) - 1; in TEST()
392 const uint16_t entry_index = get_entry_id(overlayable::R::string::overlayable11); in TEST()
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp266 auto overlayable = std::make_shared<Overlayable>("Name", "overlay://theme", in TEST() local
268 OverlayableItem overlayable_item(overlayable); in TEST()
283 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST()
284 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
285 EXPECT_THAT(result_overlayable_item.overlayable->source.path, Eq("res/values/overlayable.xml")); in TEST()
286 EXPECT_THAT(result_overlayable_item.overlayable->source.line, 40); in TEST()
299 OverlayableItem overlayable(group); in TEST() local
300 overlayable.policies = PolicyFlags::PRODUCT_PARTITION; in TEST()
301 ASSERT_TRUE(table.AddResource(NewResourceBuilder(foo).SetOverlayable(overlayable).Build(), in TEST()
337 auto overlayable = std::make_shared<Overlayable>("Name", "overlay://theme"); in TEST() local
[all …]
DResourceParser_test.cpp1053 </overlayable>)"; in TEST_F()
1070 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1071 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST_F()
1120 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1128 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1136 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1144 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1152 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1160 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
1168 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST_F()
[all …]
DResourceTable.h89 explicit OverlayableItem(const std::shared_ptr<Overlayable>& overlayable) in OverlayableItem()
90 : overlayable(overlayable) {} in OverlayableItem()
91 std::shared_ptr<Overlayable> overlayable; member
264 std::optional<OverlayableItem> overlayable; member
277 NewResourceBuilder& SetOverlayable(OverlayableItem overlayable);
DResources.proto58 // The <overlayable> declarations within the resource table.
59 repeated Overlayable overlayable = 3; field
152 // Represents a set of overlayable resources.
154 // The name of the <overlayable>.
157 // The location of the <overlayable> declaration in the source.
160 // The component responsible for enabling and disabling overlays targeting this <overlayable>.
164 // Represents an overlayable <item> declaration within an <overlayable> tag.
188 // The index into overlayable list that points to the <overlayable> tag that contains
DResourceTable.cpp533 if (res.overlayable.has_value()) { in AddResource()
535 diag->Error(DiagMessage(res.overlayable->source) in AddResource()
541 entry->overlayable_item = res.overlayable.value(); in AddResource()
708 NewResourceBuilder& NewResourceBuilder::SetOverlayable(OverlayableItem overlayable) { in SetOverlayable() argument
709 res_.overlayable = std::move(overlayable); in SetOverlayable()
DDebug.cpp545 overlayable_item.overlayable->name.c_str(), in DumpOverlayable()
546 overlayable_item.overlayable->actor.c_str()); in DumpOverlayable()
/frameworks/base/libs/androidfw/tests/data/overlay/
Dbuild30 idmap2 create --target-apk-path overlayable/overlayable.apk \
/frameworks/base/services/core/java/com/android/server/om/
DOverlayReferenceMapper.java132 String overlayable = pkg.getOverlayTargetOverlayableName(); in OverlayReferenceMapper()
135 overlayables.add(overlayable); in OverlayReferenceMapper()
249 for (String overlayable : overlayablesToActors.keySet()) { in addTarget()
250 String actor = overlayablesToActors.get(overlayable); in addTarget()
261 if (overlayables.contains(overlayable)) { in addTarget()
325 for (String overlayable : overlayables) { in addOverlay()
326 String actor = overlayableToActor.get(overlayable); in addOverlay()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp455 auto iter = overlayable_chunks.find(item.overlayable->name); in FlattenOverlayable()
457 OverlayableChunk chunk{item.overlayable->actor, item.overlayable->source}; in FlattenOverlayable()
459 &overlayable_chunks.insert({item.overlayable->name, chunk}).first->second; in FlattenOverlayable()
462 if (!(chunk.source == item.overlayable->source)) { in FlattenOverlayable()
464 context_->GetDiagnostics()->Error(DiagMessage(item.overlayable->source) in FlattenOverlayable()
466 << item.overlayable->name << "'"); in FlattenOverlayable()
472 CHECK(chunk.actor == item.overlayable->actor); in FlattenOverlayable()
477 context_->GetDiagnostics()->Error(DiagMessage(item.overlayable->source) in FlattenOverlayable()
495 OverlayableChunk& overlayable = overlayable_pair.second; in FlattenOverlayable() local
511 if (overlayable.actor.size() >= arraysize(overlayable_type->actor)) { in FlattenOverlayable()
[all …]
DTableFlattener_test.cpp692 auto overlayable = std::make_shared<Overlayable>("TestName", "overlay://theme"); in TEST_F() local
694 OverlayableItem overlayable_item_zero(overlayable); in TEST_F()
699 OverlayableItem overlayable_item_one(overlayable); in TEST_F()
703 OverlayableItem overlayable_item_two(overlayable); in TEST_F()
789 EXPECT_EQ(result_overlayable.overlayable->name, "TestName"); in TEST_F()
790 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://theme"); in TEST_F()
799 EXPECT_EQ(result_overlayable.overlayable->name, "OtherName"); in TEST_F()
800 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://customization"); in TEST_F()
808 EXPECT_EQ(result_overlayable.overlayable->name, "TestName"); in TEST_F()
809 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://theme"); in TEST_F()
[all …]
DBinaryResourceParser.cpp465 auto overlayable = std::make_shared<Overlayable>(); in ParseOverlayable() local
466 overlayable->name = util::Utf16ToUtf8(strcpy16_dtoh((const char16_t*)header->name, in ParseOverlayable()
468 overlayable->actor = util::Utf16ToUtf8(strcpy16_dtoh((const char16_t*)header->actor, in ParseOverlayable()
494 OverlayableItem overlayable_item(overlayable); in ParseOverlayable()
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp461 auto overlayable = std::make_shared<Overlayable>("CustomizableResources", in TEST_F() local
463 OverlayableItem overlayable_item(overlayable); in TEST_F()
489 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST_F()
490 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST_F()
496 auto overlayable = std::make_shared<Overlayable>("CustomizableResources", in TEST_F() local
503 OverlayableItem overlayable_item(overlayable); in TEST_F()
523 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST_F()
524 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST_F()
611 auto overlayable = std::make_shared<Overlayable>("CustomizableResources", in TEST_F() local
614 OverlayableItem overlayable_item_first(overlayable); in TEST_F()
[all …]
DTableMerger.cpp129 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()
/frameworks/base/cmds/idmap2/libidmap2/
DResourceMapping.cpp135 auto overlayable = CheckOverlayable(target, overlay_info, fulfilled_policies, *target_resid); in FromContainers() local
136 if (!overlayable) { in FromContainers()
140 << "' in target: " << overlayable.GetErrorMessage()); in FromContainers()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp243 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("OverlayableName")); in TEST()
244 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
245 EXPECT_THAT(result_overlayable_item.overlayable->source.path, Eq("res/values/overlayable.xml")); in TEST()
246 EXPECT_THAT(result_overlayable_item.overlayable->source.line, Eq(40)); in TEST()
645 EXPECT_THAT(overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST()
646 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST()
654 EXPECT_THAT(overlayable_item.overlayable->name, Eq("TaskBar")); in TEST()
655 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
663 EXPECT_THAT(overlayable_item.overlayable->name, Eq("FontPack")); in TEST()
664 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
[all …]
DProtoSerialize.cpp284 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()
/frameworks/base/libs/androidfw/tests/data/overlayable/
Dbuild23 aapt2 link -I $FRAMEWORK_RES_APK --manifest AndroidManifest.xml -o overlayable.apk compiled.flata \
DR.h24 namespace overlayable {
/frameworks/opt/net/wifi/RROOverlaySampleApp/
DReadme.txt2 b) The list of values that can be overlayed are listed in service/res/values/overlayable.xml.
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp614 const auto overlayable = child_chunk.header<ResTable_overlayable_header>(); in Load() local
615 if (!overlayable) { in Load()
621 util::ReadUtf16StringFromDevice(overlayable->name, arraysize(overlayable->name), &name); in Load()
623 util::ReadUtf16StringFromDevice(overlayable->actor, arraysize(overlayable->actor), &actor); in Load()
/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.cpp140 const OverlayableItem& overlayable) { in SetOverlayable() argument
144 NewResourceBuilder(res_name).SetOverlayable(overlayable).SetAllowMangled(true).Build(), in SetOverlayable()
DBuilders.h75 const OverlayableItem& overlayable);

12