Home
last modified time | relevance | path

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

12

/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/services/core/java/com/android/server/pm/
DShortcutUser.java115 private final ArrayMap<String, ShortcutPackage> mPackages = new ArrayMap<>(); field in ShortcutUser
165 return mPackages; in getAllPackagesForTest()
169 return mPackages.containsKey(packageName); in hasPackage()
174 mPackages.put(p.getPackageName(), p); in addPackage()
178 final ShortcutPackage removed = mPackages.remove(packageName); in removePackage()
206 final ShortcutPackage ret = mPackages.get(packageName); in getPackageShortcutsIfExists()
218 mPackages.put(packageName, ret); in getPackageShortcuts()
238 final int size = mPackages.size(); in forAllPackages()
240 callback.accept(mPackages.valueAt(i)); in forAllPackages()
319 final boolean isNewApp = !mPackages.containsKey(packageName); in rescanPackageIfNeeded()
[all …]
DPackageManagerService.java677 final ArrayMap<String, PackageParser.Package> mPackages = new ArrayMap<>(); field in PackageManagerService
869 synchronized (mPackages) { in getStaticOverlayPaths()
871 mPackages.values(), targetPackageName); in getStaticOverlayPaths()
893 synchronized (mPackages) { in findStaticOverlayPackages()
894 for (PackageParser.Package p : mPackages.values()) { in findStaticOverlayPackages()
1092 synchronized (mPackages) { in startVerifications()
1160 synchronized (mPackages) { in receiveVerificationResponse()
1169 synchronized (mPackages) { in receiveVerificationResponse()
1281 synchronized (mPackages) { in createDomainVerificationState()
1495 synchronized (mPackages) { in doHandleMessage()
[all …]
DKeySetManagerService.java64 private final ArrayMap<String, PackageSetting> mPackages; field in KeySetManagerService
117 mPackages = packages; in KeySetManagerService()
132 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByLPr()
158 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByExactlyLPr()
223 PackageSetting ps = mPackages.get(pkg.packageName); 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()
607 for (ArrayMap.Entry<String, PackageSetting> e : mPackages.entrySet()) { in dumpLPr()
736 for (PackageSetting p : mPackages.values()) { in readKeySetsLPw()
DInstantAppRegistry.java140 PackageParser.Package pkg = mService.mPackages.get(packageName); in getInstantAppCookieLPw()
174 PackageParser.Package pkg = mService.mPackages.get(packageName); in setInstantAppCookieLPw()
185 synchronized (mService.mPackages) { in persistInstantApplicationCookie()
275 if (mService.mPackages.get(pkg.packageName) == null || !ps.getInstalled(userId)) { in onPackageInstalledLPw()
346 if (mService.mPackages.get(pkg.packageName) != null && ps.getInstalled(userId)) { in onPackageUninstalledLPw()
688 synchronized (mService.mPackages) { in pruneInstantApps()
691 final int packageCount = mService.mPackages.size(); in pruneInstantApps()
693 final PackageParser.Package pkg = mService.mPackages.valueAt(i); in pruneInstantApps()
722 final PackageParser.Package lhsPkg = mService.mPackages.get(lhs); in pruneInstantApps()
723 final PackageParser.Package rhsPkg = mService.mPackages.get(rhs); in pruneInstantApps()
[all …]
DSettings.java263 final ArrayMap<String, PackageSetting> mPackages = new ArrayMap<>(); field in Settings
381 public final KeySetManagerService mKeySetManagerService = new KeySetManagerService(mPackages);
411 return mPackages.get(pkgName); in getPackageLPr()
427 PackageSetting p = mPackages.get(pkgName); in setInstallerPackageName()
459 final PackageSetting p = mPackages.get(name); in disableSystemPackageLPw()
521 PackageSetting p = mPackages.get(name); in addPackageLPw()
536 mPackages.put(name, p); in addPackageLPw()
576 if (mPackages.get(ps.name) == null) { in pruneSharedUsersLPw()
882 mPackages.put(p.name, p); in addPackageSettingLPw()
1014 final PackageSetting p = mPackages.get(name); in removePackageLPw()
[all …]
DOtaDexoptService.java123 synchronized (mPackageManagerService.mPackages) { in prepare()
126 mPackageManagerService.mPackages.values(), mPackageManagerService, in prepare()
129 others = new ArrayList<>(mPackageManagerService.mPackages.values()); in prepare()
133 mDexoptCommands = new ArrayList<>(3 * mPackageManagerService.mPackages.size() / 2); in prepare()
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DTestSystemImpl.java36 Map<String, Map<Integer, PackageInfo>> mPackages = new HashMap(); field in TestSystemImpl
98 Map<Integer, PackageInfo> userPackages = mPackages.get(packageName); in enablePackageForUser()
113 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProvider()
123 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProviderAllUsers()
148 if (!mPackages.containsKey(pi.packageName)) { in setPackageInfoForUser()
149 mPackages.put(pi.packageName, new HashMap<Integer, PackageInfo>()); in setPackageInfoForUser()
151 mPackages.get(pi.packageName).put(userId, pi); in setPackageInfoForUser()
158 mPackages.get(packageName).remove(PRIMARY_USER_ID); in removePackageInfo()
164 Map<Integer, PackageInfo> userPackages = mPackages.get(packageName); in getFactoryPackageVersion()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastStats.java49 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/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
53 this.mPackages = packages; in RollbackInfo()
61 mPackages = in.createTypedArrayList(PackageRollbackInfo.CREATOR); in RollbackInfo()
79 return mPackages; in getPackages()
124 out.writeTypedList(mPackages); in writeToParcel()
/frameworks/base/services/core/java/com/android/server/wm/
DCompatModePackages.java66 private final HashMap<String, Integer> mPackages = new HashMap<String, Integer>(); field in CompatModePackages
124 mPackages.put(pkg, modeInt); in CompatModePackages()
147 return mPackages; in getPackages()
151 Integer flags = mPackages.get(packageName); in getPackageFlags()
167 if (mPackages.containsKey(packageName)) { in removePackage()
168 mPackages.remove(packageName); in removePackage()
189 if (!mayCompat && mPackages.containsKey(packageName)) { in handlePackageAddedLocked()
190 mPackages.remove(packageName); in handlePackageAddedLocked()
239 mPackages.put(packageName, newFlags); in setPackageFlagLocked()
241 mPackages.remove(packageName); in setPackageFlagLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/
DAttributeCache.java44 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()
121 Package pkg = mPackages.get(packageName); in get()
144 mPackages.put(packageName, pkg); in get()
DPackageWatchdog.java305 return mAllObservers.valueAt(i).mPackages.keySet(); in getPackages()
490 MonitoredPackage monitoredPackage = observer.mPackages.get(packageName); in onHealthCheckPassed()
519 Iterator<MonitoredPackage> pit = oit.next().mPackages.values().iterator(); in onSupportedPackages()
552 observer.mPackages.values().iterator(); in getPackagesPendingHealthChecksLocked()
610 ArrayMap<String, MonitoredPackage> packages = mAllObservers.valueAt(oIndex).mPackages; in getNextStateSyncMillisLocked()
644 if (observer.mPackages.isEmpty()) { in pruneObserversLocked()
841 public final ArrayMap<String, MonitoredPackage> mPackages = new ArrayMap<>(); field in PackageWatchdog.ObserverInternal
860 for (int i = 0; i < mPackages.size(); i++) { in writeLocked()
861 MonitoredPackage p = mPackages.valueAt(i); in writeLocked()
876 mPackages.put(p.mName, p); in updatePackagesLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java178 settingsUnderTest.mPackages.put(PACKAGE_NAME_1, createPackageSetting(PACKAGE_NAME_1)); in testReadPackageRestrictions_oldSuspendInfo()
179 settingsUnderTest.mPackages.put(PACKAGE_NAME_2, createPackageSetting(PACKAGE_NAME_2)); in testReadPackageRestrictions_oldSuspendInfo()
182 final PackageSetting ps1 = settingsUnderTest.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_oldSuspendInfo()
187 final PackageSetting ps2 = settingsUnderTest.mPackages.get(PACKAGE_NAME_2); in testReadPackageRestrictions_oldSuspendInfo()
214 settingsUnderTest.mPackages.put(PACKAGE_NAME_1, ps1); in testReadWritePackageRestrictions_newSuspendInfo()
217 settingsUnderTest.mPackages.put(PACKAGE_NAME_2, ps2); in testReadWritePackageRestrictions_newSuspendInfo()
220 settingsUnderTest.mPackages.put(PACKAGE_NAME_3, ps3); in testReadWritePackageRestrictions_newSuspendInfo()
224 settingsUnderTest.mPackages.clear(); in testReadWritePackageRestrictions_newSuspendInfo()
225 settingsUnderTest.mPackages.put(PACKAGE_NAME_1, createPackageSetting(PACKAGE_NAME_1)); in testReadWritePackageRestrictions_newSuspendInfo()
226 settingsUnderTest.mPackages.put(PACKAGE_NAME_2, createPackageSetting(PACKAGE_NAME_2)); in testReadWritePackageRestrictions_newSuspendInfo()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServicesDialog.java61 private String[] mPackages; field in ForegroundServicesDialog
97 if (mPackages == null) { in onCreate()
136 mPackages = intent.getStringArrayExtra("packages"); in updateApps()
137 if (mPackages != null) { in updateApps()
138 mAdapter.setPackages(mPackages); in updateApps()
/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/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTests.java340 private List<Package> mPackages = new ArrayList<>(); field in OverlayManagerServiceImplTests.DummyDeviceState
350 mPackages.add(pkg); in add()
354 final Iterator<Package> iter = mPackages.iterator(); in remove()
366 final int packageCount = mPackages.size(); in select()
368 final Package pkg = mPackages.get(i); in select()
377 final int packageCount = mPackages.size(); in select()
379 final Package pkg = mPackages.get(i); in select()
/frameworks/base/services/core/java/com/android/server/notification/
DSnoozeHelper.java77 private ArrayMap<String, String> mPackages = new ArrayMap<>(); field in SnoozeHelper
157 mPackages.put(record.getKey(), record.sbn.getPackageName()); in snooze()
245 final String pkg = mPackages.remove(key); in repost()
256 mPackages.remove(key); in repost()
290 mPackages.remove(groupSummaryKey); in repostGroupSummary()
318 mPackages.remove(r.getKey()); in clearData()
/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java114 public String[] mPackages; field in BatterySipper
189 return mPackages; in getPackages()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformAdbBackupTask.java81 private final ArrayList<String> mPackages; field in PerformAdbBackupTask
104 mPackages = (packages == null) in PerformAdbBackupTask()
277 if (mPackages != null) { in run()
278 addPackagesToSet(packagesToBackup, mPackages); in run()
DPerformFullTransportBackupTask.java134 ArrayList<PackageInfo> mPackages; field in PerformFullTransportBackupTask
167 mPackages = new ArrayList<>(whichPackages.length); in PerformFullTransportBackupTask()
242 mPackages.add(info); in PerformFullTransportBackupTask()
358 final int N = mPackages.size(); in run()
362 PackageInfo currentPackage = mPackages.get(i); in run()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java190 public final ProcessMap<LongSparseArray<PackageState>> mPackages = new ProcessMap<>(); field in ProcessStats
266 other.mPackages.getMap(); in add()
465 mPackages.getMap().clear(); in reset()
489 mPackages.getMap(); in resetSafely()
819 mPackages.getMap(); in writeToParcel()
1002 final boolean hadData = mPackages.getMap().size() > 0 in readFromParcel()
1141 LongSparseArray<PackageState> vpkg = mPackages.get(pkgName, uid); in readFromParcel()
1144 mPackages.put(pkgName, uid, vpkg); in readFromParcel()
1274 LongSparseArray<PackageState> vpkg = mPackages.get(packageName, uid); in getPackageStateLocked()
1277 mPackages.put(packageName, uid, vpkg); in getPackageStateLocked()
[all …]
/frameworks/base/libs/androidfw/
DResourceTypes.cpp3641 memset(mPackages, 0, sizeof(mPackages)); in Theme()
3647 package_info* pi = mPackages[i]; in ~Theme()
3723 curPI = mPackages[pidx]; in applyStyle()
3727 mPackages[pidx] = curPI; in applyStyle()
3794 if (mPackages[i] != NULL) { in setTo()
3795 free_package(mPackages[i]); in setTo()
3797 if (other.mPackages[i] != NULL) { in setTo()
3798 mPackages[i] = copy_package(other.mPackages[i]); in setTo()
3800 mPackages[i] = NULL; in setTo()
3808 if (mPackages[i] != NULL) { in setTo()
[all …]

12