Searched refs:ALL_API (Results 1 – 13 of 13) sorted by relevance
141 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 …]
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()
465 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()
607 if (apiType == AdServicesApiType.ALL_API) { in setConsent()643 AdServicesApiType.ALL_API, in setAggregatedConsent()
552 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()
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()
436 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 …]
473 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 …]
19 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()
199 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()
38 @IntDef(value = {UNKNOWN, ALL_API, TOPICS, FLEDGE, MEASUREMENT})46 public static final int ALL_API = 1; field in ConsentParcel
488 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()