Home
last modified time | relevance | path

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

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/
DMyHostFelicaService.java39 byte[] response = new byte[13]; in handleSystemCodeRequest()
40 response[0] = 0x0D; // length in handleSystemCodeRequest()
41 response[1] = RESPONSE_SYSTEM_CODES; // get system codes resp in handleSystemCodeRequest()
42 System.arraycopy(sc_request, 2, response, 2, 8); in handleSystemCodeRequest()
43 response[10] = 0x01; in handleSystemCodeRequest()
44 response[11] = 0x40; in handleSystemCodeRequest()
45 response[12] = 0x01; in handleSystemCodeRequest()
46 return response; in handleSystemCodeRequest()
50 byte[] response = new byte[echo_request.length]; in handleEchoRequest()
51 response[0] = (byte) echo_request.length; in handleEchoRequest()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java164 String response = processClientRequest(clientRequest); in run() local
165 if (response != null) { in run()
166 Log.d(TAG, "Sending response " + response); in run()
167 streamOut.write(response.getBytes(), 0, response.length()); in run()
209 String response = RESPONSE_ERR; in processClientRequest() local
215 response = RESPONSE_UNAVAILABLE; in processClientRequest()
217 response = RESPONSE_OK; in processClientRequest()
220 response = SensorCtsHelper.getSensorTestDataDirectory("power/").getAbsolutePath(); in processClientRequest()
221 Log.d(TAG,"External storage is " + response); in processClientRequest()
225 response = RESPONSE_OK; in processClientRequest()
[all …]
/cts/tests/tests/accounts/src/android/accounts/cts/
DMockAccountAuthenticator.java147 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
150 this.mResponse = response; in addAccount()
164 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
166 this.mResponse = response; in updateCredentials()
179 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
180 this.mResponse = response; in editProperties()
189 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
191 this.mResponse = response; in confirmCredentials()
211 AccountAuthenticatorResponse response, in getAuthToken() argument
217 this.mResponse = response; in getAuthToken()
[all …]
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java543 HttpResponse response = null; in getResponse() local
589 response = createResponse(HttpStatus.SC_UNAUTHORIZED); in getResponse()
590 response.addHeader("WWW-Authenticate", "Basic realm=\"" + AUTH_REALM + "\""); in getResponse()
609 response = createResponse(HttpStatus.SC_OK); in getResponse()
610 response.setEntity(entity); in getResponse()
611 response.addHeader("Content-Disposition", "attachment; filename=test.bin"); in getResponse()
612 response.addHeader("Content-Type", mimeType); in getResponse()
613 response.addHeader("Content-Length", "" + length); in getResponse()
637 response = createResponse(HttpStatus.SC_OK); in getResponse()
645 response.setEntity(entity); in getResponse()
[all …]
DTestWebServer.java407 Response response = null; in getResponse() local
409 response = mResponseMap.get(path); in getResponse()
413 } else if (response == null) { in getResponse()
415 } else if (response.mIsNotFound) { in getResponse()
418 } else if (response.mIsRedirect) { in getResponse()
420 for (Pair<String, String> header : response.mResponseHeaders) { in getResponse()
425 if (response.mResponseAction != null) response.mResponseAction.run(); in getResponse()
428 ByteArrayEntity entity = createEntity(response.mResponseData); in getResponse()
431 for (Pair<String, String> header : response.mResponseHeaders) { in getResponse()
442 private void setDateHeaders(HttpResponse response) { in setDateHeaders() argument
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DAccountAuthenticator.java48 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
55 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
60 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
66 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
75 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
86 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
/cts/tests/tests/content/src/android/content/cts/
DMockAccountAuthenticator.java50 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
57 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
62 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
77 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
88 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DMockAccountAuthenticator.java50 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
57 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
62 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
77 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
88 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DStaticAccountAuthenticator.java58 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
63 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
70 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
78 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
89 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
95 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java49 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
56 AccountAuthenticatorResponse response, in addAccount() argument
85 intent.putExtra(Fixtures.KEY_CALLBACK, response); in addAccount()
104 response.onResult(result); in addAccount()
111 AccountAuthenticatorResponse response, in confirmCredentials() argument
138 intent.putExtra(Fixtures.KEY_CALLBACK, response); in confirmCredentials()
158 response.onResult(result); in confirmCredentials()
165 AccountAuthenticatorResponse response, in getAuthToken() argument
201 intent.putExtra(Fixtures.KEY_CALLBACK, response); in getAuthToken()
221 response.onResult(result); in getAuthToken()
[all …]
DTestAuthenticatorActivity.java30 AccountAuthenticatorResponse response = intent.getParcelableExtra(Fixtures.KEY_CALLBACK); in onCreate() local
32 if (response != null) { in onCreate()
33 response.onResult(result.getExtras()); in onCreate()
/cts/tests/tests/net/src/android/net/ipv6/cts/
DPingTest.java135 byte[] response = new byte[bytesRead]; in checkResponse()
137 responseBuffer.get(response, 0, bytesRead); in checkResponse()
138 assertEquals((byte) 0x81, response[0]); in checkResponse() local
147 response[0] = (byte) 0x80; // Type. in checkResponse()
148 response[2] = response[3] = (byte) 0x00; // Checksum. in checkResponse()
149 assertArrayBytesEqual(response, sent, bytesRead); in checkResponse()
/cts/tests/tests/net/src/android/net/http/cts/
DApacheHttpClientTest.java62 HttpResponse response = httpClient.execute(request); in downloadMultipleFiles() local
63 responses.add(response); in downloadMultipleFiles()
76 private void assertDownloadResponse(String message, int expectedNumBytes, HttpResponse response) in assertDownloadResponse() argument
79 assertEquals(200, response.getStatusLine().getStatusCode()); in assertDownloadResponse()
81 InputStream stream = response.getEntity().getContent(); in assertDownloadResponse()
/cts/apps/CtsVerifier/assets/scripts/
Dexecute_power_tests.py228 response = link.recv(4096)
229 logging.debug("Got response '%s'", response)
231 return response
572 response = self.executeOnDevice(PowerTest.REQUEST_USER_RESPONSE % msg)
574 response != "OK", "Unable to request user acknowledgment")
586 response = (
591 response != "OK", "Unable to send test status to Verifier")
594 response = self.executeOnDevice(PowerTest.REQUEST_SENSOR_SWITCH %
597 response == "ERR", "Unable to set sensor %s state" % sensor)
599 return response
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DSimpleReaderActivity.java112 byte[] response = isoDep.transceive(HceUtils.hexStringToBytes(apdu.getApdu())); in onTagDiscovered()
116 sb.append(HceUtils.getHexBytes(null, response)); in onTagDiscovered()
121 Log.d(TAG, HceUtils.getHexBytes("APDU response: ", response)); in onTagDiscovered()
122 if (!wildCard && !Arrays.equals(response, expectedResponse)) { in onTagDiscovered()
123 Log.d(TAG, "Unexpected APDU response: " + HceUtils.getHexBytes("", response)); in onTagDiscovered()
/cts/tests/tests/net/jni/
DNativeMultinetworkJni.c191 uint8_t response[1500]; in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() local
205 rcvd = recv(fd, response, sizeof(response), 0); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
223 int conn_id_cmp = memcmp(quic_packet + 1, response + 1, 8); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
/cts/common/util/src/com/android/compatibility/common/util/
DMultipartForm.java117 int response = connection.getResponseCode(); in submitForm() local
118 if (response == 302) { in submitForm()
121 return response; in submitForm()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dcamera_response_fast.rsh20 // The typical work flow is to first remove the response from a photograph,
21 // do some computation in the radiance space, then re-apply the response to
26 // Default parameters of the camera response function.
Dcamera_response.rsh20 // The typical work flow is to first remove the response from a photograph,
21 // do some computation in the radiance space, then re-apply the response to
26 // Default parameters of the camera response function.
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java204 Intent response = new Intent(ACTION_PROFILE_OWNER_STATUS); in onCreate() local
205 response.putExtra(EXTRA_PROVISIONED, isProfileOwner()); in onCreate()
206 startActivityInPrimary(response); in onCreate()
209 Intent response = new Intent(); in onCreate() local
210 response.putExtra(EXTRA_PROVISIONED, isProfileOwner()); in onCreate()
211 setResult(RESULT_OK, response); in onCreate()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCallScreeningServiceTest.java124 CallScreeningService.CallResponse response = in createCallbacks()
131 getService().respondToCall(callDetails, response); in createCallbacks()
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
DTestUtils.java130 HttpResponse response = httpClient.execute(new HttpGet(url.toString())); in assertHttpClientSucceeds() local
141 HttpResponse response = httpClient.execute(new HttpGet(url.toString())); in assertHttpClientFails() local
/cts/hostsidetests/compilation/src/android/cts/compilation/
DAdbRootDependentCompilationTest.java264 String[] response = executeAdbCommand( in getCompilerFilter() local
267 for (String line : response) { in getCompilerFilter()
273 fail("No occurence of \"" + prefix + "\" in: " + Arrays.toString(response)); in getCompilerFilter()
/cts/tests/tests/telephony/src/android/telephony/cts/
DMmsTest.java109 final byte[] response = intent.getByteArrayExtra(SmsManager.EXTRA_MMS_DATA); in onReceive()
110 if (response != null) { in onReceive()
112 response, shouldParseContentDisposition()).parse(); in onReceive()
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java126 HttpResponse response = httpClient.execute(new HttpGet(url.toString())); in assertAndroidHttpClientCleartextRequestSucceeds() local
127 assertEquals(200, response.getStatusLine().getStatusCode()); in assertAndroidHttpClientCleartextRequestSucceeds()
139 HttpResponse response = httpClient.execute(new HttpGet(url.toString())); in assertAndroidHttpClientCleartextRequestBlocked() local

12