/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayReferenceMapper.java | 109 public String getActorPkg(String actor) { in OverlayReferenceMapper() 114 OverlayActorEnforcer.getPackageNameForActor(actor, namedActors); in OverlayReferenceMapper() 223 String actor = overlayablesToActors.get(overlayable); in addTarget() local 224 addTargetToMap(actor, target); in addTarget() 235 addOverlayToMap(actor, target, overlayPkg.getPackageName()); in addTarget() 276 String actor = overlayableToActor.get(overlayable); in addOverlay() local 277 if (TextUtils.isEmpty(actor)) { in addOverlay() 280 addOverlayToMap(actor, targetPkgName, overlay); in addOverlay() 305 for (String actor : mActorToTargetToOverlays.keySet()) { in rebuild() 306 String actorPkg = mProvider.getActorPkg(actor); in rebuild() [all …]
|
D | OverlayActorEnforcer.java | 159 String actor = targetOverlayable.actor; in isAllowedActor() local 160 if (TextUtils.isEmpty(actor)) { in isAllowedActor() 174 Pair<String, ActorState> actorUriPair = getPackageNameForActor(actor, namedActors); in isAllowedActor()
|
D | IdmapManager.java | 188 if (overlayableInfo != null && overlayableInfo.actor != null) { in matchesActorSignature() 190 overlayableInfo.actor, mOverlayableCallback.getNamedActors()).first; in matchesActorSignature()
|
/frameworks/base/core/java/android/content/om/ |
D | OverlayableInfo.java | 45 public final String actor; field in OverlayableInfo 74 @Nullable String actor) { in OverlayableInfo() argument 78 this.actor = actor; in OverlayableInfo() 97 && Objects.equals(actor, that.actor); in equals() 108 _hash = 31 * _hash + Objects.hashCode(actor); in hashCode()
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable.h | 64 Overlayable(const android::StringPiece& name, const android::StringPiece& actor) in Overlayable() 65 : name(name.to_string()), actor(actor.to_string()) {} in Overlayable() 66 Overlayable(const android::StringPiece& name, const android::StringPiece& actor, in Overlayable() 68 : name(name.to_string()), actor(actor.to_string()), source(source ){} in Overlayable() 72 std::string actor; member
|
D | ResourceParser_test.cpp | 972 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST_F() 1010 <policy type="actor"> in TEST_F() 1011 <item type="string" name="actor" /> in TEST_F() 1184 <overlayable name="Other" actor="overlay://my.actor.two"> in TEST_F()
|
D | ResourceTable_test.cpp | 266 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
|
D | Debug.cpp | 553 overlayable_item.overlayable->actor.c_str()); in DumpOverlayable()
|
D | Resources.proto | 156 string actor = 3; field
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener.cpp | 234 std::string actor; member 469 OverlayableChunk chunk{item.overlayable->actor, item.overlayable->source}; in FlattenOverlayable() 484 CHECK(chunk.actor == item.overlayable->actor); in FlattenOverlayable() 524 if (overlayable.actor.size() >= arraysize(overlayable_type->actor)) { in FlattenOverlayable() 525 diag_->Error(DiagMessage() << "overlayable name '" << overlayable.actor in FlattenOverlayable() 527 << arraysize(overlayable_type->actor) in FlattenOverlayable() 531 strcpy16_htod(overlayable_type->actor, arraysize(overlayable_type->actor), in FlattenOverlayable() 532 util::Utf8ToUtf16(overlayable.actor)); in FlattenOverlayable()
|
D | TableFlattener_test.cpp | 801 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://theme"); in TEST_F() 811 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://customization"); in TEST_F() 820 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://theme"); in TEST_F() 831 EXPECT_EQ(result_overlayable.overlayable->actor, "overlay://customization"); in TEST_F()
|
D | BinaryResourceParser.cpp | 448 overlayable->actor = util::Utf16ToUtf8(strcpy16_dtoh((const char16_t*)header->actor, in ParseOverlayable()
|
/frameworks/base/libs/androidfw/ |
D | LoadedArsc.cpp | 592 std::string actor; in Load() local 593 util::ReadUtf16StringFromDevice(header->actor, arraysize(header->actor), &actor); in Load() 600 loaded_package->overlayable_map_.emplace(name, actor); in Load() 634 overlayable_info.actor = actor; in Load()
|
/frameworks/base/libs/androidfw/tests/ |
D | LoadedArsc_test.cpp | 244 EXPECT_THAT(info->actor, Eq("overlay://theme")); in TEST() 250 EXPECT_THAT(info->actor, Eq("overlay://theme")); in TEST() 258 EXPECT_THAT(info->actor, Eq("overlay://com.android.overlayable")); in TEST() 265 EXPECT_THAT(info->actor, Eq("overlay://theme")); in TEST()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayReferenceMapperTests.kt | 190 override fun getActorPkg(actor: String?) = in <lambda>() 191 OverlayActorEnforcer.getPackageNameForActor(actor, namedActors).first in <lambda>()
|
/frameworks/base/core/jni/ |
D | android_content_res_ApkAssets.cpp | 380 auto actor = overlayable_map.find(overlayable_name_native); in NativeGetOverlayableInfo() local 381 if (actor == overlayable_map.end()) { in NativeGetOverlayableInfo() 385 jstring actor_string = env->NewStringUTF(actor->second.c_str()); in NativeGetOverlayableInfo()
|
D | android_util_AssetManager.cpp | 278 jstring actor = env->NewStringUTF(iter.second.c_str()); in NativeGetOverlayableMap() local 284 env->CallObjectMethod(array_map, gArrayMapOffsets.put, name, actor); in NativeGetOverlayableMap() 287 env->DeleteLocalRef(actor); in NativeGetOverlayableMap()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 173 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST() 575 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST() 584 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST() 593 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST() 601 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST() 611 EXPECT_THAT(overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
|
D | ProtoSerialize.cpp | 294 pb_overlayable->set_actor(overlayable_item.overlayable->actor); in SerializeOverlayableItemToPb()
|
D | ProtoDeserialize.cpp | 557 auto group = std::make_shared<Overlayable>(pb_overlayable.name(), pb_overlayable.actor()); in DeserializeTableFromPb()
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger.cpp | 148 || src_overlayable->actor != dst_overlayable->actor in MergeEntry()
|
D | TableMerger_test.cpp | 520 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST_F() 556 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://customization")); in TEST_F()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | LoadedArsc.h | 99 std::string actor; member
|
D | ResourceTypes.h | 1671 uint16_t actor[256]; member
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | AppsFilterTest.java | 576 ParsingPackage actor = pkg("com.some.package.actor"); in testActsOnTargetOfOverlay() local 588 return actor.getPackageName(); in testActsOnTargetOfOverlay() 613 PackageSetting actorSetting = simulateAddPackage(appsFilter, actor, DUMMY_ACTOR_APPID); in testActsOnTargetOfOverlay()
|