Home
last modified time | relevance | path

Searched refs:wasU18NotificationDisplayed (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchConsentManager.java396 || adServicesManager.wasU18NotificationDisplayed()); in shouldInitConsentDataFromAppSearch()
405 boolean wasU18NotificationDisplayed = in shouldInitConsentDataFromAppSearch()
406 isU18AppSearchMigrationEnabled && wasU18NotificationDisplayed(); in shouldInitConsentDataFromAppSearch()
408 wasU18NotificationDisplayed in shouldInitConsentDataFromAppSearch()
465 boolean wasU18NotificationDisplayed = in migrateConsentDataIfNeeded()
466 isU18AppSearchMigrationEnabled && wasU18NotificationDisplayed(); in migrateConsentDataIfNeeded()
476 if (wasU18NotificationDisplayed) { in migrateConsentDataIfNeeded()
482 && !wasU18NotificationDisplayed) { in migrateConsentDataIfNeeded()
594 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) { in setU18NotificationDisplayed() argument
595 mAppSearchConsentWorker.setU18NotificationDisplayed(wasU18NotificationDisplayed); in setU18NotificationDisplayed()
[all …]
DAppSearchConsentStorageManager.java335 boolean wasU18NotificationDisplayed = in migrateConsentDataIfNeeded()
336 isU18AppSearchMigrationEnabled && wasU18NotificationDisplayed(); in migrateConsentDataIfNeeded()
346 if (wasU18NotificationDisplayed) { in migrateConsentDataIfNeeded()
352 && !wasU18NotificationDisplayed) { in migrateConsentDataIfNeeded()
553 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) { in setU18NotificationDisplayed() argument
554 mAppSearchConsentWorker.setU18NotificationDisplayed(wasU18NotificationDisplayed); in setU18NotificationDisplayed()
590 public boolean wasU18NotificationDisplayed() { in wasU18NotificationDisplayed() method in AppSearchConsentStorageManager
591 return mAppSearchConsentWorker.wasU18NotificationDisplayed(); in wasU18NotificationDisplayed()
727 || adServicesManager.wasU18NotificationDisplayed()); in shouldInitConsentDataFromAppSearch()
736 boolean wasU18NotificationDisplayed = in shouldInitConsentDataFromAppSearch()
[all …]
DAppSearchUxStatesDao.java81 boolean wasU18NotificationDisplayed, in AppSearchUxStatesDao() argument
93 this.mWasU18NotificationDisplayed = wasU18NotificationDisplayed; in AppSearchUxStatesDao()
216 public boolean wasU18NotificationDisplayed() { in wasU18NotificationDisplayed() method in AppSearchUxStatesDao
221 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) { in setU18NotificationDisplayed() argument
222 mWasU18NotificationDisplayed = wasU18NotificationDisplayed; in setU18NotificationDisplayed()
389 return dao.wasU18NotificationDisplayed(); in readIsU18NotificationDisplayed()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/
DAdExtDataConsentMigrationUtilsV2Test.java155 when(mAppSearchConsentManagerMock.wasU18NotificationDisplayed()).thenReturn(true); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithNotifOnS_skipsMigration()
164 verify(mAppSearchConsentManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithNotifOnS_skipsMigration()
192 verify(mAppSearchConsentManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithNoNotifOnR_skipsMigration()
228 verify(mAppSearchConsentManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
291 verify(mAppSearchConsentManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
428 when(mAdServicesManagerMock.wasU18NotificationDisplayed()).thenReturn(true); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithNotifOnT_skipsMigration()
437 verify(mAdServicesManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithNotifOnT_skipsMigration()
466 verify(mAdServicesManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithNoNotifOnR_skipsMigration()
503 verify(mAdServicesManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
568 verify(mAdServicesManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
[all …]
DAdExtDataConsentMigrationUtilsTest.java156 when(mAppSearchConsentManagerMock.wasU18NotificationDisplayed()).thenReturn(true); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithNotifOnS_skipsMigration()
165 verify(mAppSearchConsentManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithNotifOnS_skipsMigration()
192 verify(mAppSearchConsentManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithNoNotifOnR_skipsMigration()
228 verify(mAppSearchConsentManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
291 verify(mAppSearchConsentManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
428 when(mAdServicesManagerMock.wasU18NotificationDisplayed()).thenReturn(true); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithNotifOnT_skipsMigration()
437 verify(mAdServicesManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithNotifOnT_skipsMigration()
465 verify(mAdServicesManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithNoNotifOnR_skipsMigration()
502 verify(mAdServicesManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
564 verify(mAdServicesManagerMock).wasU18NotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAppConsentForRStorageManager.java226 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) { in setU18NotificationDisplayed() argument
227 mAdExtDataManager.setNotificationDisplayed(wasU18NotificationDisplayed); in setU18NotificationDisplayed()
244 public boolean wasU18NotificationDisplayed() { in wasU18NotificationDisplayed() method in AppConsentForRStorageManager
DAdServicesStorageManager.java353 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) { in setU18NotificationDisplayed() argument
354 mAdServicesManager.setU18NotificationDisplayed(wasU18NotificationDisplayed); in setU18NotificationDisplayed()
385 public boolean wasU18NotificationDisplayed() { in wasU18NotificationDisplayed() method in AdServicesStorageManager
386 return mAdServicesManager.wasU18NotificationDisplayed(); in wasU18NotificationDisplayed()
DIConsentStorage.java252 void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) throws IOException; in setU18NotificationDisplayed() argument
272 boolean wasU18NotificationDisplayed() throws IOException; in wasU18NotificationDisplayed() method
DAppConsentStorageManager.java389 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) in setU18NotificationDisplayed() argument
392 ConsentConstants.WAS_U18_NOTIFICATION_DISPLAYED, wasU18NotificationDisplayed); in setU18NotificationDisplayed()
419 public boolean wasU18NotificationDisplayed() { in wasU18NotificationDisplayed() method in AppConsentStorageManager
DConsentCompositeStorage.java755 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) { in setU18NotificationDisplayed() argument
758 storage.setU18NotificationDisplayed(wasU18NotificationDisplayed); in setU18NotificationDisplayed()
817 public boolean wasU18NotificationDisplayed() { in wasU18NotificationDisplayed() method in ConsentCompositeStorage
820 return storage.wasU18NotificationDisplayed(); in wasU18NotificationDisplayed()
DAdExtDataConsentMigrationUtils.java289 return adServicesManager.wasU18NotificationDisplayed() in isNotificationShownOnTPlus()
296 return appSearchConsentManager.wasU18NotificationDisplayed() in isNotificationShownOnS()
DConsentManager.java2320 public Boolean wasU18NotificationDisplayed() {
2322 return ConsentManagerV2.getInstance().wasU18NotificationDisplayed();
2327 () -> mAdServicesManager.wasU18NotificationDisplayed(),
2328 () -> mAppSearchConsentManager.wasU18NotificationDisplayed(),
2335 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) {
2337 ConsentManagerV2.getInstance().setU18NotificationDisplayed(wasU18NotificationDisplayed);
2344 wasU18NotificationDisplayed),
2345 () -> mAdServicesManager.setU18NotificationDisplayed(wasU18NotificationDisplayed),
2348 wasU18NotificationDisplayed),
2350 mAdExtDataManager.setNotificationDisplayed(wasU18NotificationDisplayed),
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/
DAlreadyEnrolledChannelTest.java105 doReturn(true).when(mConsentManager).wasU18NotificationDisplayed(); in isEligibleTest_u18UxNotificationAlreadyDisplayed()
135 doReturn(true).when(mConsentManager).wasU18NotificationDisplayed(); in isEligibleTest_alreadyInteracted()
146 doReturn(false).when(mConsentManager).wasU18NotificationDisplayed(); in isEligibleTest_u18UxNotificationNotDisplayed()
DFirstConsentNotificationChannelTest.java88 doReturn(true).when(mConsentManager).wasU18NotificationDisplayed(); in isEligibleTest_u18NotificationAlreadyDisplayed()
102 doReturn(false).when(mConsentManager).wasU18NotificationDisplayed(); in isEligibleTest_noNotificationEverDisplayed()
DPasFirstConsentNotificationChannelTest.java104 doReturn(false).when(mConsentManager).wasU18NotificationDisplayed(); in isEligibleTest_NoManualInteraction_consentRevoked_pas()
123 doReturn(false).when(mConsentManager).wasU18NotificationDisplayed(); in isEligibleTest_hasManualInteraction_consentRevoked_pas()
DPasReconsentNotificationChannelTest.java116 doReturn(false).when(mConsentManager).wasU18NotificationDisplayed(); in isEligibleTest_NoManualInteraction_consentRevoked_pas()
135 doReturn(false).when(mConsentManager).wasU18NotificationDisplayed(); in isEligibleTest_hasManualInteraction_consentRevoked_pas()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/
DUxStatesManagerTest.java240 doReturn(true).when(mMockConsentManager).wasU18NotificationDisplayed(); in isEnrolledUserTest_U18NoticeDisplayed()
254 doReturn(false).when(mMockConsentManager).wasU18NotificationDisplayed(); in isEnrolledUserTest_noNoticeDisplayed()
268 doReturn(true).when(mMockConsentManager).wasU18NotificationDisplayed(); in isEnrolledUserTest_supervisedAccount()
293 doReturn(false).when(mMockConsentManager).wasU18NotificationDisplayed(); in isEnrolledUserTest_supervisedAccount_initial()
316 doReturn(false).when(mMockConsentManager).wasU18NotificationDisplayed(); in isEnrolledUserTest_supervisedAccountFlagDisabled()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentStorageManagerTest.java438 when(mAppSearchConsentWorker.wasU18NotificationDisplayed()).thenReturn(false); in testMigrateConsentData_notificationNotDisplayed_u18MigrationEnabled()
450 when(mAppSearchConsentWorker.wasU18NotificationDisplayed()).thenReturn(true); in testMigrateConsentData_u18UxNotificationDisplayed_u18MigrationEnabled()
655 private void setU18NotificationDisplayedTest(boolean wasU18NotificationDisplayed) { in setU18NotificationDisplayedTest() argument
656 mAppSearchConsentStorageManager.setU18NotificationDisplayed(wasU18NotificationDisplayed); in setU18NotificationDisplayedTest()
657 verify(mAppSearchConsentWorker).setU18NotificationDisplayed(wasU18NotificationDisplayed); in setU18NotificationDisplayedTest()
662 when(mAppSearchConsentWorker.wasU18NotificationDisplayed()).thenReturn(false); in wasU18NotificationDisplayedTest_defaultFalseBit()
663 expect.that(mAppSearchConsentStorageManager.wasU18NotificationDisplayed()).isFalse(); in wasU18NotificationDisplayedTest_defaultFalseBit()
664 verify(mAppSearchConsentWorker).wasU18NotificationDisplayed(); in wasU18NotificationDisplayedTest_defaultFalseBit()
DAppSearchConsentManagerTest.java445 when(mAppSearchConsentWorker.wasU18NotificationDisplayed()).thenReturn(false); in testMigrateConsentData_notificationNotDisplayed_u18MigrationEnabled()
457 when(mAppSearchConsentWorker.wasU18NotificationDisplayed()).thenReturn(true); in testMigrateConsentData_u18UxNotificationDisplayed_u18MigrationEnabled()
652 when(mAppSearchConsentWorker.wasU18NotificationDisplayed()).thenReturn(false); in wasU18NotificationDisplayedTest_defaultFalseBit()
653 assertThat(mAppSearchConsentManager.wasU18NotificationDisplayed()).isFalse(); in wasU18NotificationDisplayedTest_defaultFalseBit()
654 verify(mAppSearchConsentWorker).wasU18NotificationDisplayed(); in wasU18NotificationDisplayedTest_defaultFalseBit()
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/
DIAdServicesManager.aidl247 boolean wasU18NotificationDisplayed(); in wasU18NotificationDisplayed() method
250 void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed); in setU18NotificationDisplayed() argument
DAdServicesManager.java632 public boolean wasU18NotificationDisplayed() { in wasU18NotificationDisplayed() method in AdServicesManager
634 return mService.wasU18NotificationDisplayed(); in wasU18NotificationDisplayed()
642 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) { in setU18NotificationDisplayed() argument
644 mService.setU18NotificationDisplayed(wasU18NotificationDisplayed); in setU18NotificationDisplayed()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DConsentNotifiedAccessResolverTest.java58 doReturn(false).when(mConsentManager).wasU18NotificationDisplayed(); in setup()
81 doReturn(true).when(mConsentManager).wasU18NotificationDisplayed(); in isAllowed_returnsTrueWhenU18UXNotificationDisplayed()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/util/
DUxEngineUtilTest.java360 doReturn(true).when(mConsentManager).wasU18NotificationDisplayed(); in getEligibleEnrollmentChannelTest_gaUxGraduationDisabled()
425 doReturn(true).when(mConsentManager).wasU18NotificationDisplayed(); in getEligibleEnrollmentChannelTest_betaUxU18User()
468 doReturn(true).when(mConsentManager).wasU18NotificationDisplayed(); in getEligibleEnrollmentChannelTest_u18UxNotificationAlreadyDisplayed()
480 doReturn(false).when(mConsentManager).wasU18NotificationDisplayed(); in getEligibleEnrollmentChannelTest_u18UxNotificationNeverDisplayed()
529 doReturn(false).when(mConsentManager).wasU18NotificationDisplayed(); in getEligibleEnrollmentChannelTest_unsupportedUxNotificationNeverDisplayed()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java516 public boolean wasU18NotificationDisplayed() { in wasU18NotificationDisplayed() method in ConsentManager
521 public void setU18NotificationDisplayed(boolean wasU18NotificationDisplayed) in setU18NotificationDisplayed() argument
525 wasU18NotificationDisplayed, in setU18NotificationDisplayed()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java4124 assertThat(spyConsentManager.wasU18NotificationDisplayed()).isFalse(); in wasU18NotificationDisplayedTest_SystemServerOnly()
4126 verify(mMockIAdServicesManager).wasU18NotificationDisplayed(); in wasU18NotificationDisplayedTest_SystemServerOnly()
4128 doReturn(true).when(mMockIAdServicesManager).wasU18NotificationDisplayed(); in wasU18NotificationDisplayedTest_SystemServerOnly()
4131 assertThat(spyConsentManager.wasU18NotificationDisplayed()).isTrue(); in wasU18NotificationDisplayedTest_SystemServerOnly()
4133 verify(mMockIAdServicesManager, times(2)).wasU18NotificationDisplayed(); in wasU18NotificationDisplayedTest_SystemServerOnly()
4144 Boolean wasU18NotificationDisplayed = spyConsentManager.wasU18NotificationDisplayed(); in wasU18NotificationDisplayedTest_PpApiAndSystemServer() local
4146 assertThat(wasU18NotificationDisplayed).isFalse(); in wasU18NotificationDisplayedTest_PpApiAndSystemServer()
4148 verify(mMockIAdServicesManager).wasU18NotificationDisplayed(); in wasU18NotificationDisplayedTest_PpApiAndSystemServer()
4150 doReturn(true).when(mMockIAdServicesManager).wasU18NotificationDisplayed(); in wasU18NotificationDisplayedTest_PpApiAndSystemServer()
4153 assertThat(spyConsentManager.wasU18NotificationDisplayed()).isTrue(); in wasU18NotificationDisplayedTest_PpApiAndSystemServer()
[all …]

12