Home
last modified time | relevance | path

Searched refs:getPackageInfoAsUser (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DNotificationsPreferenceControllerTest.java138 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_noNotificationPermission_isNotEnabled()
152 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_systemFixedFlag_isNotEnabled()
169 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_policyFixedFlag_isNotEnabled()
186 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_hasPermissions_isEnabled()
205 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_targetSdkBelow33_systemFixedFlag_isNotEnabled()
224 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_targetSdkBelow33_policyFixedFlag_isNotEnabled()
243 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_targetSdkBelow33_doesNotHavePermission_isEnabled()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppStateAlarmsAndRemindersBridgeTest.java138 .when(mPackageManager).getPackageInfoAsUser(eq(TEST_PACKAGE), anyInt(), anyInt()); in createPermissionState_SeaGrantedNoUeaNoAllowlist()
160 .when(mPackageManager).getPackageInfoAsUser(eq(TEST_PACKAGE), anyInt(), anyInt()); in createPermissionState_requestsBothSeaDeniedNoAllowlist()
180 .when(mPackageManager).getPackageInfoAsUser(eq(TEST_PACKAGE), anyInt(), anyInt()); in createPermissionState_requestsNoneNoAllowlist()
200 .when(mPackageManager).getPackageInfoAsUser(eq(TEST_PACKAGE), anyInt(), anyInt()); in createPermissionState_requestsOnlyUeaNoAllowlist()
220 .when(mPackageManager).getPackageInfoAsUser(eq(TEST_PACKAGE), anyInt(), anyInt()); in createPermissionState_requestsNoneButAllowlisted()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DNotificationsAppListPreferenceControllerTest.java180 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_noNotificationPermission_isNotEnabled()
195 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_systemFixedFlag_isNotEnabled()
213 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_policyFixedFlag_isNotEnabled()
242 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_targetSdkBelow33_systemFixedFlag_isNotEnabled()
262 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_targetSdkBelow33_policyFixedFlag_isNotEnabled()
282 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in onCreate_targetSdkBelow33_doesNotHavePermission_isEnabled()
369 when(mMockPackageManager.getPackageInfoAsUser(eq(PKG_NAME), in setupNotificationsEnabledPermissions()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/
DPackageUtils.java46 public static PackageInfo getPackageInfoAsUser(@NonNull String packageName, int extraFlags, in getPackageInfoAsUser() method in PackageUtils
70 return getPackageInfoAsUser(packageName, PackageManager.MATCH_SYSTEM_ONLY, user, context) in isSystemPackageAsUser()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DDataSubscriptionControllerTest.java196 when(mPackageManager.getPackageInfoAsUser( in onTaskMovedToFront_AppNotRequireInternet_popUpNotDisplay()
214 when(mPackageManager.getPackageInfoAsUser( in onTaskMovedToFront_AppRequiresInternetAndNotBlocked_registerCallback()
235 when(mPackageManager.getPackageInfoAsUser( in onTaskMovedToFront_invalidNetCap_popUpDisplay()
256 when(mPackageManager.getPackageInfoAsUser( in onTaskMovedToFront_callbackRegistered_unregisterAndRegisterCallback()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DPermissions.java112 PackageInfo packageInfo = getPackageInfoAsUser(packageName, user, context); in grantAsUser()
410 PackageInfo packageInfo = getPackageInfoAsUser(packageName, user, context); in revokeAsUser()
580 private static PackageInfo getPackageInfoAsUser(@NonNull String packageName, in getPackageInfoAsUser() method in Permissions
582 return getPackageInfoAsUser(packageName, 0, user, context); in getPackageInfoAsUser()
588 return getPackageInfoAsUser(packageName, PackageManager.MATCH_FACTORY_ONLY, in getFactoryPackageInfoAsUser()
593 private static PackageInfo getPackageInfoAsUser(@NonNull String packageName, int extraFlags, in getPackageInfoAsUser() method in Permissions
595 return PackageUtils.getPackageInfoAsUser(packageName, extraFlags in getPackageInfoAsUser()
DAppOpPermissions.java53 PackageInfo packageInfo = PackageUtils.getPackageInfoAsUser(packageName, in grantAsUser()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/content/pm/
DPackageManagerHelper.java96 public static PackageInfo getPackageInfoAsUser(@NonNull PackageManager pm, in getPackageInfoAsUser() method in PackageManagerHelper
99 return pm.getPackageInfoAsUser(packageName, packageInfoFlags, userId); in getPackageInfoAsUser()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/specialaccess/
DPictureInPictureTest.kt114 packageManager.getPackageInfoAsUser( in transformItem()
128 packageManager.getPackageInfoAsUser( in transformItem_getPackageInfoAsUserThrowsException_treatAsNotSupported()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppInfoWithHeaderTest.java138 when(mAppInfoWithHeader.mPm.getPackageInfoAsUser(eq(entry.info.packageName), in noExtraUserHandleInIntent_retrieveAppEntryWithMyUserId()
163 when(mAppInfoWithHeader.mPm.getPackageInfoAsUser(eq(entry.info.packageName), in extraUserHandleInIntent_retrieveAppEntryWithMyUserId()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/testutils/
DShadowApplicationPackageManager.java43 public PackageInfo getPackageInfoAsUser(String packageName, in getPackageInfoAsUser() method in ShadowApplicationPackageManager
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureDetailPreferenceController.java68 packageInfoWithActivities = mPackageManager.getPackageInfoAsUser(mPackageName, in hasPictureInPictureActivites()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DEmergencyRoleBehavior.java60 PackageInfo packageInfo = PackageUtils.getPackageInfoAsUser(packageName, 0, in getFallbackHolderAsUser()
/packages/apps/Car/Settings/src/com/android/car/settings/notifications/
DBaseNotificationsPreferenceController.java129 PackageInfo packageInfo = packageManager.getPackageInfoAsUser( in areNotificationsChangeable()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTask.java121 PackageInfo info = mPm.getPackageInfoAsUser( in removeNonInstalledPackages()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java281 when(mockPackageManager.getPackageInfoAsUser(TEST_PACKAGE_NAME_1, in testFindDeviceAdmin_NoPackageName()
470 when(mockPackageManager.getPackageInfoAsUser(packageName, in setUpPackage()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java675 final PackageInfo app = getPackageInfoAsUser(name, UserHandle.getUserHandleForUid(uid)); in highestPermissionForUid()
692 final PackageInfo app = getPackageInfoAsUser(name, in getTrafficPermissionForUid()
943 private PackageInfo getPackageInfoAsUser(String packageName, UserHandle user) { in getPackageInfoAsUser() method in PermissionMonitor
1264 final PackageInfo info = getPackageInfoAsUser(app, user); in onExternalApplicationsAvailable()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAlarmsAndRemindersBridge.java75 final PackageInfo info = mPackageManager.getPackageInfoAsUser(packageName, in getRequestedPermissions()
/packages/services/Car/service/src/com/android/car/pm/
DCarAppMetadataReader.java67 PackageManagerHelper.getPackageInfoAsUser(pm, packageName, in getAllActivitiesForPackageAsUser()
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/
DPictureInPicture.kt105 packageManager.getPackageInfoAsUser(app.packageName, GET_ACTIVITIES_FLAGS, app.userId) in getPackageAndActivityInfo()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTaskTest.java218 public PackageInfo getPackageInfoAsUser(String pkg, int flag, int userId) in getPackageInfoAsUser() method in DeleteNonRequiredAppsTaskTest.FakePackageManager
/packages/services/Car/service/src/com/android/car/occupantconnection/
DCarOccupantConnectionService.java512 mRemoteDeviceService.getPackageInfoAsUser(packageName, senderClient.userId); in requestConnection()
523 : mRemoteDeviceService.getPackageInfoAsUser(packageName, receiverClient.userId); in requestConnection()
904 PackageInfo senderInfo = mRemoteDeviceService.getPackageInfoAsUser( in sendCachedConnectionRequestLocked()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DPackageInfoPresenter.kt175 packageManagers.getPackageInfoAsUser( in <lambda>()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java195 packageInfo = packageManager.getPackageInfoAsUser( in getPackageInfo()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/backgroundinstall/
DBackgroundInstalledAppsPageProviderTest.kt201 whenever(mockPackageManager.getPackageInfoAsUser( in <lambda>()

12