/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 43 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 …]
|
D | ippstatus_capabilities.c | 132 ipp_t *response = NULL; // IPP response object in _get_capabilities() local 166 response = ipp_doCupsRequest(caps->http, request, caps->printer_caps.httpResource, in _get_capabilities() 168 if (response == NULL) { in _get_capabilities() 176 parse_printerAttributes(response, capabilities); in _get_capabilities() 179 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _get_capabilities() 180 response)) { in _get_capabilities() 184 if ((attrptr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) { in _get_capabilities() 191 if (ipp_status >= IPP_OK && ipp_status < IPP_REDIRECTION_OTHER_SITE && response != NULL) { in _get_capabilities() 198 ippDelete(response); in _get_capabilities()
|
D | ippstatus_monitor.c | 287 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 …]
|
D | ipp_print.c | 403 ipp_t *response; in _validate_job() local 432 if ((response = ipp_doCupsRequest(ipp_job->http, request, ipp_job->http_resource, in _validate_job() 443 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _validate_job() 444 response)) { in _validate_job() 448 ippDelete(response); in _validate_job() 551 ipp_t *response; in _end_job() local 582 response = cupsGetResponse(ipp_job->http, ipp_job->http_resource); in _end_job() 584 if ((attrptr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) == NULL) { in _end_job() 591 if (response != NULL) { in _end_job() 592 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _end_job() [all …]
|
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
D | Pop3Store.java | 175 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 …]
|
D | ImapConnection.java | 313 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 …]
|
D | ImapFolder.java | 279 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/Nfc/tests/src/com/android/nfc/snep/ |
D | SnepBasicTests.java | 55 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/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
D | ImapConnection.java | 112 ImapResponse response = mParser.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 mTransport.writeLine(response, (sensitive ? IMAP_REDACTED_LOG : response)); in executeContinuationResponse() [all …]
|
D | ImapFolder.java | 155 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 = mConnection.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/services/Car/obd2-lib/src/com/android/car/obd2/ |
D | Obd2Connection.java | 130 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/ |
D | BlockingHttpClientTests.java | 103 byte[] response = new byte[100]; in testSuccess_emptyRequest() 104 rand.nextBytes(response); in testSuccess_emptyRequest() 106 when(mMockHttpConnection.getInputStream()).thenReturn(new ByteArrayInputStream(response)); in testSuccess_emptyRequest() 109 new FakeSuccessResponseProcessor(response); in testSuccess_emptyRequest() 118 byte[] response = new byte[100]; in testSuccess() 119 rand.nextBytes(response); in testSuccess() 122 when(mMockHttpConnection.getInputStream()).thenReturn(new ByteArrayInputStream(response)); in testSuccess() 125 new FakeSuccessResponseProcessor(response); in testSuccess() 133 public Void onSuccess(InputStream response) { in onSuccess() argument 149 public Void onSuccess(InputStream response) { in onSuccess() argument [all …]
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsRequest.java | 65 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/Dialer/java/com/android/voicemail/impl/transcribe/grpc/ |
D | TranscriptionClient.java | 34 public final TranscribeVoicemailResponse response; field in TranscriptionClient.TranscriptionResponseWrapper 38 @Nullable TranscribeVoicemailResponse response, @Nullable Status status) { in TranscriptionResponseWrapper() 39 Assert.checkArgument(!(response == null && status == null)); in TranscriptionResponseWrapper() 40 this.response = response; in TranscriptionResponseWrapper() 52 TranscribeVoicemailResponse response = null; in transcribeVoicemail() local 55 response = stub.transcribeVoicemail(request); in transcribeVoicemail() 59 return new TranscriptionClient.TranscriptionResponseWrapper(response, status); in transcribeVoicemail()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsRequest.java | 139 byte[] response = null; in execute() 171 response = doHttp(context, networkManager, apn); in execute() 202 processResult(context, result, response, httpStatusCode); in execute() 213 public void processResult(Context context, int result, byte[] response, int httpStatusCode) { in processResult() argument 214 final Uri messageUri = persistIfRequired(context, result, response); in processResult() 222 if (response != null) { in processResult() 223 succeeded = transferResponse(fillIn, response); in processResult() 316 protected abstract Uri persistIfRequired(Context context, int result, byte[] response); in persistIfRequired() argument 331 protected abstract boolean transferResponse(Intent fillIn, byte[] response); in transferResponse() argument
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EasTestAuthenticatorService.java | 48 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
|
D | AuthenticatorService.java | 56 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/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ActionServiceSystemTest.java | 120 final Bundle response = new Bundle(); in testChatActionSucceeds() local 121 response.putString(TestChatAction.RESPONSE_TEST, processResponseResult); in testChatActionSucceeds() 129 service.handleResponseFromBackgroundWorker(request, response); in testChatActionSucceeds() 213 final Bundle response = new Bundle(); in testChatActionNoMonitor() local 214 response.putString(TestChatAction.RESPONSE_TEST, processResponseResult); in testChatActionNoMonitor() 217 service.handleResponseFromBackgroundWorker(request, response); in testChatActionNoMonitor() 259 final Bundle response = new Bundle(); in testChatActionUnregisterListener() local 267 service.handleResponseFromBackgroundWorker(request, response); in testChatActionUnregisterListener() 347 protected Object processBackgroundResponse(final Bundle response) { in processBackgroundResponse() argument 349 return response.get(RESPONSE_TEST); in processBackgroundResponse()
|
D | ActionTestHelpers.java | 127 public final Bundle response; field in ActionTestHelpers.StubActionService.StubActionServiceCallLog 133 final Bundle response, in StubActionServiceCallLog() argument 138 this.response = response; in StubActionServiceCallLog() 161 final Bundle response) { in handleResponseFromBackgroundWorker() argument 162 mServiceCalls.add(new StubActionServiceCallLog(null, request, response, null, null)); in handleResponseFromBackgroundWorker()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | HttpFetcher.java | 100 byte[] response = baos.toByteArray(); in sendRequestAsByteArray() 101 LogUtil.i("HttpFetcher.sendRequestAsByteArray", "received " + response.length + " bytes"); in sendRequestAsByteArray() 104 return response; in sendRequestAsByteArray() 218 final String response = new String(byteArr); in getRequestAsString() local 219 LogUtil.i("HttpFetcher.getRequestAsString", "response body: " + response); in getRequestAsString() 220 return response; in getRequestAsString() 263 private static void handleBadResponse(String url, byte[] response) { in handleBadResponse() argument 265 LogUtil.i("HttpFetcher.handleBadResponse", new String(response)); in handleBadResponse()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | SyncMessagesAction.java | 247 final Bundle response = new Bundle(); in doBackgroundWork() local 257 response.putParcelableArrayList(BUNDLE_KEY_SMS_MESSAGES, smsToAdd); in doBackgroundWork() 258 response.putParcelableArrayList(BUNDLE_KEY_MMS_MESSAGES, mmsToAddList); in doBackgroundWork() 259 response.putParcelableArrayList(BUNDLE_KEY_MESSAGES_TO_DELETE, messagesToDelete); in doBackgroundWork() 261 response.putLong(BUNDLE_KEY_LAST_TIMESTAMP, lastTimestampMillis); in doBackgroundWork() 263 return response; in doBackgroundWork() 354 protected Object processBackgroundResponse(final Bundle response) { in processBackgroundResponse() argument 355 final long lastTimestampMillis = response.getLong(BUNDLE_KEY_LAST_TIMESTAMP); in processBackgroundResponse() 397 response.getParcelableArrayList(BUNDLE_KEY_SMS_MESSAGES); in processBackgroundResponse() 399 response.getParcelableArrayList(BUNDLE_KEY_MMS_MESSAGES); in processBackgroundResponse() [all …]
|
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/ |
D | ImapResponseParser.java | 161 ImapResponse response = null; in readResponse() local 163 response = parseResponse(); in readResponse() 165 LogUtils.d(Logging.LOG_TAG, "<<< " + response.toString()); in readResponse() 179 if (response.is(0, ImapConstants.BYE)) { in readResponse() 181 response.destroy(); in readResponse() 184 mResponsesToDestroy.add(response); in readResponse() 185 return response; in readResponse()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/ |
D | TestAuthenticator.java | 62 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 84 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 99 AccountAuthenticatorResponse response, Account account, Bundle options) { in confirmCredentials() argument 107 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 125 AccountAuthenticatorResponse response, Account account, String[] features) { in hasFeatures() argument 138 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneInterfaceManager.java | 306 UssdResponse response = new UssdResponse(ussdRequest, null); in handleMessage() local 308 returnData.putParcelable(TelephonyManager.USSD_RESPONSE, response); in handleMessage() 2373 IccOpenLogicalChannelResponse response = (IccOpenLogicalChannelResponse)sendRequest( in iccOpenLogicalChannel() local 2375 if (DBG) log("iccOpenLogicalChannel: " + response); in iccOpenLogicalChannel() 2376 return response; in iccOpenLogicalChannel() 2407 IccIoResult response = (IccIoResult)sendRequest(CMD_TRANSMIT_APDU_LOGICAL_CHANNEL, in iccTransmitApduLogicalChannel() local 2409 if (DBG) log("iccTransmitApduLogicalChannel: " + response); in iccTransmitApduLogicalChannel() 2413 (response.sw1 << 8) + response.sw2 + 0x10000).substring(1); in iccTransmitApduLogicalChannel() 2414 if (response.payload != null) { in iccTransmitApduLogicalChannel() 2415 s = IccUtils.bytesToHexString(response.payload) + s; in iccTransmitApduLogicalChannel() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | EventInfoFragment.java | 770 int response = getResponseFromButtonId(checkedId); in onCheckedChanged() local 772 mUserSetResponse = response; in onCheckedChanged() 779 mUserSetResponse = response; in onCheckedChanged() 785 mTentativeUserSetResponse = response; in onCheckedChanged() 1177 int response; in onSaveInstanceState() local 1179 response = mAttendeeResponseFromIntent; in onSaveInstanceState() 1181 response = mOriginalAttendeeResponse; in onSaveInstanceState() 1183 outState.putInt(BUNDLE_KEY_ATTENDEE_RESPONSE, response); in onSaveInstanceState() 1185 response = mUserSetResponse; in onSaveInstanceState() 1186 outState.putInt(BUNDLE_KEY_USER_SET_ATTENDEE_RESPONSE, response); in onSaveInstanceState() [all …]
|