Home
last modified time | relevance | path

Searched refs:getPackagesForUid (Results 1 – 25 of 53) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageFeatureProviderImplTest.java62 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()
DBatteryEntryTest.java72 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()
DBatteryUtilsTest.java642 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()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java172 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()
DBatteryUtils.java270 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()
DPowerUsageFeatureProviderImpl.java53 sipper.mPackages = mPackageManager.getPackagesForUid(uid); in isTypeSystem()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryEntry.java172 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()
DPowerUsageFeatureProviderImpl.java52 sipper.mPackages = mPackageManager.getPackagesForUid(uid); in isTypeSystem()
DBatteryUtils.java302 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in getPackageName()
544 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in shouldHideAnomaly()
/packages/apps/KeyChain/robotests/src/com/android/keychain/internal/
DGrantsDatabaseTest.java137 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);
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java100 final String[] sharedPackageNames = context.getPackageManager().getPackagesForUid(uid); in fromExternal()
172 final String[] packageNames = context.getPackageManager().getPackagesForUid(uid); in getSharedPackageNamesInternal()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java290 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()
/packages/apps/SecureElement/src/com/android/se/internal/
DUtil.java111 String[] packageName = packageManager.getPackagesForUid(uid); in getPackageNameFromCallingUid()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailPermissions.java137 String[] packages = mContext.getPackageManager().getPackagesForUid(Binder.getCallingUid()); in callerHasCarrierPrivileges()
DVoicemailNotifier.java111 return Lists.newArrayList(mContext.getPackageManager().getPackagesForUid(caller)); in getCallingPackages()
DDbModifierWithNotification.java368 return Lists.newArrayList(mContext.getPackageManager().getPackagesForUid(caller)); in getCallingPackages()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java72 public String[] getPackagesForUid(int uid) { in getPackagesForUid() method in ContactsMockPackageManager
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DLocalCallingIdentityTest.java67 assertEquals(Arrays.asList(pm.getPackagesForUid(android.os.Process.myUid())), in testFromSelf()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/data/
DUserSensitivityLiveData.kt167 val packageNames = app.packageManager.getPackagesForUid(uid)?.toList() ?: emptyList() in <lambda>()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java207 packageName = context.getPackageManager().getPackagesForUid(info.mUid)[0]; in scheduleJob()
810 String[] packages = context.getPackageManager().getPackagesForUid(uid); in getPackageForUid()
/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DEmbmsTestStreamingService.java80 String[] packageNames = getPackageManager().getPackagesForUid(packageUid);
/packages/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java208 final boolean packageExists = pm.getPackagesForUid(uid) != null; in purgeOldGrants()
/packages/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java184 String[] packageNamesForCallerUid = pm.getPackagesForUid(callingUid); in ensureTheCallerIsDesignatedBugReportApp()
/packages/apps/SecureElement/src/com/android/se/
DSecureElementService.java227 String[] packageName = packageManager.getPackagesForUid(uid); in getPackageNameFromCallingUid()
/packages/apps/Settings/src/com/android/settings/notification/app/
DNotificationSettings.java279 final String[] packages = mPm.getPackagesForUid(uid); in findPackageInfo()

123