Home
last modified time | relevance | path

Searched refs:changedPackages (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DChangedPackagesTracker.java63 final SparseArray<String> changedPackages = mUserIdToSequenceToPackage.get(userId); in getChangedPackages() local
64 if (changedPackages == null) { in getChangedPackages()
70 final String packageName = changedPackages.get(i); in getChangedPackages()
96 SparseArray<String> changedPackages = mUserIdToSequenceToPackage.get(userId); in updateSequenceNumber() local
97 if (changedPackages == null) { in updateSequenceNumber()
98 changedPackages = new SparseArray<>(); in updateSequenceNumber()
99 mUserIdToSequenceToPackage.put(userId, changedPackages); in updateSequenceNumber()
108 changedPackages.remove(sequenceNumber); in updateSequenceNumber()
110 changedPackages.put(mChangedPackagesSequenceNumber, packageName); in updateSequenceNumber()
DDistractingPackageHelper.java124 final String[] changedPackages = changedPackagesList.toArray( in setDistractingPackageRestrictionsAsUser() local
127 changedPackages, changedUids.toArray(), userId, restrictionFlags); in setDistractingPackageRestrictionsAsUser() local
179 final List<String> changedPackages = new ArrayList<>(packagesToChange.length); in removeDistractingPackageRestrictions() local
186 changedPackages.add(ps.getPackageName()); in removeDistractingPackageRestrictions()
191 for (int index = 0; index < changedPackages.size(); index++) { in removeDistractingPackageRestrictions()
192 mutator.forPackage(changedPackages.get(index)) in removeDistractingPackageRestrictions()
198 if (!changedPackages.isEmpty()) { in removeDistractingPackageRestrictions()
199 final String[] packageArray = changedPackages.toArray( in removeDistractingPackageRestrictions()
200 new String[changedPackages.size()]); in removeDistractingPackageRestrictions()
DSuspendPackageHelper.java197 final String[] changedPackages = in setPackagesSuspended() local
202 changedPackages, notifyUids.toArray(), quarantined, targetUserId); in setPackagesSuspended()
203 mBroadcastHelper.sendMyPackageSuspendedOrUnsuspended(newSnapshot, changedPackages, in setPackagesSuspended()
DAppsFilterImpl.java747 ArraySet<String> changedPackages = in addPackageInternal() local
752 return changedPackages; in addPackageInternal()
DPackageManagerService.java5081 final ChangedPackages changedPackages = mChangedPackagesTracker.getChangedPackages(
5084 if (changedPackages != null) {
5085 final List<String> packageNames = changedPackages.getPackageNames();
5096 return changedPackages;
/frameworks/base/services/core/java/com/android/server/om/
DOverlayReferenceMapper.java199 ArraySet<String> changedPackages = new ArraySet<>(); in removePkg() local
200 removeTarget(pkgName, changedPackages); in removePkg()
201 removeOverlay(pkgName, changedPackages); in removePkg()
207 return changedPackages; in removePkg()
214 private void removeTarget(String target, @NonNull Collection<String> changedPackages) { in removeTarget() argument
224 changedPackages.add(mProvider.getActorPkg(actor)); in removeTarget()
243 @NonNull Collection<String> changedPackages) { in addTarget() argument
246 removeTarget(target, changedPackages); in addTarget()
251 addTargetToMap(actor, target, changedPackages); in addTarget()
263 addOverlayToMap(actor, target, overlay, changedPackages); in addTarget()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayReferenceMapperTests.kt180 assertion: (changedPackages: Set<String>) -> Unit in <lambda>()
182 val changedPackages = mutableSetOf<String>() in <lambda>() constant
184 changedPackages += addPkg(it, existing) in <lambda>()
187 assertion(changedPackages) in <lambda>()
193 assertion: (changedPackages: Set<String>) -> Unit in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DDistractingPackageHelperTest.kt207 var changedPackages = pkgListCaptor.value in sendDistractingPackagesChanged() variable
209 assertThat(changedPackages).asList().containsExactly(TEST_PACKAGE_1, TEST_PACKAGE_2) in sendDistractingPackagesChanged()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java2118 ArraySet<String> changedPackages = new ArraySet<>(); in notifyOpChangedForAllPkgsInUid() local
2119 Collections.addAll(changedPackages, uidPackageNames); in notifyOpChangedForAllPkgsInUid()
2123 callbackSpecs.put(callback, changedPackages); in notifyOpChangedForAllPkgsInUid()
2142 ArraySet<String> changedPackages = callbackSpecs.get(callback); in notifyOpChangedForAllPkgsInUid() local
2143 if (changedPackages == null) { in notifyOpChangedForAllPkgsInUid()
2144 changedPackages = new ArraySet<>(); in notifyOpChangedForAllPkgsInUid()
2145 callbackSpecs.put(callback, changedPackages); in notifyOpChangedForAllPkgsInUid()
2147 changedPackages.add(uidPackageName); in notifyOpChangedForAllPkgsInUid()