/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/ |
D | AppSearchConsentManager.java | 272 public void recordNotificationDisplayed(boolean wasNotificationDisplayed) { in recordNotificationDisplayed() argument 273 mAppSearchConsentWorker.recordNotificationDisplayed(wasNotificationDisplayed); in recordNotificationDisplayed() 281 public Boolean wasNotificationDisplayed() { in wasNotificationDisplayed() method in AppSearchConsentManager 282 return mAppSearchConsentWorker.wasNotificationDisplayed(); in wasNotificationDisplayed() 289 public void recordGaUxNotificationDisplayed(boolean wasNotificationDisplayed) { in recordGaUxNotificationDisplayed() argument 290 mAppSearchConsentWorker.recordGaUxNotificationDisplayed(wasNotificationDisplayed); in recordGaUxNotificationDisplayed() 400 || adServicesManager.wasNotificationDisplayed() in shouldInitConsentDataFromAppSearch() 409 || wasNotificationDisplayed() in shouldInitConsentDataFromAppSearch() 463 boolean wasNotificationDisplayed = wasNotificationDisplayed(); in migrateConsentDataIfNeeded() 468 if (wasNotificationDisplayed) { in migrateConsentDataIfNeeded() [all …]
|
D | AppSearchConsentStorageManager.java | 333 boolean wasNotificationDisplayed = wasNotificationDisplayed(); in migrateConsentDataIfNeeded() 338 if (wasNotificationDisplayed) { in migrateConsentDataIfNeeded() 351 && !wasNotificationDisplayed in migrateConsentDataIfNeeded() 414 public void recordGaUxNotificationDisplayed(boolean wasNotificationDisplayed) { in recordGaUxNotificationDisplayed() argument 415 mAppSearchConsentWorker.recordGaUxNotificationDisplayed(wasNotificationDisplayed); in recordGaUxNotificationDisplayed() 423 public void recordNotificationDisplayed(boolean wasNotificationDisplayed) { in recordNotificationDisplayed() argument 424 mAppSearchConsentWorker.recordNotificationDisplayed(wasNotificationDisplayed); in recordNotificationDisplayed() 584 public boolean wasNotificationDisplayed() { in wasNotificationDisplayed() method in AppSearchConsentStorageManager 585 return mAppSearchConsentWorker.wasNotificationDisplayed(); in wasNotificationDisplayed() 731 || adServicesManager.wasNotificationDisplayed() in shouldInitConsentDataFromAppSearch() [all …]
|
D | AppSearchNotificationDao.java | 80 boolean wasNotificationDisplayed, in AppSearchNotificationDao() argument 85 this.mWasNotificationDisplayed = wasNotificationDisplayed; in AppSearchNotificationDao() 185 public static boolean wasNotificationDisplayed( in wasNotificationDisplayed() method in AppSearchNotificationDao
|
D | AppSearchConsentWorker.java | 313 boolean wasNotificationDisplayed() { in wasNotificationDisplayed() method in AppSearchConsentWorker 316 return AppSearchNotificationDao.wasNotificationDisplayed( in wasNotificationDisplayed() 338 void recordNotificationDisplayed(boolean wasNotificationDisplayed) { in recordNotificationDisplayed() argument 346 /* wasNotificationDisplayed= */ wasNotificationDisplayed, in recordNotificationDisplayed() 356 void recordGaUxNotificationDisplayed(boolean wasNotificationDisplayed) { in recordGaUxNotificationDisplayed() argument 364 /* wasNotificationDisplayed= */ wasNotificationDisplayed(), in recordGaUxNotificationDisplayed() 365 /* wasGaUxNotificationDisplayed= */ wasNotificationDisplayed); in recordGaUxNotificationDisplayed()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/ |
D | ReconsentNotificationChannelTest.java | 96 doReturn(false).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_nonBetaUser() 106 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_nonManualOptOutBetaUser() 121 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_manualOptOutBetaUser() 136 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_unknownOptOutBetaUser() 149 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_nonManualOptInBetaUser() 164 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_manualOptInBetaUser() 179 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_unknownOptInBetaUser()
|
D | FirstConsentNotificationChannelTest.java | 76 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_betaNotificationAlreadyDisplayed() 101 doReturn(false).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_noNotificationEverDisplayed()
|
D | AlreadyEnrolledChannelTest.java | 81 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_betaUxNotificationAlreadyDisplayed() 93 doReturn(false).when(mConsentManager).wasNotificationDisplayed(); in isEligibleTest_betaUxNotificationNotDisplayed()
|
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/ |
D | IAdServicesManager.aidl | 52 void recordNotificationDisplayed(boolean wasNotificationDisplayed); in recordNotificationDisplayed() argument 59 boolean wasNotificationDisplayed(); in wasNotificationDisplayed() method 65 void recordGaUxNotificationDisplayed(boolean wasNotificationDisplayed); in recordGaUxNotificationDisplayed() argument 78 void recordPasNotificationDisplayed(boolean wasNotificationDisplayed); in recordPasNotificationDisplayed() argument
|
D | AdServicesManager.java | 117 public void recordNotificationDisplayed(boolean wasNotificationDisplayed) { in recordNotificationDisplayed() argument 119 mService.recordNotificationDisplayed(wasNotificationDisplayed); in recordNotificationDisplayed() 131 public boolean wasNotificationDisplayed() { in wasNotificationDisplayed() method in AdServicesManager 133 return mService.wasNotificationDisplayed(); in wasNotificationDisplayed() 144 public void recordGaUxNotificationDisplayed(boolean wasNotificationDisplayed) { in recordGaUxNotificationDisplayed() argument 146 mService.recordGaUxNotificationDisplayed(wasNotificationDisplayed); in recordGaUxNotificationDisplayed() 214 public void recordPasNotificationDisplayed(boolean wasNotificationDisplayed) { in recordPasNotificationDisplayed() argument 216 mService.recordPasNotificationDisplayed(wasNotificationDisplayed); in recordPasNotificationDisplayed()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/util/ |
D | UxEngineUtilTest.java | 269 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_gaUxManaulOptInBetaUser() 285 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_gaUxNoManaulOptInBetaUser() 301 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_gaUxUnknownOptInBetaUser() 315 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_gaUxManaulOptOutBetaUser() 331 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_gaUxNoManaulOptOutBetaUser() 347 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_gaUxUnknownOptOutBetaUser() 401 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_betaUxNotificationAlreadyDisplayed() 413 doReturn(false).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_betaUxNotificationNeverDisplayed() 504 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_u18UxBetaUser() 530 doReturn(false).when(mConsentManager).wasNotificationDisplayed(); in getEligibleEnrollmentChannelTest_unsupportedUxNotificationNeverDisplayed()
|
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/ |
D | ConsentManager.java | 195 public void recordNotificationDisplayed(boolean wasNotificationDisplayed) { in recordNotificationDisplayed() argument 198 wasNotificationDisplayed, in recordNotificationDisplayed() 207 public boolean wasNotificationDisplayed() { in wasNotificationDisplayed() method in ConsentManager 215 public void recordGaUxNotificationDisplayed(boolean wasNotificationDisplayed) { in recordGaUxNotificationDisplayed() argument 218 wasNotificationDisplayed, in recordGaUxNotificationDisplayed() 235 public void recordPasNotificationDisplayed(boolean wasNotificationDisplayed) { in recordPasNotificationDisplayed() argument 238 wasNotificationDisplayed, in recordPasNotificationDisplayed()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | AdServicesStorageManager.java | 246 public void recordGaUxNotificationDisplayed(boolean wasNotificationDisplayed) { in recordGaUxNotificationDisplayed() argument 247 mAdServicesManager.recordGaUxNotificationDisplayed(wasNotificationDisplayed); in recordGaUxNotificationDisplayed() 255 public void recordNotificationDisplayed(boolean wasNotificationDisplayed) { in recordNotificationDisplayed() argument 256 mAdServicesManager.recordNotificationDisplayed(wasNotificationDisplayed); in recordNotificationDisplayed() 379 public boolean wasNotificationDisplayed() { in wasNotificationDisplayed() method in AdServicesStorageManager 380 return mAdServicesManager.wasNotificationDisplayed(); in wasNotificationDisplayed()
|
D | AppConsentForRStorageManager.java | 159 public void recordNotificationDisplayed(boolean wasNotificationDisplayed) { in recordNotificationDisplayed() argument 238 public boolean wasNotificationDisplayed() { in wasNotificationDisplayed() method in AppConsentForRStorageManager
|
D | IConsentStorage.java | 174 void recordNotificationDisplayed(boolean wasNotificationDisplayed) throws IOException; in recordNotificationDisplayed() argument 269 boolean wasNotificationDisplayed() throws IOException; in wasNotificationDisplayed() method
|
D | AppConsentStorageManager.java | 300 public void recordNotificationDisplayed(boolean wasNotificationDisplayed) throws IOException { in recordNotificationDisplayed() argument 302 mDatastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, wasNotificationDisplayed); in recordNotificationDisplayed() 412 public boolean wasNotificationDisplayed() { in wasNotificationDisplayed() method in AppConsentStorageManager
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/ |
D | AdExtDataConsentMigrationUtilsV2Test.java | 194 verify(mAppSearchConsentManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithNoNotifOnR_skipsMigration() 230 verify(mAppSearchConsentManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared() 293 verify(mAppSearchConsentManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared() 468 verify(mAdServicesManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithNoNotifOnR_skipsMigration() 505 verify(mAdServicesManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared() 570 verify(mAdServicesManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared() 611 when(mAppSearchConsentManagerMock.wasNotificationDisplayed()).thenReturn(false); in mockNoNotifOnS() 617 when(mAdServicesManagerMock.wasNotificationDisplayed()).thenReturn(false); in mockNoNotifOnT()
|
D | AdExtDataConsentMigrationUtilsTest.java | 194 verify(mAppSearchConsentManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithNoNotifOnR_skipsMigration() 230 verify(mAppSearchConsentManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared() 293 verify(mAppSearchConsentManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared() 467 verify(mAdServicesManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithNoNotifOnR_skipsMigration() 504 verify(mAdServicesManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared() 566 verify(mAdServicesManagerMock).wasNotificationDisplayed(); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared() 604 when(mAppSearchConsentManagerMock.wasNotificationDisplayed()).thenReturn(false); in mockNoNotifOnS() 610 when(mAdServicesManagerMock.wasNotificationDisplayed()).thenReturn(false); in mockNoNotifOnT()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchConsentManagerTest.java | 376 when(mAdServicesManager.wasNotificationDisplayed()).thenReturn(true); in testShouldInitConsentDataFromAppSearch_notificationWasDisplayedInSystemServer() 389 when(mAdServicesManager.wasNotificationDisplayed()).thenReturn(false); in testShouldInitConsentDataFromAppSearch_notificationWasDisplayedInPPAPI() 404 when(mAdServicesManager.wasNotificationDisplayed()).thenReturn(false); in testShouldInitConsentDataFromAppSearch_notificationNotDisplayed() 407 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testShouldInitConsentDataFromAppSearch_notificationNotDisplayed() 430 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testMigrateConsentData_notificationNotDisplayed_u18MigrationDisabled() 443 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testMigrateConsentData_notificationNotDisplayed_u18MigrationEnabled() 458 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testMigrateConsentData_u18UxNotificationDisplayed_u18MigrationEnabled() 480 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testMigrateConsentData() 554 when(mAdServicesManager.wasNotificationDisplayed()).thenReturn(false); in initConsentDataForMigration() 556 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in initConsentDataForMigration()
|
D | AppSearchConsentStorageManagerTest.java | 369 when(mAdServicesStorageManager.wasNotificationDisplayed()).thenReturn(true); in testShouldInitConsentDataFromAppSearch_notificationWasDisplayedInSystemServer() 382 when(mAdServicesStorageManager.wasNotificationDisplayed()).thenReturn(false); in testShouldInitConsentDataFromAppSearch_notificationWasDisplayedInPPAPI() 397 when(mAdServicesStorageManager.wasNotificationDisplayed()).thenReturn(false); in testShouldInitConsentDataFromAppSearch_notificationNotDisplayed() 400 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testShouldInitConsentDataFromAppSearch_notificationNotDisplayed() 423 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testMigrateConsentData_notificationNotDisplayed_u18MigrationDisabled() 436 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testMigrateConsentData_notificationNotDisplayed_u18MigrationEnabled() 451 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testMigrateConsentData_u18UxNotificationDisplayed_u18MigrationEnabled() 473 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in testMigrateConsentData() 549 when(mAdServicesStorageManager.wasNotificationDisplayed()).thenReturn(false); in initConsentDataForMigration() 551 when(mAppSearchConsentWorker.wasNotificationDisplayed()).thenReturn(false); in initConsentDataForMigration()
|
D | AppSearchNotificationDaoTest.java | 126 AppSearchNotificationDao.wasNotificationDisplayed( in testWasNotificationDisplayed_null() 142 AppSearchNotificationDao.wasNotificationDisplayed( in testWasNotificationDisplayed() 156 AppSearchNotificationDao.wasNotificationDisplayed( in testWasNotificationDisplayed()
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/dao/ |
D | AppSearchNotificationDao.java | 39 boolean wasNotificationDisplayed, in AppSearchNotificationDao() argument 44 this.mWasNotificationDisplayed = wasNotificationDisplayed; in AppSearchNotificationDao()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/ |
D | UxStatesManagerTest.java | 228 doReturn(true).when(mMockConsentManager).wasNotificationDisplayed(); in isEnrolledUserTest_betaNoticeDisplayed() 252 doReturn(false).when(mMockConsentManager).wasNotificationDisplayed(); in isEnrolledUserTest_noNoticeDisplayed() 266 doReturn(false).when(mMockConsentManager).wasNotificationDisplayed(); in isEnrolledUserTest_supervisedAccount() 291 doReturn(false).when(mMockConsentManager).wasNotificationDisplayed(); in isEnrolledUserTest_supervisedAccount_initial() 314 doReturn(false).when(mMockConsentManager).wasNotificationDisplayed(); in isEnrolledUserTest_supervisedAccountFlagDisabled()
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/ |
D | AppSearchWriterActivity.java | 95 private void recordGaUxNotificationDisplayed(String userId, boolean wasNotificationDisplayed) { in recordGaUxNotificationDisplayed() argument 106 /* wasNotificationDisplayed= */ wasNotificationDisplayed, in recordGaUxNotificationDisplayed() 107 /* wasGaUxNotificationDisplayed= */ wasNotificationDisplayed); in recordGaUxNotificationDisplayed()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AdServicesCommonServiceImplTest.java | 381 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEntryPointStatusTest() 401 doReturn(false).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEntryPointStatusTest() 422 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEnabledConsentTest_happycase() 441 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEnabledConsentTest_ReconsentGaUxFeatureDisabled() 459 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEnabledConsentTest_ReconsentEUDevice() 476 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEnabledConsentTest_ReconsentGaUxNotificationDisplayed() 498 doReturn(false).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEnabledConsentTest_ReconsentNotificationNotDisplayed() 517 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEnabledConsentTest_ReconsentUserConsentRevoked() 535 doReturn(false).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEnabledConsentTest_FirstConsentHappycase() 552 doReturn(true).when(mConsentManager).wasNotificationDisplayed(); in setAdservicesEnabledConsentTest_FirstConsentGaUxNotificationDisplayed() [all …]
|
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/ |
D | AdServicesManagerService.java | 267 public void recordNotificationDisplayed(boolean wasNotificationDisplayed) { in recordNotificationDisplayed() argument 275 .recordNotificationDisplayed(wasNotificationDisplayed); in recordNotificationDisplayed() 344 public boolean wasNotificationDisplayed() { in wasNotificationDisplayed() method in AdServicesManagerService 348 .wasNotificationDisplayed()); in wasNotificationDisplayed() 353 public void recordGaUxNotificationDisplayed(boolean wasNotificationDisplayed) { in recordGaUxNotificationDisplayed() argument 361 .recordGaUxNotificationDisplayed(wasNotificationDisplayed); in recordGaUxNotificationDisplayed() 522 public void recordPasNotificationDisplayed(boolean wasNotificationDisplayed) { in recordPasNotificationDisplayed() argument 530 .recordPasNotificationDisplayed(wasNotificationDisplayed); in recordPasNotificationDisplayed()
|