Home
last modified time | relevance | path

Searched refs:getPackageUid (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batterytip/
DRestrictAppTest.java74 mBatteryDatabaseManager.insertAnomaly(mPackageManager.getPackageUid(PACKAGE_SETTINGS, 0), in batterySettings_hasOneAnomaly_showAnomaly()
86 mBatteryDatabaseManager.insertAnomaly(mPackageManager.getPackageUid(PACKAGE_SETTINGS, 0), in batterySettings_hasTwoAnomalies_showAnomalies()
89 mBatteryDatabaseManager.insertAnomaly(mPackageManager.getPackageUid(PACKAGE_SYSTEM_UI, 0), in batterySettings_hasTwoAnomalies_showAnomalies()
101 final int uid = mPackageManager.getPackageUid(PACKAGE_SETTINGS, 0); in insertDuplicateAnomalies_onlyInsertOnce()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DOpenHelper.java94 final int ownerUid = getPackageUid(context, ownerPackageName); in buildViewIntentForMediaStoreDownload()
185 private static int getPackageUid(Context context, String packageName) { in getPackageUid() method in OpenHelper
190 return context.getPackageManager().getPackageUid(packageName, 0); in getPackageUid()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java386 public int getPackageUid(String packageName) { in getPackageUid() method in BatteryUtils
388 return packageName == null ? UID_NULL : mPackageManager.getPackageUid(packageName, in getPackageUid()
424 final int uid = getPackageUid(packageName); in clearForceAppStandby()
DAdvancedPowerUsageDetailActivity.java61 args.putInt(EXTRA_UID, packageManager.getPackageUid(packageName, 0 /* no flag */)); in onCreate()
DAdvancedPowerUsageDetail.java170 args.putInt(EXTRA_UID, packageManager.getPackageUid(packageName, 0 /* no flag */)); in startBatteryDetailPage()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java413 public int getPackageUid(String packageName) { in getPackageUid() method in BatteryUtils
415 return packageName == null ? UID_NULL : mPackageManager.getPackageUid(packageName, in getPackageUid()
451 final int uid = getPackageUid(packageName); in clearForceAppStandby()
DAdvancedPowerUsageDetailActivity.java61 args.putInt(EXTRA_UID, packageManager.getPackageUid(packageName, 0 /* no flag */)); in onCreate()
DAdvancedPowerUsageDetail.java170 args.putInt(EXTRA_UID, packageManager.getPackageUid(packageName, 0 /* no flag */)); in startBatteryDetailPage()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsageActivity.java43 uid = pm.getPackageUid(packageName, 0); in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DAppDataUsageActivity.java43 uid = pm.getPackageUid(packageName, 0); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java705 when(mBatteryUtils.getPackageUid(HIGH_SDK_PACKAGE)).thenReturn(UID); in clearForceAppStandby_appRestricted_clearAndReturnTrue()
716 when(mBatteryUtils.getPackageUid(PACKAGE_NAME)).thenReturn(BatteryUtils.UID_NULL); in clearForceAppStandby_appInvalid_returnFalse()
725 when(mBatteryUtils.getPackageUid(PACKAGE_NAME)).thenReturn(UID); in clearForceAppStandby_appUnrestricted_returnFalse()
DAdvancedPowerUsageDetailTest.java360 doReturn(UID).when(mPackageManager).getPackageUid(PACKAGE_NAME[0], 0 /* no flag */); in testStartBatteryDetailPage_batteryEntryNotExisted_extractUidFromPackageName()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DUpdateInteractAcrossProfilesAppOpTask.java98 final int uid = mPackageManager.getPackageUid(packageName, /* flags= */ 0); in appOpIsChangedFromDefault()
DCreateManagedProfileTask.java136 final int uid = mPackageManager.getPackageUid(packageName, /* flags= */ 0); in appOpIsChangedFromDefault()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantController.java94 int uid = mPackageManager.getPackageUid(packageName, /* flags= */ 0); in appOpIsChangedFromDefault()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAddTest.java66 doReturn(UID).when(mBatteryUtils).getPackageUid(PACKAGE_NAME); in setUp()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DLocalCallingIdentityTest.java94 pm.getPackageUid(MediaProviderTest.PERMISSIONLESS_APP, 0)); in testFromExternal()
DMediaProviderForFuseTest.java70 sTestUid = context.getPackageManager().getPackageUid(MediaProviderTest.PERMISSIONLESS_APP, in setUp()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt763 val uid = KotlinUtils.getPackageUid(app, packageName, user) ?: return in <lambda>()
777 val uid = KotlinUtils.getPackageUid(app, packageName, user) ?: return in <lambda>()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppOpsSettingsTest.java186 final int packageUid = mPackageManager.getPackageUid(mPackageName, 0); in testSwitchToggle()
/packages/apps/Settings/src/com/android/settings/notification/app/
DNotificationSettings.java107 mUid = mPm.getPackageUid(mPkg, 0); in onAttach()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationSettingsBase.java107 mUid = mPm.getPackageUid(mPkg, 0); in onAttach()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionAppsFragment.java371 Integer uid = KotlinUtils.INSTANCE.getPackageUid(getActivity().getApplication(), in logPermissionAppsFragmentCreated()
DAppPermissionGroupsFragment.java462 Integer uid = KotlinUtils.INSTANCE.getPackageUid(getActivity().getApplication(), in logAppPermissionsFragmentViewEntry()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceImpl.java614 uid = pm.getPackageUid(packageName, 0); in onOneTimePermissionSessionTimeout()

12