/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | AdServicesApiType.java | 27 MEASUREMENTS, enumConstant 47 case MEASUREMENTS: in toConsentApiType() 69 case MEASUREMENTS: in toPpApiDatastoreKey() 85 case MEASUREMENTS: in toAppSearchKey()
|
D | AppConsentForRStorageManager.java | 104 if (apiType == AdServicesApiType.MEASUREMENTS) { in getConsent() 187 if (apiType != AdServicesApiType.MEASUREMENTS) { in setConsent()
|
D | ConsentManager.java | 462 || 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 …]
|
D | AdExtDataConsentMigrationUtils.java | 189 AdServicesApiType.MEASUREMENTS.toPpApiDatastoreKey(), in migrateAdExtData() 194 AdServicesApiType.MEASUREMENTS.toConsentApiType(), in migrateAdExtData()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/notifications/ |
D | ConsentNotificationTrigger.java | 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() 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/ |
D | MeasurementViewModel.java | 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()
|
D | MainViewModel.java | 129 return mConsentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in getMeasurementConsentFromConsentManager()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/enrollment/impl/ |
D | PasReconsentNotificationChannel.java | 57 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven(); in isEligible() 67 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven())) { in enroll()
|
D | ConsentNotificationResetChannel.java | 20 import static com.android.adservices.service.consent.AdServicesApiType.MEASUREMENTS; 83 consentManager.disable(context, MEASUREMENTS); in enroll()
|
D | RvcPostOTAChannel.java | 51 if (consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()) { in enroll()
|
D | PasFirstConsentNotificationChannel.java | 50 || consentManager.getConsent(AdServicesApiType.MEASUREMENTS).isGiven()); in isEligible()
|
D | AlreadyEnrolledChannel.java | 73 .getConsent(AdServicesApiType.MEASUREMENTS) in isManuallyOptedOutOfPaAndMsmt()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/ |
D | UserConsentAccessResolverTest.java | 76 .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/ |
D | ConsentNotificationTriggerTest.java | 180 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/ |
D | RvcPostOTAChannelTest.java | 118 .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/ |
D | AppConsentForRStorageManagerTest.java | 140 if (apiType == AdServicesApiType.MEASUREMENTS) { in testGetMeasurementConsent() 151 mAppConsentForRStorageManager.setConsent(AdServicesApiType.MEASUREMENTS, true); in testSetMeasurementConsent()
|
D | ConsentManagerTest.java | 463 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 …]
|
D | ConsentManagerV2Test.java | 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() 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/ |
D | AdExtDataConsentMigrationUtilsV2Test.java | 233 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/ |
D | MeasurementServiceTest.java | 133 .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/ |
D | UserConsentAccessResolver.java | 48 mConsentManager.getConsent(AdServicesApiType.MEASUREMENTS); in getAccessInfo()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/ganotifications/ |
D | ConsentNotificationPasFragment.java | 108 && 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/ |
D | BackgroundJobsManager.java | 111 case MEASUREMENTS: in scheduleJobsPerApi() 127 case MEASUREMENTS: in unscheduleJobsPerApi()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/util/ |
D | UxEngineUtil.java | 90 .getConsent(AdServicesApiType.MEASUREMENTS) in startBackgroundTasksUponConsent()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | ReportAndRegisterEventE2ETest.java | 638 .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()
|