/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/ |
D | PackageManagerCompatUtilsTest.java | 78 () -> 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/ |
D | PackageManagerCompatUtils.java | 114 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/ |
D | DailyLoggingServiceTest.java | 208 .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/ |
D | AppConsentDao.java | 126 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/ |
D | ServiceResourcesHelperTest.java | 97 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/ |
D | ContactsMockPackageManager.java | 102 public List<PackageInfo> getInstalledPackages(int flags) { in getInstalledPackages() method in ContactsMockPackageManager 133 final List<PackageInfo> packages = getInstalledPackages(flags); in queryContentProviders()
|
D | ContactDirectoryManagerTest.java | 307 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/ |
D | AdServicesStorageManager.java | 121 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/ |
D | AppSearchConsentManager.java | 115 Set<String> installedPackages = getInstalledPackages(); in getKnownAppsWithConsent() 135 Set<String> installedPackages = getInstalledPackages(); in getAppsWithRevokedConsent() 546 private Set<String> getInstalledPackages() { in getInstalledPackages() method in AppSearchConsentManager
|
D | AppSearchConsentStorageManager.java | 163 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/ |
D | ServiceResourcesHelper.java | 77 packageManager.getInstalledPackages(PackageManager.MATCH_SYSTEM_ONLY); in getSystemPackageNameBySuffix()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | ConfirmClearCacheFragment.java | 60 final List<PackageInfo> infos = pm.getInstalledPackages(0); in onGuidedActionClicked()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/cobalt/ |
D | CobaltFactoryTest.java | 92 when(mMockPackageManager.getInstalledPackages(anyInt())).thenReturn(mInstalledPackages); in mockPackageManager()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/logging/ |
D | UsageStatsCollector.java | 57 .getInstalledPackages(PackageManager.PackageInfoFlags.of(GET_PERMISSIONS)); in UsageStatsCollector()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiPulledAtomLoggerTest.java | 142 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/ |
D | MeasurementRollbackCompatManager.java | 147 packageManager.getInstalledPackages(PackageManager.MATCH_APEX); in computeApexVersion()
|
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/ |
D | PackageUtils.java | 133 context.getPackageManager().getInstalledPackages( in getApexVersion()
|
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | PhotoPickerUtils.kt | 52 val pkgs = context.packageManager.getInstalledPackages(PackageManager.GET_PROVIDERS) in <lambda>()
|
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/ |
D | SignaturePermissionAllowlistConfigTest.kt | 127 .getInstalledPackages(PackageManager.GET_PERMISSIONS) in <lambda>()
|
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/ |
D | AppsIndexerImplTest.java | 106 when(pm.getInstalledPackages(any())).thenThrow(new RuntimeException("fake")); in testAppsIndexerImpl_updateAppsThrowsError_shouldContinueOnError()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/download/ |
D | OnDevicePersonalizationDownloadProcessingJobService.java | 94 for (PackageInfo packageInfo : this.getPackageManager().getInstalledPackages( in onStartJob()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkStatsBinderTest.java | 86 List<PackageInfo> apps = pm.getInstalledPackages(0 /* flags */); in getFirstAppUidThat()
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | DuplicatePermissionDefinitionsTest.kt | 92 get() = pm.getInstalledPackages(0).map { it.packageName } in <lambda>()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | MeasurementHttpClient.java | 136 packageManager.getInstalledPackages(PackageManager.MATCH_APEX); in setAdservicesApexVersion()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/cobalt/ |
D | CobaltFactory.java | 192 packageManager.getInstalledPackages(PackageManager.MATCH_APEX); in computeApexVersion()
|