/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | AdServicesStorageManager.java | 60 private final AdServicesManager mAdServicesManager; field in AdServicesStorageManager 69 mAdServicesManager = adServicesManager; in AdServicesStorageManager() 96 mAdServicesManager.clearAllAppConsentData(); in clearAllAppConsentData() 102 mAdServicesManager.clearConsentForUninstalledApp(packageName, packageUid); in clearConsentForUninstalledApp() 108 mAdServicesManager.clearConsentForUninstalledApp(packageName, packageUid); in clearConsentForUninstalledApp() 114 mAdServicesManager.clearKnownAppsWithConsent(); in clearKnownAppsWithConsent() 121 mAdServicesManager.getAppsWithRevokedConsent(getInstalledPackages())); in getAppsWithRevokedConsent() 128 ConsentParcel consentParcel = mAdServicesManager.getConsent(consentApiType); in getConsent() 138 if (mAdServicesManager == null in getCurrentPrivacySandboxFeature() 139 || mAdServicesManager.getCurrentPrivacySandboxFeature() == null) { in getCurrentPrivacySandboxFeature() [all …]
|
D | ConsentManager.java | 140 private final AdServicesManager mAdServicesManager; field in ConsentManager 192 mAdServicesManager = adServicesManager; in ConsentManager() 490 mAdServicesManager.getConsent(ConsentParcel.ALL_API).isIsGiven()), in getConsent() 526 mAdServicesManager in getConsent() 661 mAdServicesManager in getKnownAppsWithConsent() 696 mAdServicesManager in getAppsWithRevokedConsent() 730 mAdServicesManager.setConsentForApp( 778 mAdServicesManager.setConsentForApp( 807 () -> mAdServicesManager.clearAllAppConsentData(), 847 () -> mAdServicesManager.clearKnownAppsWithConsent(), [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchConsentManagerTest.java | 84 @Mock private AdServicesManager mAdServicesManager; field in AppSearchConsentManagerTest 341 AdServicesManager mAdServicesManager = mock(AdServicesManager.class); in testShouldInitConsentDataFromAppSearch_notT() local 344 mSharedPrefs, mDatastore, mAdServicesManager, false); in testShouldInitConsentDataFromAppSearch_notT() 355 mSharedPrefs, mDatastore, mAdServicesManager, false); in testShouldInitConsentDataFromAppSearch_flagDisabled() 367 mSharedPrefs, mDatastore, mAdServicesManager, false); in testShouldInitConsentDataFromAppSearch_hasMigrated() 376 when(mAdServicesManager.wasNotificationDisplayed()).thenReturn(true); in testShouldInitConsentDataFromAppSearch_notificationWasDisplayedInSystemServer() 380 mSharedPrefs, mDatastore, mAdServicesManager, false); in testShouldInitConsentDataFromAppSearch_notificationWasDisplayedInSystemServer() 389 when(mAdServicesManager.wasNotificationDisplayed()).thenReturn(false); in testShouldInitConsentDataFromAppSearch_notificationWasDisplayedInPPAPI() 390 when(mAdServicesManager.wasGaUxNotificationDisplayed()).thenReturn(false); in testShouldInitConsentDataFromAppSearch_notificationWasDisplayedInPPAPI() 395 mSharedPrefs, mDatastore, mAdServicesManager, false); in testShouldInitConsentDataFromAppSearch_notificationWasDisplayedInPPAPI() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | BlockedTopicsManagerTest.java | 86 private AdServicesManager mAdServicesManager; field in BlockedTopicsManagerTest 95 mAdServicesManager = new AdServicesManager(mMockIAdServicesManager); in setup() 96 doReturn(mAdServicesManager).when(mSpyContext).getSystemService(AdServicesManager.class); in setup() 446 mayMigratePpApiBlockedTopicsToSystemService(mSpyContext, mTopicsDao, mAdServicesManager); in testMayMigratePpApiBlockedTopicsToSystemService() 451 mayMigratePpApiBlockedTopicsToSystemService(mSpyContext, mTopicsDao, mAdServicesManager); in testMayMigratePpApiBlockedTopicsToSystemService() 493 mSpyContext, mTopicsDao, mAdServicesManager)); in testHandleBlockedTopicsMigrationIfNeeded_PpApiOnly() 497 mSpyContext, mTopicsDao, mAdServicesManager, blockedTopicsSourceOfTruth); in testHandleBlockedTopicsMigrationIfNeeded_PpApiOnly() 504 mSpyContext, mTopicsDao, mAdServicesManager), in testHandleBlockedTopicsMigrationIfNeeded_PpApiOnly() 529 mSpyContext, mTopicsDao, mAdServicesManager)); in testHandleBlockedTopicsMigrationIfNeeded_SystemServerOnly() 533 mSpyContext, mTopicsDao, mAdServicesManager, blockedTopicsSourceOfTruth); in testHandleBlockedTopicsMigrationIfNeeded_SystemServerOnly() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/ |
D | BlockedTopicsManager.java | 83 private final AdServicesManager mAdServicesManager; field in BlockedTopicsManager 103 mAdServicesManager = adServicesManager; in BlockedTopicsManager() 161 mAdServicesManager.recordBlockedTopic( in blockTopic() 166 mAdServicesManager.recordBlockedTopic( in blockTopic() 214 mAdServicesManager.removeBlockedTopic(topic.convertTopicToTopicParcel()); in unblockTopic() 218 mAdServicesManager.removeBlockedTopic(topic.convertTopicToTopicParcel()); in unblockTopic() 265 return mAdServicesManager.retrieveAllBlockedTopics().stream() in retrieveAllBlockedTopics() 313 mAdServicesManager.clearAllBlockedTopics(); in clearAllBlockedTopics()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | AdServicesStorageManagerTest.java | 64 private AdServicesManager mAdServicesManager; field in AdServicesStorageManagerTest 103 mAdServicesManager = new AdServicesManager(mMockIAdServicesManager); in setup() 105 doReturn(mAdServicesManager).when(mSpyContext).getSystemService(AdServicesManager.class); in setup() 109 mAdServicesManager, mSpyContext.getPackageManager())); in setup() 336 mAdServicesManager.clearAllAppConsentData(); in testResetAllAppConsentAndAppData()
|
D | ConsentManagerTest.java | 225 private AdServicesManager mAdServicesManager; field in ConsentManagerTest 261 mAdServicesManager = new AdServicesManager(mMockIAdServicesManager); in setup() 262 doReturn(mAdServicesManager).when(mSpyContext).getSystemService(AdServicesManager.class); in setup() 2533 mSpyContext, mConsentDatastore, mAdServicesManager, mStatsdAdServicesLoggerMock); in testMigratePpApiConsentToSystemService() 2540 mSpyContext, mConsentDatastore, mAdServicesManager, mStatsdAdServicesLoggerMock); in testMigratePpApiConsentToSystemService() 2569 mSpyContext, mConsentDatastore, mAdServicesManager, mStatsdAdServicesLoggerMock); in testMigratePpApiConsentToSystemServiceWithSuccessfulConsentMigrationLogging() 2611 mSpyContext, mConsentDatastore, mAdServicesManager, mStatsdAdServicesLoggerMock); in testMigratePpApiConsentToSystemServiceWithUnSuccessfulConsentMigrationLogging() 2646 mSpyContext, mConsentDatastore, mAdServicesManager, mStatsdAdServicesLoggerMock); in testMigratePpApiConsentToSystemServiceThrowsException() 2672 mSpyContext, mConsentDatastore, mAdServicesManager, mStatsdAdServicesLoggerMock, 2); in testHandleConsentMigrationIfNeeded_ExtServices() 2693 mAdServicesManager, in testHandleConsentMigrationFromAppSearchIfNeeded_ExtServices() [all …]
|
D | ConsentManagerV2Test.java | 221 private AdServicesManager mAdServicesManager; field in ConsentManagerV2Test 282 mAdServicesManager = new AdServicesManager(mMockIAdServicesManager); in setup() 283 doReturn(mAdServicesManager).when(mSpyContext).getSystemService(AdServicesManager.class); in setup() 287 spy(new AdServicesStorageManager(mAdServicesManager, mPackageManager)); in setup()
|
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/ |
D | StubSdkSandboxManagerService.java | 41 private IBinder mAdServicesManager; field in StubSdkSandboxManagerService 125 return mAdServicesManager; in getAdServicesManager()
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/ |
D | SdkSandboxManagerServiceUnitTest.java | 146 @Mock private IBinder mAdServicesManager; field in SdkSandboxManagerServiceUnitTest 1520 mService.registerAdServicesManagerService(mAdServicesManager, /* published= */ false); in testDump_preU_notPublished() 1532 mService.registerAdServicesManagerService(mAdServicesManager, /* published= */ true); in testDump_preU_published() 1537 Mockito.verify(mAdServicesManager, Mockito.never()) in testDump_preU_published() 1545 mService.registerAdServicesManagerService(mAdServicesManager, /* published= */ false); in testDump_atLeastU_notPublished() 1557 mService.registerAdServicesManagerService(mAdServicesManager, /* published= */ true); in testDump_atLeastU_published() 1562 Mockito.verify(mAdServicesManager, Mockito.never()) in testDump_atLeastU_published() 1570 mService.registerAdServicesManagerService(mAdServicesManager, /* published= */ false); in testDump_adServices_preU_notPublished() 1581 mService.registerAdServicesManagerService(mAdServicesManager, /* published= */ true); in testDump_adServices_preU_published() 1590 Mockito.verify(mAdServicesManager, Mockito.never()) in testDump_adServices_preU_published() [all …]
|
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/ |
D | ConsentNotificationTriggerTest.java | 117 private AdServicesManager mAdServicesManager; field in ConsentNotificationTriggerTest 135 doReturn(mAdServicesManager).when(mSpyContext).getSystemService(AdServicesManager.class); in setUp()
|
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/ |
D | SdkSandboxManagerService.java | 144 private IBinder mAdServicesManager; field in SdkSandboxManagerService 1474 return mAdServicesManager; 1482 mAdServicesManager = iBinder;
|