Home
last modified time | relevance | path

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

12

/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/
DConsentManagerTest.java122 consentManager.setConsent( in testGetAndSetConsent_null()
130 consentManager.setConsent( in testGetAndSetConsent_null()
138 consentManager.setConsent( in testGetAndSetConsent_null()
146 consentManager.setConsent( in testGetAndSetConsent_null()
160 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
163 consentManager0.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
166 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.TOPICS)); in testGetAndSetConsent_nonNull()
169 consentManager0.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.TOPICS)); in testGetAndSetConsent_nonNull()
172 consentManager0.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.FLEDGE)); in testGetAndSetConsent_nonNull()
175 consentManager0.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)); in testGetAndSetConsent_nonNull()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchConsentStorageManager.java455 public void setConsent(@NonNull AdServicesApiType apiType, boolean consented) { in setConsent() method in AppSearchConsentStorageManager
457 mAppSearchConsentWorker.setConsent(apiType.toAppSearchKey(), consented); in setConsent()
646 mAppSearchConsentWorker.setConsent(ConsentConstants.DEFAULT_CONSENT, defaultConsent); in recordDefaultConsent()
651 mAppSearchConsentWorker.setConsent(ConsentConstants.TOPICS_DEFAULT_CONSENT, defaultConsent); in recordTopicsDefaultConsent()
656 mAppSearchConsentWorker.setConsent(ConsentConstants.FLEDGE_DEFAULT_CONSENT, defaultConsent); in recordFledgeDefaultConsent()
661 mAppSearchConsentWorker.setConsent( in recordMeasurementDefaultConsent()
667 mAppSearchConsentWorker.setConsent(ConsentConstants.DEFAULT_AD_ID_STATE, defaultAdIdState); in recordDefaultAdIdState()
677 mAppSearchConsentWorker.setConsent(ConsentConstants.IS_PA_DATA_RESET, isPaDataReset); in setPaDataReset()
DAppSearchConsentManager.java99 public void setConsent(@NonNull String apiType, @NonNull Boolean consented) { in setConsent() method in AppSearchConsentManager
102 mAppSearchConsentWorker.setConsent(apiType, consented); in setConsent()
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/
DAppSearchWriterActivity.java84 setConsent(userId, "CONSENT-TOPICS", topicsConsent); in onCreate()
85 setConsent(userId, "CONSENT-MEASUREMENT", msmtConsent); in onCreate()
86 setConsent(userId, "CONSENT-FLEDGE", fledgeConsent); in onCreate()
111 private void setConsent(@NonNull String userId, @NonNull String apiType, boolean consented) { in setConsent() method in AppSearchWriterActivity
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/
DAdServicesManagerServiceTest.java492 service.setConsent( in testGetAndSetConsent_null()
500 service.setConsent( in testGetAndSetConsent_null()
508 service.setConsent( in testGetAndSetConsent_null()
516 service.setConsent( in testGetAndSetConsent_null()
532 service.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
535 service.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.ALL_API)); in testGetAndSetConsent_nonNull()
538 service.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.TOPICS)); in testGetAndSetConsent_nonNull()
541 service.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.TOPICS)); in testGetAndSetConsent_nonNull()
544 service.setConsent(ConsentParcel.createRevokedConsent(ConsentParcel.FLEDGE)); in testGetAndSetConsent_nonNull()
547 service.setConsent(ConsentParcel.createGivenConsent(ConsentParcel.FLEDGE)); in testGetAndSetConsent_nonNull()
[all …]
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/ui/settings/viewmodels/
DMainViewModelTest.java81 mMainViewModel.setConsent(true); in testSetConsentTrue()
89 mMainViewModel.setConsent(false); in testSetConsentFalse()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAppConsentForRStorageManager.java180 public void setConsent(AdServicesApiType apiType, boolean isGiven) throws IOException { in setConsent() method in AppConsentForRStorageManager
182 super.setConsent(apiType, isGiven); in setConsent()
DConsentManager.java1338 mAppSearchConsentManager.setConsent(
1364 mAppSearchConsentManager.setConsent(
1386 mAppSearchConsentManager.setConsent(
1408 mAppSearchConsentManager.setConsent(
1425 mAppSearchConsentManager.setConsent(
1746 adServicesManager.setConsent(consentParcel);
1756 adServicesManager.setConsent(ConsentParcel.createGivenConsent(consentApiType));
1758 adServicesManager.setConsent(ConsentParcel.createRevokedConsent(consentApiType));
1947 mAppSearchConsentManager.setConsent(
1995 () -> mAppSearchConsentManager.setConsent(apiType.toPpApiDatastoreKey(), isGiven),
[all …]
DAdServicesStorageManager.java288 public void setConsent(AdServicesApiType apiType, boolean isGiven) { in setConsent() method in AdServicesStorageManager
294 mAdServicesManager.setConsent(consentParcel); in setConsent()
DIConsentStorage.java192 void setConsent(@NonNull AdServicesApiType apiType, boolean isGiven) throws IOException; in setConsent() method
DConsentManagerV2.java976 adServicesManager.setConsent(AdServicesApiType.ALL_API, consentKey); in migratePpApiConsentToSystemService()
1098 mConsentCompositeStorage.setConsent(AdServicesApiType.ALL_API, isGiven); in setConsentToSourceOfTruth()
1113 mConsentCompositeStorage.setConsent(apiType, isGiven); in setPerApiConsentToSourceOfTruth()
1254 adServicesManager.setConsent(apiType, consented); in migrateAppSearchConsents()
DAdExtDataConsentMigrationUtilsV2.java179 transferStorage.setConsent(AdServicesApiType.MEASUREMENTS, isMeasurementConsented); in migrateAdExtDataV2()
DConsentCompositeStorage.java605 public void setConsent(AdServicesApiType apiType, boolean isGiven) { in setConsent() method in ConsentCompositeStorage
616 storage.setConsent(apiType, isGiven); in setConsentToApiType()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DAppConsentForRStorageManagerTest.java151 mAppConsentForRStorageManager.setConsent(AdServicesApiType.MEASUREMENTS, true); in testSetMeasurementConsent()
214 () -> mAppConsentForRStorageManager.setConsent(AdServicesApiType.FLEDGE, true)); in testSetMeasurementConsentException()
DConsentCompositeStorageTest.java105 consentCompositeStorage.setConsent(AdServicesApiType.ALL_API, true); in testAllWriteMethods()
145 Mockito.verify(consentStorage).setConsent(eq(AdServicesApiType.ALL_API), eq(true)); in verifySetMethodCalled()
DConsentManagerV2Test.java2443 doNothing().when(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemService()
2457 verify(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemService()
2466 verify(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemService()
2477 doNothing().when(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemServiceWithSuccessfulConsentMigrationLogging()
2524 doNothing().when(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemServiceWithUnSuccessfulConsentMigrationLogging()
2614 verify(mMockIAdServicesManager, never()).setConsent(any()); in testHandleConsentMigrationIfNeeded_ExtServices()
2638 verify(mMockIAdServicesManager, never()).setConsent(any()); in testHandleConsentMigrationFromAppSearchIfNeeded_ExtServices()
3115 verify(mAdServicesStorageManager).setConsent(eq(AdServicesApiType.TOPICS), eq(isGiven)); in testConsentPerApiIsGivenAfterEnabling_SystemServerOnly()
3139 verify(mAdServicesStorageManager).setConsent(eq(AdServicesApiType.TOPICS), eq(isGiven)); in testConsentPerApiIsGivenAfterEnabling_PpApiAndSystemServer()
3170 verify(mAppSearchConsentManagerMock).setConsent(eq(apiType), eq(isGiven)); in testConsentPerApiIsGivenAfterEnabling_AppSearchOnly()
[all …]
DConsentManagerTest.java2524 doNothing().when(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemService()
2535 verify(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemService()
2541 verify(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemService()
2552 doNothing().when(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemServiceWithSuccessfulConsentMigrationLogging()
2595 doNothing().when(mMockIAdServicesManager).setConsent(any()); in testMigratePpApiConsentToSystemServiceWithUnSuccessfulConsentMigrationLogging()
2675 verify(mMockIAdServicesManager, never()).setConsent(any()); in testHandleConsentMigrationIfNeeded_ExtServices()
2699 verify(mMockIAdServicesManager, never()).setConsent(any()); in testHandleConsentMigrationFromAppSearchIfNeeded_ExtServices()
2989 verify(mockAdServicesManager, atLeast(4)).setConsent(any()); in testHandleConsentMigrationFromAppSearchIfNeeded()
3243 .setConsent(eq(apiType.toPpApiDatastoreKey()), eq(isGiven)); in testConsentPerApiIsGivenAfterEnabling_AppSearchOnly()
3457 .setConsent(eq(ConsentConstants.DEFAULT_CONSENT), eq(true)); in testRecordDefaultConsent_AppSearchOnly()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/
DAdExtDataConsentMigrationUtilsV2Test.java232 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
295 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
507 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
573 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
DAdExtDataConsentMigrationUtilsTest.java232 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
295 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
505 verify(mAdServicesManagerMock).setConsent(any()); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
568 verify(mAdServicesManagerMock).setConsent(any()); in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentManagerTest.java116 mAppSearchConsentManager.setConsent(API_TYPE, true); in testSetConsent()
117 verify(mAppSearchConsentWorker).setConsent(API_TYPE, true); in testSetConsent()
119 mAppSearchConsentManager.setConsent(API_TYPE, false); in testSetConsent()
120 verify(mAppSearchConsentWorker).setConsent(API_TYPE, false); in testSetConsent()
DAppSearchConsentStorageManagerTest.java119 mAppSearchConsentStorageManager.setConsent(API_TYPE, true); in testSetConsent()
120 verify(mAppSearchConsentWorker).setConsent(API_TYPE.toPpApiDatastoreKey(), true); in testSetConsent()
122 mAppSearchConsentStorageManager.setConsent(API_TYPE, false); in testSetConsent()
123 verify(mAppSearchConsentWorker).setConsent(API_TYPE.toPpApiDatastoreKey(), false); in testSetConsent()
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/
DIAdServicesManager.aidl36 void setConsent(in ConsentParcel consentParcel); in setConsent() method
DAdServicesManager.java103 public void setConsent(@NonNull ConsentParcel consentParcel) { in setConsent() method in AdServicesManager
106 mService.setConsent(consentParcel); in setConsent()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewmodels/
DMainViewModel.java82 public void setConsent(Boolean newConsentValue) { in setConsent() method in MainViewModel
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/
DDialogManager.java55 mainViewModel.setConsent(false); in showOptOutDialog()

12