Home
last modified time | relevance | path

Searched refs:ALL_API (Results 1 – 7 of 7) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/
DConsentManagerTest.java105 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 …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/app/adservices/consent/
DConsentParcelTest.java19 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()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/
DConsentManagerTest.java692 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 …]
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/consent/
DConsentParcel.java38 @IntDef(value = {UNKNOWN, ALL_API, TOPICS, FLEDGE, MEASUREMENT})
46 public static final int ALL_API = 1; field in ConsentParcel
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/
DAdServicesManagerServiceTest.java456 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()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java149 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()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DConsentManager.java382 mAdServicesManager.getConsent(ConsentParcel.ALL_API); in getConsent()
1846 .setConsentApiType(ConsentParcel.ALL_API) in setConsentToSystemServer()
2216 adServicesManager.setConsent(getConsentParcel(ConsentParcel.ALL_API, consented)); in migrateAppSearchConsents()