Home
last modified time | relevance | path

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

/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.java46 private List<PackageInfo> mPackages; field in ContactsMockPackageManager
77 } else if (mPackages != null) { in getPackagesForUid()
78 return new String[] { mPackages.get(0).packageName }; in getPackagesForUid()
98 this.mPackages = packages; in setInstalledPackages()
103 return mPackages; in getInstalledPackages()
108 for (PackageInfo info : mPackages) { in getPackageInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsCompanionAppsControllerTest.java64 private List<String> mPackages; field in BluetoothDetailsCompanionAppsControllerTest
72 mPackages = Arrays.asList(PACKAGE_NAME_ONE, PACKAGE_NAME_TWO, PACKAGE_NAME_THREE); in setUp()
167 for (int i = 0; i < mPackages.size(); i++) { in addMultipleAssociations_preferencesShouldBeAdded()
168 addFakeAssociation(mPackages.get(i), mAppNames.get(i)); in addMultipleAssociations_preferencesShouldBeAdded()
173 assertThat(preference.getKey()).isEqualTo(mPackages.get(i)); in addMultipleAssociations_preferencesShouldBeAdded()
181 for (int i = 0; i < mPackages.size(); i++) { in removeMultipleAssociations_preferencesShouldBeRemoved()
182 addFakeAssociation(mPackages.get(i), mAppNames.get(i).toString()); in removeMultipleAssociations_preferencesShouldBeRemoved()
185 for (int i = 0; i < mPackages.size(); i++) { in removeMultipleAssociations_preferencesShouldBeRemoved()
186 removeAssociation(mPackages.get(i)); in removeMultipleAssociations_preferencesShouldBeRemoved()
188 assertThat(mProfiles.getPreferenceCount()).isEqualTo(mPackages.size() - i - 1); in removeMultipleAssociations_preferencesShouldBeRemoved()
[all …]
/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.java265 for (int ipkg = 0, N = mStats.mPackages.getMap().size(); ipkg < N; ipkg++) { in getProcs()
266 final SparseArray<LongSparseArray<ProcessStats.PackageState>> pkgUids = mStats.mPackages in getProcs()
306 for (int ip = 0, N = mStats.mPackages.getMap().size(); ip < N; ip++) { in getProcs()
307 SparseArray<LongSparseArray<ProcessStats.PackageState>> uids = mStats.mPackages.getMap() in getProcs()
DProcessStatsDetail.java437 for (int j=0; j<ent.mPackages.size(); j++) { in killProcesses()
438 am.forceStopPackage(ent.mPackages.get(j)); in killProcesses()
454 for (int j=0; j<ent.mPackages.size(); j++) { in checkForceStop()
455 String pkg = ent.mPackages.get(j); in checkForceStop()
/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.java45 private final HashSet<String> mPackages; field in CacheDataUpdatedTask
51 mPackages = packages; in CacheDataUpdatedTask()
65 && mPackages.contains(cn.getPackageName())) { in execute()
70 apps.updateIconsAndLabels(mPackages, mUser); in execute()
DSdCardAvailableReceiver.java44 private final Set<PackageUserKey> mPackages; field in SdCardAvailableReceiver
49 mPackages = packages; in SdCardAvailableReceiver()
56 for (PackageUserKey puk : mPackages) { in onReceive()
DPackageUpdatedTask.java95 private final String[] mPackages; field in PackageUpdatedTask
101 mPackages = packages; in PackageUpdatedTask()
111 final String[] packages = mPackages; in execute()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsage.java76 private final ArraySet<String> mPackages = new ArraySet<>(); field in AppDataUsage
148 if (mPackages.size() != 0) { in onCreate()
152 mPackages.valueAt(0), 0, userId); in onCreate()
158 use(AppDataUsageAppSettingsController.class).init(mPackages, userId); in onCreate()
304 Collections.addAll(mPackages, packages); in addUid()
324 String pkg = mPackages.size() != 0 ? mPackages.valueAt(0) : null; in addEntityHeader()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java73 private List<PackageInfo> mPackages; field in AppStateAppOpsBridgeTest
84 mPackages = new ArrayList<>(); in setUp()
85 mParceledListSlice1 = new ParceledListSlice<>(mPackages); in setUp()
139 mPackages.add(packageInfo); in packagesNotRequestingPermissionIgnored()
159 assertThat(mPackages.contains(packageInfo)).isFalse(); in additionalAppOpPermissionPackagesIncluded()
320 mPackages.add(packageInfo); in addPackageWithPermission()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiManager.java11707 private final Set<String> mPackages; field in WifiManager.InterfaceCreationImpact
11712 mPackages = packages; in InterfaceCreationImpact()
11728 return mPackages; in getPackages()
11733 return Objects.hash(mInterfaceType, mPackages); in hashCode()
11743 && Objects.equals(this.mPackages, thatInterfaceCreationImpact.mPackages); in equals()