Home
last modified time | relevance | path

Searched refs:NOTIFICATION_DISPLAYED_ONCE (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java48 static final String NOTIFICATION_DISPLAYED_ONCE = "NOTIFICATION-DISPLAYED-ONCE"; field in ConsentManager
122 if (datastore.get(NOTIFICATION_DISPLAYED_ONCE) == null) { in createAndInitBooleanFileDatastore()
123 datastore.put(NOTIFICATION_DISPLAYED_ONCE, false); in createAndInitBooleanFileDatastore()
197 NOTIFICATION_DISPLAYED_ONCE, in recordNotificationDisplayed()
208 return getValueWithLock(NOTIFICATION_DISPLAYED_ONCE); in wasNotificationDisplayed()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DConsentConstants.java24 public static final String NOTIFICATION_DISPLAYED_ONCE = "NOTIFICATION-DISPLAYED-ONCE"; field in ConsentConstants
DAppConsentStorageManager.java302 mDatastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, wasNotificationDisplayed); in recordNotificationDisplayed()
414 mDatastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE), false); in wasNotificationDisplayed()
DConsentManagerV2.java842 if (booleanFileDatastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE) == null) { in createAndInitializeDataStore()
843 booleanFileDatastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, false); in createAndInitializeDataStore()
979 if (Boolean.TRUE.equals(datastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE))) { in migratePpApiConsentToSystemService()
DConsentManager.java1090 ConsentConstants.NOTIFICATION_DISPLAYED_ONCE,
1117 () -> mDatastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE),
1587 if (booleanFileDatastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE) == null) {
1588 booleanFileDatastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, false);
1824 if (Boolean.TRUE.equals(datastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE))) {
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchConsentManager.java398 datastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE) in shouldInitConsentDataFromAppSearch()
469 datastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, true); in migrateConsentDataIfNeeded()
DAppSearchConsentStorageManager.java339 datastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, true); in migrateConsentDataIfNeeded()
729 datastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE) in shouldInitConsentDataFromAppSearch()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java22 import static com.android.adservices.service.consent.ConsentConstants.NOTIFICATION_DISPLAYED_ONCE;
2244 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isFalse(); in testNotificationDisplayedRecorded_SystemServerOnly()
2269 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isTrue(); in testNotificationDisplayedRecorded_PpApiAndSystemServer()
2418 mConsentDatastore.put(NOTIFICATION_DISPLAYED_ONCE, true); in testClearPpApiConsent()
2420 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isTrue(); in testClearPpApiConsent()
2424 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isNull(); in testClearPpApiConsent()
2428 mConsentDatastore.put(NOTIFICATION_DISPLAYED_ONCE, true); in testClearPpApiConsent()
2430 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isTrue(); in testClearPpApiConsent()
2434 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isTrue(); in testClearPpApiConsent()
2447 mConsentDatastore.put(NOTIFICATION_DISPLAYED_ONCE, true); in testMigratePpApiConsentToSystemService()
[all …]
DConsentManagerTest.java24 import static com.android.adservices.service.consent.ConsentConstants.NOTIFICATION_DISPLAYED_ONCE;
2324 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isFalse(); in testNotificationDisplayedRecorded_SystemServerOnly()
2349 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isTrue(); in testNotificationDisplayedRecorded_PpApiAndSystemServer()
2499 mConsentDatastore.put(NOTIFICATION_DISPLAYED_ONCE, true); in testClearPpApiConsent()
2501 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isTrue(); in testClearPpApiConsent()
2505 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isNull(); in testClearPpApiConsent()
2509 mConsentDatastore.put(NOTIFICATION_DISPLAYED_ONCE, true); in testClearPpApiConsent()
2511 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isTrue(); in testClearPpApiConsent()
2515 assertThat(mConsentDatastore.get(NOTIFICATION_DISPLAYED_ONCE)).isTrue(); in testClearPpApiConsent()
2528 mConsentDatastore.put(NOTIFICATION_DISPLAYED_ONCE, true); in testMigratePpApiConsentToSystemService()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/
DConsentManagerTest.java21 import static com.android.server.adservices.consent.ConsentManager.NOTIFICATION_DISPLAYED_ONCE;
103 assertThat(datastore.get(NOTIFICATION_DISPLAYED_ONCE)).isFalse(); in testCreateAndInitBooleanFileDatastore()