/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/ |
D | MyHostFelicaService.java | 39 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/ |
D | PowerTestHostLink.java | 164 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/ |
D | MockAccountAuthenticator.java | 147 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/ |
D | CtsTestServer.java | 543 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 …]
|
D | TestWebServer.java | 407 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/ |
D | AccountAuthenticator.java | 48 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/ |
D | MockAccountAuthenticator.java | 50 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/ |
D | MockAccountAuthenticator.java | 50 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/ |
D | StaticAccountAuthenticator.java | 58 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/ |
D | TestAccountAuthenticator.java | 49 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 …]
|
D | TestAuthenticatorActivity.java | 30 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/ |
D | PingTest.java | 135 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/ |
D | ApacheHttpClientTest.java | 62 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/ |
D | execute_power_tests.py | 228 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/ |
D | SimpleReaderActivity.java | 112 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/ |
D | NativeMultinetworkJni.c | 191 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/ |
D | MultipartForm.java | 117 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/ |
D | camera_response_fast.rsh | 20 // 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.
|
D | camera_response.rsh | 20 // 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/ |
D | ByodHelperActivity.java | 204 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/ |
D | CallScreeningServiceTest.java | 124 CallScreeningService.CallResponse response = in createCallbacks() 131 getService().respondToCall(callDetails, response); in createCallbacks()
|
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/ |
D | TestUtils.java | 130 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/ |
D | AdbRootDependentCompilationTest.java | 264 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/ |
D | MmsTest.java | 109 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/ |
D | NetworkSecurityPolicyTestBase.java | 126 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
|