/frameworks/base/libs/androidfw/tests/ |
D | Idmap_test.cpp | 33 namespace overlayable = com::android::overlayable; 81 auto value = asset_manager.GetResource(overlayable::R::string::overlayable5); in TEST_F() 92 auto value = asset_manager.GetResource(overlayable::R::string::overlayable10); in TEST_F() 103 auto value = asset_manager.GetResource(overlayable::R::string::overlayable8); in TEST_F() 114 auto value = asset_manager.GetResource(overlayable::R::integer::config_integer); in TEST_F() 125 auto value = asset_manager.GetResource(overlayable::R::string::overlayable11); in TEST_F() 136 auto value = asset_manager.GetResource(overlayable::R::string::overlayable9); in TEST_F() 140 ASSERT_EQ(value->data, overlayable::R::string::overlayable7); in TEST_F() 147 auto value = asset_manager.GetResource(overlayable::R::layout::hello_view); in TEST_F() 166 ASSERT_EQ(xml_tree->getAttributeData(0), overlayable::R::id::hello_view); in TEST_F() [all …]
|
D | LoadedArsc_test.cpp | 33 namespace overlayable = com::android::overlayable; 213 get_package_id(overlayable::R::string::not_overlayable)); in TEST() 216 overlayable::R::string::not_overlayable); in TEST() 219 info = package->GetOverlayableInfo(overlayable::R::string::overlayable1); in TEST() 225 info = package->GetOverlayableInfo(overlayable::R::string::overlayable2); in TEST() 233 info = package->GetOverlayableInfo(overlayable::R::string::overlayable3); in TEST() 241 info = package->GetOverlayableInfo(overlayable::R::string::overlayable4); in TEST() 330 loaded_arsc->GetPackageById(get_package_id(overlayable::R::string::overlayable11)); in TEST() 335 const uint8_t type_index = get_type_id(overlayable::R::string::overlayable11) - 1; in TEST() 336 const uint16_t entry_index = get_entry_id(overlayable::R::string::overlayable11); in TEST()
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable_test.cpp | 267 auto overlayable = std::make_shared<Overlayable>( in TEST() local 269 OverlayableItem overlayable_item(overlayable); in TEST() 284 EXPECT_THAT(result_overlayable_item.overlayable->name, Eq("Name")); in TEST() 285 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST() 286 EXPECT_THAT(result_overlayable_item.overlayable->source.path, Eq("res/values/overlayable.xml")); in TEST() 287 EXPECT_THAT(result_overlayable_item.overlayable->source.line, 40); in TEST() 300 OverlayableItem overlayable(group); in TEST() local 301 overlayable.policies = PolicyFlags::PRODUCT_PARTITION; in TEST() 302 ASSERT_TRUE(table.AddResource(NewResourceBuilder(foo).SetOverlayable(overlayable).Build(), in TEST() 338 auto overlayable = std::make_shared<Overlayable>("Name", "overlay://theme"); in TEST() local [all …]
|
D | ResourceParser_test.cpp | 1053 </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 …]
|
D | ResourceTable.h | 88 explicit OverlayableItem(const std::shared_ptr<Overlayable>& overlayable) in OverlayableItem() 89 : overlayable(overlayable) {} in OverlayableItem() 90 std::shared_ptr<Overlayable> overlayable; member 268 std::optional<OverlayableItem> overlayable; member 281 NewResourceBuilder& SetOverlayable(OverlayableItem overlayable);
|
D | Resources.proto | 65 // The <overlayable> declarations within the resource table. 66 repeated Overlayable overlayable = 3; field 161 // Represents a set of overlayable resources. 163 // The name of the <overlayable>. 166 // The location of the <overlayable> declaration in the source. 169 // The component responsible for enabling and disabling overlays targeting this <overlayable>. 173 // Represents an overlayable <item> declaration within an <overlayable> tag. 197 // The index into overlayable list that points to the <overlayable> tag that contains
|
D | ResourceTable.cpp | 543 if (res.overlayable.has_value()) { in AddResource() 545 diag->Error(android::DiagMessage(res.overlayable->source) in AddResource() 551 entry->overlayable_item = res.overlayable.value(); in AddResource() 719 NewResourceBuilder& NewResourceBuilder::SetOverlayable(OverlayableItem overlayable) { in SetOverlayable() argument 720 res_.overlayable = std::move(overlayable); in SetOverlayable()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener.cpp | 297 auto iter = overlayable_chunks.find(item.overlayable->name); in FlattenOverlayable() 299 OverlayableChunk chunk{item.overlayable->actor, item.overlayable->source}; in FlattenOverlayable() 301 &overlayable_chunks.insert({item.overlayable->name, chunk}).first->second; in FlattenOverlayable() 304 if (!(chunk.source == item.overlayable->source)) { in FlattenOverlayable() 306 context_->GetDiagnostics()->Error(android::DiagMessage(item.overlayable->source) in FlattenOverlayable() 308 << item.overlayable->name << "'"); in FlattenOverlayable() 314 CHECK(chunk.actor == item.overlayable->actor); in FlattenOverlayable() 319 context_->GetDiagnostics()->Error(android::DiagMessage(item.overlayable->source) in FlattenOverlayable() 337 OverlayableChunk& overlayable = overlayable_pair.second; in FlattenOverlayable() local 352 if (overlayable.actor.size() >= arraysize(overlayable_type->actor)) { in FlattenOverlayable() [all …]
|
D | TableFlattener_test.cpp | 835 auto overlayable = std::make_shared<Overlayable>("TestName", "overlay://theme"); in TEST_F() local 837 OverlayableItem overlayable_item_zero(overlayable); in TEST_F() 842 OverlayableItem overlayable_item_one(overlayable); in TEST_F() 846 OverlayableItem overlayable_item_two(overlayable); in TEST_F() 932 EXPECT_EQ(result_overlayable.overlayable->name, "TestName"); in TEST_F() 933 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://theme"); in TEST_F() 942 EXPECT_EQ(result_overlayable.overlayable->name, "OtherName"); in TEST_F() 943 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://customization"); in TEST_F() 951 EXPECT_EQ(result_overlayable.overlayable->name, "TestName"); in TEST_F() 952 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://theme"); in TEST_F() [all …]
|
D | BinaryResourceParser.cpp | 468 auto overlayable = std::make_shared<Overlayable>(); in ParseOverlayable() local 469 overlayable->name = android::util::Utf16ToUtf8( in ParseOverlayable() 471 overlayable->actor = android::util::Utf16ToUtf8( in ParseOverlayable() 500 OverlayableItem overlayable_item(overlayable); in ParseOverlayable()
|
/frameworks/base/libs/androidfw/tests/data/overlay/ |
D | build | 30 idmap2 create --target-apk-path overlayable/overlayable.apk \
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayReferenceMapper.java | 132 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/link/ |
D | TableMerger_test.cpp | 461 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 …]
|
D | TableMerger.cpp | 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()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | ResourceMapping.cpp | 135 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/libs/androidfw/tests/data/overlayable/ |
D | build | 23 aapt2 link -I $FRAMEWORK_RES_APK --manifest AndroidManifest.xml -o overlayable.apk compiled.flata \
|
D | R.h | 24 namespace overlayable {
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 243 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() 650 EXPECT_THAT(overlayable_item.overlayable->name, Eq("CustomizableResources")); in TEST() 651 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST() 659 EXPECT_THAT(overlayable_item.overlayable->name, Eq("TaskBar")); in TEST() 660 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST() 668 EXPECT_THAT(overlayable_item.overlayable->name, Eq("FontPack")); in TEST() 669 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST() [all …]
|
D | ProtoSerialize.cpp | 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()
|
/frameworks/opt/net/wifi/RROOverlaySampleApp/ |
D | Readme.txt | 2 b) The list of values that can be overlayed are listed in service/res/values/overlayable.xml.
|
/frameworks/base/cmds/idmap2/tests/data/target/ |
D | build | 21 aapt2 link --manifest AndroidManifest.xml -A assets -o target-no-overlayable.apk values_values.arsc…
|
/frameworks/base/libs/androidfw/ |
D | LoadedArsc.cpp | 651 const auto overlayable = child_chunk.header<ResTable_overlayable_header>(); in Load() local 652 if (!overlayable) { in Load() 658 util::ReadUtf16StringFromDevice(overlayable->name, std::size(overlayable->name), &name); in Load() 660 util::ReadUtf16StringFromDevice(overlayable->actor, std::size(overlayable->actor), &actor); in Load()
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_om_OverlayManagerImpl.cpp | 246 auto overlayable = in CreateFrroFile() local 262 overlayable.value_or(std::string()).c_str(), size); in CreateFrroFile() 310 targetPackageName.c_str(), overlayable, entries_params, in CreateFrroFile()
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.cpp | 131 const OverlayableItem& overlayable) { in SetOverlayable() argument 134 NewResourceBuilder(res_name).SetOverlayable(overlayable).SetAllowMangled(true).Build(), in SetOverlayable()
|
D | Builders.h | 70 const OverlayableItem& overlayable);
|