Searched refs:getPackagesForUid (Results 1 – 25 of 45) sorted by relevance
12
62 when(mPackageManager.getPackagesForUid(UID_CALENDAR)).thenReturn(PACKAGES_CALENDAR); in setUp()63 when(mPackageManager.getPackagesForUid(UID_MEDIA)).thenReturn(PACKAGES_MEDIA); in setUp()64 when(mPackageManager.getPackagesForUid(UID_SYSTEMUI)).thenReturn(PACKAGES_SYSTEMUI); in setUp()
72 when(mockPackageManager.getPackagesForUid(APP_UID)) in stubPackageManagerToReturnAppPackageAndName()125 when(mockPackageManager.getPackagesForUid(APP_UID)).thenReturn(null); in batteryEntryForApp_shouldSetHighestDrainPackage_whenPackagesCannotBeFoundForUid()134 when(mockPackageManager.getPackagesForUid(APP_UID)) in batteryEntryForApp_shouldSetHighestDrainPackage_whenMultiplePackagesFoundForUid()
639 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_systemAppWithLauncher_returnTrue()649 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_systemAppWithoutLauncher_returnTrue()659 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(systemUid); in testShouldHideAnomaly_systemUid_returnTrue()667 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_AppInDozeList_returnTrue()676 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_normalApp_returnFalse()684 doReturn(new String[]{LOW_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_excessivePriorOApp_returnFalse()693 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_excessiveOApp_returnTrue()
172 sipper.mPackages = pm.getPackagesForUid(sipper.uidObj.getUid()); in BatteryEntry()177 defaultPackageName = pm.getPackagesForUid(sipper.uidObj.getUid())[0]; in BatteryEntry()254 if (pm.getPackagesForUid(uid) == null) { in getQuickNameIconForUid()285 sipper.mPackages = pm.getPackagesForUid(uid); in loadNameAndIcon()
52 sipper.mPackages = mPackageManager.getPackagesForUid(uid); in isTypeSystem()
302 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in getPackageName()544 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in shouldHideAnomaly()
270 sipper.mPackages = mPackageManager.getPackagesForUid(sipper.getUid()); in isHiddenSystemModule()329 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in getPackageName()583 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in shouldHideAnomaly()
53 sipper.mPackages = mPackageManager.getPackagesForUid(uid); in isTypeSystem()
137 when(pm.getPackagesForUid(DUMMY_UID)).thenReturn(new String[] {"p"});147 when(pm.getPackagesForUid(DUMMY_UID)).thenReturn(null);148 when(pm.getPackagesForUid(DUMMY_UID2)).thenReturn(null);
77 String[] uidPkgs = pm.getPackagesForUid(uid); in NonSensitivePackagesLiveData()
111 String[] packageName = packageManager.getPackagesForUid(uid); in getPackageNameFromCallingUid()
137 String[] packages = mContext.getPackageManager().getPackagesForUid(Binder.getCallingUid()); in callerHasCarrierPrivileges()
111 return Lists.newArrayList(mContext.getPackageManager().getPackagesForUid(caller)); in getCallingPackages()
368 return Lists.newArrayList(mContext.getPackageManager().getPackagesForUid(caller)); in getCallingPackages()
72 public String[] getPackagesForUid(int uid) { in getPackagesForUid() method in ContactsMockPackageManager
205 packageName = context.getPackageManager().getPackagesForUid(info.mUid)[0]; in scheduleJob()700 String[] packages = context.getPackageManager().getPackagesForUid(uid); in getPackageForUid()
80 String[] packageNames = getPackageManager().getPackagesForUid(packageUid);
116 return ArrayUtils.defeatNullable(getContext().getPackageManager().getPackagesForUid(uid)); in getSharedPackageNamesInternal()
208 final boolean packageExists = pm.getPackagesForUid(uid) != null; in purgeOldGrants()
128 String[] packageNamesForCallerUid = pm.getPackagesForUid(callingUid); in requestBugreport()
227 String[] packageName = packageManager.getPackagesForUid(uid); in getPackageNameFromCallingUid()
263 final String[] packages = mPm.getPackagesForUid(uid); in findPackageInfo()
116 String[] pkgs = mPackageManager.getPackagesForUid(uid); in getPackageNameFromUid()
256 final String[] packages = mPm.getPackagesForUid(uid); in findPackageInfo()