/frameworks/base/core/java/android/content/om/ |
D | OverlayInfo.java | 150 public final String targetPackageName; field in OverlayInfo 212 this(source.packageName, source.targetPackageName, source.targetOverlayableName, in OverlayInfo() 218 public OverlayInfo(@NonNull String packageName, @NonNull String targetPackageName, in OverlayInfo() argument 223 this.targetPackageName = targetPackageName; in OverlayInfo() 237 targetPackageName = source.readString(); in OverlayInfo() 265 return targetPackageName; in getTargetPackageName() 303 if (targetPackageName == null) { in ensureValidState() 332 dest.writeString(targetPackageName); in writeToParcel() 412 result = prime * result + ((targetPackageName == null) ? 0 : targetPackageName.hashCode()); in hashCode() 441 if (!targetPackageName.equals(other.targetPackageName)) { in equals() [all …]
|
D | OverlayManager.java | 226 public List<OverlayInfo> getOverlayInfosForTarget(@NonNull final String targetPackageName, in getOverlayInfosForTarget() argument 229 return mService.getOverlayInfosForTarget(targetPackageName, user.getIdentifier()); in getOverlayInfosForTarget() 249 public void invalidateCachesForOverlay(@NonNull final String targetPackageName, in invalidateCachesForOverlay() argument 252 mService.invalidateCachesForOverlay(targetPackageName, user.getIdentifier()); in invalidateCachesForOverlay()
|
D | IOverlayManager.aidl | 53 List getOverlayInfosForTarget(in String targetPackageName, in int userId); in getOverlayInfosForTarget() argument
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerServiceImpl.java | 92 if (!Objects.equals(theTruth.overlayTarget, oldSettings.targetPackageName)) { in mustReinitializeOverlay() 164 packagesToUpdateAssets.add(oi.targetPackageName); in updateOverlaysForUser() 176 packagesToUpdateAssets.add(oi.targetPackageName); in updateOverlaysForUser() 189 packagesToUpdateAssets.add(oi.targetPackageName); in updateOverlaysForUser() 211 String targetPackageName = iter.next(); in updateOverlaysForUser() local 212 if (mPackageManager.getPackageInfo(targetPackageName, newUserId) == null) { in updateOverlaysForUser() 239 + oi.targetPackageName + "' in category '" + oi.category + "' for user " in updateOverlaysForUser() 242 if (updateState(oi.targetPackageName, oi.packageName, newUserId, 0)) { in updateOverlaysForUser() 243 packagesToUpdateAssets.add(oi.targetPackageName); in updateOverlaysForUser() 306 private void updateAndRefreshOverlaysForTarget(@NonNull final String targetPackageName, in updateAndRefreshOverlaysForTarget() argument [all …]
|
D | OverlayActorEnforcer.java | 97 + overlayInfo.targetPackageName + (DEBUG_REASON ? (" because " + actorState) : "") in enforceActor() 119 String targetPackageName = overlayInfo.targetPackageName; in isAllowedActor() local 120 if (ArrayUtils.contains(callingPackageNames, targetPackageName)) { in isAllowedActor() 128 if (mOverlayableCallback.doesTargetDefineOverlayable(targetPackageName, userId)) { in isAllowedActor() 149 targetOverlayable = mOverlayableCallback.getOverlayableForTarget(targetPackageName, in isAllowedActor()
|
D | OverlayManagerService.java | 553 public List<OverlayInfo> getOverlayInfosForTarget(@Nullable final String targetPackageName, 555 if (targetPackageName == null) { 560 traceBegin(TRACE_TAG_RRO, "OMS#getOverlayInfosForTarget " + targetPackageName); 564 return mImpl.getOverlayInfosForTarget(targetPackageName, realUserId); 904 public void onOverlaysChanged(@NonNull final String targetPackageName, final int userId) { in onOverlaysChanged() argument 907 updateAssets(userId, targetPackageName); in onOverlaysChanged() 910 Uri.fromParts("package", targetPackageName, null)); in onOverlaysChanged() 951 final String targetPackageName = targetPackageNames.get(i); in updateOverlayPaths() local 953 if (!"android".equals(targetPackageName)) { in updateOverlayPaths() 956 list.addAll(mImpl.getEnabledOverlayPackageNames(targetPackageName, userId)); in updateOverlayPaths() [all …]
|
D | OverlayManagerSettings.java | 70 @NonNull final String targetPackageName, @Nullable final String targetOverlayableName, in init() argument 74 insert(new SettingsItem(packageName, userId, targetPackageName, targetOverlayableName, in init() 163 List<OverlayInfo> getOverlaysForTarget(@NonNull final String targetPackageName, in getOverlaysForTarget() argument 167 return selectWhereTarget(targetPackageName, userId) in getOverlaysForTarget() 179 .collect(Collectors.groupingBy(info -> info.targetPackageName, ArrayMap::new, in getOverlaysForUser() 451 final String targetPackageName = XmlUtils.readStringAttribute(parser, in restoreRow() local 462 return new SettingsItem(packageName, userId, targetPackageName, targetOverlayableName, in restoreRow() 516 @NonNull final String targetPackageName, in SettingsItem() argument 522 mTargetPackageName = targetPackageName; in SettingsItem() 638 private Stream<SettingsItem> selectWhereTarget(@NonNull final String targetPackageName, in selectWhereTarget() argument [all …]
|
D | OverlayManagerShellCommand.java | 167 for (final String targetPackageName : allOverlays.keySet()) { in runList() 168 out.println(targetPackageName); in runList() 170 List<OverlayInfo> overlaysForTarget = allOverlays.get(targetPackageName); in runList()
|
D | OverlayableInfoCallback.java | 70 boolean doesTargetDefineOverlayable(String targetPackageName, int userId) throws IOException; in doesTargetDefineOverlayable() argument
|
/frameworks/base/core/java/com/android/internal/content/om/ |
D | OverlayScanner.java | 42 public final String targetPackageName; field in OverlayScanner.ParsedOverlayInfo 48 public ParsedOverlayInfo(String packageName, String targetPackageName, in ParsedOverlayInfo() argument 51 this.targetPackageName = targetPackageName; in ParsedOverlayInfo() 63 packageName, targetPackageName, targetSdkVersion, isStatic, priority, path); in toString() 129 return apkLite.targetPackageName == null ? null : in parseOverlayManifest() 130 new ParsedOverlayInfo(apkLite.packageName, apkLite.targetPackageName, in parseOverlayManifest()
|
D | OverlayConfig.java | 85 if (!o1.targetPackageName.equals(o2.targetPackageName)) { 86 return o1.targetPackageName.compareTo(o2.targetPackageName); 336 || !"android".equals(overlay.parsedConfig.parsedInfo.targetPackageName)) { in getImmutableFrameworkOverlayIdmapInvocations()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTestsBase.java | 97 void assertOverlayInfoForTarget(final String targetPackageName, int userId, in assertOverlayInfoForTarget() argument 100 mImpl.getOverlayInfosForTarget(targetPackageName, userId); in assertOverlayInfoForTarget() 110 DummyDeviceState.PackageBuilder overlay(String packageName, String targetPackageName) { in overlay() argument 111 return overlay(packageName, targetPackageName, null /* targetOverlayableName */); in overlay() 114 DummyDeviceState.PackageBuilder overlay(String packageName, String targetPackageName, in overlay() argument 116 return new DummyDeviceState.PackageBuilder(packageName, targetPackageName, in overlay() 167 if (replacedPackage.targetPackageName != null) { in upgradePackage() 193 if (pkg.targetPackageName == null) { in uninstallPackage() 284 final String targetPackageName; field in OverlayManagerServiceImplTestsBase.DummyDeviceState.Package 292 private Package(String packageName, String targetPackageName, in Package() argument [all …]
|
D | OverlayManagerSettingsTests.java | 161 assertTrue(map.keySet().contains(OVERLAY_A0.targetPackageName)); in testGetOverlaysForUser() 163 List<OverlayInfo> list = map.get(OVERLAY_A0.targetPackageName); in testGetOverlaysForUser() 199 mSettings.getOverlaysForTarget(OVERLAY_A0.targetPackageName, OVERLAY_A0.userId); in testOrderOfNewlyAddedItems() 206 list = mSettings.getOverlaysForTarget(OVERLAY_A0.targetPackageName, OVERLAY_A0.userId); in testOrderOfNewlyAddedItems() 217 mSettings.getOverlaysForTarget(OVERLAY_A0.targetPackageName, OVERLAY_A0.userId); in testSetPriority() 223 list = mSettings.getOverlaysForTarget(OVERLAY_A0.targetPackageName, OVERLAY_A0.userId); in testSetPriority() 229 list = mSettings.getOverlaysForTarget(OVERLAY_A0.targetPackageName, OVERLAY_A0.userId); in testSetPriority() 255 mSettings.getOverlaysForTarget(OVERLAY_A0.targetPackageName, OVERLAY_A0.userId); in testSetLowestPriority() 261 list = mSettings.getOverlaysForTarget(OVERLAY_A0.targetPackageName, OVERLAY_A0.userId); in testSetLowestPriority() 272 mSettings.getOverlaysForTarget(OVERLAY_A0.targetPackageName, OVERLAY_A0.userId); in testSetHighestPriority() [all …]
|
D | OverlayActorEnforcerTests.kt | 188 override fun doesTargetDefineOverlayable(targetPackageName: String?, userId: Int): Boolean { in overlayInfo()
|
D | OverlayManagerServiceImplTests.java | 60 assertEquals(oi.targetPackageName, TARGET); in testGetOverlayInfo()
|
/frameworks/base/test-runner/src/android/test/ |
D | ActivityInstrumentationTestCase.java | 75 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/ |
D | VrManagerService.java | 371 final ComponentName targetPackageName; field in VrManagerService.VrState 376 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument 382 this.targetPackageName = targetPackageName; in VrState() 388 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument 394 this.targetPackageName = targetPackageName; in VrState() 421 sb.append((targetPackageName == null) ? "None" in toLogString() 422 : targetPackageName.flattenToString()); in toLogString() 1214 mPendingState.targetPackageName, mPendingState.userId, mPendingState.processId, in consumeAndApplyPendingStateLocked() 1260 private void setVrMode(boolean enabled, @NonNull ComponentName targetPackageName, in setVrMode() argument 1274 targetListener = targetPackageName; in setVrMode() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | HarmfulAppWarningActivity.java | 119 public static Intent createHarmfulAppWarningIntent(Context context, String targetPackageName, in createHarmfulAppWarningIntent() argument 123 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, targetPackageName); in createHarmfulAppWarningIntent()
|
D | ChooserActivity.java | 1816 String targetPackageName = 1825 .getResolveInfo().activityInfo.packageName.equals(targetPackageName)) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
D | ThemeOverlayManagerTest.java | 237 private static OverlayInfo createOverlayInfo(String packageName, String targetPackageName, in createOverlayInfo() argument 239 return new OverlayInfo(packageName, targetPackageName, null, category, "", in createOverlayInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilitySecurityPolicyTest.java | 312 final String targetPackageName = PACKAGE_NAME; in computeValidReportedPackages_uidIsAppWidgetHost_returnTargetAndWidgetName() local 320 targetPackageName, widgetHostUid)); in computeValidReportedPackages_uidIsAppWidgetHost_returnTargetAndWidgetName() 322 assertThat(packages, containsInAnyOrder(targetPackageName, widgetPackageName)); in computeValidReportedPackages_uidIsAppWidgetHost_returnTargetAndWidgetName()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/content/ |
D | OverlayConfigIterationRule.java | 145 when(a.getOverlayTarget()).thenReturn(info.targetPackageName); in apply()
|
D | OverlayConfigTest.java | 599 assertEquals("android", info.targetPackageName); in testGetOverlayInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayManager.java | 147 mTargetPackageToCategories.get(o.targetPackageName).contains(o.category)) in applyCurrentUserOverlays()
|
/frameworks/base/services/core/java/android/content/pm/ |
D | PackageManagerInternal.java | 547 public abstract boolean setEnabledOverlayPackages(int userId, String targetPackageName, in setEnabledOverlayPackages() argument
|