Home
last modified time | relevance | path

Searched refs:MEASUREMENTS (Results 1 – 25 of 44) sorted by relevance

12

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesApiType.java27 MEASUREMENTS, enumConstant
47 case MEASUREMENTS: in toConsentApiType()
69 case MEASUREMENTS: in toPpApiDatastoreKey()
85 case MEASUREMENTS: in toAppSearchKey()
DAppConsentForRStorageManager.java104 if (apiType == AdServicesApiType.MEASUREMENTS) { in getConsent()
187 if (apiType != AdServicesApiType.MEASUREMENTS) { in setConsent()
DConsentManager.java462 || getConsent(AdServicesApiType.MEASUREMENTS).isGiven() in areAllApisDisabled()
535 apiType == AdServicesApiType.MEASUREMENTS in getConsent()
1707 && getConsent(AdServicesApiType.MEASUREMENTS).isGiven()
1726 case MEASUREMENTS:
1980 apiType == AdServicesApiType.MEASUREMENTS
1999 if (apiType != AdServicesApiType.MEASUREMENTS) {
2156 AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey());
2157 datastore.put(AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey(), measurementConsented);
2160 AdServicesApiType.MEASUREMENTS.toConsentApiType(),
2484 && getConsent(AdServicesApiType.MEASUREMENTS).isGiven();
[all …]
DAdExtDataConsentMigrationUtils.java189 AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey(), in migrateAdExtData()
194 AdServicesApiType.MEASUREMENTS.toConsentApiType(), in migrateAdExtData()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/notifications/
DConsentNotificationTrigger.java202 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()
407 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in isFledgeOrMsmtEnabled()
433 consentManager.disable(context, AdServicesApiType.MEASUREMENTS); in setUpGaConsent()
441 consentManager.enable(context, AdServicesApiType.MEASUREMENTS); in setUpGaConsent()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewmodels/
DMeasurementViewModel.java88 mConsentManager.enable(getApplication(), AdServicesApiType.MEASUREMENTS); in setMeasurementConsent()
90 mConsentManager.disable(getApplication(), AdServicesApiType.MEASUREMENTS); in setMeasurementConsent()
154 return mConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in getMeasurementConsentFromConsentManager()
DMainViewModel.java129 return mConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in getMeasurementConsentFromConsentManager()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/enrollment/impl/
DPasReconsentNotificationChannel.java57 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in isEligible()
67 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven())) { in enroll()
DConsentNotificationResetChannel.java20 import static com.android.adservices.service.consent.AdServicesApiType.MEASUREMENTS;
83 consentManager.disable(context, MEASUREMENTS); in enroll()
DRvcPostOTAChannel.java51 if (consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()) { in enroll()
DPasFirstConsentNotificationChannel.java50 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()); in isEligible()
DAlreadyEnrolledChannel.java73 .getConsent(AdServicesApiType.MEASUREMENTS) in isManuallyOptedOutOfPaAndMsmt()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DUserConsentAccessResolverTest.java76 .getConsent(eq(AdServicesApiType.MEASUREMENTS)); in isAllowed_consented_gaUxEnabled_success()
89 .getConsent(eq(AdServicesApiType.MEASUREMENTS)); in isAllowed_notConsented_gaUxEnabled_success()
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/
DConsentNotificationTriggerTest.java180 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testEuNotification_gaUxFlagEnabled()
244 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testNonEuNotifications_gaUxEnabled()
294 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testEuNotifications_gaUxEnabled_nonDismissable()
380 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testEuNotifications_gaUxEnabled_nonDismissable_dismissedOnConfirmationPage()
530 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testRvcUxNotification()
533 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testRvcUxNotification()
649 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testRvcPostOtaNotification()
654 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testRvcPostOtaNotification()
743 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testPasNotifications_PasUxEnabled_FirstNotice()
798 verify(mConsentManager, times(0)).enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testPasNotifications_PasUxEnabled_RenotifyNotice()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/
DRvcPostOTAChannelTest.java118 .getConsent(AdServicesApiType.MEASUREMENTS); in enrollTest_optOutMsmt()
132 .getConsent(AdServicesApiType.MEASUREMENTS); in enrollTest_optInMsmt()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DAppConsentForRStorageManagerTest.java140 if (apiType == AdServicesApiType.MEASUREMENTS) { in testGetMeasurementConsent()
151 mAppConsentForRStorageManager.setConsent(AdServicesApiType.MEASUREMENTS, true); in testSetMeasurementConsent()
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()
2987 assertThat(mConsentDatastore.get(AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey())) in testHandleConsentMigrationFromAppSearchIfNeeded()
3256 AdServicesApiType apiType = AdServicesApiType.MEASUREMENTS; in testMeasurementConsentIsGivenAfterEnabling_ppapiAndAdExtDataServiceOnly()
[all …]
DConsentManagerV2Test.java481 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()
2916 assertThat(mConsentDatastore.get(AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey())) in testHandleConsentMigrationFromAppSearchIfNeeded()
3183 AdServicesApiType apiType = AdServicesApiType.MEASUREMENTS; in testMeasurementConsentIsGivenAfterEnabling_ppapiAndAdExtDataServiceOnly()
3187 spyConsentManager.enable(mSpyContext, AdServicesApiType.MEASUREMENTS); in testMeasurementConsentIsGivenAfterEnabling_ppapiAndAdExtDataServiceOnly()
3192 assertThat(spyConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()).isTrue(); in testMeasurementConsentIsGivenAfterEnabling_ppapiAndAdExtDataServiceOnly()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/
DAdExtDataConsentMigrationUtilsV2Test.java233 AdServicesApiType.MEASUREMENTS, in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
296 AdServicesApiType.MEASUREMENTS, in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
508 AdServicesApiType.MEASUREMENTS, in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
574 AdServicesApiType.MEASUREMENTS, in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/measurement/
DMeasurementServiceTest.java133 .getConsent(eq(AdServicesApiType.MEASUREMENTS)); in testBindableMeasurementService_killSwitchOff_gaUxEnabled_consentGiven()
156 .getConsent(eq(AdServicesApiType.MEASUREMENTS)); in testBindableMeasurementService_killSwitchOff_gaUxEnabled_consentRevoked()
205 .getConsent(eq(AdServicesApiType.MEASUREMENTS)); in runWithMocks()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DUserConsentAccessResolver.java48 mConsentManager.getConsent(AdServicesApiType.MEASUREMENTS); in getAccessInfo()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/ganotifications/
DConsentNotificationPasFragment.java108 && consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in onViewCreated()
114 consentManager.enable(requireContext(), AdServicesApiType.MEASUREMENTS); in onViewCreated()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DBackgroundJobsManager.java111 case MEASUREMENTS: in scheduleJobsPerApi()
127 case MEASUREMENTS: in unscheduleJobsPerApi()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/util/
DUxEngineUtil.java90 .getConsent(AdServicesApiType.MEASUREMENTS) in startBackgroundTasksUponConsent()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DReportAndRegisterEventE2ETest.java638 .getConsent(AdServicesApiType.MEASUREMENTS); in testService_ReportingAndRegisteringEnabled_measurementConsentRevoked()
688 .getConsent(AdServicesApiType.MEASUREMENTS); in testService_ReportingAndRegisteringEnabled_noPermissionForARA()
915 .getConsent(AdServicesApiType.MEASUREMENTS); in testService_ReportingAndRegisteringFallbackEnabled_measurementConsentRevoked()
976 .getConsent(AdServicesApiType.MEASUREMENTS); in testService_ReportingAndRegisteringFallbackEnabled_noPermissionForARA()
1120 .getConsent(AdServicesApiType.MEASUREMENTS); in enableMeasurementConsentAndARAPermission()

12