Home
last modified time | relevance | path

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

123

/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/telephony/current/src/android/telephony/cts/
DDataCallResponseTest.java53 DataCallResponse response = new DataCallResponse.Builder() in testConstructorAndGetters() local
68 assertThat(response.getCause()).isEqualTo(CAUSE); in testConstructorAndGetters()
69 assertThat(response.getSuggestedRetryTime()).isEqualTo(RETRY); in testConstructorAndGetters()
70 assertThat(response.getId()).isEqualTo(ID); in testConstructorAndGetters()
71 assertThat(response.getLinkStatus()).isEqualTo(LINK_STATUS); in testConstructorAndGetters()
72 assertThat(response.getProtocolType()).isEqualTo(PROTOCOL_TYPE); in testConstructorAndGetters()
73 assertThat(response.getInterfaceName()).isEqualTo(IF_NAME); in testConstructorAndGetters()
74 assertThat(response.getAddresses()).isEqualTo(ADDRESSES); in testConstructorAndGetters()
75 assertThat(response.getDnsAddresses()).isEqualTo(DNSES); in testConstructorAndGetters()
76 assertThat(response.getGatewayAddresses()).isEqualTo(GATEWAYS); in testConstructorAndGetters()
[all …]
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/
DOmapiTest.java501 byte[] response = channel.transmit(cmd); in testSecurityExceptionInTransmit()
574 byte[] response = internalTransmitApdu(reader, apdu); in testTransmitApdu()
575 assertThat(response.length, is(2)); in testTransmitApdu()
576 assertThat(response[response.length - 1] & 0xFF, is(0x00)); in testTransmitApdu()
577 assertThat(response[response.length - 2] & 0xFF, is(0x90)); in testTransmitApdu()
581 byte[] response = internalTransmitApdu(reader, apdu); in testTransmitApdu()
583 assertThat(response.length, is(258)); in testTransmitApdu()
584 assertThat(response[response.length - 1] & 0xFF, is(0x00)); in testTransmitApdu()
585 assertThat(response[response.length - 2] & 0xFF, is(0x90)); in testTransmitApdu()
612 byte[] response = internalTransmitApdu(reader, apdu); in testStatusWordTransmit()
[all …]
/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/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java389 String response = mTelephonyManager.getIccAuthentication(TelephonyManager.APPTYPE_USIM, in testGetIccAuthentication() local
391 assertTrue("Response to EAP-SIM Challenge must not be Null.", response != null); in testGetIccAuthentication()
394 byte[] result = android.util.Base64.decode(response, android.util.Base64.DEFAULT); in testGetIccAuthentication()
398 assertTrue("Two responses must be different.", !response.equals(response2)); in testGetIccAuthentication()
611 IccOpenLogicalChannelResponse response = mTelephonyManager.iccOpenLogicalChannel(""); in testIccOpenLogicalChannel()
612 final int logicalChannel = response.getChannel(); in testIccOpenLogicalChannel()
614 verifyValidIccOpenLogicalChannelResponse(response); in testIccOpenLogicalChannel()
627 IccOpenLogicalChannelResponse response = mTelephonyManager.iccOpenLogicalChannel("", p2); in testIccOpenLogicalChannelWithValidP2() local
628 final int logicalChannel = response.getChannel(); in testIccOpenLogicalChannelWithValidP2()
630 verifyValidIccOpenLogicalChannelResponse(response); in testIccOpenLogicalChannelWithValidP2()
[all …]
/cts/tests/tests/accounts/src/android/accounts/cts/
DMockAccountAuthenticator.java160 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/
DCtsTestServer.java544 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 …]
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/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/
DStubAuthenticator.java50 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/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverBgServiceTest.java117 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/tests/tests/content/SyncAccountAccessStubs/src/com/android/cts/stub/
DStubAuthenticator.java53 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/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java53 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 …]
DTestDefaultAuthenticator.java45 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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DAccountAuthenticator.java71 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/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/
DSyncAdapterSettingsAuthenticator.java53 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/tests/autofillservice/src/android/autofillservice/cts/
DSessionLifecycleTest.java186 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/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/tests/tests/provider/src/android/provider/cts/contacts/account/
DStaticAccountAuthenticator.java56 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/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DMockAccountAuthenticator.java49 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/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) 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/augmented/
DCtsAugmentedAutofillService.java278 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 …]
/cts/hostsidetests/securitybulletin/test-apps/launchanywhere/src/com/android/security/cts/launchanywhere/
DAuthenticator.java100 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/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdAuthenticator.java95 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/
DTestAuthenticator.java59 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/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsAuthenticator.java96 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

123