Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncSourceFetcherTest.java291 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in testBasicSourceRequest()
298 assertEquals(AsyncFetchStatus.ResponseStatus.SUCCESS, asyncFetchStatus.getResponseStatus()); in testBasicSourceRequest()
379 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in testBasicSourceRequest_skipSourceWhenNotEnrolled()
388 assertEquals(AsyncFetchStatus.ResponseStatus.SUCCESS, asyncFetchStatus.getResponseStatus()); in testBasicSourceRequest_skipSourceWhenNotEnrolled()
395 AsyncFetchStatus.EntityStatus.INVALID_ENROLLMENT, in testBasicSourceRequest_skipSourceWhenNotEnrolled()
424 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in fetchSource_multipleWebDestinations_success()
430 assertEquals(AsyncFetchStatus.ResponseStatus.SUCCESS, asyncFetchStatus.getResponseStatus()); in fetchSource_multipleWebDestinations_success()
463 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in fetchSource_emptyWebDestinations_success()
469 assertEquals(AsyncFetchStatus.ResponseStatus.SUCCESS, asyncFetchStatus.getResponseStatus()); in fetchSource_emptyWebDestinations_success()
510 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in fetchSource_duplicateWebDestinationsInList_removesDuplicates()
[all …]
DAsyncTriggerFetcherTest.java311 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in testBasicTriggerRequest()
318 assertEquals(AsyncFetchStatus.ResponseStatus.SUCCESS, asyncFetchStatus.getResponseStatus()); in testBasicTriggerRequest()
392 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in testBasicTriggerRequest_withAggregateDeduplicationKey()
399 assertEquals(AsyncFetchStatus.ResponseStatus.SUCCESS, asyncFetchStatus.getResponseStatus()); in testBasicTriggerRequest_withAggregateDeduplicationKey()
455 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails()
462 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR, asyncFetchStatus.getEntityStatus()); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails()
503 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in triggerRequest_aggregateDeduplicationKey_dedupKeyNegative_fails()
510 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR, asyncFetchStatus.getEntityStatus()); in triggerRequest_aggregateDeduplicationKey_dedupKeyNegative_fails()
551 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in triggerRequest_aggregateDeduplicationKey_dedupKeyTooLarge_fails()
558 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR, asyncFetchStatus.getEntityStatus()); in triggerRequest_aggregateDeduplicationKey_dedupKeyTooLarge_fails()
[all …]
DAsyncRegistrationQueueRunnerTest.java328 AsyncFetchStatus asyncFetchStatus = invocation.getArgument(1); in test_runAsyncRegistrationQueueWorker_appSource_success()
329 asyncFetchStatus.setResponseStatus(AsyncFetchStatus.ResponseStatus.SUCCESS); in test_runAsyncRegistrationQueueWorker_appSource_success()
382 AsyncFetchStatus asyncFetchStatus = invocation.getArgument(1); in test_runAsyncRegistrationQueueWorker_emptyNoisedState_sendsDebugReport()
383 asyncFetchStatus.setResponseStatus(AsyncFetchStatus.ResponseStatus.SUCCESS); in test_runAsyncRegistrationQueueWorker_emptyNoisedState_sendsDebugReport()
434 AsyncFetchStatus asyncFetchStatus = invocation.getArgument(1); in test_runAsyncRegistrationQueueWorker_nullFakeReports_doesNotSendDebugReport()
435 asyncFetchStatus.setResponseStatus(AsyncFetchStatus.ResponseStatus.SUCCESS); in test_runAsyncRegistrationQueueWorker_nullFakeReports_doesNotSendDebugReport()
485 AsyncFetchStatus asyncFetchStatus = invocation.getArgument(1); in test_runAsyncRegistrationQueueWorker_ThreadInterrupted()
486 asyncFetchStatus.setResponseStatus(AsyncFetchStatus.ResponseStatus.SUCCESS); in test_runAsyncRegistrationQueueWorker_ThreadInterrupted()
533 AsyncFetchStatus asyncFetchStatus = invocation.getArgument(1); in testRecordsExceedMaxRegistrationsPerJob_returnSuccessWithPendingRecords()
534 asyncFetchStatus.setResponseStatus(AsyncFetchStatus.ResponseStatus.SUCCESS); in testRecordsExceedMaxRegistrationsPerJob_returnSuccessWithPendingRecords()
[all …]
DFetcherUtilTest.java1018 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in emitHeaderMetrics_headersSizeLessThanMaxAllowed_doesNotLogAdTechDomain()
1063 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in emitHeaderMetrics_headersSizeExceedsMaxAllowed_logsAdTechDomain()
1111 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in emitHeaderMetrics_headersWithNullValues_success()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DFetcherUtil.java376 AsyncFetchStatus asyncFetchStatus) { in emitHeaderMetrics()
477 private static int getStatus(AsyncFetchStatus asyncFetchStatus) { in getStatus()
478 if (asyncFetchStatus.getEntityStatus() == AsyncFetchStatus.EntityStatus.SUCCESS in getStatus()
479 || (asyncFetchStatus.getResponseStatus() == AsyncFetchStatus.ResponseStatus.SUCCESS in getStatus()
481 == AsyncFetchStatus.EntityStatus.UNKNOWN in getStatus()
483 == AsyncFetchStatus.EntityStatus.HEADER_MISSING))) { in getStatus()
486 } else if (asyncFetchStatus.getEntityStatus() == AsyncFetchStatus.EntityStatus.UNKNOWN in getStatus()
488 == AsyncFetchStatus.ResponseStatus.UNKNOWN) { in getStatus()
495 private static int getFailureType(AsyncFetchStatus asyncFetchStatus) { in getFailureType()
496 if (asyncFetchStatus.getResponseStatus() == AsyncFetchStatus.ResponseStatus.NETWORK_ERROR) { in getFailureType()
[all …]
DAsyncTriggerFetcher.java120 AsyncFetchStatus asyncFetchStatus) { in parseTrigger()
159 asyncFetchStatus.setEntityStatus(AsyncFetchStatus.EntityStatus.HEADER_ERROR); in parseTrigger()
177 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseTrigger()
189 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseTrigger()
198 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseTrigger()
213 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseTrigger()
225 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseTrigger()
238 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseTrigger()
283 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseTrigger()
324 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseTrigger()
[all …]
DAsyncSourceFetcher.java765 AsyncFetchStatus asyncFetchStatus) { in parseSource()
802 asyncFetchStatus.setEntityStatus(AsyncFetchStatus.EntityStatus.HEADER_ERROR); in parseSource()
816 asyncFetchStatus.setEntityStatus(AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseSource()
823 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseSource()
847 asyncFetchStatus.setEntityStatus(AsyncFetchStatus.EntityStatus.SUCCESS); in parseSource()
852 asyncFetchStatus.setEntityStatus(AsyncFetchStatus.EntityStatus.PARSING_ERROR); in parseSource()
871 asyncFetchStatus.setEntityStatus(AsyncFetchStatus.EntityStatus.VALIDATION_ERROR); in parseSource()
892 AsyncFetchStatus asyncFetchStatus, in fetchSource()
898 asyncFetchStatus.setResponseStatus(AsyncFetchStatus.ResponseStatus.INVALID_URL); in fetchSource()
929 AsyncFetchStatus.ResponseStatus.SERVER_UNAVAILABLE); in fetchSource()
[all …]
DAsyncFetchStatus.java22 public class AsyncFetchStatus { class
56 public AsyncFetchStatus() { in AsyncFetchStatus() method in AsyncFetchStatus
DAsyncRegistrationQueueRunner.java250 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in processSourceRegistration()
275 asyncFetchStatus.setEntityStatus(AsyncFetchStatus.EntityStatus.STORAGE_ERROR); in processSourceRegistration()
328 AsyncFetchStatus asyncFetchStatus = new AsyncFetchStatus(); in processTriggerRegistration()
353 asyncFetchStatus.setEntityStatus(AsyncFetchStatus.EntityStatus.STORAGE_ERROR); in processTriggerRegistration()
888 AsyncFetchStatus asyncFetchStatus, in handleSuccess()
924 AsyncFetchStatus asyncFetchStatus, in handleFailure()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DE2EInteropMockTest.java31 import com.android.adservices.service.measurement.registration.AsyncFetchStatus;
83 private static final List<AsyncFetchStatus.EntityStatus> sParsingErrors = List.of(
84 AsyncFetchStatus.EntityStatus.PARSING_ERROR,
85 AsyncFetchStatus.EntityStatus.VALIDATION_ERROR);
274 AsyncFetchStatus status = new AsyncFetchStatus(); in insertSourceOrAssertUnparsable()
317 AsyncFetchStatus status = new AsyncFetchStatus(); in insertTriggerOrAssertUnparsable()