Home
last modified time | relevance | path

Searched refs:getInstalledPackages (Results 1 – 25 of 60) sorted by relevance

123

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/
DPackageManagerCompatUtilsTest.java78 () -> PackageManagerCompatUtils.getInstalledPackages(null, 0)); in testPackageManagerCompatUtilsValidatesArguments()
131 .getInstalledPackages(anyInt()); in testGetInstalledPackages_SMinus()
134 assertThat(PackageManagerCompatUtils.getInstalledPackages(mPackageManagerMock, flags)) in testGetInstalledPackages_SMinus()
136 verify(mPackageManagerMock).getInstalledPackages(eq(flags)); in testGetInstalledPackages_SMinus()
144 .getInstalledPackages(any(PackageManager.PackageInfoFlags.class)); in testGetInstalledPackages_TPlus()
146 assertThat(PackageManagerCompatUtils.getInstalledPackages(mPackageManagerMock, 0)) in testGetInstalledPackages_TPlus()
148 verify(mPackageManagerMock, never()).getInstalledPackages(anyInt()); in testGetInstalledPackages_TPlus()
150 .getInstalledPackages(any(PackageManager.PackageInfoFlags.class)); in testGetInstalledPackages_TPlus()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/compat/
DPackageManagerCompatUtils.java114 public static List<PackageInfo> getInstalledPackages( in getInstalledPackages() method in PackageManagerCompatUtils
118 ? packageManager.getInstalledPackages(PackageManager.PackageInfoFlags.of(flags)) in getInstalledPackages()
119 : packageManager.getInstalledPackages(flags); in getInstalledPackages()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/logging/
DDailyLoggingServiceTest.java208 .getInstalledPackages(any())) in testDailyUsageStatsLogs_oneConnected_oneAvailable_oneNotAvailableApp()
231 .getInstalledPackages(any())) in testDailyUsageStatsLogs_oneConnected_oneAvailableApp()
252 .getInstalledPackages(any())) in testDailyUsageStatsLogs_zeroConnected_twoAvailableApps()
273 .getInstalledPackages(any())) in testDailyUsageStatsLogs_zeroConnected_zeroAvailableApps()
308 .getInstalledPackages(any())) in testDailyUsageStatsLogs_healthConnectAccessed31DaysAgo_userNotMonthlyActive()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/consent/
DAppConsentDao.java126 Set<String> installedPackages = getInstalledPackages(); in getKnownAppsWithConsent()
145 Set<String> installedPackages = getInstalledPackages(); in getAppsWithRevokedConsent()
334 public Set<String> getInstalledPackages() { in getInstalledPackages() method in AppConsentDao
/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/
DServiceResourcesHelperTest.java97 verify(mPackageManager, times(1)).getInstalledPackages(anyInt()); in resourcePackageFetchedOnlyOnce()
111 when(mPackageManager.getInstalledPackages(packageManagerFlag)).thenReturn(info); in mockInstalledPackages()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java102 public List<PackageInfo> getInstalledPackages(int flags) { in getInstalledPackages() method in ContactsMockPackageManager
133 final List<PackageInfo> packages = getInstalledPackages(flags); in queryContentProviders()
DContactDirectoryManagerTest.java307 mPackageManager.getInstalledPackages(0).add( in testPackageInstalled()
360 mPackageManager.getInstalledPackages(0).remove(1); in testPackageUninstalled()
466 PackageInfo info = mPackageManager.getInstalledPackages(0).get(1); in testPackageRenamed()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesStorageManager.java121 mAdServicesManager.getAppsWithRevokedConsent(getInstalledPackages())); in getAppsWithRevokedConsent()
158 public List<String> getInstalledPackages() { in getInstalledPackages() method in AdServicesStorageManager
168 mAdServicesManager.getKnownAppsWithConsent(getInstalledPackages())); in getKnownAppsWithConsent()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchConsentManager.java115 Set<String> installedPackages = getInstalledPackages(); in getKnownAppsWithConsent()
135 Set<String> installedPackages = getInstalledPackages(); in getAppsWithRevokedConsent()
546 private Set<String> getInstalledPackages() { in getInstalledPackages() method in AppSearchConsentManager
DAppSearchConsentStorageManager.java163 Set<String> installedPackages = getInstalledPackages(); in getAppsWithRevokedConsent()
208 Set<String> installedPackages = getInstalledPackages(); in getKnownAppsWithConsent()
750 private Set<String> getInstalledPackages() { in getInstalledPackages() method in AppSearchConsentStorageManager
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/
DServiceResourcesHelper.java77 packageManager.getInstalledPackages(PackageManager.MATCH_SYSTEM_ONLY); in getSystemPackageNameBySuffix()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DConfirmClearCacheFragment.java60 final List<PackageInfo> infos = pm.getInstalledPackages(0); in onGuidedActionClicked()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/cobalt/
DCobaltFactoryTest.java92 when(mMockPackageManager.getInstalledPackages(anyInt())).thenReturn(mInstalledPackages); in mockPackageManager()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/logging/
DUsageStatsCollector.java57 .getInstalledPackages(PackageManager.PackageInfoFlags.of(GET_PERMISSIONS)); in UsageStatsCollector()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiPulledAtomLoggerTest.java142 when(mPackageManager.getInstalledPackages(anyInt())).thenReturn(packageInfos); in testWifiMainlineVersionPull_builtFromSource()
166 when(mPackageManager.getInstalledPackages(anyInt())).thenReturn(packageInfos); in testWifiMainlineVersionPull_preBuilt()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/rollback/
DMeasurementRollbackCompatManager.java147 packageManager.getInstalledPackages(PackageManager.MATCH_APEX); in computeApexVersion()
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/
DPackageUtils.java133 context.getPackageManager().getInstalledPackages( in getApexVersion()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPhotoPickerUtils.kt52 val pkgs = context.packageManager.getInstalledPackages(PackageManager.GET_PROVIDERS) in <lambda>()
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DSignaturePermissionAllowlistConfigTest.kt127 .getInstalledPackages(PackageManager.GET_PERMISSIONS) in <lambda>()
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsIndexerImplTest.java106 when(pm.getInstalledPackages(any())).thenThrow(new RuntimeException("fake")); in testAppsIndexerImpl_updateAppsThrowsError_shouldContinueOnError()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/download/
DOnDevicePersonalizationDownloadProcessingJobService.java94 for (PackageInfo packageInfo : this.getPackageManager().getInstalledPackages( in onStartJob()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsBinderTest.java86 List<PackageInfo> apps = pm.getInstalledPackages(0 /* flags */); in getFirstAppUidThat()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DDuplicatePermissionDefinitionsTest.kt92 get() = pm.getInstalledPackages(0).map { it.packageName } in <lambda>()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DMeasurementHttpClient.java136 packageManager.getInstalledPackages(PackageManager.MATCH_APEX); in setAdservicesApexVersion()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/cobalt/
DCobaltFactory.java192 packageManager.getInstalledPackages(PackageManager.MATCH_APEX); in computeApexVersion()

123