Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DTrustedBiddingDataFetcherTest.java117 .setResponseBody( in testDevOptionDisabled_fetchForMultipleUri()
127 .setResponseBody( in testDevOptionDisabled_fetchForMultipleUri()
173 .setResponseBody( in testDevOptionDisabled_fetchForMultipleUriWithHeaders()
185 .setResponseBody( in testDevOptionDisabled_fetchForMultipleUriWithHeaders()
239 .setResponseBody( in testDevOptionDisabled_fetchFailedOrNoResultFromServer()
286 .setResponseBody( in testDevOptionDisabled_serverReturnedMalformedData()
296 .setResponseBody("not A VALID JSON{{}") in testDevOptionDisabled_serverReturnedMalformedData()
340 .setResponseBody( in testDevOptionEnabled_someCAhasDevOverride()
347 .setResponseBody(new JSONObject(ImmutableMap.of(KEY_2, VALUE_2)).toString()) in testDevOptionEnabled_someCAhasDevOverride()
399 .setResponseBody( in testFetchTrustedBiddingDataDataVersionEnabled()
[all …]
DFrequencyCapFilteringE2ETest.java349 .setResponseBody("{}") in setup()
357 .setResponseBody("{}") in setup()
365 .setResponseBody( in setup()
372 .setResponseBody(AdSelectionE2ETest.USE_BID_AS_SCORE_JS) in setup()
DJsFetcherTest.java384 .setResponseBody("Some js") in testGerVersionHeader()
DAdsScoreGeneratorImplTest.java1991 AdServicesHttpClientResponse.builder().setResponseBody(body).build()); in httpResponseWithBody()
DOnDeviceAdSelectionRunnerTest.java3311 .setResponseBody(BUYER_DECISION_LOGIC_JS) in testGetDecisionLogic_NotPreDownloaded()
DAdSelectionServiceImplTest.java8600 .setResponseBody(sellerDecisionLogicJs) in testReportImpressionSuccessWithValidImpressionReportingSubdomains()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/http/
DHttpClientTest.java113 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_contentTypeXml_returnsXmlBody()
144 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_httpGetResponseBadRequest_throwsException()
175 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()
215 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_postJson_doNotEscapeForwardSlash()
239 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_postGzipJsonArray()
264 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_postJsonArray()
292 .setResponseBody(HttpClient.toGzipBytes(TEST_RESPONSE_BODY)) in request_postGzipJsonArray_response_gunzipJsonArray()
316 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_getResponseCodeFailed_expectThrowsException()
DFakeURLStreamHandler.java196 .setResponseBody(new byte[]{}) in builder()
211 public abstract Builder setResponseBody(byte[] value); in setResponseBody() method in FakeURLStreamHandler.FakeResponse.Builder
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/cache/
DCacheEntryDaoTest.java58 .setResponseBody(BODY)
118 .setResponseBody(BODY) in test_CacheEntryGetStaleEntry_Failure()
151 .setResponseBody(BODY) in test_CacheEntryDeleteStaleQueries_SmallMaxAge_Succeeds()
176 .setResponseBody(BODY) in test_CachePrunedToDesiredSizeAndFIFO_Success()
DFledgeHttpCacheTest.java102 .setResponseBody(mBody) in setup()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpClientResponse.java50 return builder().setResponseBody(responseBody).setResponseHeaders(responseHeaders).build(); in create()
64 public abstract AdServicesHttpClientResponse.Builder setResponseBody(String responseBody); in setResponseBody() method in AdServicesHttpClientResponse.Builder
DAdServicesHttpsClient.java413 .setResponseBody(responseBody) in doFetchPayload()
460 .setResponseBody(cachedEntry.getResponseBody()) in getResultsFromCache()
715 .setResponseBody(responseBody) in doPerformRequestAndGetResponse()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DAuctionEncryptionKeyFixture.java109 .setResponseBody(getDefaultAuctionResponseBody()) in mockAuctionKeyFetchResponse()
117 .setResponseBody(getDefaultAuctionResponseBodyWithOneKey()) in mockAuctionKeyFetchResponseWithOneKey()
126 .setResponseBody(getDeterministicAuctionResponseBody(auctionKey)) in mockAuctionKeyFetchResponseWithGivenKey()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DScheduledUpdatesHandlerTest.java190 .setResponseBody(responsePayload) in testPerformScheduledUpdates_Success()
265 .setResponseBody(responsePayload) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabled()
347 .setResponseBody(responsePayload) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsDisabled()
433 .setResponseBody(responsePayload) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabledButNoFlagsInResponse()
515 .setResponseBody(responsePayloadJSON.toString()) in testPerformScheduledUpdatesDoesNotPersistCAsWithMissingField()
559 .setResponseBody(responsePayloadJSON.toString()) in testPerformScheduledUpdatesThrowsExceptionForMissingFieldWithAuctionServerRequestFlagsEnabled()
595 .setResponseBody(responsePayload) in testPerformScheduledUpdates_PartialCaDifferentNames_Success()
673 .setResponseBody(responsePayload) in testPerformScheduledUpdates_InvalidPartialCa_PartialSuccess()
744 .setResponseBody(responsePayload) in testPerformScheduledUpdates_NoOverrides_Success()
809 .setResponseBody(responsePayload) in testPerformScheduledUpdates_LargeInsertFail_LeaveSuccess()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/
DEncoderLogicHandlerTest.java139 .setResponseBody(body) in testDownloadAndUpdate_success()
201 .setResponseBody(body) in testExtractAndPersistEncoder_Success()
222 AdServicesHttpClientResponse.builder().setResponseBody(body).build(); in testExtractAndPersistEncoder_MissingVersionFallback()
248 .setResponseBody(body) in testExtractAndPersistEncoder_UnreadableVersionFallback()
277 .setResponseBody(body) in testExtractAndPersistEncoderFailed_SkipUpdate()
344 .setResponseBody(body) in testExtractAndPersistEncoder_PreventsOverwrites()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DAuctionEncryptionKeyParserTest.java100 AdServicesHttpClientResponse.builder().setResponseBody("").build())) in getDbEncryptionKeys_emptyResponseBody_emptyList()
109 .setResponseBody(getAuctionResponseBodySingleKey()) in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
125 .setResponseBody(getAuctionResponseBodySingleKey()) in getDbEncryptionKeys_parsesSingleKey()
DJoinEncryptionKeyParserTest.java99 .setResponseBody("") in getDbEncryptionKeys_missingHeaders_throwsIAE()
110 .setResponseBody("") in getDbEncryptionKeys_emptyResponseBody_throwsIAE()
DJoinEncryptionKeyTestUtil.java88 .setResponseBody(getDefaultJoinResponseBody()) in mockJoinKeyFetchResponse()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DUpdatesDownloaderTest.java73 AdServicesHttpClientResponse.builder().setResponseBody(JSON).build(); in testGetValidJsonSuccess()
98 AdServicesHttpClientResponse.builder().setResponseBody("{abc").build(); in testInvalidJsonThrowsExecutionException()
DSignalsIntakeE2ETest.java735 AdServicesHttpClientResponse.builder().setResponseBody(json).build(); in setupAndRunUpdateSignals()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/cache/
DDBCacheEntry.java93 .setResponseBody(responseBody) in create()
113 public abstract DBCacheEntry.Builder setResponseBody(String responseBody); in setResponseBody() method in DBCacheEntry.Builder
DFledgeHttpCache.java128 .setResponseBody(body) in put()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java551 server.setResponseBody(TEST_URL_QUERY, in runCustomSchemeTest()
627 server.setResponseBody(TEST_URL_QUERY, in testDownload()
798 private void setResponseBody(String query, String body) { in setResponseBody() method in CaptivePortalLoginActivityTest.HttpServer
831 server.setResponseBody(TEST_URL_QUERY, in prepareTestDirectlyOpen()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/
DKAnonCallerImplTest.java827 .setResponseBody( in setupMockWithCountDownLatch()
839 .setResponseBody( in setupMockWithCountDownLatch()
851 .setResponseBody(BaseEncoding.base64().encode(EMPTY_BODY)) in setupMockWithCountDownLatch()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClientTest.java495 AdServicesHttpClientResponse.builder().setResponseBody("").build(); in testAdServiceRequestResponseDefault_Empty()