/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/ |
D | PackageManagerCompatUtilsTest.java | 74 () -> 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/ |
D | CleanupUtilsTest.java | 33 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/ |
D | AppConsentDaoTest.java | 44 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/ |
D | App.java | 26 import com.android.adservices.service.common.compat.PackageManagerCompatUtils; 56 ai = PackageManagerCompatUtils.getApplicationInfo(packageManager, getPackageName(), 0); in getAppDisplayName()
|
D | AdServicesStorageManager.java | 33 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/ |
D | Applications.java | 24 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/ |
D | CleanupUtils.java | 24 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/ |
D | AdServicesBackCompatInit.java | 39 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()
|
D | AdServicesCommonServiceImpl.java | 85 import com.android.adservices.service.common.compat.PackageManagerCompatUtils; 159 PackageManagerCompatUtils.isAdServicesActivityEnabled(mContext); in isAdServicesEnabled() 349 if (!PackageManagerCompatUtils.isAdServicesActivityEnabled(mContext)) { in enableAdServices()
|
D | PackageChangedReceiver.java | 42 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/ |
D | AppConsentDao.java | 27 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/ |
D | AppConsentStorageManagerTest.java | 45 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()
|
D | AppConsentForRStorageManagerTest.java | 33 import com.android.adservices.service.common.compat.PackageManagerCompatUtils; 46 @SpyStatic(PackageManagerCompatUtils.class)
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/ |
D | DevContextFilter.java | 30 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/ |
D | AppInstallDaoTest.java | 39 import com.android.adservices.service.common.compat.PackageManagerCompatUtils; 71 .mockStatic(PackageManagerCompatUtils.class) in setup() 243 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in testDeleteAllDisallowedPackageEntries()
|
D | AuctionServerAdSelectionDaoTest.java | 29 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/ |
D | PackageManagerCompatUtils.java | 43 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/ |
D | AdServicesBackCompatInitTest.java | 56 import com.android.adservices.service.common.compat.PackageManagerCompatUtils; 289 PackageManagerCompatUtils.CONSENT_ACTIVITIES_CLASSES, in verifyDisablingComponents() 304 PackageManagerCompatUtils.CONSENT_ACTIVITIES_CLASSES, in verifyEnablingComponents()
|
D | AdServicesCommonServiceImplTest.java | 75 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/ |
D | ProtectedSignalsDaoTest.java | 43 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/ |
D | AppSearchConsentManager.java | 36 import com.android.adservices.service.common.compat.PackageManagerCompatUtils; 547 return PackageManagerCompatUtils.getInstalledApplications(mContext.getPackageManager(), 0) in getInstalledPackages()
|
D | AppSearchConsentStorageManager.java | 34 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/ |
D | AppUpdateManager.java | 38 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/ |
D | AppSearchConsentManagerTest.java | 46 import com.android.adservices.service.common.compat.PackageManagerCompatUtils; 68 @SpyStatic(PackageManagerCompatUtils.class) 102 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in setup()
|
D | AppSearchConsentStorageManagerTest.java | 45 import com.android.adservices.service.common.compat.PackageManagerCompatUtils; 69 @SpyStatic(PackageManagerCompatUtils.class) 105 .when(() -> PackageManagerCompatUtils.getInstalledApplications(any(), anyInt())); in setup()
|