Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/
DConsentManagerTest.java141 assertThat(mConsentManager.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetConsent_unset()
150 assertThat(mConsentManager.getConsentNullable(ConsentParcel.ALL_API)).isNull(); in testGetConsentNullable_unset()
160 .setConsentApiType(ConsentParcel.ALL_API) in testGetAndSetConsent_null()
164 assertThat(mConsentManager.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_null()
205 mConsentManager.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_upgrade()
210 mConsentManager.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_upgrade()
220 mConsentManager.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_downgrade()
221 assertThat(mConsentManager.getConsent(ConsentParcel.ALL_API).isIsGiven()).isTrue(); in testGetAndSetConsent_downgrade()
224 assertThat(mConsentManager.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_downgrade()
227 mConsentManager.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_downgrade()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesApiType.java28 ALL_API, enumConstant
49 case ALL_API: in toConsentApiType()
50 return ConsentParcel.ALL_API; in toConsentApiType()
71 case ALL_API: in toPpApiDatastoreKey()
87 case ALL_API: in toAppSearchKey()
DConsentManagerV2.java465 return mConsentCompositeStorage.getConsent(AdServicesApiType.ALL_API); in getConsent()
947 adServicesManager.setConsent(AdServicesApiType.ALL_API, consentKey); in migratePpApiConsentToSystemService()
1072 mConsentCompositeStorage.setConsent(AdServicesApiType.ALL_API, isGiven); in setConsentToSourceOfTruth()
1077 return mConsentCompositeStorage.getConsent(AdServicesApiType.ALL_API).isGiven(); in getConsentFromSourceOfTruth()
DConsentCompositeStorage.java607 if (apiType == AdServicesApiType.ALL_API) { in setConsent()
643 AdServicesApiType.ALL_API, in setAggregatedConsent()
DConsentManager.java552 mAdServicesManager.getConsent(ConsentParcel.ALL_API).isIsGiven()), in getConsent()
1754 .setConsentApiType(ConsentParcel.ALL_API) in setConsentToSystemServer()
1783 return getPerApiConsentFromSystemServer(adServicesManager, ConsentParcel.ALL_API); in getConsentFromSystemServer()
2225 adServicesManager.setConsent(getConsentParcel(ConsentParcel.ALL_API, consented)); in migrateAppSearchConsents()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DAdServicesStorageManagerTest.java114 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testGetKnownAppsWithConsent()
116 .getConsent(ConsentParcel.ALL_API); in testGetKnownAppsWithConsent()
158 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsent()
160 .getConsent(ConsentParcel.ALL_API); in testIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsent()
161 expect.that(mAdServicesStorageManager.getConsent(AdServicesApiType.ALL_API).isGiven()) in testIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsent()
204 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxDisabled()
206 .getConsent(ConsentParcel.ALL_API); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxDisabled()
207 expect.that(mAdServicesStorageManager.getConsent(AdServicesApiType.ALL_API).isGiven()) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxDisabled()
284 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testIsFledgeConsentRevokedForNotFoundAppGaUxDisabledThrows()
286 .getConsent(ConsentParcel.ALL_API); in testIsFledgeConsentRevokedForNotFoundAppGaUxDisabledThrows()
[all …]
DConsentCompositeStorageTest.java105 consentCompositeStorage.setConsent(AdServicesApiType.ALL_API, true); in testAllWriteMethods()
145 Mockito.verify(consentStorage).setConsent(eq(AdServicesApiType.ALL_API), eq(true)); in verifySetMethodCalled()
DConsentManagerV2Test.java436 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsGivenAfterEnabling_AppSearchOnly()
446 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testConsentManager_LazyEnable()
448 .getConsent(ConsentParcel.ALL_API); in testConsentManager_LazyEnable()
464 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testConsentManager_LazyDisabled()
466 .getConsent(ConsentParcel.ALL_API); in testConsentManager_LazyDisabled()
487 spyConsentManager.setPerApiConsentToSourceOfTruth(true, AdServicesApiType.ALL_API); in testConsentManagerPreApi_LazyEnable()
592 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsRevokedAfterDisabling_AppSearchOnly()
1435 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testGetKnownAppsWithConsent_systemServerOnly()
1437 .getConsent(ConsentParcel.ALL_API); in testGetKnownAppsWithConsent_systemServerOnly()
1481 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testGetKnownAppsWithConsent_ppApiAndSystemServer()
[all …]
DConsentManagerTest.java473 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testConsentManager_LazyEnable()
475 .getConsent(ConsentParcel.ALL_API); in testConsentManager_LazyEnable()
491 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testConsentManager_LazyDisabled()
493 .getConsent(ConsentParcel.ALL_API); in testConsentManager_LazyDisabled()
1542 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testGetKnownAppsWithConsent_systemServerOnly()
1544 .getConsent(ConsentParcel.ALL_API); in testGetKnownAppsWithConsent_systemServerOnly()
1588 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testGetKnownAppsWithConsent_ppApiAndSystemServer()
1590 .getConsent(ConsentParcel.ALL_API); in testGetKnownAppsWithConsent_ppApiAndSystemServer()
2075 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testResetAllAppConsentAndAppData_ppApiAndSystemServer()
2077 .getConsent(ConsentParcel.ALL_API); in testResetAllAppConsentAndAppData_ppApiAndSystemServer()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/app/adservices/consent/
DConsentParcelTest.java19 import static android.app.adservices.consent.ConsentParcel.ALL_API;
38 new ConsentParcel.Builder().setConsentApiType(ALL_API).setIsGiven(true).build(); in testConsentParcel()
39 assertThat(consentParcel.getConsentApiType()).isEqualTo(ALL_API); in testConsentParcel()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java199 if (consentParcel.getConsentApiType() == ConsentParcel.ALL_API) { in setConsent()
226 getConsentApiTypeKey(ConsentParcel.ALL_API), true); in setConsent()
229 getConsentApiTypeKey(ConsentParcel.ALL_API), false); in setConsent()
237 if (consentParcel.getConsentApiType() == ConsentParcel.ALL_API) { in setConsent()
258 mDatastore.putBoolean(getConsentApiTypeKey(ConsentParcel.ALL_API), true); in setConsent()
260 mDatastore.putBoolean(getConsentApiTypeKey(ConsentParcel.ALL_API), false); in setConsent()
/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.java488 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetConsent_unSet()
502 .setConsentApiType(ConsentParcel.ALL_API) in testGetAndSetConsent_null()
506 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_null()
539 service.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
540 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()
542 service.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
543 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
573 assertThat(service2.getConsent(ConsentParcel.ALL_API).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
596 assertThrows(SecurityException.class, () -> service.getConsent(ConsentParcel.ALL_API)); in testEnforceAdServicesManagerPermission()