Searched refs:MEASUREMENT (Results 1 – 8 of 8) sorted by relevance
114 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 …]
21 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()
38 @IntDef(value = {UNKNOWN, ALL_API, TOPICS, FLEDGE, MEASUREMENT})55 public static final int MEASUREMENT = 4; field in ConsentParcel
482 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()
48 return ConsentParcel.MEASUREMENT; in toConsentApiType()
169 getConsentApiTypeKey(ConsentParcel.MEASUREMENT), consentParcel.isIsGiven()); in setConsent()179 getConsentApiTypeKey(ConsentParcel.MEASUREMENT), /* defaultValue */ in setConsent()
474 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()
457 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()