Searched refs:NOTIFICATION_DISPLAYED_ONCE (Results 1 – 10 of 10) sorted by relevance
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/ |
D | ConsentManager.java | 48 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/ |
D | ConsentConstants.java | 24 public static final String NOTIFICATION_DISPLAYED_ONCE = "NOTIFICATION-DISPLAYED-ONCE"; field in ConsentConstants
|
D | AppConsentStorageManager.java | 302 mDatastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, wasNotificationDisplayed); in recordNotificationDisplayed() 414 mDatastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE), false); in wasNotificationDisplayed()
|
D | ConsentManagerV2.java | 842 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()
|
D | ConsentManager.java | 1090 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/ |
D | AppSearchConsentManager.java | 398 datastore.get(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE) in shouldInitConsentDataFromAppSearch() 469 datastore.put(ConsentConstants.NOTIFICATION_DISPLAYED_ONCE, true); in migrateConsentDataIfNeeded()
|
D | AppSearchConsentStorageManager.java | 339 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/ |
D | ConsentManagerV2Test.java | 22 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 …]
|
D | ConsentManagerTest.java | 24 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/ |
D | ConsentManagerTest.java | 21 import static com.android.server.adservices.consent.ConsentManager.NOTIFICATION_DISPLAYED_ONCE; 103 assertThat(datastore.get(NOTIFICATION_DISPLAYED_ONCE)).isFalse(); in testCreateAndInitBooleanFileDatastore()
|