/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | AttributionKey.java | 26 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/services/tests/servicestests/src/com/android/server/webkit/ |
D | TestSystemImpl.java | 36 Map<String, Map<Integer, PackageInfo>> mPackages = new HashMap(); field in TestSystemImpl 86 Map<Integer, PackageInfo> userPackages = mPackages.get(packageName); in enablePackageForUser() 101 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProvider() 111 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProviderAllUsers() 136 if (!mPackages.containsKey(pi.packageName)) { in setPackageInfoForUser() 137 mPackages.put(pi.packageName, new HashMap<Integer, PackageInfo>()); in setPackageInfoForUser() 139 mPackages.get(pi.packageName).put(userId, pi); in setPackageInfoForUser() 146 mPackages.get(packageName).remove(PRIMARY_USER_ID); in removePackageInfo() 152 Map<Integer, PackageInfo> userPackages = mPackages.get(packageName); in getFactoryPackageVersion()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastStats.java | 49 final ArrayMap<String, PackageEntry> mPackages = new ArrayMap<>(); field in BroadcastStats.ActionEntry 87 PackageEntry pe = ae.mPackages.get(srcPackage); in addBroadcast() 90 ae.mPackages.put(srcPackage, pe); in addBroadcast() 118 if (dumpPackage != null && !ae.mPackages.containsKey(dumpPackage)) { in dumpStats() 136 for (int j=ae.mPackages.size()-1; j>=0; j--) { in dumpStats() 139 pw.print(ae.mPackages.keyAt(j)); in dumpStats() 141 PackageEntry pe = ae.mPackages.valueAt(j); in dumpStats() 167 if (dumpPackage != null && !ae.mPackages.containsKey(dumpPackage)) { in dumpCheckinStats() 181 for (int j=ae.mPackages.size()-1; j>=0; j--) { in dumpCheckinStats() 183 pw.print(ae.mPackages.keyAt(j)); in dumpCheckinStats() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutUser.java | 127 private final ArrayMap<String, ShortcutPackage> mPackages = new ArrayMap<>(); field in ShortcutUser 173 return mPackages; in getAllPackagesForTest() 177 return mPackages.containsKey(packageName); in hasPackage() 182 mPackages.put(p.getPackageName(), p); in addPackage() 186 final ShortcutPackage removed = mPackages.remove(packageName); in removePackage() 217 final ShortcutPackage ret = mPackages.get(packageName); in getPackageShortcutsIfExists() 229 mPackages.put(packageName, ret); in getPackageShortcuts() 249 final int size = mPackages.size(); in forAllPackages() 251 callback.accept(mPackages.valueAt(i)); in forAllPackages() 330 final boolean isNewApp = !mPackages.containsKey(packageName); in rescanPackageIfNeeded() [all …]
|
D | KeySetManagerService.java | 69 private final WatchedArrayMap<String, PackageSetting> mPackages; field in KeySetManagerService 122 mPackages = packages; in KeySetManagerService() 137 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByLPr() 163 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByExactlyLPr() 226 PackageSetting ps = mPackages.get(pkg.getPackageName()); in addScannedPackageLPw() 330 PackageSetting p = mPackages.get(packageName); in getKeySetByAliasAndPackageNameLPr() 409 PackageSetting p = mPackages.get(packageName); in getSigningKeySetByPackageNameLPr() 578 PackageSetting pkg = mPackages.get(packageName); in removeAppKeySetDataLPw() 608 for (ArrayMap.Entry<String, PackageSetting> e : mPackages.entrySet()) { in dumpLPr() 735 for (PackageSetting p : mPackages.values()) { in readKeySetsLPw()
|
D | Settings.java | 368 final WatchedArrayMap<String, PackageSetting> mPackages; field in Settings 545 mPackages.registerObserver(mObserver); 568 mPackages = new WatchedArrayMap<>(); 570 new SnapshotCache.Auto<>(mPackages, mPackages, "Settings.mPackages"); 578 mKeySetManagerService = new KeySetManagerService(mPackages); 581 mPackages.putAll(pkgSettings); 606 mPackages = new WatchedArrayMap<>(); 608 new SnapshotCache.Auto<>(mPackages, mPackages, "Settings.mPackages"); 616 mKeySetManagerService = new KeySetManagerService(mPackages); 658 mPackages = r.mPackagesSnapshot.snapshot(); [all …]
|
D | InstantAppRegistry.java | 241 AndroidPackage pkg = mService.mPackages.get(packageName); 275 AndroidPackage pkg = mService.mPackages.get(packageName); 376 if (mService.mPackages.get(pkg.getPackageName()) == null || !ps.getInstalled(userId)) { 446 if (mService.mPackages.get(pkg.getPackageName()) != null && ps.getInstalled(userId)) { 784 final int packageCount = mService.mPackages.size(); 786 final AndroidPackage pkg = mService.mPackages.valueAt(i); 818 final AndroidPackage lhsPkg = mService.mPackages.get(lhs); 819 final AndroidPackage rhsPkg = mService.mPackages.get(rhs); 918 final int packageCount = mService.mPackages.size(); 920 final AndroidPackage pkg = mService.mPackages.valueAt(i);
|
D | PackageManagerService.java | 874 final WatchedArrayMap<String, AndroidPackage> mPackages = new WatchedArrayMap<>(); field in PackageManagerService 876 new SnapshotCache.Auto(mPackages, mPackages, "PackageManagerService.mPackages"); 1898 packages = mPackages; in Snapshot() 2152 private final WatchedArrayMap<String, AndroidPackage> mPackages; field in PackageManagerService.ComputerEngine 2205 mPackages = args.packages; in ComputerEngine() 2437 final AndroidPackage pkg = mPackages.get(pkgName); in queryIntentServicesInternalBody() 2614 AndroidPackage pkg = a == null ? null : mPackages.get(a.getPackageName()); in getActivityInfoInternalBody() 2635 return mPackages.get(packageName); in getPackage() 2643 pkg = mPackages.get(packageNames[i]); in getPackage() 2707 AndroidPackage p = mPackages.get(packageName); in getApplicationInfoInternalBody() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | DiskStatsFileLoggerTest.java | 42 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/ |
D | RollbackInfo.java | 41 private final List<PackageRollbackInfo> mPackages; field in RollbackInfo 52 this.mPackages = packages; in RollbackInfo() 60 mPackages = in.createTypedArrayList(PackageRollbackInfo.CREATOR); in RollbackInfo() 78 return mPackages; in getPackages() 123 out.writeTypedList(mPackages); in writeToParcel()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | CompatModePackages.java | 240 private final HashMap<String, Integer> mPackages = new HashMap<String, Integer>(); field in CompatModePackages 290 mPackages.put(pkg, modeInt); in CompatModePackages() 313 return mPackages; in getPackages() 317 Integer flags = mPackages.get(packageName); in getPackageFlags() 333 if (mPackages.containsKey(packageName)) { in removePackage() 334 mPackages.remove(packageName); in removePackage() 355 if (!mayCompat && mPackages.containsKey(packageName)) { in handlePackageAddedLocked() 356 mPackages.remove(packageName); in handlePackageAddedLocked() 462 mPackages.put(packageName, newFlags); in setPackageFlagLocked() 464 mPackages.remove(packageName); in setPackageFlagLocked() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | AttributeCache.java | 44 private final LruCache<String, Package> mPackages = new LruCache<>(CACHE_SIZE); field in AttributeCache 90 final Package pkg = mPackages.remove(packageName); in removePackage() 114 mPackages.evictAll(); in updateConfiguration() 125 Package pkg = mPackages.get(packageName); in get() 148 mPackages.put(packageName, pkg); in get()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerSettingsTests.java | 200 settingsUnderTest.mPackages.put(PACKAGE_NAME_1, createPackageSetting(PACKAGE_NAME_1)); in testReadPackageRestrictions_noSuspendingPackage() 206 settingsUnderTest.mPackages.put(PACKAGE_NAME_2, createPackageSetting(PACKAGE_NAME_2)); in testReadPackageRestrictions_noSuspendingPackage() 210 PackageSetting ps1 = settingsUnderTest.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_noSuspendingPackage() 218 ps1 = snapshot.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_noSuspendingPackage() 225 PackageSetting ps2 = settingsUnderTest.mPackages.get(PACKAGE_NAME_2); in testReadPackageRestrictions_noSuspendingPackage() 231 ps2 = snapshot.mPackages.get(PACKAGE_NAME_2); in testReadPackageRestrictions_noSuspendingPackage() 242 settingsUnderTest.mPackages.put(PACKAGE_NAME_1, createPackageSetting(PACKAGE_NAME_1)); in testReadPackageRestrictions_noSuspendParamsMap() 247 final PackageSetting ps1 = settingsUnderTest.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_noSuspendParamsMap() 308 settingsUnderTest.mPackages.put(PACKAGE_NAME_1, ps1); in testReadWritePackageRestrictions_suspendInfo() 312 settingsUnderTest.mPackages.put(PACKAGE_NAME_2, ps2); in testReadWritePackageRestrictions_suspendInfo() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServicesDialog.java | 63 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/media/mca/filterfw/java/android/filterfw/core/ |
D | FilterFactory.java | 36 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/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageManagerServiceBootTest.kt | 99 assertThat(pm.mPackages, hasKey("a.data.package")) in <lambda>() 111 assertThat(pm.mPackages, not(hasKey("a.data.package"))) in <lambda>() 131 assertThat(pm.mPackages, not(hasKey("a.data.package"))) in <lambda>() 169 pm.mPackages[systemAppPackageName], notNullValue()) in <lambda>() 171 pm.mPackages[systemAppPackageName]!!.longVersionCode, equalTo(3)) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | DiscreteRegistry.java | 344 ArrayMap<String, DiscretePackageOps> pkgs = discreteOps.mUids.valueAt(uidNum).mPackages; in createAttributionChains() 836 ArrayMap<String, DiscretePackageOps> mPackages; field in DiscreteRegistry.DiscreteUidOps 839 mPackages = new ArrayMap<>(); in DiscreteUidOps() 843 return mPackages.isEmpty(); in isEmpty() 847 int nPackages = other.mPackages.size(); in merge() 849 String packageName = other.mPackages.keyAt(i); in merge() 850 DiscretePackageOps p = other.mPackages.valueAt(i); in merge() 863 mPackages = packages; in filter() 865 int nPackages = mPackages.size(); in filter() 867 mPackages.valueAt(i).filter(beginTimeMillis, endTimeMillis, filter, opNamesFilter, in filter() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FilterFactory.java | 30 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/notification/ |
D | SnoozeHelper.java | 107 private ArrayMap<String, String> mPackages = new ArrayMap<>(); field in SnoozeHelper 132 String pkg = mPackages.get(key); in cleanupPersistedContext() 202 if (!mUsers.containsKey(key) || !mPackages.containsKey(key)) { in getNotification() 207 String pkg = mPackages.get(key); in getNotification() 275 mPackages.put(key, pkg); in storeRecordLocked() 378 final String pkg = mPackages.remove(key); in repost() 424 mPackages.remove(groupSummaryKey); in repostGroupSummary() 450 mPackages.remove(r.getKey()); in clearData() 483 String pkg = mPackages.get(key); in scheduleRepostsForPersistedNotifications() 591 String pkg = mPackages.get(key); in writeXml()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTestsBase.java | 223 private ArrayMap<String, Package> mPackages = new ArrayMap<>(); field in OverlayManagerServiceImplTestsBase.FakeDeviceState 228 mPackages.put(pkg.packageName, pkg); in add() 237 mPackages.remove(packageName); in remove() 241 final Package pkg = mPackages.get(packageName); in uninstall() 248 final Package pkg = mPackages.get(packageName); in select() 253 return mPackages.values().stream() in selectFromPath() 359 mState.mPackages.forEach((key, value) -> { in initializeForUser()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 137 List<PackageInfo> mPackages; field in PerformFullTransportBackupTask 171 mPackages = new ArrayList<>(whichPackages.length); in PerformFullTransportBackupTask() 247 mPackages.add(info); in PerformFullTransportBackupTask() 258 mPackages = backupManagerService.filterUserFacingPackages(mPackages); in PerformFullTransportBackupTask() 366 final int N = mPackages.size(); in run() 370 PackageInfo currentPackage = mPackages.get(i); in run()
|
D | PerformAdbBackupTask.java | 81 private final ArrayList<String> mPackages; field in PerformAdbBackupTask 106 mPackages = (packages == null) in PerformAdbBackupTask() 280 if (mPackages != null) { in run() 281 addPackagesToSet(packagesToBackup, mPackages); in run()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatterySipper.java | 120 public String[] mPackages; field in BatterySipper 206 return mPackages; in getPackages()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | RollbackUnitTest.java | 66 private List<String> mPackages; field in RollbackUnitTest 72 mPackages = new ArrayList<>(); in setUp() 73 mPackageList = new PackageList(mPackages, null); in setUp() 419 mPackages.add(pkg); in addPkgWithMinExtVersions()
|
/frameworks/base/services/core/java/com/android/server/ |
D | PackageWatchdog.java | 1158 private final ArrayMap<String, MonitoredPackage> mPackages = new ArrayMap<>(); field in PackageWatchdog.ObserverInternal 1177 for (int i = 0; i < mPackages.size(); i++) { in writeLocked() 1178 MonitoredPackage p = mPackages.valueAt(i); in writeLocked() 1215 Iterator<MonitoredPackage> it = mPackages.values().iterator(); in prunePackagesLocked() 1257 return mPackages; in getMonitoredPackages() 1271 return mPackages.get(packageName); in getMonitoredPackage() 1281 mPackages.put(p.getName(), p); in putMonitoredPackage() 1330 for (String packageName : mPackages.keySet()) { in dump()
|