Home
last modified time | relevance | path

Searched refs:AdServicesApiType (Results 1 – 25 of 89) sorted by relevance

1234

/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/notifications/
DConsentNotificationTrigger.java44 import com.android.adservices.service.consent.AdServicesApiType;
202 consentManager.enable(context, AdServicesApiType.MEASUREMENTS); in setupConsents()
207 consentManager.disable(context, AdServicesApiType.MEASUREMENTS); in setupConsents()
210 consentManager.enable(context, AdServicesApiType.MEASUREMENTS); in setupConsents()
251 && consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in isOtaRvcMsmtEnabledUser()
406 return consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in isFledgeOrMsmtEnabled()
407 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in isFledgeOrMsmtEnabled()
431 consentManager.disable(context, AdServicesApiType.TOPICS); in setUpGaConsent()
432 consentManager.disable(context, AdServicesApiType.FLEDGE); in setUpGaConsent()
433 consentManager.disable(context, AdServicesApiType.MEASUREMENTS); in setUpGaConsent()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/enrollment/impl/
DPasReconsentNotificationChannel.java28 import com.android.adservices.service.consent.AdServicesApiType;
56 consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in isEligible()
57 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in isEligible()
66 if (!(consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in enroll()
67 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven())) { in enroll()
DU18DetentionChannel.java25 import com.android.adservices.service.consent.AdServicesApiType;
47 consentManager.disable(context, AdServicesApiType.FLEDGE); in enroll()
48 consentManager.disable(context, AdServicesApiType.TOPICS); in enroll()
DPasFirstConsentNotificationChannel.java27 import com.android.adservices.service.consent.AdServicesApiType;
49 (consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in isEligible()
50 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()); in isEligible()
DAlreadyEnrolledChannel.java29 import com.android.adservices.service.consent.AdServicesApiType;
70 .getConsent(AdServicesApiType.FLEDGE) in isManuallyOptedOutOfPaAndMsmt()
73 .getConsent(AdServicesApiType.MEASUREMENTS) in isManuallyOptedOutOfPaAndMsmt()
DConsentNotificationResetChannel.java19 import static com.android.adservices.service.consent.AdServicesApiType.FLEDGE;
20 import static com.android.adservices.service.consent.AdServicesApiType.MEASUREMENTS;
21 import static com.android.adservices.service.consent.AdServicesApiType.TOPICS;
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java429 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsGivenAfterEnabling_AppSearchOnly()
480 spyConsentManager.setPerApiConsentToSourceOfTruth(true, AdServicesApiType.ALL_API); in testConsentManagerPreApi_LazyEnable()
481 spyConsentManager.enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testConsentManagerPreApi_LazyEnable()
482 assertThat(spyConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()).isTrue(); in testConsentManagerPreApi_LazyEnable()
483 verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyEnable()
498 spyConsentManager.enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testConsentManagerPreApi_LazyDisabled()
499 assertThat(spyConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()).isTrue(); in testConsentManagerPreApi_LazyDisabled()
501 verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyDisabled()
588 verify(mAppSearchConsentManagerMock, atLeastOnce()).getConsent(AdServicesApiType.ALL_API); in testConsentIsRevokedAfterDisabling_AppSearchOnly()
893 mConsentManager.enable(mSpyContext, AdServicesApiType.FLEDGE); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiOnly()
[all …]
DConsentManagerTest.java463 spyConsentManager.enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testConsentManagerPreApi_LazyEnable()
464 assertThat(spyConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()).isTrue(); in testConsentManagerPreApi_LazyEnable()
469 eq(AdServicesApiType.MEASUREMENTS.toConsentApiType()), in testConsentManagerPreApi_LazyEnable()
472 verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyEnable()
486 spyConsentManager.enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testConsentManagerPreApi_LazyDisabled()
487 assertThat(spyConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()).isTrue(); in testConsentManagerPreApi_LazyDisabled()
493 eq(AdServicesApiType.MEASUREMENTS.toConsentApiType()), in testConsentManagerPreApi_LazyDisabled()
495 verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS)); in testConsentManagerPreApi_LazyDisabled()
946 mConsentManager.enable(mSpyContext, AdServicesApiType.FLEDGE); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiOnly()
947 assertTrue(mConsentManager.getConsent(AdServicesApiType.FLEDGE).isGiven()); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiOnly()
[all …]
DAppConsentForRStorageManagerTest.java138 for (AdServicesApiType apiType : AdServicesApiType.values()) { in testGetMeasurementConsent()
140 if (apiType == AdServicesApiType.MEASUREMENTS) { in testGetMeasurementConsent()
151 mAppConsentForRStorageManager.setConsent(AdServicesApiType.MEASUREMENTS, true); in testSetMeasurementConsent()
214 () -> mAppConsentForRStorageManager.setConsent(AdServicesApiType.FLEDGE, true)); in testSetMeasurementConsentException()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DConsentManagerV2.java404 public void enable(@NonNull Context context, AdServicesApiType apiType) { in enable()
424 if (AdServicesApiType.FLEDGE == apiType) { in enable()
441 public void disable(@NonNull Context context, AdServicesApiType apiType) { in disable()
463 if (getConsent(AdServicesApiType.TOPICS).isGiven() in areAllApisDisabled()
464 || getConsent(AdServicesApiType.MEASUREMENTS).isGiven() in areAllApisDisabled()
465 || getConsent(AdServicesApiType.FLEDGE).isGiven()) { in areAllApisDisabled()
483 return mConsentCompositeStorage.getConsent(AdServicesApiType.ALL_API); in getConsent()
493 public AdServicesApiConsent getConsent(AdServicesApiType apiType) { in getConsent()
693 AdServicesApiConsent consent = getConsent(AdServicesApiType.FLEDGE); in isFledgeConsentRevokedForApp()
720 AdServicesApiConsent consent = getConsent(AdServicesApiType.FLEDGE); in isFledgeConsentRevokedForAppAfterSettingFledgeUse()
[all …]
DAdServicesApiType.java24 public enum AdServicesApiType { enum
95 public static AdServicesApiType fromPpApiDatastoreKey(String ppApiDatastoreKey) { in fromPpApiDatastoreKey()
96 for (AdServicesApiType apiType : AdServicesApiType.values()) { in fromPpApiDatastoreKey()
DAppConsentForRStorageManager.java103 public AdServicesApiConsent getConsent(AdServicesApiType apiType) { in getConsent()
104 if (apiType == AdServicesApiType.MEASUREMENTS) { in getConsent()
180 public void setConsent(AdServicesApiType apiType, boolean isGiven) throws IOException { in setConsent()
181 if (apiType == AdServicesApiType.ALL_API) { in setConsent()
187 if (apiType != AdServicesApiType.MEASUREMENTS) { in setConsent()
DConsentManager.java394 public void enable(@NonNull Context context, AdServicesApiType apiType) { in enable()
418 if (AdServicesApiType.FLEDGE == apiType) { in enable()
435 public void disable(@NonNull Context context, AdServicesApiType apiType) { in disable()
461 if (getConsent(AdServicesApiType.TOPICS).isGiven() in areAllApisDisabled()
462 || getConsent(AdServicesApiType.MEASUREMENTS).isGiven() in areAllApisDisabled()
463 || getConsent(AdServicesApiType.FLEDGE).isGiven()) { in areAllApisDisabled()
511 public AdServicesApiConsent getConsent(AdServicesApiType apiType) { in getConsent()
535 apiType == AdServicesApiType.MEASUREMENTS in getConsent()
891 AdServicesApiConsent consent = getConsent(AdServicesApiType.FLEDGE);
952 AdServicesApiConsent consent = getConsent(AdServicesApiType.FLEDGE);
[all …]
DConsentCompositeStorage.java202 public AdServicesApiConsent getConsent(AdServicesApiType apiType) { in getConsent()
605 public void setConsent(AdServicesApiType apiType, boolean isGiven) { in setConsent()
607 if (apiType == AdServicesApiType.ALL_API) { in setConsent()
613 private void setConsentToApiType(AdServicesApiType apiType, boolean isGiven) { in setConsentToApiType()
643 AdServicesApiType.ALL_API, in setAggregatedConsent()
644 getConsent(AdServicesApiType.TOPICS).isGiven() in setAggregatedConsent()
645 && getConsent(AdServicesApiType.MEASUREMENTS).isGiven() in setAggregatedConsent()
646 && getConsent(AdServicesApiType.FLEDGE).isGiven()); in setAggregatedConsent()
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/
DConsentNotificationTriggerTest.java75 import com.android.adservices.service.consent.AdServicesApiType;
178 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.FLEDGE); in testEuNotification_gaUxFlagEnabled()
179 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.TOPICS); in testEuNotification_gaUxFlagEnabled()
180 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testEuNotification_gaUxFlagEnabled()
242 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.TOPICS); in testNonEuNotifications_gaUxEnabled()
243 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.FLEDGE); in testNonEuNotifications_gaUxEnabled()
244 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testNonEuNotifications_gaUxEnabled()
292 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.FLEDGE); in testEuNotifications_gaUxEnabled_nonDismissable()
293 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.TOPICS); in testEuNotifications_gaUxEnabled_nonDismissable()
294 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testEuNotifications_gaUxEnabled_nonDismissable()
[all …]
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewmodels/
DMainViewModel.java30 import com.android.adservices.service.consent.AdServicesApiType;
129 return mConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in getMeasurementConsentFromConsentManager()
133 return mConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven(); in getTopicsConsentFromConsentManager()
137 return mConsentManager.getConsent(AdServicesApiType.FLEDGE).isGiven(); in getAppsConsentFromConsentManager()
DMeasurementViewModel.java30 import com.android.adservices.service.consent.AdServicesApiType;
88 mConsentManager.enable(getApplication(), AdServicesApiType.MEASUREMENTS); in setMeasurementConsent()
90 mConsentManager.disable(getApplication(), AdServicesApiType.MEASUREMENTS); in setMeasurementConsent()
154 return mConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in getMeasurementConsentFromConsentManager()
DTopicsViewModel.java31 import com.android.adservices.service.consent.AdServicesApiType;
195 mConsentManager.enable(getApplication(), AdServicesApiType.TOPICS); in setTopicsConsent()
197 mConsentManager.disable(getApplication(), AdServicesApiType.TOPICS); in setTopicsConsent()
221 return mConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven(); in getTopicsConsentFromConsentManager()
DAppsViewModel.java30 import com.android.adservices.service.consent.AdServicesApiType;
195 mConsentManager.enable(getApplication(), AdServicesApiType.FLEDGE); in setAppsConsent()
197 mConsentManager.disable(getApplication(), AdServicesApiType.FLEDGE); in setAppsConsent()
221 return mConsentManager.getConsent(AdServicesApiType.FLEDGE).isGiven(); in getAppsConsentFromConsentManager()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/
DUxStatesManagerTest.java37 import com.android.adservices.service.consent.AdServicesApiType;
276 .enable(any(Context.class), any(AdServicesApiType.class)); in isEnrolledUserTest_supervisedAccount()
283 .enable(any(Context.class), any(AdServicesApiType.class)); in isEnrolledUserTest_supervisedAccount()
301 .enable(any(Context.class), any(AdServicesApiType.class)); in isEnrolledUserTest_supervisedAccount_initial()
306 verify(mMockConsentManager).enable(any(Context.class), any(AdServicesApiType.class)); in isEnrolledUserTest_supervisedAccount_initial()
324 .enable(any(Context.class), any(AdServicesApiType.class)); in isEnrolledUserTest_supervisedAccountFlagDisabled()
331 .enable(any(Context.class), any(AdServicesApiType.class)); in isEnrolledUserTest_supervisedAccountFlagDisabled()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/
DU18DetentionChannelTest.java33 import com.android.adservices.service.consent.AdServicesApiType;
161 verify(mConsentManager).disable(mContext, AdServicesApiType.FLEDGE); in enrollTest_targetingApisDisabled()
162 verify(mConsentManager).disable(mContext, AdServicesApiType.TOPICS); in enrollTest_targetingApisDisabled()
163 verify(mConsentManager, never()).disable(mContext, AdServicesApiType.MEASUREMENTS); in enrollTest_targetingApisDisabled()
DRvcPostOTAChannelTest.java34 import com.android.adservices.service.consent.AdServicesApiType;
118 .getConsent(AdServicesApiType.MEASUREMENTS); in enrollTest_optOutMsmt()
132 .getConsent(AdServicesApiType.MEASUREMENTS); in enrollTest_optInMsmt()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DUserConsentAccessResolverTest.java32 import com.android.adservices.service.consent.AdServicesApiType;
76 .getConsent(eq(AdServicesApiType.MEASUREMENTS)); in isAllowed_consented_gaUxEnabled_success()
89 .getConsent(eq(AdServicesApiType.MEASUREMENTS)); in isAllowed_notConsented_gaUxEnabled_success()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DBackgroundFetchJobServiceTest.java62 import com.android.adservices.service.consent.AdServicesApiType;
175 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobConsentRevokedGaUxDisabled()
333 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateInterruptedHandled()
365 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateExecutionExceptionHandled()
517 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobCustomAudienceKillSwitchOff()
599 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateSuccess()
627 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateTimeoutHandled()
630 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateTimeoutHandled()
657 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobConsentRevokedGaUxEnabled()
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/customaudience/
DCustomAudienceServiceTest.java42 import com.android.adservices.service.consent.AdServicesApiType;
92 .getConsent(eq(AdServicesApiType.FLEDGE)); in testBindableCustomAudienceServiceKillSwitchOffGaUxEnabled()
108 verify(mConsentManagerMock).getConsent(eq(AdServicesApiType.FLEDGE)); in testBindableCustomAudienceServiceKillSwitchOffGaUxEnabled()

1234