/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/ |
D | ConsentManagerTest.java | 122 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/ |
D | AppSearchConsentStorageManager.java | 455 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()
|
D | AppSearchConsentManager.java | 99 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/ |
D | AppSearchWriterActivity.java | 84 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/ |
D | AdServicesManagerServiceTest.java | 492 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/ |
D | MainViewModelTest.java | 81 mMainViewModel.setConsent(true); in testSetConsentTrue() 89 mMainViewModel.setConsent(false); in testSetConsentFalse()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | AppConsentForRStorageManager.java | 180 public void setConsent(AdServicesApiType apiType, boolean isGiven) throws IOException { in setConsent() method in AppConsentForRStorageManager 182 super.setConsent(apiType, isGiven); in setConsent()
|
D | ConsentManager.java | 1338 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 …]
|
D | AdServicesStorageManager.java | 288 public void setConsent(AdServicesApiType apiType, boolean isGiven) { in setConsent() method in AdServicesStorageManager 294 mAdServicesManager.setConsent(consentParcel); in setConsent()
|
D | IConsentStorage.java | 192 void setConsent(@NonNull AdServicesApiType apiType, boolean isGiven) throws IOException; in setConsent() method
|
D | ConsentManagerV2.java | 976 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()
|
D | AdExtDataConsentMigrationUtilsV2.java | 179 transferStorage.setConsent(AdServicesApiType.MEASUREMENTS, isMeasurementConsented); in migrateAdExtDataV2()
|
D | ConsentCompositeStorage.java | 605 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/ |
D | AppConsentForRStorageManagerTest.java | 151 mAppConsentForRStorageManager.setConsent(AdServicesApiType.MEASUREMENTS, true); in testSetMeasurementConsent() 214 () -> mAppConsentForRStorageManager.setConsent(AdServicesApiType.FLEDGE, true)); in testSetMeasurementConsentException()
|
D | ConsentCompositeStorageTest.java | 105 consentCompositeStorage.setConsent(AdServicesApiType.ALL_API, true); in testAllWriteMethods() 145 Mockito.verify(consentStorage).setConsent(eq(AdServicesApiType.ALL_API), eq(true)); in verifySetMethodCalled()
|
D | ConsentManagerV2Test.java | 2443 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 …]
|
D | ConsentManagerTest.java | 2524 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/ |
D | AdExtDataConsentMigrationUtilsV2Test.java | 232 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared() 295 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared() 507 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared() 573 .setConsent( in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
|
D | AdExtDataConsentMigrationUtilsTest.java | 232 .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/ |
D | AppSearchConsentManagerTest.java | 116 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()
|
D | AppSearchConsentStorageManagerTest.java | 119 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/ |
D | IAdServicesManager.aidl | 36 void setConsent(in ConsentParcel consentParcel); in setConsent() method
|
D | AdServicesManager.java | 103 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/ |
D | MainViewModel.java | 82 public void setConsent(Boolean newConsentValue) { in setConsent() method in MainViewModel
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/ |
D | DialogManager.java | 55 mainViewModel.setConsent(false); in showOptOutDialog()
|