Searched refs:ALL_API (Results 1 – 7 of 7) sorted by relevance
105 assertThat(consentManager.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetConsent_unSet()118 .setConsentApiType(ConsentParcel.ALL_API) in testGetAndSetConsent_null()122 assertThat(consentManager.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_null()154 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()155 assertThat(consentManager0.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()157 consentManager0.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()158 assertThat(consentManager0.getConsent(ConsentParcel.ALL_API).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()183 assertThat(consentManager1.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()186 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()187 assertThat(consentManager0.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()[all …]
19 import static android.app.adservices.consent.ConsentParcel.ALL_API;36 new ConsentParcel.Builder().setConsentApiType(ALL_API).setIsGiven(true).build(); in testConsentParcel()37 assertThat(consentParcel.getConsentApiType()).isEqualTo(ALL_API); in testConsentParcel()
692 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxDisabled_systemServerOnly()694 .getConsent(ConsentParcel.ALL_API); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxDisabled_systemServerOnly()733 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxDisabled_ppApiAndSystemServer()735 .getConsent(ConsentParcel.ALL_API); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxDisabled_ppApiAndSystemServer()937 doReturn(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)) in testIsFledgeConsentRevokedForAppWithoutPrivacySandboxConsentGaUxDisabled_sysServer()939 .getConsent(ConsentParcel.ALL_API); in testIsFledgeConsentRevokedForAppWithoutPrivacySandboxConsentGaUxDisabled_sysServer()955 doReturn(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)) in testIsFledgeConsentRevokedForAppWithoutPrivacySandboxConsentGaUxDisabled_bothSrc()957 .getConsent(ConsentParcel.ALL_API); in testIsFledgeConsentRevokedForAppWithoutPrivacySandboxConsentGaUxDisabled_bothSrc()1047 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testIsFledgeConsentRevokedForNotFoundAppGaUxDisabledThrows_systemServerOnly()1049 .getConsent(ConsentParcel.ALL_API); in testIsFledgeConsentRevokedForNotFoundAppGaUxDisabledThrows_systemServerOnly()[all …]
38 @IntDef(value = {UNKNOWN, ALL_API, TOPICS, FLEDGE, MEASUREMENT})46 public static final int ALL_API = 1; field in ConsentParcel
456 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetConsent_unSet()471 .setConsentApiType(ConsentParcel.ALL_API) in testGetAndSetConsent_null()475 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_null()509 service.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()510 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()512 service.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()513 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()544 assertThat(service2.getConsent(ConsentParcel.ALL_API).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()569 assertThrows(SecurityException.class, () -> service.getConsent(ConsentParcel.ALL_API)); in testEnforceAdServicesManagerPermission()
149 if (consentParcel.getConsentApiType() == ConsentParcel.ALL_API) { in setConsent()168 mDatastore.put(getConsentApiTypeKey(ConsentParcel.ALL_API), true); in setConsent()170 mDatastore.put(getConsentApiTypeKey(ConsentParcel.ALL_API), false); in setConsent()
382 mAdServicesManager.getConsent(ConsentParcel.ALL_API); in getConsent()1846 .setConsentApiType(ConsentParcel.ALL_API) in setConsentToSystemServer()2216 adServicesManager.setConsent(getConsentParcel(ConsentParcel.ALL_API, consented)); in migrateAppSearchConsents()