/frameworks/base/core/java/android/content/om/ |
D | OverlayInfo.java | 71 public final String targetPackageName; field in OverlayInfo 100 this(source.packageName, source.targetPackageName, source.baseCodePath, state, in OverlayInfo() 104 public OverlayInfo(@NonNull String packageName, @NonNull String targetPackageName, in OverlayInfo() argument 107 this.targetPackageName = targetPackageName; in OverlayInfo() 116 targetPackageName = source.readString(); in OverlayInfo() 127 if (targetPackageName == null) { in ensureValidState() 153 dest.writeString(targetPackageName); in writeToParcel() 223 result = prime * result + ((targetPackageName == null) ? 0 : targetPackageName.hashCode()); in hashCode() 249 if (!targetPackageName.equals(other.targetPackageName)) { in equals() 260 return "OverlayInfo { overlay=" + packageName + ", target=" + targetPackageName + ", state=" in toString()
|
D | IOverlayManager.aidl | 52 List getOverlayInfosForTarget(in String targetPackageName, in int userId); in getOverlayInfosForTarget() argument
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerServiceImpl.java | 105 if (oi == null || !oi.targetPackageName.equals(overlayPackage.overlayTarget)) { in updateOverlaysForUser() 126 packagesToUpdateAssets.add(oi.targetPackageName); in updateOverlaysForUser() 150 packagesToUpdateAssets.add(oi.targetPackageName); in updateOverlaysForUser() 156 String targetPackageName = iter.next(); in updateOverlaysForUser() local 157 if (mPackageManager.getPackageInfo(targetPackageName, newUserId) == null) { in updateOverlaysForUser() 299 List<OverlayInfo> getOverlayInfosForTarget(@NonNull final String targetPackageName, in getOverlayInfosForTarget() argument 301 return mSettings.getOverlaysForTarget(targetPackageName, userId); in getOverlayInfosForTarget() 328 mPackageManager.getPackageInfo(oi.targetPackageName, userId); in setEnabled() 333 mListener.onOverlaysChanged(oi.targetPackageName, userId); in setEnabled() 354 mPackageManager.getPackageInfo(oi.targetPackageName, userId); in setEnabledExclusive() [all …]
|
D | OverlayManagerService.java | 491 public List<OverlayInfo> getOverlayInfosForTarget(@Nullable final String targetPackageName, 494 if (targetPackageName == null) { 499 return mImpl.getOverlayInfosForTarget(targetPackageName, userId); 679 public void onOverlaysChanged(@NonNull final String targetPackageName, final int userId) { in onOverlaysChanged() argument 682 updateAssets(userId, targetPackageName); in onOverlaysChanged() 685 Uri.fromParts("package", targetPackageName, null)); in onOverlaysChanged() 722 final String targetPackageName = targetPackageNames.get(i); in updateOverlayPaths() local 724 if (!"android".equals(targetPackageName)) { in updateOverlayPaths() 727 list.addAll(mImpl.getEnabledOverlayPackageNames(targetPackageName, userId)); in updateOverlayPaths() 728 pendingChanges.put(targetPackageName, list); in updateOverlayPaths() [all …]
|
D | OverlayManagerSettings.java | 69 @NonNull final String targetPackageName, @NonNull final String baseCodePath, in init() argument 73 new SettingsItem(packageName, userId, targetPackageName, baseCodePath, in init() 168 List<OverlayInfo> getOverlaysForTarget(@NonNull final String targetPackageName, in getOverlaysForTarget() argument 170 return selectWhereTarget(targetPackageName, userId) in getOverlaysForTarget() 178 .collect(Collectors.groupingBy(info -> info.targetPackageName, ArrayMap::new, in getOverlaysForUser() 366 final String targetPackageName = XmlUtils.readStringAttribute(parser, in restoreRow() local 374 return new SettingsItem(packageName, userId, targetPackageName, baseCodePath, state, in restoreRow() 423 @NonNull final String targetPackageName, @NonNull final String baseCodePath, in SettingsItem() argument 428 mTargetPackageName = targetPackageName; in SettingsItem() 438 @NonNull final String targetPackageName, @NonNull final String baseCodePath, in SettingsItem() argument [all …]
|
D | OverlayManagerShellCommand.java | 115 for (final String targetPackageName : allOverlays.keySet()) { in runList() 116 out.println(targetPackageName); in runList() 117 List<OverlayInfo> overlaysForTarget = allOverlays.get(targetPackageName); in runList()
|
/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 | 342 final ComponentName targetPackageName; field in VrManagerService.VrState 347 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument 353 this.targetPackageName = targetPackageName; in VrState() 359 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument 365 this.targetPackageName = targetPackageName; in VrState() 392 sb.append((targetPackageName == null) ? "None" in toLogString() 393 : targetPackageName.flattenToString()); in toLogString() 1174 mPendingState.targetPackageName, mPendingState.userId, mPendingState.processId, in consumeAndApplyPendingStateLocked() 1220 private void setVrMode(boolean enabled, @NonNull ComponentName targetPackageName, in setVrMode() argument 1234 targetListener = targetPackageName; in setVrMode() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManagerInternal.java | 339 public abstract boolean setEnabledOverlayPackages(int userId, String targetPackageName, in setEnabledOverlayPackages() argument
|
D | PackageParser.java | 579 String[] getOverlayPaths(String targetPackageName, String targetPath); in getOverlayPaths() argument 580 String[] getOverlayApks(String targetPackageName); in getOverlayApks() argument 598 @Override public String[] getOverlayPaths(String targetPackageName, String targetPath) { in getOverlayPaths() argument 602 @Override public String[] getOverlayApks(String targetPackageName) { in getOverlayApks() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 788 Collection<PackageParser.Package> allPackages, String targetPackageName) { in getStaticOverlayPackagesLocked() argument 791 if (targetPackageName.equals(p.mOverlayTarget) && p.mIsStaticOverlay) { in getStaticOverlayPackagesLocked() 810 String targetPackageName, String targetPath) { in getStaticOverlayPathsLocked() argument 811 if ("android".equals(targetPackageName)) { in getStaticOverlayPathsLocked() 817 getStaticOverlayPackagesLocked(allPackages, targetPackageName); in getStaticOverlayPathsLocked() 852 String[] getStaticOverlayPaths(String targetPackageName, String targetPath) { in getStaticOverlayPaths() argument 855 mPackages.values(), targetPackageName, targetPath); in getStaticOverlayPaths() 859 @Override public final String[] getOverlayApks(String targetPackageName) { in getOverlayApks() argument 860 return getStaticOverlayPaths(targetPackageName, null); in getOverlayApks() 863 @Override public final String[] getOverlayPaths(String targetPackageName, in getOverlayPaths() argument [all …]
|