/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/ |
D | GetTranscriptResponseAsync.java | 27 @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 …]
|
D | TranscriptionResponseAsync.java | 26 @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()
|
D | TranscriptionResponseSync.java | 26 @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/ |
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/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 | 134 ipp_t *response = NULL; // IPP response object in _get_capabilities() local 168 response = ipp_doCupsRequest(caps->http, request, caps->printer_caps.httpResource, in _get_capabilities() 170 if (response == NULL) { in _get_capabilities() 178 parse_printerAttributes(response, capabilities); in _get_capabilities() 181 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _get_capabilities() 182 response)) { in _get_capabilities() 186 if ((attrptr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) { in _get_capabilities() 193 if (ipp_status >= IPP_OK && ipp_status < IPP_REDIRECTION_OTHER_SITE && response != NULL) { in _get_capabilities() 200 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 …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
D | ImapConnection.java | 112 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 …]
|
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 = connection.readResponse(); in fetchInternal() 312 if (!response.isDataResponse(1, ImapConstants.FETCH)) { in fetchInternal() 315 final ImapList fetchList = response.getListOrEmpty(2); in fetchInternal() 419 } while (!response.isTagged()); in fetchInternal() [all …]
|
/packages/apps/SecureElement/src/com/android/se/security/ara/ |
D | AccessRuleApplet.java | 74 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/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/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | VmsHalServiceTest.java | 336 VehiclePropValue response = createHalMessage( in testHandlePublisherIdRequestEvent() local 342 verify(mVehicleHal).set(response); in testHandlePublisherIdRequestEvent() 367 VehiclePropValue response = createHalMessage( in testHandlePublisherInformationRequestEvent() local 370 response.value.bytes.addAll(PAYLOAD_AS_LIST); in testHandlePublisherInformationRequestEvent() 373 verify(mVehicleHal).set(response); in testHandlePublisherInformationRequestEvent() 515 VehiclePropValue response = createHalMessage( in testHandleAvailabilityRequestEvent_ZeroLayers() local 522 verify(mVehicleHal).set(response); in testHandleAvailabilityRequestEvent_ZeroLayers() 535 VehiclePropValue response = createHalMessage( in testHandleAvailabilityRequestEvent_OneLayer() local 545 verify(mVehicleHal).set(response); in testHandleAvailabilityRequestEvent_OneLayer() 565 VehiclePropValue response = createHalMessage( in testHandleAvailabilityRequestEvent_MultipleLayers() local [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | QuickstepTestInformationHandler.java | 23 final Bundle response = new Bundle(); in call() local 28 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call() 29 return response; in call() 35 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call() 36 return response; in call() 42 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, in call() 44 return response; in call() 51 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, leftMargin); in call() 57 return response; in call() 65 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, rightMargin); in call() [all …]
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 482 const std::vector<uint8_t>& response) { in addMappingBinaryPacket() argument 484 packet_mappings_[query] = response; in addMappingBinaryPacket() 700 bool DNSResponder::handleDNSRequest(const char* buffer, ssize_t len, int protocol, char* response, in handleDNSRequest() argument 717 return makeErrorResponse(&header, ns_rcode::ns_r_notimpl, response, response_len); in handleDNSRequest() 721 return makeErrorResponse(&header, ns_rcode::ns_r_formerr, response, response_len); in handleDNSRequest() 725 return makeErrorResponse(&header, ns_rcode::ns_r_formerr, response, response_len); in handleDNSRequest() 730 return makeErrorResponse(&header, ns_rcode::ns_r_formerr, response, response_len); in handleDNSRequest() 738 return makeErrorResponse(&header, ns_rcode::ns_r_formerr, response, response_len); in handleDNSRequest() 758 return makeErrorResponse(&header, error_rcode_, response, response_len); in handleDNSRequest() 764 return makeResponse(&header, protocol, response, response_len); in handleDNSRequest() [all …]
|
D | dns_responder.h | 170 const std::vector<uint8_t>& response); 251 bool handleDNSRequest(const char* buffer, ssize_t buffer_len, int protocol, char* response, 256 bool generateErrorResponse(DNSHeader* header, ns_rcode rcode, char* response, 262 bool writePacket(const DNSHeader* header, char* response, size_t* response_len) const; 264 bool makeErrorResponse(DNSHeader* header, ns_rcode rcode, char* response, 267 bool makeTruncatedResponse(DNSHeader* header, char* response, size_t* response_len) const; 269 bool makeResponse(DNSHeader* header, int protocol, char* response, size_t* response_len) const; 271 bool makeResponseFromAddressOrHostname(DNSHeader* header, char* response, 273 bool makeResponseFromDnsHeader(DNSHeader* header, char* response, size_t* response_len) const; 274 bool makeResponseFromBinaryPacket(DNSHeader* header, char* response,
|
/packages/modules/DnsResolver/ |
D | resolv_tls_unit_test.cpp | 120 bytevec response(query.size() + 2); in make_echo() local 121 response[0] = id >> 8; in make_echo() 122 response[1] = id; in make_echo() 124 memcpy(response.data() + 2, query.base(), query.size()); in make_echo() 125 return response; in make_echo() 150 EXPECT_EQ(QUERY, r.response); in TEST_F() 160 bytevec response(4); in query() local 163 response[0] = id >> 8; in query() 164 response[1] = id; in query() 167 response[2] = id >> 8; in query() [all …]
|
D | DnsTlsQueryMap.cpp | 127 void DnsTlsQueryMap::onResponse(std::vector<uint8_t> response) { in onResponse() argument 128 LOG(VERBOSE) << "Got response of size " << response.size(); in onResponse() 129 if (response.size() < 2) { in onResponse() 133 uint16_t id = response[0] << 8 | response[1]; in onResponse() 140 Result r = { .code = Response::success, .response = std::move(response) }; in onResponse() 143 r.response[0] = data[0]; in onResponse() 144 r.response[1] = data[1]; in onResponse()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
D | BlockingHttpClientTests.java | 113 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/ |
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/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | NetlinkSocket.java | 68 final NetlinkMessage response = NetlinkMessage.parse(bytes); in sendOneShotKernelMessage() local 69 if (response != null && response instanceof NetlinkErrorMessage && in sendOneShotKernelMessage() 70 (((NetlinkErrorMessage) response).getNlMsgError() != null)) { in sendOneShotKernelMessage() 71 final int errno = ((NetlinkErrorMessage) response).getNlMsgError().error; in sendOneShotKernelMessage() 76 Log.e(TAG, errPrefix + ", errmsg=" + response.toString()); in sendOneShotKernelMessage() 78 throw new ErrnoException(response.toString(), Math.abs(errno)); in sendOneShotKernelMessage() 82 if (response == null) { in sendOneShotKernelMessage() 86 errmsg = response.toString(); in sendOneShotKernelMessage()
|
/packages/apps/TV/common/src/com/android/tv/common/compat/internal/ |
D | SessionCompatProcessor.java | 43 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/Launcher3/src/com/android/launcher3/testing/ |
D | TestInformationHandler.java | 64 final Bundle response = new Bundle(); in call() local 72 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) distance); in call() 82 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) distance); in call() 87 response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, isLauncherInitialized()); in call() 115 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, in call() 128 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, mem.getTotalPss()); in call() 156 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, in call() 161 return response; in call()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | NetlinkSocketTest.java | 72 ByteBuffer response = NetlinkSocket.recvMessage(fd, DEFAULT_RECV_BUFSIZE, TIMEOUT); in testBasicWorkingGetNeighborsQuery() local 73 assertNotNull(response); in testBasicWorkingGetNeighborsQuery() 74 assertTrue(StructNlMsgHdr.STRUCT_SIZE <= response.limit()); in testBasicWorkingGetNeighborsQuery() 75 assertEquals(0, response.position()); in testBasicWorkingGetNeighborsQuery() 76 assertEquals(ByteOrder.nativeOrder(), response.order()); in testBasicWorkingGetNeighborsQuery() 79 while (response.remaining() > 0) { in testBasicWorkingGetNeighborsQuery() 80 final NetlinkMessage msg = NetlinkMessage.parse(response); in testBasicWorkingGetNeighborsQuery()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsRequest.java | 140 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/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestCallScreeningService.java | 74 response = new CallScreeningService.CallResponse.Builder() in blockCall() local 80 respondToCall(mDetails, response); in blockCall() 85 response = new CallScreeningService.CallResponse.Builder() in allowCall() local 91 respondToCall(mDetails, response); in allowCall() 96 response = new CallScreeningService.CallResponse.Builder() in screenCallFurther() local 103 respondToCall(mDetails, response); in screenCallFurther()
|