Home
last modified time | relevance | path

Searched refs:getInstalledPackagesAsUser (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DUserPackageInfosLiveData.kt80 app.applicationContext.packageManager.getInstalledPackagesAsUser( in <lambda>()
87 app.applicationContext.packageManager.getInstalledPackagesAsUser( in <lambda>()
92 app.applicationContext.packageManager.getInstalledPackagesAsUser( in <lambda>()
DPreinstalledUserPackageInfosLiveData.kt49 app.applicationContext.packageManager.getInstalledPackagesAsUser( in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/specialaccess/
DPictureInPictureTest.kt65 whenever(packageManager.getInstalledPackagesAsUser(any<PackageInfoFlags>(), anyInt())) in setUp()
79 whenever(packageManager.getInstalledPackagesAsUser(any<PackageInfoFlags>(), anyInt())) in <lambda>()
96 whenever(packageManager.getInstalledPackagesAsUser(any<PackageInfoFlags>(), anyInt())) in <lambda>()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java214 doReturn(List.of()).when(mPackageManager).getInstalledPackagesAsUser(anyInt(), anyInt()); in setUp()
752 doReturn(pkgs).when(mPackageManager).getInstalledPackagesAsUser(eq(GET_PERMISSIONS), in testUserAndPackageAddRemove()
823 .when(mPackageManager).getInstalledPackagesAsUser(eq(GET_PERMISSIONS), anyInt()); in doTestUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
877 .when(mPackageManager).getInstalledPackagesAsUser(eq(GET_PERMISSIONS), anyInt()); in doTestUidFilteringDuringPackageInstallAndUninstall()
915 .when(mPackageManager).getInstalledPackagesAsUser(eq(GET_PERMISSIONS), anyInt()); in testLockdownUidFilteringWithLockdownEnableDisable()
945 .when(mPackageManager).getInstalledPackagesAsUser(eq(GET_PERMISSIONS), anyInt()); in testLockdownUidFilteringWithLockdownEnableDisableWithMultiAdd()
986 .when(mPackageManager).getInstalledPackagesAsUser(eq(GET_PERMISSIONS), anyInt()); in testLockdownUidFilteringWithLockdownEnableDisableWithMultiAddAndOverlap()
1046 .when(mPackageManager).getInstalledPackagesAsUser(eq(GET_PERMISSIONS), anyInt()); in testLockdownUidFilteringWithLockdownEnableDisableWithDuplicates()
1079 .when(mPackageManager).getInstalledPackagesAsUser(eq(GET_PERMISSIONS), anyInt()); in testLockdownUidFilteringWithInstallAndUnInstall()
1410 .getInstalledPackagesAsUser(eq(GET_PERMISSIONS), eq(MOCK_USER_ID2));
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DClonedAppsPreferenceController.java88 .getInstalledPackagesAsUser(/* flags*/ 0, UserHandle.myUserId()).stream() in updatePreferenceSummary()
100 .getInstalledPackagesAsUser(/* flags*/ 0, cloneUserId).stream() in updatePreferenceSummary()
DAppStateClonedAppsBridge.java59 .getInstalledPackagesAsUser(GET_ACTIVITIES, in loadAllExtraInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettingsTest.java68 when(mPackageManager.getInstalledPackagesAsUser(anyInt(), eq(PRIMARY_USER_ID))) in setUp()
70 when(mPackageManager.getInstalledPackagesAsUser(anyInt(), eq(PROFILE_USER_ID))) in setUp()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesSettings.java157 List<PackageInfo> personalPackages = packageManager.getInstalledPackagesAsUser( in getAllInstalledPackages()
159 List<PackageInfo> workPackages = packageManager.getInstalledPackagesAsUser( in getAllInstalledPackages()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DUidPackageMapperTest.java88 when(mMockPackageManager.getInstalledPackagesAsUser( in setUp()
92 when(mMockPackageManager.getInstalledPackagesAsUser( in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowApplicationPackageManager.java45 protected List<PackageInfo> getInstalledPackagesAsUser(int flags, int userId) { in getInstalledPackagesAsUser() method in ShadowApplicationPackageManager
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt156 whenever(packageManager.getInstalledPackagesAsUser(anyInt(), anyInt())).thenAnswer { in <lambda>()
164 packageManager.getInstalledPackagesAsUser( in <lambda>()
179 packageManager.getInstalledPackagesAsUser(0, 0).find { it.packageName == packageName } in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/development/compat/
DPlatformCompatAppListModelTest.kt61 whenever(packageManager.getInstalledPackagesAsUser(any<PackageInfoFlags>(), anyInt())) in setUp()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppDetector.java64 List<PackageInfo> packages = mPackageManager.getInstalledPackagesAsUser( in hasUnsafeInstalledApps()
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/
DPictureInPicture.kt116 packageManager.getInstalledPackagesAsUser(GET_ACTIVITIES_FLAGS, userId) in getPackageAndActivityInfoList()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
DPermissionApps.java199 return mPm.getInstalledPackagesAsUser(pkgQueryFlags, user.getIdentifier()); in getPackageInfos()
505 ret = mPm.getInstalledPackagesAsUser(getPackageQueryFlags(), userId); in getPackages()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettings.java210 final List<PackageInfo> installedPackages = mPackageManager.getInstalledPackagesAsUser( in collectPipApps()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/backup/
DBackupAndRestoreFragment.java119 installedPackages = packageManager.getInstalledPackagesAsUser(/* flags= */0, mUserId); in backupNow()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/packageinfo/
DPackageInfoFragment.java98 packages = mPackageManager.getInstalledPackagesAsUser(PACKAGE_FLAGS, mUserToShow.id); in refreshPackages()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java308 private List<PackageInfo> getInstalledPackagesAsUser(final UserHandle user) { in getInstalledPackagesAsUser() method in PermissionMonitor
309 return mPackageManager.getInstalledPackagesAsUser(GET_PERMISSIONS, user.getIdentifier()); in getInstalledPackagesAsUser()
589 final List<PackageInfo> apps = getInstalledPackagesAsUser(user); in onUserAdded()
/packages/services/Car/service/src/com/android/car/telemetry/
DUidPackageMapper.java192 pm.getInstalledPackagesAsUser( in getAllPackagesIncludingApex()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSTestHelpers.kt120 .getInstalledPackagesAsUser(eq(PackageManager.GET_PERMISSIONS), anyInt()) in makeMockPackageManager()
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsCompanionService.java294 pm.getInstalledPackagesAsUser(PackageManager.GET_SIGNING_CERTIFICATES in getAllPackagesWithApex()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java807 List<PackageInfo> packageInfos = pm.getInstalledPackagesAsUser(/* flags= */ 0, userId); in getPackageKillableStatesForUserId()
2391 List<PackageInfo> packageInfos = pm.getInstalledPackagesAsUser(/* flags= */ 0, userId); in getPackageUidsForUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java1301 when(mMockPackageManager.getInstalledPackagesAsUser(anyInt(), anyInt())) in mockPackageManager()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DAppSearchManagerService.java2687 List<PackageInfo> packagesForUser = mPackageManager.getInstalledPackagesAsUser( in augmentStatsForUser()

12