Home
last modified time | relevance | path

Searched refs:PackageManagerCompatUtils (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/
DPackageManagerCompatUtilsTest.java74 () -> PackageManagerCompatUtils.getInstalledApplications(null, 0)); in testPackageManagerCompatUtilsValidatesArguments()
78 () -> PackageManagerCompatUtils.getInstalledPackages(null, 0)); in testPackageManagerCompatUtilsValidatesArguments()
82 () -> PackageManagerCompatUtils.getPackageUid(null, "com.example.app", 0)); in testPackageManagerCompatUtilsValidatesArguments()
86 () -> PackageManagerCompatUtils.getPackageUid(mPackageManagerMock, null, 0)); in testPackageManagerCompatUtilsValidatesArguments()
90 () -> PackageManagerCompatUtils.getApplicationInfo(null, "com.example.app", 0)); in testPackageManagerCompatUtilsValidatesArguments()
94 () -> PackageManagerCompatUtils.getApplicationInfo(mPackageManagerMock, null, 0)); in testPackageManagerCompatUtilsValidatesArguments()
106 assertThat(PackageManagerCompatUtils.getInstalledApplications(mPackageManagerMock, flags)) in testGetInstalledApplications_SMinus()
118 assertThat(PackageManagerCompatUtils.getInstalledApplications(mPackageManagerMock, 0)) in testGetInstalledApplications_TPlus()
134 assertThat(PackageManagerCompatUtils.getInstalledPackages(mPackageManagerMock, flags)) in testGetInstalledPackages_SMinus()
146 assertThat(PackageManagerCompatUtils.getInstalledPackages(mPackageManagerMock, 0)) in testGetInstalledPackages_TPlus()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/
DCleanupUtilsTest.java33 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
55 .mockStatic(PackageManagerCompatUtils.class) in setup()
86 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testCleanupNotUninstalled()
107 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testCleanupNotAllowed()
128 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testCleanupMultipleAllowLists()
152 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testCleanupMultipleAllowListsWildCard()
175 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testCleanupMultipleAllowListsRedundant()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/consent/
DAppConsentDaoTest.java44 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
73 .spyStatic(PackageManagerCompatUtils.class) in setup()
350 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testGetKnownAppsWithConsent()
370 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testGetKnownAppsWithConsentNotExistentApp()
396 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testGetAppsWithRevokedConsent()
416 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testGetAppsWithRevokedConsentNonExistentApp()
457 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testClearKnownAppsWithConsent()
556 PackageManagerCompatUtils.getPackageUid( in mockPackageUid()
564 PackageManagerCompatUtils.getPackageUid( in mockThrowExceptionOnGetPackageUid()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DApp.java26 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
56 ai = PackageManagerCompatUtils.getApplicationInfo(packageManager, getPackageName(), 0); in getAppDisplayName()
DAdServicesStorageManager.java33 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
159 return PackageManagerCompatUtils.getInstalledApplications(mPackageManager, 0).stream() in getInstalledPackages()
176 return PackageManagerCompatUtils.getPackageUid(mPackageManager, packageName, 0); in getUidForInstalledPackageName()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/util/
DApplications.java24 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
41 PackageManagerCompatUtils.getInstalledApplications( in getCurrentInstalledApplicationsList()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DCleanupUtils.java24 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
49 PackageManagerCompatUtils.getInstalledApplications(packageManager, 0).stream() in removeAllowedPackages()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAdServicesBackCompatInit.java39 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
172 updateComponents(PackageManagerCompatUtils.CONSENT_ACTIVITIES_CLASSES, shouldEnable); in updateAdExtServicesActivities()
192 PackageManagerCompatUtils.SERVICE_CLASSES_AND_MIN_SDK_SUPPORT_PAIRS.stream() in updateAdExtServicesServices()
DAdServicesCommonServiceImpl.java85 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
159 PackageManagerCompatUtils.isAdServicesActivityEnabled(mContext); in isAdServicesEnabled()
349 if (!PackageManagerCompatUtils.isAdServicesActivityEnabled(mContext)) { in enableAdServices()
DPackageChangedReceiver.java42 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
376 return PackageManagerCompatUtils.getInstalledPackages(packageManager, 0).stream() in isPackageStillInstalled()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/consent/
DAppConsentDao.java27 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
325 return PackageManagerCompatUtils.getPackageUid(mPackageManager, packageName, 0); in getUidForInstalledPackageName()
335 return PackageManagerCompatUtils.getInstalledApplications(mPackageManager, 0).stream() in getInstalledPackages()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DAppConsentStorageManagerTest.java45 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
66 @SpyStatic(PackageManagerCompatUtils.class)
410 PackageManagerCompatUtils.getPackageUid( in mockGetPackageUid()
416 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in mockInstalledApplications()
423 PackageManagerCompatUtils.getPackageUid( in mockThrowExceptionOnGetPackageUid()
DAppConsentForRStorageManagerTest.java33 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
46 @SpyStatic(PackageManagerCompatUtils.class)
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/
DDevContextFilter.java30 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
144 PackageManagerCompatUtils.getApplicationInfo( in isDebuggable()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DAppInstallDaoTest.java39 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
71 .mockStatic(PackageManagerCompatUtils.class) in setup()
243 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testDeleteAllDisallowedPackageEntries()
DAuctionServerAdSelectionDaoTest.java29 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
54 .mockStatic(PackageManagerCompatUtils.class) in setup()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/compat/
DPackageManagerCompatUtils.java43 public final class PackageManagerCompatUtils { class
45 private PackageManagerCompatUtils() { in PackageManagerCompatUtils() method in PackageManagerCompatUtils
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAdServicesBackCompatInitTest.java56 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
289 PackageManagerCompatUtils.CONSENT_ACTIVITIES_CLASSES, in verifyDisablingComponents()
304 PackageManagerCompatUtils.CONSENT_ACTIVITIES_CLASSES, in verifyEnablingComponents()
DAdServicesCommonServiceImplTest.java75 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
104 @SpyStatic(PackageManagerCompatUtils.class)
261 .when(() -> PackageManagerCompatUtils.isAdServicesActivityEnabled(any())); in getAdserviceStatusWithCheckActivityTest()
269 .when(() -> PackageManagerCompatUtils.isAdServicesActivityEnabled(any())); in getAdserviceStatusWithCheckActivityTest()
648 .when(() -> PackageManagerCompatUtils.isAdServicesActivityEnabled(any())); in enableAdServicesTest_extServicesPackage_initializesComponents()
673 .when(() -> PackageManagerCompatUtils.isAdServicesActivityEnabled(any())); in enableAdServicesTest_tPlus_adServicesPackage_skipBackCompatInit()
700 .when(() -> PackageManagerCompatUtils.isAdServicesActivityEnabled(any())); in enableAdServicesTest_activitiesDisabled_skipUxEngine()
723 .when(() -> PackageManagerCompatUtils.isAdServicesActivityEnabled(any())); in enableAdServicesTest_activitiesEnabled_startUxEngine()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/
DProtectedSignalsDaoTest.java43 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
84 .mockStatic(PackageManagerCompatUtils.class) in setup()
372 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testDeleteAllDisallowedPackageSignalsAllAllowed()
405 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testDeleteAllDisallowedPackageSignals()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchConsentManager.java36 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
547 return PackageManagerCompatUtils.getInstalledApplications(mContext.getPackageManager(), 0) in getInstalledPackages()
DAppSearchConsentStorageManager.java34 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
751 return PackageManagerCompatUtils.getInstalledApplications( in getInstalledPackages()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DAppUpdateManager.java38 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
654 PackageManagerCompatUtils.getInstalledApplications( in getCurrentInstalledApps()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentManagerTest.java46 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
68 @SpyStatic(PackageManagerCompatUtils.class)
102 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in setup()
DAppSearchConsentStorageManagerTest.java45 import com.android.adservices.service.common.compat.PackageManagerCompatUtils;
69 @SpyStatic(PackageManagerCompatUtils.class)
105 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in setup()

12