Searched refs:serverResponse (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | AfcServerResponseTest.java | 230 AfcServerResponse serverResponse = AfcServerResponse.fromSpectrumInquiryResponse( in testSuccessfulResponse() local 233 assertEquals(httpResponseCode, serverResponse.getHttpResponseCode()); in testSuccessfulResponse() 234 assertEquals(SUCCESS_RESPONSE_CODE, serverResponse.getAfcResponseCode()); in testSuccessfulResponse() 235 assertEquals(3, serverResponse.getAfcChannelAllowance().availableAfcFrequencyInfos.size()); in testSuccessfulResponse() 236 assertEquals(9, serverResponse.getAfcChannelAllowance().availableAfcChannelInfos.size()); in testSuccessfulResponse() 252 AfcServerResponse serverResponse = AfcServerResponse.fromSpectrumInquiryResponse( in testExpireTimeSetCorrectly() local 256 serverResponse.getAfcChannelAllowance().availabilityExpireTimeMs); in testExpireTimeSetCorrectly() 269 AfcServerResponse serverResponse = AfcServerResponse.fromSpectrumInquiryResponse( in testResponseWithEmptyFrequencyArray() local 272 assertEquals(httpResponseCode, serverResponse.getHttpResponseCode()); in testResponseWithEmptyFrequencyArray() 273 assertEquals(SUCCESS_RESPONSE_CODE, serverResponse.getAfcResponseCode()); in testResponseWithEmptyFrequencyArray() [all …]
|
D | AfcClientTest.java | 180 AfcServerResponse serverResponse = mAfcServerResponseCaptor.getValue(); in testSendRequestAndReceiveResponse() local 181 assertThat(serverResponse.getAfcChannelAllowance().availabilityExpireTimeMs) in testSendRequestAndReceiveResponse() 184 assertThat(serverResponse.getHttpResponseCode()).isEqualTo(HTTP_RESPONSE_CODE); in testSendRequestAndReceiveResponse() 185 assertThat(serverResponse.getAfcResponseCode()).isEqualTo(0); in testSendRequestAndReceiveResponse() 186 assertThat(serverResponse.getAfcResponseDescription()).isEqualTo("Success"); in testSendRequestAndReceiveResponse()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | AfcClient.java | 102 AfcServerResponse serverResponse = AfcServerResponse in queryAfcServer() local 106 if (serverResponse == null) { in queryAfcServer() 111 } else if (serverResponse.getAfcChannelAllowance() == null) { in queryAfcServer() 114 + "HttpResponseCode=" + serverResponse.getHttpResponseCode() in queryAfcServer() 115 + ", AfcServerResponseCode=" + serverResponse in queryAfcServer() 117 + serverResponse.getAfcResponseDescription())); in queryAfcServer() 120 wifiHandler.post(() -> callback.onResult(serverResponse, afcLocation)); in queryAfcServer() 284 void onResult(AfcServerResponse serverResponse, AfcLocation afcLocation); in onResult() argument
|
D | AfcManager.java | 90 public void onResult(AfcServerResponse serverResponse, AfcLocation afcLocation) { in AfcManager() 91 mLatestAfcServerResponse = serverResponse; in AfcManager() 99 + serverResponse); in AfcManager()
|