Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsEntry.java45 final ArrayList<String> mPackages = new ArrayList<>(); field in ProcStatsEntry
67 mPackages.add(packageName); in ProcStatsEntry()
96 in.readStringList(mPackages); in ProcStatsEntry()
119 mPackages.add(packageName); in addPackage()
127 if (mPackages.size() == 1) { in evaluateTargetPackage()
128 if (DEBUG) Log.d(TAG, "Eval pkg of " + mName + ": single pkg " + mPackages.get(0)); in evaluateTargetPackage()
129 mBestTargetPackage = mPackages.get(0); in evaluateTargetPackage()
135 for (int ipkg=0; ipkg<mPackages.size(); ipkg++) { in evaluateTargetPackage()
136 if ("android".equals(mPackages.get(ipkg))) { in evaluateTargetPackage()
137 mBestTargetPackage = mPackages.get(ipkg); in evaluateTargetPackage()
[all …]
DProcStatsData.java273 for (int ipkg = 0, N = mStats.mPackages.getMap().size(); ipkg < N; ipkg++) { in getProcs()
274 final SparseArray<LongSparseArray<ProcessStats.PackageState>> pkgUids = mStats.mPackages in getProcs()
314 for (int ip = 0, N = mStats.mPackages.getMap().size(); ip < N; ip++) { in getProcs()
315 SparseArray<LongSparseArray<ProcessStats.PackageState>> uids = mStats.mPackages.getMap() in getProcs()
DProcessStatsDetail.java438 for (int j=0; j<ent.mPackages.size(); j++) { in killProcesses()
439 am.forceStopPackage(ent.mPackages.get(j)); in killProcesses()
455 for (int j=0; j<ent.mPackages.size(); j++) { in checkForceStop()
456 String pkg = ent.mPackages.get(j); in checkForceStop()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DProcStatsEntry.java45 final ArrayList<String> mPackages = new ArrayList<>(); field in ProcStatsEntry
67 mPackages.add(packageName); in ProcStatsEntry()
96 in.readStringList(mPackages); in ProcStatsEntry()
119 mPackages.add(packageName); in addPackage()
127 if (mPackages.size() == 1) { in evaluateTargetPackage()
128 if (DEBUG) Log.d(TAG, "Eval pkg of " + mName + ": single pkg " + mPackages.get(0)); in evaluateTargetPackage()
129 mBestTargetPackage = mPackages.get(0); in evaluateTargetPackage()
135 for (int ipkg=0; ipkg<mPackages.size(); ipkg++) { in evaluateTargetPackage()
136 if ("android".equals(mPackages.get(ipkg))) { in evaluateTargetPackage()
137 mBestTargetPackage = mPackages.get(ipkg); in evaluateTargetPackage()
[all …]
DProcessStatsDetail.java438 for (int j=0; j<ent.mPackages.size(); j++) { in killProcesses()
439 am.forceStopPackage(ent.mPackages.get(j)); in killProcesses()
455 for (int j=0; j<ent.mPackages.size(); j++) { in checkForceStop()
456 String pkg = ent.mPackages.get(j); in checkForceStop()
DProcStatsData.java273 for (int ipkg = 0, N = mStats.mPackages.getMap().size(); ipkg < N; ipkg++) { in getProcs()
274 final SparseArray<LongSparseArray<ProcessStats.PackageState>> pkgUids = mStats.mPackages in getProcs()
314 for (int ip = 0, N = mStats.mPackages.getMap().size(); ip < N; ip++) { in getProcs()
315 SparseArray<LongSparseArray<ProcessStats.PackageState>> uids = mStats.mPackages.getMap() in getProcs()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockResources.java26 private Map<Integer, String> mPackages = Maps.newHashMap(); field in ContactsMockResources
31 mPackages.put(resId, packageName); in addResource()
38 if (!mPackages.containsKey(resId)) { in getResourceName()
41 return mPackages.get(resId) + ":" + mTypes.get(resId) + "/" + mEntries.get(resId); in getResourceName()
46 if (!mPackages.containsKey(resId)) { in getResourcePackageName()
49 return mPackages.get(resId); in getResourcePackageName()
54 if (!mPackages.containsKey(resId)) { in getResourceTypeName()
62 if (!mPackages.containsKey(resId)) { in getResourceEntryName()
DContactsMockPackageManager.java45 private List<PackageInfo> mPackages; field in ContactsMockPackageManager
76 } else if (mPackages != null) { in getPackagesForUid()
77 return new String[] { mPackages.get(0).packageName }; in getPackagesForUid()
97 this.mPackages = packages; in setInstalledPackages()
102 return mPackages; in getInstalledPackages()
107 for (PackageInfo info : mPackages) { in getPackageInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryAppListPreferenceController.java291 newSipper.mPackages = sipper.mPackages; in getCoalescedUsageList()
308 final int existingPackageLen = existingSipper.mPackages != null ? in getCoalescedUsageList()
309 existingSipper.mPackages.length : 0; in getCoalescedUsageList()
310 final int newPackageLen = sipper.mPackages != null ? in getCoalescedUsageList()
311 sipper.mPackages.length : 0; in getCoalescedUsageList()
315 System.arraycopy(existingSipper.mPackages, 0, newPackages, 0, in getCoalescedUsageList()
318 System.arraycopy(sipper.mPackages, 0, newPackages, existingPackageLen, in getCoalescedUsageList()
320 existingSipper.mPackages = newPackages; in getCoalescedUsageList()
DBatteryEntry.java172 sipper.mPackages = pm.getPackagesForUid(sipper.uidObj.getUid()); in BatteryEntry()
174 if (sipper.mPackages == null || sipper.mPackages.length != 1) { in BatteryEntry()
284 if (sipper.mPackages == null) { in loadNameAndIcon()
285 sipper.mPackages = pm.getPackagesForUid(uid); in loadNameAndIcon()
375 : sipper.mPackages; in extractPackagesFromSipper()
DPowerUsageFeatureProviderImpl.java52 sipper.mPackages = mPackageManager.getPackagesForUid(uid); in isTypeSystem()
56 } else if (sipper.mPackages != null) { in isTypeSystem()
57 for (final String packageName : sipper.mPackages) { in isTypeSystem()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceController.java291 newSipper.mPackages = sipper.mPackages; in getCoalescedUsageList()
308 final int existingPackageLen = existingSipper.mPackages != null ? in getCoalescedUsageList()
309 existingSipper.mPackages.length : 0; in getCoalescedUsageList()
310 final int newPackageLen = sipper.mPackages != null ? in getCoalescedUsageList()
311 sipper.mPackages.length : 0; in getCoalescedUsageList()
315 System.arraycopy(existingSipper.mPackages, 0, newPackages, 0, in getCoalescedUsageList()
318 System.arraycopy(sipper.mPackages, 0, newPackages, existingPackageLen, in getCoalescedUsageList()
320 existingSipper.mPackages = newPackages; in getCoalescedUsageList()
DBatteryEntry.java172 sipper.mPackages = pm.getPackagesForUid(sipper.uidObj.getUid()); in BatteryEntry()
174 if (sipper.mPackages == null || sipper.mPackages.length != 1) { in BatteryEntry()
284 if (sipper.mPackages == null) { in loadNameAndIcon()
285 sipper.mPackages = pm.getPackagesForUid(uid); in loadNameAndIcon()
375 : sipper.mPackages; in extractPackagesFromSipper()
DPowerUsageFeatureProviderImpl.java53 sipper.mPackages = mPackageManager.getPackagesForUid(uid); in isTypeSystem()
57 } else if (sipper.mPackages != null) { in isTypeSystem()
58 for (final String packageName : sipper.mPackages) { in isTypeSystem()
DBatteryUtils.java270 sipper.mPackages = mPackageManager.getPackagesForUid(sipper.getUid()); in isHiddenSystemModule()
271 if (sipper.mPackages != null) { in isHiddenSystemModule()
272 for (int i = 0, length = sipper.mPackages.length; i < length; i++) { in isHiddenSystemModule()
273 if (AppUtils.isHiddenSystemModule(mContext, sipper.mPackages[i])) { in isHiddenSystemModule()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DAppDataUsage.java81 private final ArraySet<String> mPackages = new ArraySet<>(); field in AppDataUsage
160 if (mPackages.size() != 0) { in onCreate()
163 mPackages.valueAt(0), 0, UserHandle.getUserId(mAppItem.key)); in onCreate()
183 for (String packageName : mPackages) { in onCreate()
195 if (mPackages.size() > 1) { in onCreate()
301 mPackages.add(packages[i]); in addUid()
342 String pkg = mPackages.size() != 0 ? mPackages.valueAt(0) : null; in onViewCreated()
443 return new AppPrefLoader(getPrefContext(), mPackages, getPackageManager());
DAppPrefLoader.java29 private ArraySet<String> mPackages; field in AppPrefLoader
35 mPackages = pkgs; in AppPrefLoader()
43 for (int i = 1, size = mPackages.size(); i < size; i++) { in loadInBackground()
45 ApplicationInfo info = mPackageManager.getApplicationInfo(mPackages.valueAt(i), 0); in loadInBackground()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsage.java81 private final ArraySet<String> mPackages = new ArraySet<>(); field in AppDataUsage
160 if (mPackages.size() != 0) { in onCreate()
163 mPackages.valueAt(0), 0, UserHandle.getUserId(mAppItem.key)); in onCreate()
183 for (String packageName : mPackages) { in onCreate()
195 if (mPackages.size() > 1) { in onCreate()
301 mPackages.add(packages[i]); in addUid()
342 String pkg = mPackages.size() != 0 ? mPackages.valueAt(0) : null; in onViewCreated()
443 return new AppPrefLoader(getPrefContext(), mPackages, getPackageManager());
DAppPrefLoader.java29 private ArraySet<String> mPackages; field in AppPrefLoader
35 mPackages = pkgs; in AppPrefLoader()
43 for (int i = 1, size = mPackages.size(); i < size; i++) { in loadInBackground()
45 ApplicationInfo info = mPackageManager.getApplicationInfo(mPackages.valueAt(i), 0); in loadInBackground()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DPackageDeletionTask.java32 private Set<String> mPackages; field in PackageDeletionTask
38 mPackages = packageNames; in PackageDeletionTask()
49 PackageDeletionObserver observer = new PackageDeletionObserver(mPackages.size()); in run()
50 for (String packageName : mPackages) { in run()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DCacheDataUpdatedTask.java44 private final HashSet<String> mPackages; field in CacheDataUpdatedTask
49 mPackages = packages; in CacheDataUpdatedTask()
66 && mPackages.contains(cn.getPackageName())) { in execute()
72 apps.updateIconsAndLabels(mPackages, mUser, updatedApps); in execute()
DSdCardAvailableReceiver.java45 private final MultiHashMap<UserHandle, String> mPackages; field in SdCardAvailableReceiver
51 mPackages = packages; in SdCardAvailableReceiver()
58 for (Entry<UserHandle, ArrayList<String>> entry : mPackages.entrySet()) { in onReceive()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java73 private List<PackageInfo> mPackages; field in AppStateAppOpsBridgeTest
82 mPackages = new ArrayList<>(); in setUp()
88 when(mParceledPackages.getList()).thenReturn(mPackages); in setUp()
127 mPackages.add(packageInfo); in packagesNotRequestingPermissionIgnored()
281 mPackages.add(packageInfo); in addPackageWithPermission()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DThemeBundle.java329 protected Map<String, String> mPackages = new HashMap<>(); field in ThemeBundle.Builder
333 return new ThemeBundle(mTitle, mPackages, mIsDefault, mWallpaperInfo, mWallpaperOptions, in build()
367 return Collections.unmodifiableMap(mPackages); in getPackages()
405 mPackages.put(category, packageName); in addOverlayPackage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetailTest.java296 mBatterySipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_NormalApp()
307 mBatterySipper.mPackages = null; in testStartBatteryDetailPage_SystemApp()
319 mBatterySipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_WorkApp()
370 mBatteryEntry.sipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_defaultPackageNull_chooseFromBatterySipper()

12