Home
last modified time | relevance | path

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

/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.java272 for (int ipkg = 0, N = mStats.mPackages.getMap().size(); ipkg < N; ipkg++) { in getProcs()
273 final SparseArray<SparseArray<ProcessStats.PackageState>> pkgUids = mStats.mPackages in getProcs()
313 for (int ip = 0, N = mStats.mPackages.getMap().size(); ip < N; ip++) { in getProcs()
314 SparseArray<SparseArray<ProcessStats.PackageState>> uids = mStats.mPackages.getMap() in getProcs()
DProcessStatsDetail.java436 for (int j=0; j<ent.mPackages.size(); j++) { in killProcesses()
437 am.forceStopPackage(ent.mPackages.get(j)); in killProcesses()
453 for (int j=0; j<ent.mPackages.size(); j++) { in checkForceStop()
454 String pkg = ent.mPackages.get(j); in checkForceStop()
/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/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java167 sipper.mPackages = pm.getPackagesForUid(sipper.uidObj.getUid()); in BatteryEntry()
169 if (sipper.mPackages == null || sipper.mPackages.length != 1) { in BatteryEntry()
268 if (sipper.mPackages == null) { in loadNameAndIcon()
269 sipper.mPackages = pm.getPackagesForUid(uid); in loadNameAndIcon()
271 if (sipper.mPackages != null) { in loadNameAndIcon()
272 String[] packageLabels = new String[sipper.mPackages.length]; in loadNameAndIcon()
273 System.arraycopy(sipper.mPackages, 0, packageLabels, 0, sipper.mPackages.length); in loadNameAndIcon()
292 defaultPackageName = sipper.mPackages[i]; in loadNameAndIcon()
306 for (String pkgName : sipper.mPackages) { in loadNameAndIcon()
DPowerUsageSummary.java358 newSipper.mPackages = sipper.mPackages; in getCoalescedUsageList()
375 final int existingPackageLen = existingSipper.mPackages != null ? in getCoalescedUsageList()
376 existingSipper.mPackages.length : 0; in getCoalescedUsageList()
377 final int newPackageLen = sipper.mPackages != null ? in getCoalescedUsageList()
378 sipper.mPackages.length : 0; in getCoalescedUsageList()
382 System.arraycopy(existingSipper.mPackages, 0, newPackages, 0, in getCoalescedUsageList()
385 System.arraycopy(sipper.mPackages, 0, newPackages, existingPackageLen, in getCoalescedUsageList()
387 existingSipper.mPackages = newPackages; in getCoalescedUsageList()
DBackgroundActivityPreferenceController.java41 private final String[] mPackages; field in BackgroundActivityPreferenceController
51 mPackages = mPackageManager.getPackagesForUid(mUid); in BackgroundActivityPreferenceController()
70 if (mPackages == null) { in isAvailable()
73 for (final String packageName : mPackages) { in isAvailable()
DPowerUsageFeatureProviderImpl.java48 sipper.mPackages = mPackageManager.getPackagesForUid(uid); in isTypeSystem()
52 } else if (sipper.mPackages != null) { in isTypeSystem()
53 for (final String packageName : sipper.mPackages) { in isTypeSystem()
DAdvancedPowerUsageDetail.java115 if (ArrayUtils.isEmpty(sipper.mPackages)) { in startBatteryDetailPage()
DPowerUsageAdvanced.java248 sipper.mPackages = mPackageManager.getPackagesForUid(sipper.getUid()); in parsePowerUsageData()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsage.java77 private final ArraySet<String> mPackages = new ArraySet<>(); field in AppDataUsage
147 if (mPackages.size() != 0) { in onCreate()
150 ApplicationInfo info = pm.getApplicationInfo(mPackages.valueAt(0), 0); in onCreate()
174 for (String packageName : mPackages) { in onCreate()
186 if (mPackages.size() > 1) { in onCreate()
287 mPackages.add(packages[i]); in addUid()
331 String pkg = mPackages.size() != 0 ? mPackages.valueAt(0) : null; in onViewCreated()
397 return new AppPrefLoader(getPrefContext(), mPackages, getPackageManager());
DAppPrefLoader.java27 private ArraySet<String> mPackages; field in AppPrefLoader
33 mPackages = pkgs; in AppPrefLoader()
41 for (int i = 1, size = mPackages.size(); i < size; i++) { in loadInBackground()
43 ApplicationInfo info = mPackageManager.getApplicationInfo(mPackages.valueAt(i), 0); in loadInBackground()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DPackageDeletionTask.java30 private Set<String> mPackages; field in PackageDeletionTask
36 mPackages = packageNames; in PackageDeletionTask()
47 PackageDeletionObserver observer = new PackageDeletionObserver(mPackages.size()); in run()
48 for (String packageName : mPackages) { in run()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DCacheDataUpdatedTask.java45 private final HashSet<String> mPackages; field in CacheDataUpdatedTask
50 mPackages = packages; in CacheDataUpdatedTask()
67 && mPackages.contains(cn.getPackageName())) { in execute()
73 apps.updateIconsAndLabels(mPackages, mUser, updatedApps); in execute()
DPackageUpdatedTask.java75 private final String[] mPackages; field in PackageUpdatedTask
80 mPackages = packages; in PackageUpdatedTask()
88 final String[] packages = mPackages; in execute()
103 heuristic.processPackageAdd(mPackages); in execute()
120 heuristic.processPackageRemoved(mPackages); 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/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetailTest.java250 mBatterySipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_NormalApp()
261 mBatterySipper.mPackages = null; in testStartBatteryDetailPage_SystemApp()
273 mBatterySipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_WorkApp()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java2024 String[] mPackages; field in LauncherModel.PackageUpdatedTask
2035 mPackages = packages; in PackageUpdatedTask()
2042 final String[] packages = mPackages; in run()
/packages/apps/Messaging/build/gcheckstyle/
Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com ...