Searched refs:getPackagesForUid (Results 1 – 25 of 53) sorted by relevance
123
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()
642 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_systemAppWithLauncher_returnTrue()652 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_systemAppWithoutLauncher_returnTrue()662 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(systemUid); in testShouldHideAnomaly_systemUid_returnTrue()670 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_AppInDozeList_returnTrue()679 doReturn(new String[]{HIGH_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_normalApp_returnFalse()687 doReturn(new String[]{LOW_SDK_PACKAGE}).when(mPackageManager).getPackagesForUid(UID); in testShouldHideAnomaly_excessivePriorOApp_returnFalse()696 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()
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()
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()
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);
100 final String[] sharedPackageNames = context.getPackageManager().getPackagesForUid(uid); in fromExternal()172 final String[] packageNames = context.getPackageManager().getPackagesForUid(uid); in getSharedPackageNamesInternal()
290 when(mPackageManager.getPackagesForUid(USER_ID)).thenReturn(new String[]{siPackageName}); in isSettingsIntelligence_IsSI_returnTrue()298 when(mPackageManager.getPackagesForUid(USER_ID)).thenReturn(new String[]{PACKAGE_NAME}); in isSettingsIntelligence_IsNotSI_returnFalse()
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
67 assertEquals(Arrays.asList(pm.getPackagesForUid(android.os.Process.myUid())), in testFromSelf()
167 val packageNames = app.packageManager.getPackagesForUid(uid)?.toList() ?: emptyList() in <lambda>()
207 packageName = context.getPackageManager().getPackagesForUid(info.mUid)[0]; in scheduleJob()810 String[] packages = context.getPackageManager().getPackagesForUid(uid); in getPackageForUid()
80 String[] packageNames = getPackageManager().getPackagesForUid(packageUid);
208 final boolean packageExists = pm.getPackagesForUid(uid) != null; in purgeOldGrants()
184 String[] packageNamesForCallerUid = pm.getPackagesForUid(callingUid); in ensureTheCallerIsDesignatedBugReportApp()
227 String[] packageName = packageManager.getPackagesForUid(uid); in getPackageNameFromCallingUid()
279 final String[] packages = mPm.getPackagesForUid(uid); in findPackageInfo()