Home
last modified time | relevance | path

Searched refs:actor (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/om/
DOverlayReferenceMapper.java109 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 …]
DOverlayActorEnforcer.java159 String actor = targetOverlayable.actor; in isAllowedActor() local
160 if (TextUtils.isEmpty(actor)) { in isAllowedActor()
174 Pair<String, ActorState> actorUriPair = getPackageNameForActor(actor, namedActors); in isAllowedActor()
DIdmapManager.java188 if (overlayableInfo != null && overlayableInfo.actor != null) { in matchesActorSignature()
190 overlayableInfo.actor, mOverlayableCallback.getNamedActors()).first; in matchesActorSignature()
/frameworks/base/core/java/android/content/om/
DOverlayableInfo.java45 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/
DResourceTable.h64 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
DResourceParser_test.cpp972 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()
DResourceTable_test.cpp266 EXPECT_THAT(result_overlayable_item.overlayable->actor, Eq("overlay://theme")); in TEST()
DDebug.cpp553 overlayable_item.overlayable->actor.c_str()); in DumpOverlayable()
DResources.proto156 string actor = 3; field
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp234 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()
DTableFlattener_test.cpp801 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()
DBinaryResourceParser.cpp448 overlayable->actor = util::Utf16ToUtf8(strcpy16_dtoh((const char16_t*)header->actor, in ParseOverlayable()
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp592 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/
DLoadedArsc_test.cpp244 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/
DOverlayReferenceMapperTests.kt190 override fun getActorPkg(actor: String?) = in <lambda>()
191 OverlayActorEnforcer.getPackageNameForActor(actor, namedActors).first in <lambda>()
/frameworks/base/core/jni/
Dandroid_content_res_ApkAssets.cpp380 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()
Dandroid_util_AssetManager.cpp278 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/
DProtoSerialize_test.cpp173 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()
DProtoSerialize.cpp294 pb_overlayable->set_actor(overlayable_item.overlayable->actor); in SerializeOverlayableItemToPb()
DProtoDeserialize.cpp557 auto group = std::make_shared<Overlayable>(pb_overlayable.name(), pb_overlayable.actor()); in DeserializeTableFromPb()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp148 || src_overlayable->actor != dst_overlayable->actor in MergeEntry()
DTableMerger_test.cpp520 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/
DLoadedArsc.h99 std::string actor; member
DResourceTypes.h1671 uint16_t actor[256]; member
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DAppsFilterTest.java576 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()

12