/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | AdServicesApiType.java | 26 FLEDGE, enumConstant 45 case FLEDGE: in toConsentApiType() 46 return ConsentParcel.FLEDGE; in toConsentApiType() 67 case FLEDGE: in toPpApiDatastoreKey() 83 case FLEDGE: in toAppSearchKey()
|
D | ConsentManagerV2.java | 424 if (AdServicesApiType.FLEDGE == apiType) { in enable() 465 || getConsent(AdServicesApiType.FLEDGE).isGiven()) { in areAllApisDisabled() 693 AdServicesApiConsent consent = getConsent(AdServicesApiType.FLEDGE); in isFledgeConsentRevokedForApp() 720 AdServicesApiConsent consent = getConsent(AdServicesApiType.FLEDGE); in isFledgeConsentRevokedForAppAfterSettingFledgeUse() 920 case FLEDGE: in resetByApi() 1261 .setFledgeConsent(consentMap.get(AdServicesApiType.FLEDGE.toPpApiDatastoreKey())) in migrateAppSearchConsents() 1406 && getConsent(AdServicesApiType.FLEDGE).isGiven(); in isPasFledgeConsentGiven()
|
D | ConsentManager.java | 418 if (AdServicesApiType.FLEDGE == apiType) { in enable() 463 || getConsent(AdServicesApiType.FLEDGE).isGiven()) { in areAllApisDisabled() 891 AdServicesApiConsent consent = getConsent(AdServicesApiType.FLEDGE); 952 AdServicesApiConsent consent = getConsent(AdServicesApiType.FLEDGE); 1708 && getConsent(AdServicesApiType.FLEDGE).isGiven()) { 1722 case FLEDGE: 2150 appSearchConsentManager.getConsent(AdServicesApiType.FLEDGE.toPpApiDatastoreKey()); 2151 datastore.put(AdServicesApiType.FLEDGE.toPpApiDatastoreKey(), fledgeConsented); 2153 adServicesManager, AdServicesApiType.FLEDGE.toConsentApiType(), fledgeConsented); 2464 return wasPasNotificationOpened() && getConsent(AdServicesApiType.FLEDGE).isGiven(); [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/ |
D | ConsentManagerTest.java | 113 assertThat(consentManager.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isFalse(); in testGetConsent_unSet() 140 .setConsentApiType(ConsentParcel.FLEDGE) in testGetAndSetConsent_null() 144 assertThat(consentManager.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isFalse(); in testGetAndSetConsent_null() 172 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.FLEDGE)); in testGetAndSetConsent_nonNull() 173 assertThat(consentManager0.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull() 175 consentManager0.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)); in testGetAndSetConsent_nonNull() 176 assertThat(consentManager0.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull() 212 assertThat(consentManager.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isFalse(); in testGetAndSetConsent_upgrade() 217 assertThat(consentManager.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isTrue(); in testGetAndSetConsent_upgrade() 238 consentManager.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.FLEDGE)); in testGetAndSetConsent_downgrade() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | ConsentManagerTest.java | 946 mConsentManager.enable(mSpyContext, AdServicesApiType.FLEDGE); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiOnly() 947 assertTrue(mConsentManager.getConsent(AdServicesApiType.FLEDGE).isGiven()); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiOnly() 949 verify(() -> UiStatsLogger.logOptInSelected(AdServicesApiType.FLEDGE)); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiOnly() 975 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_systemServerOnly() 977 .getConsent(ConsentParcel.FLEDGE); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_systemServerOnly() 979 assertTrue(mConsentManager.getConsent(AdServicesApiType.FLEDGE).isGiven()); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_systemServerOnly() 1028 mConsentManager.enable(mSpyContext, AdServicesApiType.FLEDGE); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly() 1029 verify(() -> UiStatsLogger.logOptInSelected(AdServicesApiType.FLEDGE)); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly() 1053 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiAndSystemServer() 1055 .getConsent(ConsentParcel.FLEDGE); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiAndSystemServer() [all …]
|
D | ConsentManagerV2Test.java | 893 mConsentManager.enable(mSpyContext, AdServicesApiType.FLEDGE); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiOnly() 894 assertTrue(mConsentManager.getConsent(AdServicesApiType.FLEDGE).isGiven()); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiOnly() 896 verify(() -> UiStatsLogger.logOptInSelected(AdServicesApiType.FLEDGE)); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiOnly() 922 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_systemServerOnly() 924 .getConsent(ConsentParcel.FLEDGE); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_systemServerOnly() 926 assertTrue(mConsentManager.getConsent(AdServicesApiType.FLEDGE).isGiven()); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_systemServerOnly() 975 mConsentManager.enable(mSpyContext, AdServicesApiType.FLEDGE); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly() 976 verify(() -> UiStatsLogger.logOptInSelected(AdServicesApiType.FLEDGE)); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly() 1000 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiAndSystemServer() 1002 .getConsent(ConsentParcel.FLEDGE); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled_ppApiAndSystemServer() [all …]
|
D | AdServicesStorageManagerTest.java | 244 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled() 246 .getConsent(ConsentParcel.FLEDGE); in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled() 248 expect.that(mAdServicesStorageManager.getConsent(AdServicesApiType.FLEDGE).isGiven()) in testIsFledgeConsentRevokedForAppWithFullApiConsentGaUxEnabled() 300 doReturn(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)) in testIsFledgeConsentRevokedForNotFoundAppGaUxEnabledThrows() 302 .getConsent(ConsentParcel.FLEDGE); in testIsFledgeConsentRevokedForNotFoundAppGaUxEnabledThrows() 303 expect.that(mAdServicesStorageManager.getConsent(AdServicesApiType.FLEDGE).isGiven()) in testIsFledgeConsentRevokedForNotFoundAppGaUxEnabledThrows()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/app/adservices/consent/ |
D | ConsentParcelTest.java | 20 import static android.app.adservices.consent.ConsentParcel.FLEDGE; 46 new ConsentParcel.Builder().setConsentApiType(FLEDGE).setIsGiven(false).build(); in testConsentParcel() 47 assertThat(consentParcel.getConsentApiType()).isEqualTo(FLEDGE); in testConsentParcel()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewmodels/ |
D | AppsViewModel.java | 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/service-core/src/com/android/adservices/service/customaudience/ |
D | BackgroundFetchJobServiceTest.java | 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()
|
D | BackgroundFetchJobTest.java | 24 import static com.android.adservices.service.consent.AdServicesApiType.FLEDGE; 90 when(mMockConsentManager.getConsent(FLEDGE)).thenReturn(GIVEN); in setup() 133 when(mMockConsentManager.getConsent(FLEDGE)).thenReturn(REVOKED); in testGetJobEnablementStatus_fledgeConsentRevoked()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/enrollment/impl/ |
D | PasReconsentNotificationChannel.java | 56 consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in isEligible() 66 if (!(consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in enroll()
|
D | ConsentNotificationResetChannel.java | 19 import static com.android.adservices.service.consent.AdServicesApiType.FLEDGE; 90 consentManager.disable(context, FLEDGE); in enroll()
|
D | U18DetentionChannel.java | 47 consentManager.disable(context, AdServicesApiType.FLEDGE); in enroll()
|
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/consent/ |
D | ConsentParcel.java | 38 @IntDef(value = {UNKNOWN, ALL_API, TOPICS, FLEDGE, MEASUREMENT}) 52 public static final int FLEDGE = 3; field in ConsentParcel
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | DebugReportSenderJobServiceTest.java | 221 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobGaUxFlagDisabled() 251 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobConsentRevokedGaUxDisabled() 400 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateInterruptedHandled() 433 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateExecutionExceptionHandled() 560 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateSuccess() 587 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobConsentRevokedGaUxEnabled() 617 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateTimeoutHandled()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | BackgroundFetchJob.java | 21 import static com.android.adservices.service.consent.AdServicesApiType.FLEDGE; 82 if (!ConsentManager.getInstance().getConsent(FLEDGE).isGiven()) { in getJobEnablementStatus()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeE2ETest.java | 653 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithMockServerReportsAdCostCpcBillingEnabled() 708 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithMockServerWithDataVersionHeaderEnabled() 793 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithMockServerWithDataVersionHeaderDisabled() 879 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithMockServerReportsAdCostCpcBillingDisabled() 991 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithDevOverridesGaUxEnabled() 1059 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithDevOverridesWithRevokedUserConsentForApp() 1126 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithDevOverridesWithRevokedUserConsentForAppGaUxEnabled() 1797 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithMockServer_preV3BiddingLogic() 1844 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithMockServer_v3BiddingLogic() 1891 .getConsent(AdServicesApiType.FLEDGE); in testFledgeFlowSuccessWithDebugReportingSentImmediately() [all …]
|
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/customaudience/ |
D | CustomAudienceServiceTest.java | 92 .getConsent(eq(AdServicesApiType.FLEDGE)); in testBindableCustomAudienceServiceKillSwitchOffGaUxEnabled() 108 verify(mConsentManagerMock).getConsent(eq(AdServicesApiType.FLEDGE)); in testBindableCustomAudienceServiceKillSwitchOffGaUxEnabled()
|
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/adselection/ |
D | AdSelectionServiceTest.java | 96 .getConsent(eq(AdServicesApiType.FLEDGE)); in testBindableAdSelectionServiceKillSwitchOffGaUxEnabled() 113 verify(mConsentManagerMock).getConsent(eq(AdServicesApiType.FLEDGE)); in testBindableAdSelectionServiceKillSwitchOffGaUxEnabled()
|
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/signals/ |
D | ProtectedSignalsServiceTest.java | 113 .getConsent(eq(AdServicesApiType.FLEDGE)); in testBindableProtectedSignalsServiceKillSwitchOffGaUxEnabled() 129 verify(mConsentManagerMock).getConsent(eq(AdServicesApiType.FLEDGE)); in testBindableProtectedSignalsServiceKillSwitchOffGaUxEnabled()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/ |
D | BackgroundKeyFetchJobServiceTest.java | 127 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobConsentRevokedGaUxDisabled() 179 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobAdSelectionDataKillSwitchOff() 250 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateTimeoutHandled() 279 .getConsent(AdServicesApiType.FLEDGE); in testOnStartJobUpdateExecutionExceptionHandled()
|
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/ |
D | ConsentNotificationTriggerTest.java | 178 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.FLEDGE); in testEuNotification_gaUxFlagEnabled() 243 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.FLEDGE); in testNonEuNotifications_gaUxEnabled() 292 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.FLEDGE); in testEuNotifications_gaUxEnabled_nonDismissable() 378 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.FLEDGE); in testEuNotifications_gaUxEnabled_nonDismissable_dismissedOnConfirmationPage() 647 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.FLEDGE); in testRvcPostOtaNotification() 656 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.FLEDGE); in testRvcPostOtaNotification() 742 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.FLEDGE); in testPasNotifications_PasUxEnabled_FirstNotice() 797 verify(mConsentManager, times(0)).enable(mSpyContext, AdServicesApiType.FLEDGE); in testPasNotifications_PasUxEnabled_RenotifyNotice()
|
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/ |
D | AdServicesManagerServiceTest.java | 481 assertThat(service.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isFalse(); in testGetConsent_unSet() 510 .setConsentApiType(ConsentParcel.FLEDGE) in testGetAndSetConsent_null() 514 assertThat(service.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isFalse(); in testGetAndSetConsent_null() 544 service.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.FLEDGE)); in testGetAndSetConsent_nonNull() 545 assertThat(service.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull() 547 service.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)); in testGetAndSetConsent_nonNull() 548 assertThat(service.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull() 569 assertThat(service2.getConsent(ConsentParcel.FLEDGE).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/notifications/ |
D | ConsentNotificationTrigger.java | 406 return consentManager.getConsent(AdServicesApiType.FLEDGE).isGiven() in isFledgeOrMsmtEnabled() 432 consentManager.disable(context, AdServicesApiType.FLEDGE); in setUpGaConsent() 440 consentManager.enable(context, AdServicesApiType.FLEDGE); in setUpGaConsent()
|