Home
last modified time | relevance | path

Searched refs:CONSENT_KEY (Results 1 – 5 of 5) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DConsentConstants.java42 public static final String CONSENT_KEY = "CONSENT"; field in ConsentConstants
DConsentManager.java487 () -> AdServicesApiConsent.getConsent(mDatastore.get(ConsentConstants.CONSENT_KEY)), in getConsent()
1673 mDatastore.put(ConsentConstants.CONSENT_KEY, isGiven);
1683 return mDatastore.get(ConsentConstants.CONSENT_KEY);
1816 Boolean consentKey = Boolean.TRUE.equals(datastore.get(ConsentConstants.CONSENT_KEY));
2121 boolean consented = appSearchConsentManager.getConsent(ConsentConstants.CONSENT_KEY);
2122 datastore.put(ConsentConstants.CONSENT_KEY, consented);
DConsentManagerV2.java972 Boolean consentKey = Boolean.TRUE.equals(datastore.get(ConsentConstants.CONSENT_KEY)); in migratePpApiConsentToSystemService()
1369 mDatastore.put(ConsentConstants.CONSENT_KEY, isGiven); in setConsentToPpApi()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java19 import static com.android.adservices.service.consent.ConsentConstants.CONSENT_KEY;
2417 mConsentDatastore.put(CONSENT_KEY, true); in testClearPpApiConsent()
2419 assertThat(mConsentDatastore.get(CONSENT_KEY)).isTrue(); in testClearPpApiConsent()
2423 assertThat(mConsentDatastore.get(CONSENT_KEY)).isNull(); in testClearPpApiConsent()
2427 mConsentDatastore.put(CONSENT_KEY, true); in testClearPpApiConsent()
2429 assertThat(mConsentDatastore.get(CONSENT_KEY)).isTrue(); in testClearPpApiConsent()
2433 assertThat(mConsentDatastore.get(CONSENT_KEY)).isTrue(); in testClearPpApiConsent()
2446 mConsentDatastore.put(CONSENT_KEY, true); in testMigratePpApiConsentToSystemService()
2448 assertThat(mConsentDatastore.get(CONSENT_KEY)).isTrue(); in testMigratePpApiConsentToSystemService()
2479 mConsentDatastore.put(CONSENT_KEY, true); in testMigratePpApiConsentToSystemServiceWithSuccessfulConsentMigrationLogging()
[all …]
DConsentManagerTest.java19 import static com.android.adservices.service.consent.ConsentConstants.CONSENT_KEY;
2498 mConsentDatastore.put(CONSENT_KEY, true); in testClearPpApiConsent()
2500 assertThat(mConsentDatastore.get(CONSENT_KEY)).isTrue(); in testClearPpApiConsent()
2504 assertThat(mConsentDatastore.get(CONSENT_KEY)).isNull(); in testClearPpApiConsent()
2508 mConsentDatastore.put(CONSENT_KEY, true); in testClearPpApiConsent()
2510 assertThat(mConsentDatastore.get(CONSENT_KEY)).isTrue(); in testClearPpApiConsent()
2514 assertThat(mConsentDatastore.get(CONSENT_KEY)).isTrue(); in testClearPpApiConsent()
2527 mConsentDatastore.put(CONSENT_KEY, true); in testMigratePpApiConsentToSystemService()
2529 assertThat(mConsentDatastore.get(CONSENT_KEY)).isTrue(); in testMigratePpApiConsentToSystemService()
2554 mConsentDatastore.put(CONSENT_KEY, true); in testMigratePpApiConsentToSystemServiceWithSuccessfulConsentMigrationLogging()
[all …]