/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | NotificationsPreferenceControllerTest.java | 138 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/ |
D | AppStateAlarmsAndRemindersBridgeTest.java | 138 .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/ |
D | NotificationsAppListPreferenceControllerTest.java | 180 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/ |
D | PackageUtils.java | 46 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/ |
D | DataSubscriptionControllerTest.java | 196 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/ |
D | Permissions.java | 112 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()
|
D | AppOpPermissions.java | 53 PackageInfo packageInfo = PackageUtils.getPackageInfoAsUser(packageName, in grantAsUser()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/content/pm/ |
D | PackageManagerHelper.java | 96 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/ |
D | PictureInPictureTest.kt | 114 packageManager.getPackageInfoAsUser( in transformItem() 128 packageManager.getPackageInfoAsUser( in transformItem_getPackageInfoAsUserThrowsException_treatAsNotSupported()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppInfoWithHeaderTest.java | 138 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/ |
D | ShadowApplicationPackageManager.java | 43 public PackageInfo getPackageInfoAsUser(String packageName, in getPackageInfoAsUser() method in ShadowApplicationPackageManager
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/ |
D | PictureInPictureDetailPreferenceController.java | 68 packageInfoWithActivities = mPackageManager.getPackageInfoAsUser(mPackageName, in hasPictureInPictureActivites()
|
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/ |
D | EmergencyRoleBehavior.java | 60 PackageInfo packageInfo = PackageUtils.getPackageInfoAsUser(packageName, 0, in getFallbackHolderAsUser()
|
/packages/apps/Car/Settings/src/com/android/car/settings/notifications/ |
D | BaseNotificationsPreferenceController.java | 129 PackageInfo packageInfo = packageManager.getPackageInfoAsUser( in areNotificationsChangeable()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | DeleteNonRequiredAppsTask.java | 121 PackageInfo info = mPm.getPackageInfoAsUser( in removeNonInstalledPackages()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | UtilsTest.java | 281 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/ |
D | PermissionMonitor.java | 675 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/ |
D | AppStateAlarmsAndRemindersBridge.java | 75 final PackageInfo info = mPackageManager.getPackageInfoAsUser(packageName, in getRequestedPermissions()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarAppMetadataReader.java | 67 PackageManagerHelper.getPackageInfoAsUser(pm, packageName, in getAllActivitiesForPackageAsUser()
|
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/ |
D | PictureInPicture.kt | 105 packageManager.getPackageInfoAsUser(app.packageName, GET_ACTIVITIES_FLAGS, app.userId) in getPackageAndActivityInfo()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | DeleteNonRequiredAppsTaskTest.java | 218 public PackageInfo getPackageInfoAsUser(String pkg, int flag, int userId) in getPackageInfoAsUser() method in DeleteNonRequiredAppsTaskTest.FakePackageManager
|
/packages/services/Car/service/src/com/android/car/occupantconnection/ |
D | CarOccupantConnectionService.java | 512 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/ |
D | PackageInfoPresenter.kt | 175 packageManagers.getPackageInfoAsUser( in <lambda>()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | NotificationUtils.java | 195 packageInfo = packageManager.getPackageInfoAsUser( in getPackageInfo()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/backgroundinstall/ |
D | BackgroundInstalledAppsPageProviderTest.kt | 201 whenever(mockPackageManager.getPackageInfoAsUser( in <lambda>()
|