Searched refs:ALL_API (Results 1 – 14 of 14) sorted by relevance
111 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 …]
28 ALL_API, enumConstant49 case ALL_API: in toConsentApiType()50 return ConsentParcel.ALL_API; in toConsentApiType()71 case ALL_API: in toPpApiDatastoreKey()87 case ALL_API: in toAppSearchKey()
181 if (apiType == AdServicesApiType.ALL_API) { in setConsent()
483 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()
607 if (apiType == AdServicesApiType.ALL_API) { in setConsent()643 AdServicesApiType.ALL_API, in setAggregatedConsent()
490 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));
114 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 …]
105 consentCompositeStorage.setConsent(AdServicesApiType.ALL_API, true); in testAllWriteMethods()145 Mockito.verify(consentStorage).setConsent(eq(AdServicesApiType.ALL_API), eq(true)); in verifySetMethodCalled()
429 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 …]
422 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 …]
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()
38 @IntDef(value = {UNKNOWN, ALL_API, TOPICS, FLEDGE, MEASUREMENT})46 public static final int ALL_API = 1; field in ConsentParcel
479 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()
162 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()