Home
last modified time | relevance | path

Searched refs:MEASUREMENT (Results 1 – 8 of 8) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/
DConsentManagerTest.java114 assertThat(consentManager.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isFalse(); in testGetConsent_unSet()
148 .setConsentApiType(ConsentParcel.MEASUREMENT) in testGetAndSetConsent_null()
152 assertThat(consentManager.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isFalse(); in testGetAndSetConsent_null()
178 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.MEASUREMENT)); in testGetAndSetConsent_nonNull()
179 assertThat(consentManager0.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()
181 consentManager0.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.MEASUREMENT)); in testGetAndSetConsent_nonNull()
182 assertThat(consentManager0.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
213 assertThat(consentManager.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isFalse(); in testGetAndSetConsent_upgrade()
218 assertThat(consentManager.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isTrue(); in testGetAndSetConsent_upgrade()
245 consentManager.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.MEASUREMENT)); in testGetAndSetConsent_downgrade()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/app/adservices/consent/
DConsentParcelTest.java21 import static android.app.adservices.consent.ConsentParcel.MEASUREMENT;
51 new ConsentParcel.Builder().setConsentApiType(MEASUREMENT).setIsGiven(true).build(); in testConsentParcel()
52 assertThat(consentParcel.getConsentApiType()).isEqualTo(MEASUREMENT); in testConsentParcel()
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/consent/
DConsentParcel.java38 @IntDef(value = {UNKNOWN, ALL_API, TOPICS, FLEDGE, MEASUREMENT})
55 public static final int MEASUREMENT = 4; field in ConsentParcel
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/
DAdServicesManagerServiceTest.java482 assertThat(service.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isFalse(); in testGetConsent_unSet()
518 .setConsentApiType(ConsentParcel.MEASUREMENT) in testGetAndSetConsent_null()
522 assertThat(service.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isFalse(); in testGetAndSetConsent_null()
550 service.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.MEASUREMENT)); in testGetAndSetConsent_nonNull()
551 assertThat(service.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()
553 service.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.MEASUREMENT)); in testGetAndSetConsent_nonNull()
554 assertThat(service.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
570 assertThat(service2.getConsent(ConsentParcel.MEASUREMENT).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesApiType.java48 return ConsentParcel.MEASUREMENT; in toConsentApiType()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java169 getConsentApiTypeKey(ConsentParcel.MEASUREMENT), consentParcel.isIsGiven()); in setConsent()
179 getConsentApiTypeKey(ConsentParcel.MEASUREMENT), /* defaultValue */ in setConsent()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java474 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.MEASUREMENT)) in testConsentManagerPreApi_LazyEnable()
476 .getConsent(ConsentParcel.MEASUREMENT); in testConsentManagerPreApi_LazyEnable()
493 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.MEASUREMENT)) in testConsentManagerPreApi_LazyDisabled()
495 .getConsent(ConsentParcel.MEASUREMENT); in testConsentManagerPreApi_LazyDisabled()
DConsentManagerTest.java457 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.MEASUREMENT)) in testConsentManagerPreApi_LazyEnable()
459 .getConsent(ConsentParcel.MEASUREMENT); in testConsentManagerPreApi_LazyEnable()
481 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.MEASUREMENT)) in testConsentManagerPreApi_LazyDisabled()
483 .getConsent(ConsentParcel.MEASUREMENT); in testConsentManagerPreApi_LazyDisabled()