Home
last modified time | relevance | path

Searched refs:targetPackageName (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/core/java/android/content/om/
DOverlayInfo.java161 public final String targetPackageName; field in OverlayInfo
231 this(source.packageName, source.overlayName, source.targetPackageName, in OverlayInfo()
238 public OverlayInfo(@NonNull String packageName, @NonNull String targetPackageName, in OverlayInfo() argument
241 this(packageName, null /* overlayName */, targetPackageName, targetOverlayableName, in OverlayInfo()
248 @NonNull String targetPackageName, @Nullable String targetOverlayableName, in OverlayInfo() argument
253 this.targetPackageName = targetPackageName; in OverlayInfo()
269 targetPackageName = source.readString(); in OverlayInfo()
310 return targetPackageName; in getTargetPackageName()
382 if (targetPackageName == null) { in ensureValidState()
412 dest.writeString(targetPackageName); in writeToParcel()
[all …]
DOverlayManager.java244 public List<OverlayInfo> getOverlayInfosForTarget(@NonNull final String targetPackageName, in getOverlayInfosForTarget() argument
247 return mService.getOverlayInfosForTarget(targetPackageName, user.getIdentifier()); in getOverlayInfosForTarget()
266 public void invalidateCachesForOverlay(@NonNull final String targetPackageName, in invalidateCachesForOverlay() argument
269 mService.invalidateCachesForOverlay(targetPackageName, user.getIdentifier()); in invalidateCachesForOverlay()
DIOverlayManager.aidl55 List<OverlayInfo> getOverlayInfosForTarget(in String targetPackageName, in int userId); in getOverlayInfosForTarget() argument
DFabricatedOverlay.java114 overlay.targetPackageName = mTargetPackage; in build()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java110 void assertOverlayInfoForTarget(final String targetPackageName, int userId, in assertOverlayInfoForTarget() argument
113 mImpl.getOverlayInfosForTarget(targetPackageName, userId); in assertOverlayInfoForTarget()
128 FakeDeviceState.PackageBuilder overlay(String packageName, String targetPackageName) { in overlay() argument
129 return overlay(packageName, targetPackageName, null /* targetOverlayableName */); in overlay()
132 FakeDeviceState.PackageBuilder overlay(String packageName, String targetPackageName, in overlay() argument
134 return new FakeDeviceState.PackageBuilder(packageName, targetPackageName, in overlay()
312 final String targetPackageName; field in OverlayManagerServiceImplTestsBase.FakeDeviceState.Package
320 private Package(String packageName, String targetPackageName, in Package() argument
324 this.targetPackageName = targetPackageName; in Package()
340 when(pkg.getOverlayTarget()).thenReturn(targetPackageName); in getPackageForUser()
[all …]
DOverlayActorEnforcerTests.kt271 var targetPackageName: String = TARGET_PKG, in <lambda>() variable in com.android.server.om.OverlayActorEnforcerTests.Companion.OverlayInfoParams
277 targetPackageName, in <lambda>()
407 override fun doesTargetDefineOverlayable(targetPackageName: String?, userId: Int): Boolean { in <lambda>()
410 targetPkgInfo == null || targetPkgInfo?.packageName == targetPackageName in <lambda>()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerServiceImpl.java100 if (!Objects.equals(theTruth.getOverlayTarget(), oldSettings.targetPackageName)) { in mustReinitializeOverlay()
126 if (!Objects.equals(theTruth.targetPackageName, oldSettings.targetPackageName)) { in mustReinitializeOverlay()
222 + oi.targetPackageName + "' in category '" + oi.category + "' for user " in updateOverlaysForUser()
227 new PackageAndUser(oi.targetPackageName, oi.userId)); in updateOverlaysForUser()
297 new PackageAndUser(info.targetPackageName, userId)); in removeOverlaysForUser()
343 new PackageAndUser(currentInfo.targetPackageName, userId)); in updatePackageOverlays()
357 new PackageAndUser(currentInfo.targetPackageName, userId)); in updatePackageOverlays()
363 new PackageAndUser(currentInfo.targetPackageName, userId)); in updatePackageOverlays()
403 List<OverlayInfo> getOverlayInfosForTarget(@NonNull final String targetPackageName, in getOverlayInfosForTarget() argument
405 return mSettings.getOverlaysForTarget(targetPackageName, userId); in getOverlayInfosForTarget()
[all …]
DOverlayActorEnforcer.java95 + overlayInfo.targetPackageName + " for user " + userId; in enforceActor()
114 final String targetPackageName = overlayInfo.targetPackageName; in isAllowedActor() local
115 final AndroidPackage targetPkgInfo = mPackageManager.getPackageForUser(targetPackageName, in isAllowedActor()
131 if (ArrayUtils.contains(callingPackageNames, targetPackageName)) { in isAllowedActor()
139 if (mPackageManager.doesTargetDefineOverlayable(targetPackageName, userId)) { in isAllowedActor()
160 targetOverlayable = mPackageManager.getOverlayableForTarget(targetPackageName, in isAllowedActor()
DOverlayManagerService.java575 public List<OverlayInfo> getOverlayInfosForTarget(@Nullable final String targetPackageName,
577 if (targetPackageName == null) {
582 traceBegin(TRACE_TAG_RRO, "OMS#getOverlayInfosForTarget " + targetPackageName);
586 return mImpl.getOverlayInfosForTarget(targetPackageName, realUserId);
1298 public boolean doesTargetDefineOverlayable(String targetPackageName, int userId) in doesTargetDefineOverlayable() argument
1300 AndroidPackage packageInfo = getPackageForUser(targetPackageName, userId); in doesTargetDefineOverlayable()
1485 for (final String targetPackageName : targetPackageNames) { in updatePackageManagerLocked()
1487 if (!"android".equals(targetPackageName)) { in updatePackageManagerLocked()
1490 list.addAll(mImpl.getEnabledOverlayPaths(targetPackageName, userId)); in updatePackageManagerLocked()
1491 pendingChanges.put(targetPackageName, list.build()); in updatePackageManagerLocked()
[all …]
DOverlayManagerSettings.java75 @NonNull final String targetPackageName, @Nullable final String targetOverlayableName, in init() argument
79 final SettingsItem item = new SettingsItem(overlay, userId, targetPackageName, in init()
179 List<OverlayInfo> getOverlaysForTarget(@NonNull final String targetPackageName, in getOverlaysForTarget() argument
183 final List<SettingsItem> items = selectWhereTarget(targetPackageName, userId); in getOverlaysForTarget()
509 final String targetPackageName = XmlUtils.readStringAttribute(parser,
522 return new SettingsItem(overlay, userId, targetPackageName, targetOverlayableName,
578 @NonNull final String targetPackageName,
585 mTargetPackageName = targetPackageName;
712 private List<SettingsItem> selectWhereTarget(@NonNull final String targetPackageName,
715 items.removeIf(i -> !i.getTargetPackageName().equals(targetPackageName));
DPackageManagerHelper.java74 boolean doesTargetDefineOverlayable(String targetPackageName, int userId) throws IOException; in doesTargetDefineOverlayable() argument
DOverlayManagerShellCommand.java179 for (final String targetPackageName : allOverlays.keySet()) { in runList()
180 out.println(targetPackageName); in runList()
182 List<OverlayInfo> overlaysForTarget = allOverlays.get(targetPackageName); in runList()
/frameworks/base/core/java/com/android/internal/content/om/
DOverlayScanner.java50 public final String targetPackageName; field in OverlayScanner.ParsedOverlayInfo
57 public ParsedOverlayInfo(String packageName, String targetPackageName, in ParsedOverlayInfo() argument
61 this.targetPackageName = targetPackageName; in ParsedOverlayInfo()
74 packageName, targetPackageName, targetSdkVersion, isStatic, in toString()
DOverlayConfig.java108 if (!o1.targetPackageName.equals(o2.targetPackageName)) {
109 return o1.targetPackageName.compareTo(o2.targetPackageName);
396 || !"android".equals(overlay.parsedConfig.parsedInfo.targetPackageName)) { in getImmutableFrameworkOverlayIdmapInvocations()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayShellCommand.java78 final String targetPackageName = getPackageName(); in setLayerSaturation() local
79 if (targetPackageName == null) { in setLayerSaturation()
83 mService.setAppSaturationLevelInternal(callerPackageName, targetPackageName, level); in setLayerSaturation()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationEnforcerTest.kt172 it.targetPackageName, it.userId in <lambda>()
181 it.targetPackageName, it.userId in <lambda>()
186 it.targetPackageName, in <lambda>()
194 it.targetPackageName, in <lambda>()
200 verifyPackages(listOf(it.targetPackageName), true) in <lambda>()
203 clearDomainVerificationState(listOf(it.targetPackageName)) in <lambda>()
206 clearUserStates(listOf(it.targetPackageName), it.userId) in <lambda>()
212 getDomainVerificationInfo(it.targetPackageName) in <lambda>()
237 setDomainVerificationLinkHandlingAllowed(it.targetPackageName, true, it.userId) in <lambda>()
240 getDomainVerificationUserState(it.targetPackageName, it.userId) in <lambda>()
[all …]
/frameworks/base/test-runner/src/android/test/
DActivityInstrumentationTestCase.java75 final String targetPackageName = getInstrumentation().getTargetContext().getPackageName(); in setUp() local
76 setActivity(launchActivity(targetPackageName, mActivityClass, null)); in setUp()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java373 final ComponentName targetPackageName; field in VrManagerService.VrState
378 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument
384 this.targetPackageName = targetPackageName; in VrState()
390 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument
396 this.targetPackageName = targetPackageName; in VrState()
423 sb.append((targetPackageName == null) ? "None" in toLogString()
424 : targetPackageName.flattenToString()); in toLogString()
1218 mPendingState.targetPackageName, mPendingState.userId, mPendingState.processId, in consumeAndApplyPendingStateLocked()
1264 private void setVrMode(boolean enabled, @NonNull ComponentName targetPackageName, in setVrMode() argument
1278 targetListener = targetPackageName; in setVrMode()
[all …]
/frameworks/base/cmds/idmap2/idmap2d/aidl/core/android/os/
DFabricatedOverlayInfo.aidl26 @utf8InCpp String targetPackageName;
DFabricatedOverlayInternal.aidl27 @utf8InCpp String targetPackageName;
/frameworks/base/core/tests/coretests/src/com/android/internal/content/res/
DOverlayConfigIterationRule.java73 TestOverlayInfo(String packageName, String targetPackageName, in TestOverlayInfo() argument
76 super(packageName, targetPackageName, targetSdkVersion, isStatic, priority, path, null); in TestOverlayInfo()
189 when(a.getOverlayTarget()).thenReturn(info.targetPackageName); in apply()
/frameworks/base/core/java/com/android/internal/app/
DHarmfulAppWarningActivity.java123 public static Intent createHarmfulAppWarningIntent(Context context, String targetPackageName, in createHarmfulAppWarningIntent() argument
127 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, targetPackageName); in createHarmfulAppWarningIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayApplier.java199 mTargetPackageToCategories.get(o.targetPackageName).contains( in applyCurrentUserOverlays()
270 if (overlayInfo == null || overlayInfo.targetPackageName.equals(mLauncherPackage) in setEnabled()
271 || overlayInfo.targetPackageName.equals(mThemePickerPackage)) { in setEnabled()
/frameworks/base/cmds/idmap2/idmap2d/
DIdmap2Service.cpp232 overlay.targetPackageName); in createFabricatedOverlay()
292 out_info.targetPackageName = overlay.targetPackageName; in createFabricatedOverlay()
356 out_info.targetPackageName = std::move(info.target_package); in nextFabricatedOverlayInfos()
/frameworks/base/core/java/android/content/pm/parsing/
DApkLite.java147 String targetPackageName, boolean overlayIsStatic, int overlayPriority, in ApkLite() argument
175 mTargetPackageName = targetPackageName; in ApkLite()

12