Searched refs:getInstalledPackages (Results 1 – 4 of 4) sorted by relevance
68 for (PackageInfo pkg : packageManager.getInstalledPackages(/* flags= */ 0)) { in calculateIsRunningOnWorkProfile()
206 List<PackageInfo> pkgs = getActivity().getPackageManager().getInstalledPackages(0); in getInstalledPkgsList()
1533 assertThat(packageManager.getInstalledPackages(MATCH_UNINSTALLED_PACKAGES)).isNotEmpty(); in getInstalledPackages_uninstalledPackage_includeUninstalled()1534 assertThat(packageManager.getInstalledPackages(MATCH_UNINSTALLED_PACKAGES).get(0).packageName) in getInstalledPackages_uninstalledPackage_includeUninstalled()1545 assertThat(packageManager.getInstalledPackages(0)).isEmpty(); in getInstalledPackages_uninstalledPackage_dontIncludeUninstalled()1555 assertThat(packageManager.getInstalledPackages(MATCH_DISABLED_COMPONENTS)).isNotEmpty(); in getInstalledPackages_disabledPackage_includeDisabled()1556 assertThat(packageManager.getInstalledPackages(MATCH_DISABLED_COMPONENTS).get(0).packageName) in getInstalledPackages_disabledPackage_includeDisabled()2432 packageManager.getInstalledPackages(MATCH_UNINSTALLED_PACKAGES);2460 assertThat(packageManager.getInstalledPackages(/* flags= */ 0)).isEmpty();
154 public List<PackageInfo> getInstalledPackages(int flags) { in getInstalledPackages() method in ShadowApplicationPackageManager