/frameworks/base/core/java/android/content/om/ |
D | OverlayInfo.java | 147 public final String targetPackageName; field in OverlayInfo 208 this(source.packageName, source.targetPackageName, source.targetOverlayableName, in OverlayInfo() 214 public OverlayInfo(@NonNull String packageName, @NonNull String targetPackageName, in OverlayInfo() argument 219 this.targetPackageName = targetPackageName; in OverlayInfo() 233 targetPackageName = source.readString(); in OverlayInfo() 261 return targetPackageName; in getTargetPackageName() 298 if (targetPackageName == null) { in ensureValidState() 327 dest.writeString(targetPackageName); in writeToParcel() 407 result = prime * result + ((targetPackageName == null) ? 0 : targetPackageName.hashCode()); in hashCode() 436 if (!targetPackageName.equals(other.targetPackageName)) { in equals() [all …]
|
D | OverlayManager.java | 158 public List<OverlayInfo> getOverlayInfosForTarget(@NonNull final String targetPackageName, in getOverlayInfosForTarget() argument 161 return mService.getOverlayInfosForTarget(targetPackageName, user.getIdentifier()); in getOverlayInfosForTarget()
|
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 | 91 if (!Objects.equals(theTruth.overlayTarget, oldSettings.targetPackageName)) { in mustReinitializeOverlay() 158 packagesToUpdateAssets.add(oi.targetPackageName); in updateOverlaysForUser() 180 packagesToUpdateAssets.add(oi.targetPackageName); in updateOverlaysForUser() 202 String targetPackageName = iter.next(); in updateOverlaysForUser() local 203 if (mPackageManager.getPackageInfo(targetPackageName, newUserId) == null) { in updateOverlaysForUser() 230 + oi.targetPackageName + "' in category '" + oi.category + "' for user " in updateOverlaysForUser() 233 if (updateState(oi.targetPackageName, oi.packageName, newUserId, 0)) { in updateOverlaysForUser() 234 packagesToUpdateAssets.add(oi.targetPackageName); in updateOverlaysForUser() 297 private void updateAndRefreshOverlaysForTarget(@NonNull final String targetPackageName, in updateAndRefreshOverlaysForTarget() argument 299 final List<OverlayInfo> targetOverlays = mSettings.getOverlaysForTarget(targetPackageName, in updateAndRefreshOverlaysForTarget() [all …]
|
D | OverlayManagerService.java | 540 public List<OverlayInfo> getOverlayInfosForTarget(@Nullable final String targetPackageName, 543 traceBegin(TRACE_TAG_RRO, "OMS#getOverlayInfosForTarget " + targetPackageName); 545 if (targetPackageName == null) { 550 return mImpl.getOverlayInfosForTarget(targetPackageName, userId); 866 public void onOverlaysChanged(@NonNull final String targetPackageName, final int userId) { in onOverlaysChanged() argument 869 updateAssets(userId, targetPackageName); in onOverlaysChanged() 872 Uri.fromParts("package", targetPackageName, null)); in onOverlaysChanged() 913 final String targetPackageName = targetPackageNames.get(i); in updateOverlayPaths() local 915 if (!"android".equals(targetPackageName)) { in updateOverlayPaths() 918 list.addAll(mImpl.getEnabledOverlayPackageNames(targetPackageName, userId)); in updateOverlayPaths() [all …]
|
D | OverlayManagerSettings.java | 70 @NonNull final String targetPackageName, @Nullable final String targetOverlayableName, in init() argument 75 new SettingsItem(packageName, userId, targetPackageName, targetOverlayableName, in init() 183 List<OverlayInfo> getOverlaysForTarget(@NonNull final String targetPackageName, in getOverlaysForTarget() argument 187 return selectWhereTarget(targetPackageName, userId) in getOverlaysForTarget() 199 .collect(Collectors.groupingBy(info -> info.targetPackageName, ArrayMap::new, in getOverlaysForUser() 437 final String targetPackageName = XmlUtils.readStringAttribute(parser, in restoreRow() local 448 return new SettingsItem(packageName, userId, targetPackageName, targetOverlayableName, in restoreRow() 502 @NonNull final String targetPackageName, in SettingsItem() argument 508 mTargetPackageName = targetPackageName; in SettingsItem() 520 @NonNull final String targetPackageName, in SettingsItem() argument [all …]
|
D | OverlayManagerShellCommand.java | 151 for (final String targetPackageName : allOverlays.keySet()) { in runList() 152 out.println(targetPackageName); in runList() 154 List<OverlayInfo> overlaysForTarget = allOverlays.get(targetPackageName); in runList()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTests.java | 85 assertEquals(oi.targetPackageName, TARGET); in testGetOverlayInfo() 275 private void assertOverlayInfoList(final String targetPackageName, int userId, in assertOverlayInfoList() argument 278 mImpl.getOverlayInfosForTarget(targetPackageName, userId); in assertOverlayInfoList() 315 private void installOverlayPackage(String packageName, String targetPackageName, int userId, in installOverlayPackage() argument 320 mState.add(packageName, targetPackageName, userId, canCreateIdmap); in installOverlayPackage() 324 private void upgradeOverlayPackage(String packageName, String targetPackageName, int userId, in upgradeOverlayPackage() argument 330 pkg.targetPackageName = targetPackageName; in upgradeOverlayPackage() 342 public void add(String packageName, String targetPackageName, int userId, in add() argument 347 pkg.targetPackageName = targetPackageName; in add() 390 public String targetPackageName; field in OverlayManagerServiceImplTests.DummyDeviceState.Package [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 …]
|
/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 | 1344 String targetPackageName = 1351 .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/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayManager.java | 147 mTargetPackageToCategories.get(o.targetPackageName).contains(o.category)) in applyCurrentUserOverlays()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManagerInternal.java | 604 public abstract boolean setEnabledOverlayPackages(int userId, String targetPackageName, in setEnabledOverlayPackages() argument
|
D | PackageParser.java | 577 String[] getOverlayPaths(String targetPackageName, String targetPath); in getOverlayPaths() argument 578 String[] getOverlayApks(String targetPackageName); in getOverlayApks() argument 596 @Override public String[] getOverlayPaths(String targetPackageName, String targetPath) { in getOverlayPaths() argument 600 @Override public String[] getOverlayApks(String targetPackageName) { in getOverlayApks() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 763 Collection<PackageParser.Package> allPackages, String targetPackageName) { in getStaticOverlayPackages() argument 764 if ("android".equals(targetPackageName)) { in getStaticOverlayPackages() 772 if (targetPackageName.equals(p.mOverlayTarget) && p.mOverlayIsStatic) { in getStaticOverlayPackages() 823 String[] getStaticOverlayPaths(String targetPackageName, String targetPath) { in getStaticOverlayPaths() argument 828 mPackages.values(), targetPackageName); in getStaticOverlayPaths() 836 @Override public final String[] getOverlayApks(String targetPackageName) { in getOverlayApks() argument 837 return getStaticOverlayPaths(targetPackageName, null); in getOverlayApks() 840 @Override public final String[] getOverlayPaths(String targetPackageName, in getOverlayPaths() argument 842 return getStaticOverlayPaths(targetPackageName, targetPath); in getOverlayPaths() 863 synchronized String[] getStaticOverlayPaths(String targetPackageName, String targetPath) { in getStaticOverlayPaths() argument [all …]
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 7156 const String16 targetPackageName(tmpName); in createIdmap() local 7182 targetPackageName.string(), in createIdmap() 7183 targetPackageName.size(), in createIdmap()
|