Home
last modified time | relevance | path

Searched refs:overlayInfo (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/overlaytests/device_self_targeting/src/com/android/overlaytest/
DOverlayManagerImplTest.java256 final OverlayInfo overlayInfo = overlayInfos.get(0); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile() local
257 expect.that(overlayInfo).isNotNull(); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
259 expect.that(overlayInfo.isFabricated()).isTrue(); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
260 expect.that(overlayInfo.getOverlayName()).isEqualTo(mOverlayName); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
261 expect.that(overlayInfo.getPackageName()).isEqualTo(mContext.getPackageName()); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
262 expect.that(overlayInfo.getTargetPackageName()).isEqualTo(mContext.getPackageName()); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
263 expect.that(overlayInfo.getUserId()).isEqualTo(mContext.getUserId()); in registerOverlay_createColorOverlay_shouldBeSavedInAndLoadFromFile()
282 final OverlayInfo overlayInfo = overlayInfos.get(0); in registerOverlay_createStringOverlay_shouldBeSavedInAndLoadFromFile() local
283 expect.that(overlayInfo).isNotNull(); in registerOverlay_createStringOverlay_shouldBeSavedInAndLoadFromFile()
285 expect.that(overlayInfo.isFabricated()).isTrue(); in registerOverlay_createStringOverlay_shouldBeSavedInAndLoadFromFile()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayApplier.java238 OverlayIdentifier overlayInfo = new OverlayIdentifier(packageToDisable.second); in applyCurrentUserOverlays() local
239 setEnabled(transaction, overlayInfo, packageToDisable.first, currentUser, in applyCurrentUserOverlays()
240 managedProfiles, false, identifiersPending.contains(overlayInfo)); in applyCurrentUserOverlays()
245 OverlayIdentifier overlayInfo = categoryToPackage.get(category); in applyCurrentUserOverlays() local
246 setEnabled(transaction, overlayInfo, category, currentUser, managedProfiles, in applyCurrentUserOverlays()
247 true, identifiersPending.contains(overlayInfo)); in applyCurrentUserOverlays()
277 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(identifier, in setEnabled() local
279 if (overlayInfo == null && !pendingCreation) { in setEnabled()
293 overlayInfo = mOverlayManager.getOverlayInfo(identifier, UserHandle.SYSTEM); in setEnabled()
294 if (overlayInfo == null || overlayInfo.targetPackageName.equals(mLauncherPackage) in setEnabled()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayActorEnforcer.java83 void enforceActor(@NonNull OverlayInfo overlayInfo, @NonNull String methodName, in enforceActor() argument
85 final ActorState actorState = isAllowedActor(methodName, overlayInfo, callingUid, userId); in enforceActor()
90 final String targetOverlayableName = overlayInfo.targetOverlayableName; in enforceActor()
94 + overlayInfo.targetPackageName + " for user " + userId; in enforceActor()
104 public ActorState isAllowedActor(String methodName, OverlayInfo overlayInfo, in isAllowedActor() argument
113 final String targetPackageName = overlayInfo.targetPackageName; in isAllowedActor()
134 String targetOverlayableName = overlayInfo.targetOverlayableName; in isAllowedActor()
DOverlayManagerServiceImpl.java655 final OverlayInfo overlayInfo = mSettings.getOverlayInfo(overlay, userId); in setPriority() local
656 if (!overlayInfo.isMutable) { in setPriority()
663 return Optional.of(UserPackage.of(userId, overlayInfo.targetPackageName)); in setPriority()
678 final OverlayInfo overlayInfo = mSettings.getOverlayInfo(overlay, userId); in setHighestPriority() local
679 if (!overlayInfo.isMutable) { in setHighestPriority()
686 return Set.of(UserPackage.of(userId, overlayInfo.targetPackageName)); in setHighestPriority()
701 final OverlayInfo overlayInfo = mSettings.getOverlayInfo(overlay, userId); in setLowestPriority() local
702 if (!overlayInfo.isMutable) { in setLowestPriority()
709 return Optional.of(UserPackage.of(userId, overlayInfo.targetPackageName)); in setLowestPriority()
DOverlayManagerService.java301 mSettings.removeIf(overlayInfo -> overlayInfo.isFabricated in OverlayManagerService()
302 && shellPkgName.equals(overlayInfo.packageName)); in OverlayManagerService()
1137 OverlayInfo overlayInfo = mImpl.getOverlayInfo(overlay, realUserId);
1139 if (overlayInfo == null) {
1145 mActorEnforcer.enforceActor(overlayInfo, methodName, callingUid, realUserId);
/frameworks/base/core/java/android/content/res/loader/
DResourcesProvider.java89 public static ResourcesProvider loadOverlay(@NonNull OverlayInfo overlayInfo) in loadOverlay() argument
91 Objects.requireNonNull(overlayInfo); in loadOverlay()
92 Preconditions.checkArgument(overlayInfo.isFabricated(), "Not accepted overlay"); in loadOverlay()
94 overlayInfo.getTargetOverlayableName(), "Without overlayable name"); in loadOverlay()
96 OverlayManagerImpl.checkOverlayNameValid(overlayInfo.getOverlayName()); in loadOverlay()
99 overlayInfo.getBaseCodePath(), "Invalid base path"); in loadOverlay()
/frameworks/base/core/tests/coretests/src/com/android/internal/content/res/
DOverlayConfigIterationRule.java152 final TestOverlayInfo overlayInfo = mTestOverlayInfos.get(overlayApk); in apply() local
153 if ((!TextUtils.isEmpty(overlayInfo.requiredSystemPropertyName) in apply()
154 || !TextUtils.isEmpty(overlayInfo.requiredSystemPropertyValue)) in apply()
155 && !overlayInfo.isMatchRequiredSystemProperty()) { in apply()
157 Pair.create(overlayInfo.packageName, overlayApk)); in apply()
160 return overlayInfo; in apply()
/frameworks/base/core/java/com/android/internal/content/om/
DOverlayManagerImpl.java366 final OverlayInfo overlayInfo = in getOverlayInfosForTarget() local
379 overlayInfos.add(overlayInfo); in getOverlayInfosForTarget()