/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ |
D | KeyedFrequencyCapTest.java | 25 import android.adservices.common.KeyedFrequencyCapFixture; 49 KeyedFrequencyCapFixture.KEY1, in testBuildValidKeyedFrequencyCap_success() 50 KeyedFrequencyCapFixture.VALID_COUNT, in testBuildValidKeyedFrequencyCap_success() 51 KeyedFrequencyCapFixture.ONE_DAY_DURATION) in testBuildValidKeyedFrequencyCap_success() 54 assertThat(originalCap.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildValidKeyedFrequencyCap_success() 55 assertThat(originalCap.getMaxCount()).isEqualTo(KeyedFrequencyCapFixture.VALID_COUNT); in testBuildValidKeyedFrequencyCap_success() 56 assertThat(originalCap.getInterval()).isEqualTo(KeyedFrequencyCapFixture.ONE_DAY_DURATION); in testBuildValidKeyedFrequencyCap_success() 63 KeyedFrequencyCapFixture.KEY1, in testParcelKeyedFrequencyCap_success() 64 KeyedFrequencyCapFixture.VALID_COUNT, in testParcelKeyedFrequencyCap_success() 65 KeyedFrequencyCapFixture.ONE_DAY_DURATION) in testParcelKeyedFrequencyCap_success() [all …]
|
D | FrequencyCapFiltersTest.java | 27 import android.adservices.common.KeyedFrequencyCapFixture; 50 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in testBuildValidFrequencyCapFilters_success() 52 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in testBuildValidFrequencyCapFilters_success() 54 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in testBuildValidFrequencyCapFilters_success() 56 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in testBuildValidFrequencyCapFilters_success() 60 .containsExactlyElementsIn(KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST); in testBuildValidFrequencyCapFilters_success() 62 .containsExactlyElementsIn(KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST); in testBuildValidFrequencyCapFilters_success() 64 .containsExactlyElementsIn(KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST); in testBuildValidFrequencyCapFilters_success() 66 .containsExactlyElementsIn(KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST); in testBuildValidFrequencyCapFilters_success() 74 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in testParcelFrequencyCapFilters_success() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/ |
D | FrequencyCapFiltersFixture.java | 33 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) 39 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) 45 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) 51 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) 57 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in getValidFrequencyCapFiltersBuilder() 59 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in getValidFrequencyCapFiltersBuilder() 61 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in getValidFrequencyCapFiltersBuilder() 63 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST); in getValidFrequencyCapFiltersBuilder() 72 KeyedFrequencyCapFixture.getValidKeyedFrequencyCapBuilderOncePerDay(key) in getFrequencyCapFiltersWithExcessiveNumFilters() 86 KeyedFrequencyCapFixture.getValidKeyedFrequencyCapBuilderOncePerDay(key) in getFrequencyCapFiltersWithExcessiveNumFilters() [all …]
|
D | AdDataFixture.java | 44 KeyedFrequencyCapFixture.KEY1, in getAdCounterKeys() 45 KeyedFrequencyCapFixture.KEY2, in getAdCounterKeys() 46 KeyedFrequencyCapFixture.KEY3, in getAdCounterKeys() 47 KeyedFrequencyCapFixture.KEY4) in getAdCounterKeys()
|
D | KeyedFrequencyCapFixture.java | 28 public class KeyedFrequencyCapFixture { class
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | HistogramEventTest.java | 25 import android.adservices.common.KeyedFrequencyCapFixture; 44 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildValidHistogramEvent_success() 53 assertThat(event.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildValidHistogramEvent_success() 83 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetBuyer_throws() 98 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetCustomAudienceOwnerWithWinType_throws() 111 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 119 assertThat(event.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 134 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetCustomAudienceNameWithWinType_throws() 147 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetCustomAudienceNameWithNonWinType_success() 155 assertThat(event.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildUnsetCustomAudienceNameWithNonWinType_success() [all …]
|
D | FrequencyCapAdFiltererImplTest.java | 39 import android.adservices.common.KeyedFrequencyCapFixture; 125 doReturn(KeyedFrequencyCapFixture.FILTER_EXCEED_COUNT) in testFilterContextualAdsWithEmptyFrequencyCapFilters() 153 doReturn(KeyedFrequencyCapFixture.FILTER_UNDER_MAX_COUNT) in testFilterContextualAdsForNonMatchingFrequencyCap() 178 times(KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST.size())) in testFilterContextualAdsForNonMatchingFrequencyCap() 183 times(KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST.size())) in testFilterContextualAdsForNonMatchingFrequencyCap() 188 times(KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST.size())) in testFilterContextualAdsForNonMatchingFrequencyCap() 196 doReturn(KeyedFrequencyCapFixture.FILTER_EXCEED_COUNT) in testFilterContextualAdsForMatchingFrequencyCap() 286 doReturn(KeyedFrequencyCapFixture.FILTER_UNDER_MAX_COUNT) in testFilterCustomAudiencesWithNonMatchingFrequencyCapFilters() 318 times(KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST.size())) in testFilterCustomAudiencesWithNonMatchingFrequencyCapFilters() 328 times(KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST.size())) in testFilterCustomAudiencesWithNonMatchingFrequencyCapFilters() [all …]
|
D | FrequencyCapFilteringE2ETest.java | 45 import android.adservices.common.KeyedFrequencyCapFixture; 167 KeyedFrequencyCapFixture.KEY1,
|
D | OnDeviceAdSelectionRunnerTest.java | 127 import android.adservices.common.KeyedFrequencyCapFixture; 3075 KeyedFrequencyCapFixture.KEY1, in testFilterOneAd_appInstall() 3076 KeyedFrequencyCapFixture.VALID_COUNT, in testFilterOneAd_appInstall() 3077 KeyedFrequencyCapFixture.ONE_DAY_DURATION) in testFilterOneAd_appInstall()
|
D | AdSelectionServiceImplTest.java | 100 import android.adservices.common.KeyedFrequencyCapFixture; 10381 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testSetAdCounterHistogramOverrideNullCallbackThrows() 10425 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testSetAdCounterHistogramOverrideCallbackErrorReported() 10470 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testSetAdCounterHistogramOverrideSuccess() 10509 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testRemoveAdCounterHistogramOverrideNullCallbackThrows() 10551 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testRemoveAdCounterHistogramOverrideCallbackErrorReported() 10594 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testRemoveAdCounterHistogramOverrideSuccess()
|
D | AuctionServerE2ETest.java | 21 import static android.adservices.common.KeyedFrequencyCapFixture.ONE_DAY_DURATION;
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBHistogramEventDataTest.java | 27 import android.adservices.common.KeyedFrequencyCapFixture; 52 .setAdCounterIntKey(KeyedFrequencyCapFixture.KEY1) in testBuildValidEventData_success() 62 assertThat(originalEventData.getAdCounterIntKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildValidEventData_success() 72 .setAdCounterIntKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetRowId_success() 82 assertThat(originalEventData.getAdCounterIntKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildUnsetRowId_success() 93 .setAdCounterIntKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetForeignKey_throws() 105 .setAdCounterIntKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetAdEventType_throws() 117 .setAdCounterIntKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetTimestamp_throws() 148 KeyedFrequencyCapFixture.KEY1); in testCreateValidEventData_success() 157 assertThat(originalEventData.getAdCounterIntKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testCreateValidEventData_success() [all …]
|
D | FrequencyCapDaoTest.java | 32 import android.adservices.common.KeyedFrequencyCapFixture; 1555 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testDeleteExactNumOldestHistogramEventData() 1563 .setAdCounterKey(KeyedFrequencyCapFixture.KEY2) in testDeleteExactNumOldestHistogramEventData() 1571 .setAdCounterKey(KeyedFrequencyCapFixture.KEY3) in testDeleteExactNumOldestHistogramEventData() 1579 .setAdCounterKey(KeyedFrequencyCapFixture.KEY4) in testDeleteExactNumOldestHistogramEventData()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | RemoveAdCounterHistogramOverrideInputTest.java | 26 import android.adservices.common.KeyedFrequencyCapFixture; 41 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildValidInput_success() 47 expect.that(originalInput.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildValidInput_success() 56 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testParcelValidInput_success() 68 expect.that(inputFromParcel.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testParcelValidInput_success() 86 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testToString() 95 KeyedFrequencyCapFixture.KEY1, in testToString() 114 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetAdEventType() 140 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetBuyer_throws()
|
D | SetAdCounterHistogramOverrideInputTest.java | 26 import android.adservices.common.KeyedFrequencyCapFixture; 51 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildValidInput_success() 60 expect.that(originalInput.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildValidInput_success() 73 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testParcelValidInput_success() 88 expect.that(inputFromParcel.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testParcelValidInput_success() 110 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testToString() 123 KeyedFrequencyCapFixture.KEY1, in testToString() 170 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetAdEventType() 204 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetHistogramTimestamps_success() 220 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetBuyer_throws() [all …]
|
D | SetAdCounterHistogramOverrideRequestTest.java | 25 import android.adservices.common.KeyedFrequencyCapFixture; 50 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildValidRequest_success() 59 expect.that(originalRequest.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildValidRequest_success() 72 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testToString() 85 KeyedFrequencyCapFixture.KEY1, in testToString() 134 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetAdEventType() 168 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetHistogramTimestamps_success() 184 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetBuyer_throws() 198 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetCustomAudienceOwner_throws() 212 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetCustomAudienceName_throws()
|
D | RemoveAdCounterHistogramOverrideRequestTest.java | 23 import android.adservices.common.KeyedFrequencyCapFixture; 38 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildValidRequest_success() 44 expect.that(originalRequest.getAdCounterKey()).isEqualTo(KeyedFrequencyCapFixture.KEY1); in testBuildValidRequest_success() 53 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testToString() 62 KeyedFrequencyCapFixture.KEY1, in testToString() 81 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetAdEventType() 107 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in testBuildUnsetBuyer_throws()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/common/ |
D | InternalFrequencyCapFiltersTest.java | 37 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in testGetSizeInBytes() 39 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in testGetSizeInBytes() 41 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in testGetSizeInBytes() 43 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST) in testGetSizeInBytes() 46 KeyedFrequencyCapFixture.VALID_KEYED_FREQUENCY_CAP_LIST.forEach( in testGetSizeInBytes()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FrequencyCapAdDataValidatorImplTest.java | 31 import android.adservices.common.KeyedFrequencyCapFixture; 156 KeyedFrequencyCapFixture.getKeyedFrequencyCapWithFields( in testAddValidation_KeyedFrequencyCapsWithNegativeFieldsReturnsViolations() 193 KeyedFrequencyCapFixture.getKeyedFrequencyCapWithFields( in testAddValidation_KeyedFrequencyCapsWithZeroFieldsReturnsViolations() 230 KeyedFrequencyCapFixture.getKeyedFrequencyCapWithFields( in testAddValidation_KeyedFrequencyCapsWithExcessiveIntervalReturnsViolations()
|
D | FledgeE2ETest.java | 88 import android.adservices.common.KeyedFrequencyCapFixture; 221 KeyedFrequencyCapFixture.KEY1, 231 KeyedFrequencyCapFixture.KEY1, 2321 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters() 2322 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters() 2323 Collections.singleton(KeyedFrequencyCapFixture.KEY1)); in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters() 2483 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters() 2484 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters() 2485 Collections.singleton(KeyedFrequencyCapFixture.KEY1)); in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters() 2647 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_bothFilters() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/adselection/ |
D | HistogramEventFixture.java | 21 import android.adservices.common.KeyedFrequencyCapFixture; 97 .setAdCounterKey(KeyedFrequencyCapFixture.KEY1) in getValidHistogramEventBuilder()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/ |
D | KAnonE2ETest.java | 19 import static android.adservices.common.KeyedFrequencyCapFixture.ONE_DAY_DURATION;
|