Home
last modified time | relevance | path

Searched refs:mPackages (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/
DSharedUserSetting.java63 private final WatchedArraySet<PackageSetting> mPackages; field in SharedUserSetting
106 mPackages = new WatchedArraySet<>();
107 mPackagesSnapshot = new SnapshotCache.Auto<>(mPackages, mPackages,
124 mPackages = orig.mPackagesSnapshot.snapshot();
137 mPackages.registerObserver(mObserver);
178 if (!mPackages.remove(packageSetting)) {
184 for (int i = 0; i < mPackages.size(); i++) {
185 PackageSetting ps = mPackages.valueAt(i);
192 for (int i = 0; i < mPackages.size(); i++) {
193 PackageSetting ps = mPackages.valueAt(i);
[all …]
DShortcutUser.java92 private final ArrayMap<String, ShortcutPackage> mPackages = new ArrayMap<>(); field in ShortcutUser
143 return mPackages; in getAllPackagesForTest()
147 return mPackages.containsKey(packageName); in hasPackage()
152 mPackages.put(p.getPackageName(), p); in addPackage()
156 final ShortcutPackage removed = mPackages.remove(packageName); in removePackage()
187 final ShortcutPackage ret = mPackages.get(packageName); in getPackageShortcutsIfExists()
199 mPackages.put(packageName, ret); in getPackageShortcuts()
218 final int size = mPackages.size(); in forAllPackages()
220 callback.accept(mPackages.valueAt(i)); in forAllPackages()
299 final boolean isNewApp = !mPackages.containsKey(packageName); in rescanPackageIfNeeded()
[all …]
DKeySetManagerService.java72 private final WatchedArrayMap<String, PackageSetting> mPackages; field in KeySetManagerService
125 mPackages = packages; in KeySetManagerService()
133 mPackages = packages; in KeySetManagerService()
148 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByLPr()
174 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByExactlyLPr()
237 PackageSetting ps = mPackages.get(pkg.getPackageName()); in addScannedPackageLPw()
341 PackageSetting p = mPackages.get(packageName); in getKeySetByAliasAndPackageNameLPr()
422 PackageSetting p = mPackages.get(packageName); in getSigningKeySetByPackageNameLPr()
591 PackageSetting pkg = mPackages.get(packageName); in removeAppKeySetDataLPw()
621 for (ArrayMap.Entry<String, PackageSetting> e : mPackages.entrySet()) { in dumpLPr()
[all …]
DInitAppsHelper.java215 mSystemPackagesCount = mPm.mPackages.size(); in logSystemAppsScanningTime()
297 final int dataPackagesCount = mPm.mPackages.size() - mSystemPackagesCount; in logNonSystemAppScanningTime()
337 if (!mPm.mPackages.containsKey("android")) { in scanSystemDirs()
358 final int numPackages = mPm.mPackages.size(); in updateStubSystemAppsList()
360 final AndroidPackage pkg = mPm.mPackages.valueAt(index); in updateStubSystemAppsList()
DSettings.java416 final WatchedArrayMap<String, PackageSetting> mPackages; field in Settings
595 mPackages.registerObserver(mObserver);
615 mPackages = new WatchedArrayMap<>();
617 new SnapshotCache.Auto<>(mPackages, mPackages, "Settings.mPackages");
639 mKeySetManagerService = new KeySetManagerService(mPackages);
644 mPackages.putAll(pkgSettings);
670 mPackages = new WatchedArrayMap<>();
672 new SnapshotCache.Auto<>(mPackages, mPackages, "Settings.mPackages");
694 mKeySetManagerService = new KeySetManagerService(mPackages);
705 mPackages, mSharedUsers, mHandler, mLock, /*sync=*/false);
[all …]
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DAttributionKey.java26 private final ImmutableSet<String> mPackages; field in AttributionKey
31 mPackages = ImmutableSet.of(); in AttributionKey()
37 mPackages = ImmutableSet.copyOf(packages); in AttributionKey()
42 return mPackages; in getPackages()
46 return mPackages.contains(pkg); in hasPackage()
68 hash = (31 * hash) + (mPackages == null ? 0 : mPackages.hashCode()); in hashCode()
86 && this.mPackages != null && this.mPackages.equals(that.mPackages) in equals()
97 if (mPackages.size() > 0) { in toString()
99 for (String pkg: mPackages) { in toString()
/frameworks/base/core/java/android/app/admin/
DLockTaskPolicy.java46 private Set<String> mPackages = new HashSet<>(); field in LockTaskPolicy
54 return mPackages; in getPackages()
105 mPackages = new HashSet<>(); in LockTaskPolicy()
107 mPackages.add(source.readString()); in LockTaskPolicy()
117 mPackages = new HashSet<>(policy.mPackages); in LockTaskPolicy()
143 mPackages = new HashSet<>(packages); in setPackagesInternal()
151 return Objects.equals(mPackages, other.mPackages) in equals()
157 return Objects.hash(mPackages, mFlags); in hashCode()
162 return "LockTaskPolicy {mPackages= " + String.join(", ", mPackages) + "; mFlags= " in toString()
173 dest.writeInt(mPackages.size()); in writeToParcel()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DTestSystemImpl.java37 Map<String, Map<Integer, PackageInfo>> mPackages = new HashMap(); field in TestSystemImpl
94 Map<Integer, PackageInfo> userPackages = mPackages.get(packageName); in enablePackageForUser()
107 Map<Integer, PackageInfo> userPackages = mPackages.get(packageName); in installPackageForUser()
126 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProvider()
136 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProviderAllUsers()
161 if (!mPackages.containsKey(pi.packageName)) { in setPackageInfoForUser()
162 mPackages.put(pi.packageName, new HashMap<Integer, PackageInfo>()); in setPackageInfoForUser()
164 mPackages.get(pi.packageName).put(userId, pi); in setPackageInfoForUser()
171 mPackages.get(packageName).remove(PRIMARY_USER_ID); in removePackageInfo()
177 Map<Integer, PackageInfo> userPackages = mPackages.get(packageName); in getFactoryPackageVersion()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastStats.java51 final ArrayMap<String, PackageEntry> mPackages = new ArrayMap<>(); field in BroadcastStats.ActionEntry
89 PackageEntry pe = ae.mPackages.get(srcPackage); in addBroadcast()
92 ae.mPackages.put(srcPackage, pe); in addBroadcast()
121 if (dumpPackage != null && !ae.mPackages.containsKey(dumpPackage)) { in dumpStats()
139 for (int j=ae.mPackages.size()-1; j>=0; j--) { in dumpStats()
142 pw.print(ae.mPackages.keyAt(j)); in dumpStats()
144 PackageEntry pe = ae.mPackages.valueAt(j); in dumpStats()
171 if (dumpPackage != null && !ae.mPackages.containsKey(dumpPackage)) { in dumpCheckinStats()
185 for (int j=ae.mPackages.size()-1; j>=0; j--) { in dumpCheckinStats()
187 pw.print(ae.mPackages.keyAt(j)); in dumpCheckinStats()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsFileLoggerTest.java42 private ArrayList<PackageStats> mPackages; field in DiskStatsFileLoggerTest
53 mPackages = new ArrayList<>(); in setUp()
59 mMainResult, mDownloadsResult,mPackages, 0L); in testEmptyStorage()
85 mMainResult, mDownloadsResult,mPackages, 3L); in testMeasurementResultsReported()
103 mPackages.add(firstPackage); in testAppsReported()
109 mPackages.add(secondPackage); in testAppsReported()
112 mMainResult, mDownloadsResult, mPackages, 0L); in testAppsReported()
145 mPackages.add(app); in testEmulatedExternalStorageCounted()
148 mMainResult, mDownloadsResult, mPackages, 0L); in testEmulatedExternalStorageCounted()
164 mPackages.add(app); in testDuplicatePackageNameIsNotMergedAcrossMultipleUsers()
[all …]
/frameworks/base/core/java/android/content/rollback/
DRollbackInfo.java42 private final List<PackageRollbackInfo> mPackages; field in RollbackInfo
59 this.mPackages = packages; in RollbackInfo()
85 mPackages = in.createTypedArrayList(PackageRollbackInfo.CREATOR); in RollbackInfo()
100 return mPackages; in getPackages()
168 out.writeTypedList(mPackages); in writeToParcel()
/frameworks/base/services/core/java/com/android/server/wm/
DCompatModePackages.java347 private final HashMap<String, Integer> mPackages = new HashMap<>(); field in CompatModePackages
382 mPackages.put(pkg, modeInt); in CompatModePackages()
405 return mPackages; in getPackages()
409 Integer flags = mPackages.get(packageName); in getPackageFlags()
425 if (mPackages.containsKey(packageName)) { in removePackage()
426 mPackages.remove(packageName); in removePackage()
448 if (!mayCompat && mPackages.containsKey(packageName)) { in handlePackageAddedLocked()
449 mPackages.remove(packageName); in handlePackageAddedLocked()
646 mPackages.put(packageName, newFlags); in setPackageFlagLocked()
648 mPackages.remove(packageName); in setPackageFlagLocked()
[all …]
DRefreshRatePolicy.java41 private final HashMap<String, RefreshRateRange> mPackages = new HashMap<>(); field in RefreshRatePolicy.PackageRefreshRate
49 mPackages.put(s, in add()
54 return mPackages.get(s); in get()
58 mPackages.remove(s); in remove()
/frameworks/base/core/java/com/android/internal/policy/
DAttributeCache.java50 private final LruCache<String, Package> mPackages = new LruCache<>(CACHE_SIZE); field in AttributeCache
126 final Package pkg = mPackages.remove(packageName); in removePackage()
150 mPackages.evictAll(); in updateConfiguration()
161 Package pkg = mPackages.get(packageName); in get()
184 mPackages.put(packageName, pkg); in get()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServicesDialog.java64 private String[] mPackages; field in ForegroundServicesDialog
103 if (mPackages == null) { in onCreate()
142 mPackages = intent.getStringArrayExtra("packages"); in updateApps()
143 if (mPackages != null) { in updateApps()
144 mAdapter.setPackages(mPackages); in updateApps()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerSettingsTests.java421 settingsUnderTest.mPackages.put(PACKAGE_NAME_1, createPackageSetting(PACKAGE_NAME_1)); in testReadPackageRestrictions_noSuspendingPackage()
427 settingsUnderTest.mPackages.put(PACKAGE_NAME_2, createPackageSetting(PACKAGE_NAME_2)); in testReadPackageRestrictions_noSuspendingPackage()
431 PackageSetting ps1 = settingsUnderTest.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_noSuspendingPackage()
443 ps1 = snapshot.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_noSuspendingPackage()
454 PackageSetting ps2 = settingsUnderTest.mPackages.get(PACKAGE_NAME_2); in testReadPackageRestrictions_noSuspendingPackage()
460 ps2 = snapshot.mPackages.get(PACKAGE_NAME_2); in testReadPackageRestrictions_noSuspendingPackage()
471 settingsUnderTest.mPackages.put(PACKAGE_NAME_1, createPackageSetting(PACKAGE_NAME_1)); in testReadPackageRestrictions_noSuspendParamsMap()
476 final PackageSetting ps1 = settingsUnderTest.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_noSuspendParamsMap()
543 settingsUnderTest.mPackages.put(PACKAGE_NAME_1, ps1); in testReadWritePackageRestrictions_suspendInfo()
548 settingsUnderTest.mPackages.put(PACKAGE_NAME_2, ps2); in testReadWritePackageRestrictions_suspendInfo()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageManagerServiceBootTest.kt98 assertThat(pm.mPackages, hasKey("a.data.package")) in <lambda>()
110 assertThat(pm.mPackages, not(hasKey("a.data.package"))) in <lambda>()
130 assertThat(pm.mPackages, not(hasKey("a.data.package"))) in <lambda>()
168 pm.mPackages[systemAppPackageName], notNullValue()) in <lambda>()
170 pm.mPackages[systemAppPackageName]!!.longVersionCode, equalTo(3)) in <lambda>()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFilterFactory.java36 private HashSet<String> mPackages = new HashSet<String>(); field in FilterFactory
85 mPackages.add(packageName); in addPackage()
93 for (String packageName : mPackages) { in createFilterByClassName()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFilterFactory.java30 private HashSet<String> mPackages = new HashSet<String>(); field in FilterFactory
80 mPackages.add(packageName); in addPackage()
126 for (String packageName : mPackages) { in getFilterClass()
/frameworks/base/services/core/java/com/android/server/appop/
DDiscreteRegistry.java348 ArrayMap<String, DiscretePackageOps> pkgs = discreteOps.mUids.valueAt(uidNum).mPackages; in createAttributionChains()
839 ArrayMap<String, DiscretePackageOps> mPackages; field in DiscreteRegistry.DiscreteUidOps
842 mPackages = new ArrayMap<>(); in DiscreteUidOps()
846 return mPackages.isEmpty(); in isEmpty()
850 int nPackages = other.mPackages.size(); in merge()
852 String packageName = other.mPackages.keyAt(i); in merge()
853 DiscretePackageOps p = other.mPackages.valueAt(i); in merge()
866 mPackages = packages; in filter()
868 int nPackages = mPackages.size(); in filter()
870 mPackages.valueAt(i).filter(beginTimeMillis, endTimeMillis, filter, opNamesFilter, in filter()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DPackageManagerBackupAgentTest.java70 private ImmutableList<PackageInfo> mPackages; field in PackageManagerBackupAgentTest
85 mPackages = ImmutableList.of(existingPackageInfo); in setUp()
87 new PackageManagerBackupAgent(mPackageManager, mPackages, USER_ID); in setUp()
115 PackageManagerBackupAgent.writeStateFile(mPackages, oldStateDescriptor); in onBackup_recentState_backsUpNothing()
147 ImmutableList.of(createPackage(uninstalledPackageName, 1), mPackages.getFirst()), in onBackup_legacyState_backsUpEverything()
223 ImmutableList.<PackageInfo>builder().addAll(mPackages).add(pkgWithoutSigs).build(); in onRestore_legacyBackupWithMissingSignature_restoresBackup()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java253 private ArrayMap<String, Package> mPackages = new ArrayMap<>(); field in OverlayManagerServiceImplTestsBase.FakeDeviceState
258 mPackages.put(pkg.packageName, pkg); in add()
267 mPackages.remove(packageName); in remove()
271 final Package pkg = mPackages.get(packageName); in uninstall()
278 final Package pkg = mPackages.get(packageName); in select()
283 return mPackages.values().stream() in selectFromPath()
395 mState.mPackages.forEach((key, value) -> { in initializeForUser()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java150 List<PackageInfo> mPackages; field in PerformFullTransportBackupTask
186 mPackages = new ArrayList<>(whichPackages.length); in PerformFullTransportBackupTask()
261 mPackages.add(info); in PerformFullTransportBackupTask()
272 mPackages = backupManagerService.filterUserFacingPackages(mPackages); in PerformFullTransportBackupTask()
275 for (PackageInfo pkgInfo : mPackages) { in PerformFullTransportBackupTask()
392 final int N = mPackages.size(); in run()
401 PackageInfo currentPackage = mPackages.get(i); in run()
DPerformAdbBackupTask.java84 private final ArrayList<String> mPackages; field in PerformAdbBackupTask
111 mPackages = (packages == null) in PerformAdbBackupTask()
285 if (mPackages != null) { in run()
286 addPackagesToSet(packagesToBackup, mPackages); in run()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginManagerImpl.java251 private final String[] mPackages; field in PluginManagerImpl.ClassLoaderFilter
257 mPackages = pkgs; in ClassLoaderFilter()
262 for (String pkg : mPackages) { in loadClass()

12