Home
last modified time | relevance | path

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

12345

/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/
DGetTranscriptResponseAsync.java27 @Nullable private final GetTranscriptResponse response; field in GetTranscriptResponseAsync
30 public GetTranscriptResponseAsync(GetTranscriptResponse response) { in GetTranscriptResponseAsync() argument
31 Assert.checkArgument(response != null); in GetTranscriptResponseAsync()
32 this.response = response; in GetTranscriptResponseAsync()
38 this.response = null; in GetTranscriptResponseAsync()
42 if (response != null) { in getTranscript()
43 return response.getTranscript(); in getTranscript()
55 if (response != null) { in getErrorDescription()
56 return "Transcription error: " + response.getStatus(); in getErrorDescription()
63 if (response == null) { in getTranscriptionStatus()
[all …]
DTranscriptionResponseAsync.java26 @Nullable private final TranscribeVoicemailAsyncResponse response; field in TranscriptionResponseAsync
29 public TranscriptionResponseAsync(TranscribeVoicemailAsyncResponse response) { in TranscriptionResponseAsync() argument
30 Assert.checkArgument(response != null); in TranscriptionResponseAsync()
31 this.response = response; in TranscriptionResponseAsync()
37 this.response = null; in TranscriptionResponseAsync()
41 if (response != null) { in getTranscriptionId()
42 return response.getTranscriptionId(); in getTranscriptionId()
48 if (response != null) { in getEstimatedWaitMillis()
49 return response.getEstimatedWaitSecs() * 1_000L; in getEstimatedWaitMillis()
56 return super.toString() + ", response: " + response; in toString()
DTranscriptionResponseSync.java26 @Nullable private final TranscribeVoicemailResponse response; field in TranscriptionResponseSync
31 this.response = null; in TranscriptionResponseSync()
35 public TranscriptionResponseSync(TranscribeVoicemailResponse response) { in TranscriptionResponseSync() argument
36 Assert.checkArgument(response != null); in TranscriptionResponseSync()
37 this.response = response; in TranscriptionResponseSync()
41 return (response != null) ? response.getTranscript() : null; in getTranscript()
46 return super.toString() + ", response: " + response; in toString()
/packages/apps/Nfc/tests/src/com/android/nfc/snep/
DSnepBasicTests.java55 SnepMessage response = null; in testGetSmallNdef() local
58 response = client.getMessage(); in testGetSmallNdef()
63 assertNotNull(response); in testGetSmallNdef()
64 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testGetSmallNdef()
86 SnepMessage response = null; in testGetLargeNdef() local
89 response = client.getMessage(); in testGetLargeNdef()
94 assertNotNull(response); in testGetLargeNdef()
95 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testGetLargeNdef()
117 SnepMessage response = null; in testGetExcessiveNdef() local
120 response = client.getMessage(); in testGetExcessiveNdef()
[all …]
/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c43 static void parse_IPPVersions(ipp_t *response, ipp_version_supported_t *ippVersions);
48 static void parse_printerUris(ipp_t *response, printer_capabilities_t *capabilities);
141 ipp_t *response; in test_and_set_ipp_version() local
156 if ((response = cupsDoRequest(http, request, http_resource)) == NULL) { in test_and_set_ipp_version()
193 ippDelete(response); in test_and_set_ipp_version()
197 parse_IPPVersions(response, &ippVersions); in test_and_set_ipp_version()
221 if (response != NULL) ippDelete(response); in test_and_set_ipp_version()
236 ipp_t *response = NULL; in get_PrinterState() local
259 if ((response = ipp_doCupsRequest(http, request, http_resource, printer_uri)) == NULL) { in get_PrinterState()
267 get_PrinterStateReason(response, printer_state, printer_state_dyn); in get_PrinterState()
[all …]
Dippstatus_capabilities.c133 ipp_t *response = NULL; // IPP response object in _get_capabilities() local
167 response = ipp_doCupsRequest(caps->http, request, caps->printer_caps.httpResource, in _get_capabilities()
169 if (response == NULL) { in _get_capabilities()
177 parse_printerAttributes(response, capabilities); in _get_capabilities()
180 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _get_capabilities()
181 response)) { in _get_capabilities()
185 if ((attrptr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) { in _get_capabilities()
192 if (ipp_status >= IPP_OK && ipp_status < IPP_REDIRECTION_OTHER_SITE && response != NULL) { in _get_capabilities()
199 ippDelete(response); in _get_capabilities()
Dippstatus_monitor.c287 ipp_t *response = NULL; in _cancel() local
317 response = ipp_doCupsRequest(monitor->http, request, monitor->http_resource, in _cancel()
319 if (response == NULL) { in _cancel()
325 attr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER); in _cancel()
333 attr = ippFindAttribute(response, "job-state", IPP_TAG_ENUM); in _cancel()
339 attr = ippFindAttribute(response, "job-state-reasons", IPP_TAG_KEYWORD); in _cancel()
352 ippDelete(response); in _cancel()
353 response = NULL; in _cancel()
371 if ((response = ipp_doCupsRequest(monitor->http, request, monitor->http_resource, in _cancel()
381 attr = ippFindAttribute(response, "job-state-reasons", IPP_TAG_KEYWORD); in _cancel()
[all …]
Dipp_print.c409 ipp_t *response; in _validate_job() local
438 if ((response = ipp_doCupsRequest(ipp_job->http, request, ipp_job->http_resource, in _validate_job()
449 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _validate_job()
450 response)) { in _validate_job()
454 ippDelete(response); in _validate_job()
557 ipp_t *response; in _end_job() local
588 response = cupsGetResponse(ipp_job->http, ipp_job->http_resource); in _end_job()
590 if ((attrptr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) == NULL) { in _end_job()
597 if (response != NULL) { in _end_job()
598 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _end_job()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/store/
DPop3Store.java175 String response; in checkSettings() local
176 while ((response = mTransport.readLine(false)) != null) { in checkSettings()
177 parser.parseMultiLine(response); in checkSettings()
241 String response = executeSimpleCommand("STAT"); in open() local
242 String[] parts = response.split(" "); in open()
393 String response = executeSimpleCommand("UIDL " + msgNum); in indexMsgNums() local
394 if (!parser.parseSingleLine(response)) { in indexMsgNums()
402 String response = executeSimpleCommand("UIDL"); in indexMsgNums() local
403 while ((response = mTransport.readLine(false)) != null) { in indexMsgNums()
404 if (!parser.parseMultiLine(response)) { in indexMsgNums()
[all …]
DImapConnection.java313 ImapResponse response = readResponse(); in sendComplexCommand() local
315 if (!response.isContinuationRequest()) { in sendComplexCommand()
339 ImapResponse response; in getCommandResponses() local
341 response = mParser.readResponse(); in getCommandResponses()
342 responses.add(response); in getCommandResponses()
343 } while (!response.isTagged()); in getCommandResponses()
345 if (!response.isOk()) { in getCommandResponses()
346 final String toString = response.toString(); in getCommandResponses()
347 final String status = response.getStatusOrEmpty().getString(); in getCommandResponses()
348 final String alert = response.getAlertTextOrEmpty().getString(); in getCommandResponses()
[all …]
DImapFolder.java279 for (ImapResponse response : responseList) { in copyMessages()
281 if (response.isBad() || (response.isNo() && response.isTagged())) { in copyMessages()
282 String responseText = response.getStatusResponseTextOrEmpty().getString(); in copyMessages()
286 if (!response.isTagged()) { in copyMessages()
294 ImapList copyResponse = response.getListOrEmpty(1); in copyMessages()
362 for (ImapResponse response : responses) { in getUnreadMessageCount()
363 if (response.isDataResponse(0, ImapConstants.STATUS)) { in getUnreadMessageCount()
364 unreadMessageCount = response.getListOrEmpty(2) in getUnreadMessageCount()
384 for (ImapResponse response : responses) { in getSearchUids()
385 if (!response.isDataResponse(0, ImapConstants.SEARCH)) { in getSearchUids()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapConnection.java112 ImapResponse response = parser.readResponse(false); in open() local
113 if (!response.isOk()) { in open()
248 String response = data.createResponse(); in doDigestMd5Auth() local
259 responses = executeContinuationResponse(encodeBase64(response), true); in doDigestMd5Auth()
287 for (ImapResponse response : responses) { in queryCapability()
288 if (response.isTagged()) { in queryCapability()
291 for (int i = 0; i < response.size(); i++) { in queryCapability()
292 String capability = response.getStringOrEmpty(i).getString(); in queryCapability()
368 List<ImapResponse> executeContinuationResponse(String response, boolean sensitive) in executeContinuationResponse() argument
370 transport.writeLine(response, (sensitive ? IMAP_REDACTED_LOG : response)); in executeContinuationResponse()
[all …]
DImapFolder.java155 for (ImapResponse response : responses) { in getSearchUids()
156 if (!response.isDataResponse(0, ImapConstants.SEARCH)) { in getSearchUids()
160 for (int i = 1; i < response.size(); i++) { in getSearchUids()
161 ImapString s = response.getStringOrEmpty(i); in getSearchUids()
306 ImapResponse response; in fetchInternal() local
308 response = null; in fetchInternal()
310 response = connection.readResponse(); in fetchInternal()
312 if (!response.isDataResponse(1, ImapConstants.FETCH)) { in fetchInternal()
315 final ImapList fetchList = response.getListOrEmpty(2); in fetchInternal()
418 } while (!response.isTagged()); in fetchInternal()
[all …]
/packages/apps/SecureElement/src/com/android/se/security/ara/
DAccessRuleApplet.java74 ResponseApdu response = send(apdu); in readAllAccessRules() local
77 if (response.isStatus(0x9000)) { in readAllAccessRules()
81 tempTlv = BerTlv.decode(response.getData(), 0, false); in readAllAccessRules()
91 stream.write(response.getData()); in readAllAccessRules()
108 response = send(apdu); in readAllAccessRules()
110 if (response.isStatus(0x9000)) { in readAllAccessRules()
112 stream.write(response.getData()); in readAllAccessRules()
119 + response.getSW1SW2()); in readAllAccessRules()
124 } else if (response.isStatus(0x6A88)) { in readAllAccessRules()
128 + response.getSW1SW2()); in readAllAccessRules()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java313 VehiclePropValue response = createHalMessage( in testHandlePublisherIdRequestEvent() local
319 verify(mVehicleHal).set(response); in testHandlePublisherIdRequestEvent()
344 VehiclePropValue response = createHalMessage( in testHandlePublisherInformationRequestEvent() local
347 response.value.bytes.addAll(PAYLOAD_AS_LIST); in testHandlePublisherInformationRequestEvent()
350 verify(mVehicleHal).set(response); in testHandlePublisherInformationRequestEvent()
492 VehiclePropValue response = createHalMessage( in testHandleAvailabilityRequestEvent_ZeroLayers() local
499 verify(mVehicleHal).set(response); in testHandleAvailabilityRequestEvent_ZeroLayers()
512 VehiclePropValue response = createHalMessage( in testHandleAvailabilityRequestEvent_OneLayer() local
522 verify(mVehicleHal).set(response); in testHandleAvailabilityRequestEvent_OneLayer()
542 VehiclePropValue response = createHalMessage( in testHandleAvailabilityRequestEvent_MultipleLayers() local
[all …]
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DObd2Connection.java130 StringBuilder response = new StringBuilder(); in runImpl() local
138 response.append(c); in runImpl()
141 String responseValue = response.toString(); in runImpl()
150 String removeSideData(String response, String... patterns) { in removeSideData() argument
152 if (response.contains(pattern)) response = response.replaceAll(pattern, ""); in removeSideData()
154 return response; in removeSideData()
157 String unpackLongFrame(String response) { in unpackLongFrame() argument
159 if (response.indexOf(':') < 0) return response; in unpackLongFrame()
162 response = response.substring(response.indexOf(':') + 1); in unpackLongFrame()
166 return response.replaceAll("[0-9]:", ""); in unpackLongFrame()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
DBlockingHttpClientTests.java113 byte[] response = new byte[100]; in testSuccess_emptyRequest()
114 rand.nextBytes(response); in testSuccess_emptyRequest()
116 when(mMockHttpConnection.getInputStream()).thenReturn(new ByteArrayInputStream(response)); in testSuccess_emptyRequest()
119 new FakeSuccessResponseProcessor(response); in testSuccess_emptyRequest()
129 byte[] response = new byte[100]; in testSuccess()
130 rand.nextBytes(response); in testSuccess()
133 when(mMockHttpConnection.getInputStream()).thenReturn(new ByteArrayInputStream(response)); in testSuccess()
136 new FakeSuccessResponseProcessor(response); in testSuccess()
144 public Void onSuccess(InputStream response) { in onSuccess() argument
160 public Void onSuccess(InputStream response) { in onSuccess() argument
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsRequest.java65 protected abstract boolean transferResponse(Context context, Intent fillIn, byte[] response); in transferResponse() argument
135 byte[] response = null; in execute()
172 response = doHttp( in execute()
175 if (isWrongApnResponse(response, mmsConfig)) { in execute()
209 returnResult(context, result, response, httpStatusCode); in execute()
223 static boolean isWrongApnResponse(final byte[] response, final Bundle mmsConfig) { in isWrongApnResponse() argument
224 if (response != null && response.length > 0) { in isWrongApnResponse()
227 response, in isWrongApnResponse()
257 void returnResult(final Context context, int result, final byte[] response, in returnResult() argument
265 if (response != null) { in returnResult()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/compat/internal/
DSessionCompatProcessor.java43 Bundle response = new Bundle(); in handleAppPrivateCommand() local
44 response.putInt(Constants.EVENT_GET_VERSION, Constants.TIF_COMPAT_VERSION); in handleAppPrivateCommand()
45 mSessionEventNotifier.notifySessionEvent(Constants.EVENT_GET_VERSION, response); in handleAppPrivateCommand()
65 Bundle response = new Bundle(); in notifyCompat() local
68 response.putByteArray(Constants.EVENT_COMPAT_NOTIFY, bytes); in notifyCompat()
71 response.putString(Constants.EVENT_COMPAT_NOTIFY_ERROR, e.getMessage()); in notifyCompat()
73 mSessionEventNotifier.notifySessionEvent(Constants.EVENT_COMPAT_NOTIFY, response); in notifyCompat()
/packages/apps/Email/provider_src/com/android/email/service/
DEasTestAuthenticatorService.java48 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
72 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); in addAccount()
79 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
85 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
90 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
102 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
108 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
DAuthenticatorService.java56 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
114 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); in addAccount()
121 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
127 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
132 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
144 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
150 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
/packages/services/Mms/src/com/android/mms/service/
DMmsRequest.java140 byte[] response = null; in execute()
172 response = doHttp(context, networkManager, apn); in execute()
203 processResult(context, result, response, httpStatusCode); in execute()
214 public void processResult(Context context, int result, byte[] response, int httpStatusCode) { in processResult() argument
215 final Uri messageUri = persistIfRequired(context, result, response); in processResult()
223 if (response != null) { in processResult()
224 succeeded = transferResponse(fillIn, response); in processResult()
317 protected abstract Uri persistIfRequired(Context context, int result, byte[] response); in persistIfRequired() argument
332 protected abstract boolean transferResponse(Intent fillIn, byte[] response); in transferResponse() argument
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionServiceSystemTest.java120 final Bundle response = new Bundle(); in testChatActionSucceeds() local
121 response.putString(TestChatAction.RESPONSE_TEST, processResponseResult); in testChatActionSucceeds()
129 service.handleResponseFromBackgroundWorker(request, response); in testChatActionSucceeds()
209 final Bundle response = new Bundle(); in testChatActionNoMonitor() local
210 response.putString(TestChatAction.RESPONSE_TEST, processResponseResult); in testChatActionNoMonitor()
213 service.handleResponseFromBackgroundWorker(request, response); in testChatActionNoMonitor()
255 final Bundle response = new Bundle(); in testChatActionUnregisterListener() local
263 service.handleResponseFromBackgroundWorker(request, response); in testChatActionUnregisterListener()
343 protected Object processBackgroundResponse(final Bundle response) { in processBackgroundResponse() argument
345 return response.get(RESPONSE_TEST); in processBackgroundResponse()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java99 byte[] response = baos.toByteArray(); in sendRequestAsByteArray()
100 LogUtil.i("HttpFetcher.sendRequestAsByteArray", "received " + response.length + " bytes"); in sendRequestAsByteArray()
103 return response; in sendRequestAsByteArray()
217 final String response = new String(byteArr); in getRequestAsString() local
218 LogUtil.i("HttpFetcher.getRequestAsString", "response body: " + response); in getRequestAsString()
219 return response; in getRequestAsString()
260 private static void handleBadResponse(String url, byte[] response) { in handleBadResponse() argument
262 LogUtil.i("HttpFetcher.handleBadResponse", new String(response)); in handleBadResponse()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DQuickstepTestInformationHandler.java17 final Bundle response = new Bundle(); in call() local
22 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call()
23 return response; in call()
29 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call()
30 return response; in call()

12345