Home
last modified time | relevance | path

Searched refs:BOOLEAN_TRUE (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/
DAdExtDataConsentMigrationUtilsV2Test.java20 import static android.adservices.extdata.AdServicesExtDataParams.BOOLEAN_TRUE;
62 .setNotificationDisplayed(BOOLEAN_TRUE)
64 .setIsU18Account(BOOLEAN_TRUE)
71 .setNotificationDisplayed(BOOLEAN_TRUE)
72 .setMsmtConsent(BOOLEAN_TRUE)
234 TEST_PARAMS_WITH_ALL_DATA.getIsMeasurementConsented() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
237 TEST_PARAMS_WITH_ALL_DATA.getIsNotificationDisplayed() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
242 .setU18Account(TEST_PARAMS_WITH_ALL_DATA.getIsU18Account() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
244 .setAdultAccount(TEST_PARAMS_WITH_ALL_DATA.getIsAdultAccount() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
297 TEST_PARAMS_WITH_PARTIAL_DATA.getIsMeasurementConsented() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeededV2_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
[all …]
DAdExtDataConsentMigrationUtilsTest.java20 import static android.adservices.extdata.AdServicesExtDataParams.BOOLEAN_TRUE;
63 .setNotificationDisplayed(BOOLEAN_TRUE)
65 .setIsU18Account(BOOLEAN_TRUE)
72 .setNotificationDisplayed(BOOLEAN_TRUE)
73 .setMsmtConsent(BOOLEAN_TRUE)
234 TEST_PARAMS_WITH_ALL_DATA.getIsMeasurementConsented() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
237 TEST_PARAMS_WITH_ALL_DATA.getIsNotificationDisplayed() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
242 .setU18Account(TEST_PARAMS_WITH_ALL_DATA.getIsU18Account() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
244 .setAdultAccount(TEST_PARAMS_WITH_ALL_DATA.getIsAdultAccount() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithFullData_migrationSuccessWithAdExtDataCleared()
297 TEST_PARAMS_WITH_PARTIAL_DATA.getIsMeasurementConsented() == BOOLEAN_TRUE); in testHandleConsentMigrationFromAdExtDataIfNeeded_onSWithMigrationEligibleWithPartialDataWithFailedSharedPrefUpdate_migrationSuccessWithAdExtDataCleared()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdExtDataConsentMigrationUtilsV2.java19 import static android.adservices.extdata.AdServicesExtDataParams.BOOLEAN_TRUE;
89 if (dataFromR == null || dataFromR.getIsNotificationDisplayed() != BOOLEAN_TRUE) { in handleConsentMigrationFromAdExtDataIfNeededV2()
178 boolean isMeasurementConsented = dataFromR.getIsMeasurementConsented() == BOOLEAN_TRUE; in migrateAdExtDataV2()
182 boolean u18NotificationDisplayed = dataFromR.getIsNotificationDisplayed() == BOOLEAN_TRUE; in migrateAdExtDataV2()
188 boolean isU18Account = isU18AccountRawValue == BOOLEAN_TRUE; in migrateAdExtDataV2()
195 boolean isAdultAccount = isAdultAccountRawValue == BOOLEAN_TRUE; in migrateAdExtDataV2()
DAdExtDataConsentMigrationUtils.java19 import static android.adservices.extdata.AdServicesExtDataParams.BOOLEAN_TRUE;
92 if (dataFromR == null || dataFromR.getIsNotificationDisplayed() != BOOLEAN_TRUE) { in handleConsentMigrationFromAdExtDataIfNeeded()
185 boolean isMeasurementConsented = dataFromR.getIsMeasurementConsented() == BOOLEAN_TRUE; in migrateAdExtData()
198 boolean u18NotificationDisplayed = dataFromR.getIsNotificationDisplayed() == BOOLEAN_TRUE; in migrateAdExtData()
206 boolean isU18Account = isU18AccountRawValue == BOOLEAN_TRUE; in migrateAdExtData()
215 boolean isAdultAccount = isAdultAccountRawValue == BOOLEAN_TRUE; in migrateAdExtData()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/extdata/
DAdServicesExtDataStorageServiceManager.java23 import static android.adservices.extdata.AdServicesExtDataParams.BOOLEAN_TRUE;
292 .setMsmtConsent(isGiven ? BOOLEAN_TRUE : BOOLEAN_FALSE) in setMsmtConsent()
302 return getAdServicesExtData().getIsMeasurementConsented() == BOOLEAN_TRUE; in getMsmtConsent()
333 .setNotificationDisplayed(isGiven ? BOOLEAN_TRUE : BOOLEAN_FALSE) in setNotificationDisplayed()
343 return getAdServicesExtData().getIsNotificationDisplayed() == BOOLEAN_TRUE; in getNotificationDisplayed()
354 .setIsU18Account(isU18Account ? BOOLEAN_TRUE : BOOLEAN_FALSE) in setIsU18Account()
361 return getAdServicesExtData().getIsU18Account() == BOOLEAN_TRUE; in getIsU18Account()
372 .setIsAdultAccount(isAdultAccount ? BOOLEAN_TRUE : BOOLEAN_FALSE) in setIsAdultAccount()
379 return getAdServicesExtData().getIsAdultAccount() == BOOLEAN_TRUE; in getIsAdultAccount()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/extdata/
DAdServicesExtDataStorageServiceManagerTest.java23 import static android.adservices.extdata.AdServicesExtDataParams.BOOLEAN_TRUE;
79 .setNotificationDisplayed(BOOLEAN_TRUE)
81 .setIsU18Account(BOOLEAN_TRUE)
139 expect.that(result.getIsU18Account()).isEqualTo(BOOLEAN_TRUE); in testGetAdServicesExtData_onResultSet_returnsParams()
143 expect.that(result.getIsNotificationDisplayed()).isEqualTo(BOOLEAN_TRUE); in testGetAdServicesExtData_onResultSet_returnsParams()
270 expect.that(mParamsCaptor.getValue().getIsMeasurementConsented()).isEqualTo(BOOLEAN_TRUE); in testSetMsmtConsent_withTrue()
285 new AdServicesExtDataParams.Builder().setMsmtConsent(BOOLEAN_TRUE).build(); in testGetMsmtConsent_withOneRetrieved_returnsTrue()
325 expect.that(mParamsCaptor.getValue().getIsNotificationDisplayed()).isEqualTo(BOOLEAN_TRUE); in testSetNotifDisplayed_withTrue()
359 expect.that(mParamsCaptor.getValue().getIsAdultAccount()).isEqualTo(BOOLEAN_TRUE); in testSetIsAdultAccount_withTrue()
372 new AdServicesExtDataParams.Builder().setIsAdultAccount(BOOLEAN_TRUE).build(); in testGetIsAdultAccount_withOneRetrieved_returnsTrue()
[all …]
DAdServicesExtDataStorageServiceDebugProxyTest.java20 import static android.adservices.extdata.AdServicesExtDataParams.BOOLEAN_TRUE;
58 .setNotificationDisplayed(BOOLEAN_TRUE)
60 .setIsU18Account(BOOLEAN_TRUE)
DAdServicesExtDataStorageServiceWorkerTest.java21 import static android.adservices.extdata.AdServicesExtDataParams.BOOLEAN_TRUE;
61 .setNotificationDisplayed(BOOLEAN_TRUE)
63 .setIsU18Account(BOOLEAN_TRUE)
/packages/modules/AdServices/adservices/tests/cts/extdata/src/com.android.adservices.tests.extdata/
DAdServicesExtDataServiceCtsTest.java19 import static android.adservices.extdata.AdServicesExtDataParams.BOOLEAN_TRUE;
71 /*isNotificationDisplayed=*/ BOOLEAN_TRUE, in testAdServicesExtDataStorageService()
73 /*isU18Account=*/ BOOLEAN_TRUE, in testAdServicesExtDataStorageService()
/packages/modules/AdServices/adservices/framework/java/android/adservices/extdata/
DAdServicesExtDataParams.java48 value = {BOOLEAN_TRUE, BOOLEAN_FALSE, BOOLEAN_UNKNOWN})
56 public static final int BOOLEAN_TRUE = 1; field in AdServicesExtDataParams