Home
last modified time | relevance | path

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

12

/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.java639 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()
/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/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/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/apps/PermissionController/src/com/android/packageinstaller/permission/data/
DNonSensitivePackagesLiveData.java77 String[] uidPkgs = pm.getPackagesForUid(uid); in NonSensitivePackagesLiveData()
/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/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java205 packageName = context.getPackageManager().getPackagesForUid(info.mUid)[0]; in scheduleJob()
700 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/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java116 return ArrayUtils.defeatNullable(getContext().getPackageManager().getPackagesForUid(uid)); in getSharedPackageNamesInternal()
/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.java128 String[] packageNamesForCallerUid = pm.getPackagesForUid(callingUid); in requestBugreport()
/packages/apps/SecureElement/src/com/android/se/
DSecureElementService.java227 String[] packageName = packageManager.getPackagesForUid(uid); in getPackageNameFromCallingUid()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationSettingsBase.java263 final String[] packages = mPm.getPackagesForUid(uid); in findPackageInfo()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipSettings.java116 String[] pkgs = mPackageManager.getPackagesForUid(uid); in getPackageNameFromUid()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationSettingsBase.java256 final String[] packages = mPm.getPackagesForUid(uid); in findPackageInfo()

12