/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | AdServicesApiType.java | 25 TOPICS, enumConstant 43 case TOPICS: in toConsentApiType() 44 return ConsentParcel.TOPICS; in toConsentApiType() 65 case TOPICS: in toPpApiDatastoreKey() 81 case TOPICS: in toAppSearchKey()
|
D | ConsentManager.java | 461 if (getConsent(AdServicesApiType.TOPICS).isGiven() in areAllApisDisabled() 1706 if (getConsent(AdServicesApiType.TOPICS).isGiven() 1719 case TOPICS: 2145 appSearchConsentManager.getConsent(AdServicesApiType.TOPICS.toPpApiDatastoreKey()); 2146 datastore.put(AdServicesApiType.TOPICS.toPpApiDatastoreKey(), topicsConsented); 2148 adServicesManager, AdServicesApiType.TOPICS.toConsentApiType(), topicsConsented);
|
D | ConsentManagerV2.java | 463 if (getConsent(AdServicesApiType.TOPICS).isGiven() in areAllApisDisabled() 917 case TOPICS: in resetByApi() 1260 .setTopicsConsent(consentMap.get(AdServicesApiType.TOPICS.toPpApiDatastoreKey())) in migrateAppSearchConsents()
|
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/ |
D | ConsentManagerTest.java | 112 assertThat(consentManager.getConsent(ConsentParcel.TOPICS).isIsGiven()).isFalse(); in testGetConsent_unSet() 132 .setConsentApiType(ConsentParcel.TOPICS) in testGetAndSetConsent_null() 136 assertThat(consentManager.getConsent(ConsentParcel.TOPICS).isIsGiven()).isFalse(); in testGetAndSetConsent_null() 166 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.TOPICS)); in testGetAndSetConsent_nonNull() 167 assertThat(consentManager0.getConsent(ConsentParcel.TOPICS).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull() 169 consentManager0.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.TOPICS)); in testGetAndSetConsent_nonNull() 170 assertThat(consentManager0.getConsent(ConsentParcel.TOPICS).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull() 211 assertThat(consentManager.getConsent(ConsentParcel.TOPICS).isIsGiven()).isFalse(); in testGetAndSetConsent_upgrade() 216 assertThat(consentManager.getConsent(ConsentParcel.TOPICS).isIsGiven()).isTrue(); in testGetAndSetConsent_upgrade() 231 consentManager.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.TOPICS)); in testGetAndSetConsent_downgrade() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/app/adservices/consent/ |
D | ConsentParcelTest.java | 22 import static android.app.adservices.consent.ConsentParcel.TOPICS; 41 new ConsentParcel.Builder().setConsentApiType(TOPICS).setIsGiven(false).build(); in testConsentParcel() 42 assertThat(consentParcel.getConsentApiType()).isEqualTo(TOPICS); in testConsentParcel()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewmodels/ |
D | TopicsViewModel.java | 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()
|
D | MainViewModel.java | 133 return mConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven(); in getTopicsConsentFromConsentManager()
|
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/consent/ |
D | ConsentParcel.java | 38 @IntDef(value = {UNKNOWN, ALL_API, TOPICS, FLEDGE, MEASUREMENT}) 49 public static final int TOPICS = 2; field in ConsentParcel
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/enrollment/impl/ |
D | ConsentNotificationResetChannel.java | 21 import static com.android.adservices.service.consent.AdServicesApiType.TOPICS; 89 consentManager.disable(context, TOPICS); in enroll()
|
D | U18DetentionChannel.java | 48 consentManager.disable(context, AdServicesApiType.TOPICS); in enroll()
|
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/ |
D | ConsentNotificationTriggerTest.java | 179 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.TOPICS); in testEuNotification_gaUxFlagEnabled() 242 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.TOPICS); in testNonEuNotifications_gaUxEnabled() 293 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.TOPICS); in testEuNotifications_gaUxEnabled_nonDismissable() 379 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.TOPICS); in testEuNotifications_gaUxEnabled_nonDismissable_dismissedOnConfirmationPage() 648 verify(mConsentManager).disable(mSpyContext, AdServicesApiType.TOPICS); in testRvcPostOtaNotification() 655 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.TOPICS); in testRvcPostOtaNotification() 741 verify(mConsentManager).enable(mSpyContext, AdServicesApiType.TOPICS); in testPasNotifications_PasUxEnabled_FirstNotice() 796 verify(mConsentManager, times(0)).enable(mSpyContext, AdServicesApiType.TOPICS); in testPasNotifications_PasUxEnabled_RenotifyNotice()
|
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/ |
D | AdServicesManagerServiceTest.java | 480 assertThat(service.getConsent(ConsentParcel.TOPICS).isIsGiven()).isFalse(); in testGetConsent_unSet() 502 .setConsentApiType(ConsentParcel.TOPICS) in testGetAndSetConsent_null() 506 assertThat(service.getConsent(ConsentParcel.TOPICS).isIsGiven()).isFalse(); in testGetAndSetConsent_null() 538 service.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.TOPICS)); in testGetAndSetConsent_nonNull() 539 assertThat(service.getConsent(ConsentParcel.TOPICS).isIsGiven()).isFalse(); in testGetAndSetConsent_nonNull() 541 service.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.TOPICS)); in testGetAndSetConsent_nonNull() 542 assertThat(service.getConsent(ConsentParcel.TOPICS).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull() 568 assertThat(service2.getConsent(ConsentParcel.TOPICS).isIsGiven()).isTrue(); in testGetAndSetConsent_nonNull()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | ConsentManagerV2Test.java | 2914 assertThat(mConsentDatastore.get(AdServicesApiType.TOPICS.toPpApiDatastoreKey())).isTrue(); in testHandleConsentMigrationFromAppSearchIfNeeded() 3092 spyConsentManager.enable(mSpyContext, AdServicesApiType.TOPICS); in testConsentPerApiIsGivenAfterEnabling_PpApiOnly() 3094 assertThat(spyConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven()).isTrue(); in testConsentPerApiIsGivenAfterEnabling_PpApiOnly() 3097 eq(/* isGiven */ true), eq(AdServicesApiType.TOPICS)); in testConsentPerApiIsGivenAfterEnabling_PpApiOnly() 3110 isGiven, consentSourceOfTruth, AdServicesApiType.TOPICS.toConsentApiType()); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3112 spyConsentManager.enable(mSpyContext, AdServicesApiType.TOPICS); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3114 assertThat(spyConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven()).isTrue(); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3115 verify(mAdServicesStorageManager).setConsent(eq(AdServicesApiType.TOPICS), eq(isGiven)); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3116 verify(mMockIAdServicesManager, times(2)).getConsent(ConsentParcel.TOPICS); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3130 isGiven, consentSourceOfTruth, AdServicesApiType.TOPICS.toConsentApiType()); in testConsentPerApiIsGivenAfterEnabling_PpApiAndSystemServer() [all …]
|
D | ConsentManagerTest.java | 2985 assertThat(mConsentDatastore.get(AdServicesApiType.TOPICS.toPpApiDatastoreKey())).isTrue(); in testHandleConsentMigrationFromAppSearchIfNeeded() 3166 spyConsentManager.enable(mSpyContext, AdServicesApiType.TOPICS); in testConsentPerApiIsGivenAfterEnabling_PpApiOnly() 3168 assertThat(spyConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven()).isTrue(); in testConsentPerApiIsGivenAfterEnabling_PpApiOnly() 3170 .setConsentPerApiToPpApi(eq(AdServicesApiType.TOPICS), eq(/* isGiven */ true)); in testConsentPerApiIsGivenAfterEnabling_PpApiOnly() 3182 isGiven, consentSourceOfTruth, AdServicesApiType.TOPICS.toConsentApiType()); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3184 spyConsentManager.enable(mSpyContext, AdServicesApiType.TOPICS); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3186 assertThat(spyConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven()).isTrue(); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3191 eq(AdServicesApiType.TOPICS.toConsentApiType()), in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3193 verify(mMockIAdServicesManager).getConsent(ConsentParcel.TOPICS); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly() 3206 isGiven, consentSourceOfTruth, AdServicesApiType.TOPICS.toConsentApiType()); in testConsentPerApiIsGivenAfterEnabling_PpApiAndSystemServer() [all …]
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/ganotifications/ |
D | ConsentNotificationGaV2Screen2Fragment.java | 114 .disable(requireContext(), AdServicesApiType.TOPICS); in setupListeners() 221 ConsentManager.getInstance().enable(requireContext(), AdServicesApiType.TOPICS); in onMoreOrAcceptClicked()
|
D | ConsentNotificationGaFragment.java | 132 .disable(requireContext(), AdServicesApiType.TOPICS); in setupListeners() 263 ConsentManager.getInstance().enable(requireContext(), AdServicesApiType.TOPICS); in onMoreOrAcceptClicked()
|
D | ConsentNotificationConfirmationGaFragment.java | 76 ConsentManager.getInstance().getConsent(AdServicesApiType.TOPICS); in onCreateView()
|
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/topics/ |
D | TopicsServiceTest.java | 99 .getConsent(AdServicesApiType.TOPICS); in testBindableTopicsService_killswitchOff() 161 .getConsent(AdServicesApiType.TOPICS); in testBindableTopicsService_killswitchOffGaUxFeatureFlagOn()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | BackgroundJobsManager.java | 108 case TOPICS: in scheduleJobsPerApi() 124 case TOPICS: in unscheduleJobsPerApi()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/ |
D | MobileDataDownloadTest.java | 482 when(mConsentManager.getConsent(AdServicesApiType.TOPICS)) in testMddTopicsFailsOnConsentRevoked_gaUxEnabled() 506 when(mConsentManager.getConsent(AdServicesApiType.TOPICS)) in testMddTopicsOnConsentGiven_gaUxEnabled() 529 when(mConsentManager.getConsent(AdServicesApiType.TOPICS)) in testOtaOnTopicsConsentGiven_gaUxEnabled() 558 when(mConsentManager.getConsent(AdServicesApiType.TOPICS)) in testOtaFailsOnAggregatedConsentRevoked_gaUxEnabled()
|
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/ |
D | ConsentManager.java | 165 getConsentApiTypeKey(ConsentParcel.TOPICS), consentParcel.isIsGiven()); in setConsent() 173 getConsentApiTypeKey(ConsentParcel.TOPICS), /* defaultValue */ in setConsent()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/notifications/ |
D | ConsentNotificationTrigger.java | 431 consentManager.disable(context, AdServicesApiType.TOPICS); in setUpGaConsent() 439 consentManager.enable(context, AdServicesApiType.TOPICS); in setUpGaConsent()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/ |
D | U18DetentionChannelTest.java | 162 verify(mConsentManager).disable(mContext, AdServicesApiType.TOPICS); in enrollTest_targetingApisDisabled()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/topics/ |
D | TopicsService.java | 109 return ConsentManager.getInstance().getConsent(AdServicesApiType.TOPICS).isGiven(); in hasUserConsent()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/download/ |
D | MobileDataDownloadFactory.java | 292 .getConsent(AdServicesApiType.TOPICS) in getTopicsManifestPopulator() 377 || instance.getConsent(AdServicesApiType.TOPICS).isGiven()
|