Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/
DConsentManagerTest.java111 assertThat(consentManager.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetConsent_unSet()
124 .setConsentApiType(ConsentParcel.ALL_API) in testGetAndSetConsent_null()
128 assertThat(consentManager.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_null()
160 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
161 assertThat(consentManager0.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()
163 consentManager0.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
164 assertThat(consentManager0.getConsent(ConsentParcel.ALL_API).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
189 assertThat(consentManager1.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()
192 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
193 assertThat(consentManager0.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()
[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()
DAppConsentForRStorageManager.java181 if (apiType == AdServicesApiType.ALL_API) { in setConsent()
DConsentManagerV2.java483 return mConsentCompositeStorage.getConsent(AdServicesApiType.ALL_API); in getConsent()
976 adServicesManager.setConsent(AdServicesApiType.ALL_API, consentKey); in migratePpApiConsentToSystemService()
1098 mConsentCompositeStorage.setConsent(AdServicesApiType.ALL_API, isGiven); in setConsentToSourceOfTruth()
1103 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.java490 mAdServicesManager.getConsent(ConsentParcel.ALL_API).isIsGiven()), in getConsent()
1743 .setConsentApiType(ConsentParcel.ALL_API)
1773 return getPerApiConsentFromSystemServer(adServicesManager, ConsentParcel.ALL_API);
2123 adServicesManager.setConsent(getConsentParcel(ConsentParcel.ALL_API, consented));
/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.java429 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsGivenAfterEnabling_AppSearchOnly()
439 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testConsentManager_LazyEnable()
441 .getConsent(ConsentParcel.ALL_API); in testConsentManager_LazyEnable()
457 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testConsentManager_LazyDisabled()
459 .getConsent(ConsentParcel.ALL_API); in testConsentManager_LazyDisabled()
480 spyConsentManager.setPerApiConsentToSourceOfTruth(true, AdServicesApiType.ALL_API); in testConsentManagerPreApi_LazyEnable()
588 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsRevokedAfterDisabling_AppSearchOnly()
1433 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testGetKnownAppsWithConsent_systemServerOnly()
1435 .getConsent(ConsentParcel.ALL_API); in testGetKnownAppsWithConsent_systemServerOnly()
1479 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testGetKnownAppsWithConsent_ppApiAndSystemServer()
[all …]
DConsentManagerTest.java422 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testConsentManager_LazyEnable()
424 .getConsent(ConsentParcel.ALL_API); in testConsentManager_LazyEnable()
440 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testConsentManager_LazyDisabled()
442 .getConsent(ConsentParcel.ALL_API); in testConsentManager_LazyDisabled()
1490 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testGetKnownAppsWithConsent_systemServerOnly()
1492 .getConsent(ConsentParcel.ALL_API); in testGetKnownAppsWithConsent_systemServerOnly()
1536 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testGetKnownAppsWithConsent_ppApiAndSystemServer()
1538 .getConsent(ConsentParcel.ALL_API); in testGetKnownAppsWithConsent_ppApiAndSystemServer()
2061 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)) in testResetAllAppConsentAndAppData_ppApiAndSystemServer()
2063 .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;
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/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.java479 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetConsent_unSet()
494 .setConsentApiType(ConsentParcel.ALL_API) in testGetAndSetConsent_null()
498 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_null()
532 service.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
533 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull()
535 service.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
536 assertThat(service.getConsent(ConsentParcel.ALL_API).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
567 assertThat(service2.getConsent(ConsentParcel.ALL_API).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
592 assertThrows(SecurityException.class, () -> service.getConsent(ConsentParcel.ALL_API)); in testEnforceAdServicesManagerPermission()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentManager.java162 if (consentParcel.getConsentApiType() == ConsentParcel.ALL_API) { in setConsent()
181 mDatastore.put(getConsentApiTypeKey(ConsentParcel.ALL_API), true); in setConsent()
183 mDatastore.put(getConsentApiTypeKey(ConsentParcel.ALL_API), false); in setConsent()