Home
last modified time | relevance | path

Searched refs:TOPICS (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdServicesApiType.java25 TOPICS, enumConstant
43 case TOPICS: in toConsentApiType()
44 return ConsentParcel.TOPICS; in toConsentApiType()
65 case TOPICS: in toPpApiDatastoreKey()
81 case TOPICS: in toAppSearchKey()
DConsentManager.java461 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);
DConsentManagerV2.java463 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/
DConsentManagerTest.java112 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/
DConsentParcelTest.java22 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/
DTopicsViewModel.java195 mConsentManager.enable(getApplication(), AdServicesApiType.TOPICS); in setTopicsConsent()
197 mConsentManager.disable(getApplication(), AdServicesApiType.TOPICS); in setTopicsConsent()
221 return mConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven(); in getTopicsConsentFromConsentManager()
DMainViewModel.java133 return mConsentManager.getConsent(AdServicesApiType.TOPICS).isGiven(); in getTopicsConsentFromConsentManager()
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/consent/
DConsentParcel.java38 @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/
DConsentNotificationResetChannel.java21 import static com.android.adservices.service.consent.AdServicesApiType.TOPICS;
89 consentManager.disable(context, TOPICS); in enroll()
DU18DetentionChannel.java48 consentManager.disable(context, AdServicesApiType.TOPICS); in enroll()
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/
DConsentNotificationTriggerTest.java179 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/
DAdServicesManagerServiceTest.java480 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/
DConsentManagerV2Test.java2914 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 …]
DConsentManagerTest.java2985 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/
DConsentNotificationGaV2Screen2Fragment.java114 .disable(requireContext(), AdServicesApiType.TOPICS); in setupListeners()
221 ConsentManager.getInstance().enable(requireContext(), AdServicesApiType.TOPICS); in onMoreOrAcceptClicked()
DConsentNotificationGaFragment.java132 .disable(requireContext(), AdServicesApiType.TOPICS); in setupListeners()
263 ConsentManager.getInstance().enable(requireContext(), AdServicesApiType.TOPICS); in onMoreOrAcceptClicked()
DConsentNotificationConfirmationGaFragment.java76 ConsentManager.getInstance().getConsent(AdServicesApiType.TOPICS); in onCreateView()
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/topics/
DTopicsServiceTest.java99 .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/
DBackgroundJobsManager.java108 case TOPICS: in scheduleJobsPerApi()
124 case TOPICS: in unscheduleJobsPerApi()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/
DMobileDataDownloadTest.java482 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/
DConsentManager.java165 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/
DConsentNotificationTrigger.java431 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/
DU18DetentionChannelTest.java162 verify(mConsentManager).disable(mContext, AdServicesApiType.TOPICS); in enrollTest_targetingApisDisabled()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/topics/
DTopicsService.java109 return ConsentManager.getInstance().getConsent(AdServicesApiType.TOPICS).isGiven(); in hasUserConsent()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/download/
DMobileDataDownloadFactory.java292 .getConsent(AdServicesApiType.TOPICS) in getTopicsManifestPopulator()
377 || instance.getConsent(AdServicesApiType.TOPICS).isGiven()

12