Home
last modified time | relevance | path

Searched refs:mAdServicesManager (Results 1 – 12 of 12) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesStorageManager.java60 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 …]
DConsentManager.java140 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/
DAppSearchConsentManagerTest.java84 @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/
DBlockedTopicsManagerTest.java86 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/
DBlockedTopicsManager.java83 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/
DAdServicesStorageManagerTest.java64 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()
DConsentManagerTest.java225 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 …]
DConsentManagerV2Test.java221 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/
DStubSdkSandboxManagerService.java41 private IBinder mAdServicesManager; field in StubSdkSandboxManagerService
125 return mAdServicesManager; in getAdServicesManager()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxManagerServiceUnitTest.java146 @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/
DConsentNotificationTriggerTest.java117 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/
DSdkSandboxManagerService.java144 private IBinder mAdServicesManager; field in SdkSandboxManagerService
1474 return mAdServicesManager;
1482 mAdServicesManager = iBinder;