/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/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/tests/tests/secure_element/omapi/src/android/omapi/cts/ |
D | OmapiTest.java | 418 byte[] response = channel.transmit(cmd); in testSecurityExceptionInTransmit() 490 byte[] response = internalTransmitApdu(reader, apdu); in testTransmitApdu() 491 assertThat(response.length, is(2)); in testTransmitApdu() 492 assertThat(response[response.length - 1] & 0xFF, is(0x00)); in testTransmitApdu() 493 assertThat(response[response.length - 2] & 0xFF, is(0x90)); in testTransmitApdu() 497 byte[] response = internalTransmitApdu(reader, apdu); in testTransmitApdu() 499 assertThat(response.length, is(258)); in testTransmitApdu() 500 assertThat(response[response.length - 1] & 0xFF, is(0x00)); in testTransmitApdu() 501 assertThat(response[response.length - 2] & 0xFF, is(0x90)); in testTransmitApdu() 527 byte[] response = internalTransmitApdu(reader, apdu); in testStatusWordTransmit() [all …]
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | CarrierApiTest.java | 373 String response = mTelephonyManager.getIccAuthentication(TelephonyManager.APPTYPE_USIM, in testGetIccAuthentication() local 375 assertTrue("Response to EAP-SIM Challenge must not be Null.", response != null); in testGetIccAuthentication() 378 byte[] result = android.util.Base64.decode(response, android.util.Base64.DEFAULT); in testGetIccAuthentication() 382 assertTrue("Two responses must be different.", !response.equals(response2)); in testGetIccAuthentication() 593 IccOpenLogicalChannelResponse response = mTelephonyManager.iccOpenLogicalChannel(""); in testIccOpenLogicalChannel() 594 verifyValidIccOpenLogicalChannelResponse(response); in testIccOpenLogicalChannel() 595 mTelephonyManager.iccCloseLogicalChannel(response.getChannel()); in testIccOpenLogicalChannel() 601 response = mTelephonyManager.iccOpenLogicalChannel("", p2); in testIccOpenLogicalChannel() 602 verifyValidIccOpenLogicalChannelResponse(response); in testIccOpenLogicalChannel() 603 mTelephonyManager.iccCloseLogicalChannel(response.getChannel()); in testIccOpenLogicalChannel() [all …]
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | MockAccountAuthenticator.java | 160 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 163 this.mResponse = response; in addAccount() 177 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 179 this.mResponse = response; in updateCredentials() 192 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 193 this.mResponse = response; in editProperties() 202 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 204 this.mResponse = response; in confirmCredentials() 224 AccountAuthenticatorResponse response, in getAuthToken() argument 230 this.mResponse = response; in getAuthToken() [all …]
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 544 HttpResponse response = null; in getResponse() local 590 response = createResponse(HttpStatus.SC_UNAUTHORIZED); in getResponse() 591 response.addHeader("WWW-Authenticate", "Basic realm=\"" + AUTH_REALM + "\""); in getResponse() 610 response = createResponse(HttpStatus.SC_OK); in getResponse() 611 response.setEntity(entity); in getResponse() 612 response.addHeader("Content-Disposition", "attachment; filename=test.bin"); in getResponse() 613 response.addHeader("Content-Type", mimeType); in getResponse() 614 response.addHeader("Content-Length", "" + length); in getResponse() 638 response = createResponse(HttpStatus.SC_OK); in getResponse() 646 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/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/ |
D | StubAuthenticator.java | 50 public Bundle editProperties(AccountAuthenticatorResponse response, in editProperties() argument 56 public Bundle addAccount(AccountAuthenticatorResponse response, in addAccount() argument 61 response.onResult(result); in addAccount() 66 public Bundle confirmCredentials(AccountAuthenticatorResponse response, in confirmCredentials() argument 72 public Bundle getAuthToken(AccountAuthenticatorResponse response, in getAuthToken() argument 83 public Bundle updateCredentials(AccountAuthenticatorResponse response, in updateCredentials() argument 90 public Bundle hasFeatures(AccountAuthenticatorResponse response, in hasFeatures() argument 96 public Bundle getAccountRemovalAllowed(AccountAuthenticatorResponse response, in getAccountRemovalAllowed() argument
|
/cts/tests/tests/content/SyncAccountAccessStubs/src/com/android/cts/stub/ |
D | StubAuthenticator.java | 53 public Bundle editProperties(AccountAuthenticatorResponse response, in editProperties() argument 59 public Bundle addAccount(AccountAuthenticatorResponse response, in addAccount() argument 72 response.onResult(result); in addAccount() 78 public Bundle confirmCredentials(AccountAuthenticatorResponse response, in confirmCredentials() argument 84 public Bundle getAuthToken(AccountAuthenticatorResponse response, in getAuthToken() argument 98 public Bundle updateCredentials(AccountAuthenticatorResponse response, in updateCredentials() argument 105 public Bundle hasFeatures(AccountAuthenticatorResponse response, in hasFeatures() argument 111 public Bundle getAccountRemovalAllowed(AccountAuthenticatorResponse response, in getAccountRemovalAllowed() argument
|
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | BatterySaverBgServiceTest.java | 117 final Payload response = mRpc.sendRequest(targetPackage, in requestClearIntent() local 121 assertTrue(response.hasTestServiceResponse() in requestClearIntent() 122 && response.getTestServiceResponse().getClearLastIntentAck()); in requestClearIntent() 127 final Payload response = mRpc.sendRequest(targetPackage, in requestLastIntent() local 131 assertTrue(response.hasTestServiceResponse()); in requestLastIntent() 133 return response.getTestServiceResponse().hasGetLastIntentAction() in requestLastIntent() 134 ? response.getTestServiceResponse().getGetLastIntentAction() in requestLastIntent() 156 final Payload response = mRpc.sendRequest(targetPackage, in tryStartTestServiceAndReturnAction() local 163 assertTrue(response.hasTestServiceResponse() in tryStartTestServiceAndReturnAction() 164 && response.getTestServiceResponse().getStartServiceAck()); in tryStartTestServiceAndReturnAction()
|
/cts/hostsidetests/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/ |
D | SyncAdapterSettingsAuthenticator.java | 53 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 60 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 65 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 71 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/ManagedProfile/src/com/android/cts/managedprofile/ |
D | AccountAuthenticator.java | 71 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 78 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 83 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 89 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 98 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 109 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument 118 …public Bundle getAccountCredentialsForCloning(AccountAuthenticatorResponse response, Account accou… in getAccountCredentialsForCloning() argument 128 public Bundle addAccountFromCredentials(AccountAuthenticatorResponse response, Account account, in addAccountFromCredentials() argument
|
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/ |
D | MockAccountAuthenticator.java | 49 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 56 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 61 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 67 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 76 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 87 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/ |
D | StaticAccountAuthenticator.java | 56 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 61 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 76 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 87 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 93 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/tests/tests/accounts/common/src/android/accounts/cts/common/ |
D | TestAccountAuthenticator.java | 53 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 60 AccountAuthenticatorResponse response, in addAccount() argument 89 intent.putExtra(Fixtures.KEY_CALLBACK, response); in addAccount() 101 response.onResult(result); in addAccount() 108 AccountAuthenticatorResponse response, in confirmCredentials() argument 135 intent.putExtra(Fixtures.KEY_CALLBACK, response); in confirmCredentials() 147 response.onResult(result); in confirmCredentials() 154 AccountAuthenticatorResponse response, in getAuthToken() argument 190 intent.putExtra(Fixtures.KEY_CALLBACK, response); in getAuthToken() 203 response.onResult(result); in getAuthToken() [all …]
|
D | TestDefaultAuthenticator.java | 45 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 52 AccountAuthenticatorResponse response, in addAccount() argument 79 AccountAuthenticatorResponse response, in confirmCredentials() argument 88 AccountAuthenticatorResponse response, in getAuthToken() argument 104 AccountAuthenticatorResponse response, in updateCredentials() argument 121 AccountAuthenticatorResponse response, in hasFeatures() argument
|
/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) ICMP6_ECHO_REPLY, 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/autofillservice/src/android/autofillservice/cts/ |
D | SessionLifecycleTest.java | 186 CannedFillResponse response = new CannedFillResponse.Builder() in testDatasetAuthResponseWhileAutofilledAppIsLifecycled() local 190 sReplier.addResponse(response); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled() 289 CannedFillResponse response = new CannedFillResponse.Builder() in testAuthCanceledWhileAutofilledAppIsLifecycled() local 293 sReplier.addResponse(response); in testAuthCanceledWhileAutofilledAppIsLifecycled() 328 CannedFillResponse response = new CannedFillResponse.Builder() in testDatasetVisibleWhileAutofilledAppIsLifecycled() local 333 sReplier.addResponse(response); in testDatasetVisibleWhileAutofilledAppIsLifecycled() 372 CannedFillResponse response = new CannedFillResponse.Builder() in testAutofillNestedActivitiesWhileAutofilledAppIsLifecycled() local 377 sReplier.addResponse(response); in testAutofillNestedActivitiesWhileAutofilledAppIsLifecycled() 392 response = new CannedFillResponse.Builder() in testAutofillNestedActivitiesWhileAutofilledAppIsLifecycled() 397 sReplier.addResponse(response); in testAutofillNestedActivitiesWhileAutofilledAppIsLifecycled() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/launchanywhere/src/com/android/security/cts/launchanywhere/ |
D | Authenticator.java | 100 public Bundle editProperties(AccountAuthenticatorResponse response, in editProperties() argument 106 public Bundle getAuthToken(AccountAuthenticatorResponse response, in getAuthToken() argument 112 public Bundle addAccount(AccountAuthenticatorResponse response, in addAccount() argument 123 mAccountAuthenticatorResponseField.get(response); in addAccount() 164 AccountAuthenticatorResponse response, Account account, Bundle options) { in confirmCredentials() argument 169 public Bundle updateCredentials(AccountAuthenticatorResponse response, in updateCredentials() argument 176 AccountAuthenticatorResponse response, Account account, String[] features) in hasFeatures() argument
|
/cts/tests/tests/net/src/android/net/http/cts/ |
D | ApacheHttpClientTest.java | 64 HttpResponse response = httpClient.execute(request); in downloadMultipleFiles() local 65 responses.add(response); in downloadMultipleFiles() 78 private void assertDownloadResponse(String message, int expectedNumBytes, HttpResponse response) in assertDownloadResponse() argument 81 assertEquals(200, response.getStatusLine().getStatusCode()); in assertDownloadResponse() 83 InputStream stream = response.getEntity().getContent(); in assertDownloadResponse()
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
D | BatteryStatsAuthenticator.java | 96 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 103 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 108 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 114 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 120 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 131 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | StatsdAuthenticator.java | 95 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 102 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 107 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 113 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 119 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 130 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
|
/cts/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/ |
D | TestAuthenticator.java | 59 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 87 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 92 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 98 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 104 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 115 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
|
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/ |
D | CtsAugmentedAutofillService.java | 278 public AugmentedReplier addResponse(@NonNull CannedAugmentedFillResponse response) { in addResponse() argument 279 if (response == null) { in addResponse() 282 mResponses.add(response); in addResponse() 347 final CannedAugmentedFillResponse response; in handleOnFillRequest() local 349 response = mResponses.poll(AUGMENTED_CONNECTION_TIMEOUT.ms(), in handleOnFillRequest() 357 if (response == null) { in handleOnFillRequest() 364 final long delay = response.getDelay(); in handleOnFillRequest() 366 SystemClock.sleep(response.getDelay()); in handleOnFillRequest() 369 if (response.getResponseType() == NULL) { in handleOnFillRequest() 375 if (response.getResponseType() == TIMEOUT) { in handleOnFillRequest() [all …]
|