/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/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | UserIdentificationAssociationResponseTest.java | 33 UserIdentificationAssociationResponse response = forFailure(); in testFailure_noMessage() local 35 assertThat(response).isNotNull(); in testFailure_noMessage() 36 assertThat(response.isSuccess()).isFalse(); in testFailure_noMessage() 37 assertThat(response.getErrorMessage()).isNull(); in testFailure_noMessage() 38 assertThat(response.getValues()).isNull(); in testFailure_noMessage() 43 UserIdentificationAssociationResponse response = forFailure("D'OH!"); in testFailure_withMessage() local 45 assertThat(response).isNotNull(); in testFailure_withMessage() 46 assertThat(response.isSuccess()).isFalse(); in testFailure_withMessage() 47 assertThat(response.getErrorMessage()).isEqualTo("D'OH!"); in testFailure_withMessage() 48 assertThat(response.getValues()).isNull(); in testFailure_withMessage() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | UserHalService.java | 544 UserIdentificationResponse response; in getUserAssociation() local 546 response = UserHalHelper.toUserIdentificationResponse(responseAsPropValue); in getUserAssociation() 551 if (DBG) Log.d(TAG, "getUserAssociation(): response=" + response); in getUserAssociation() 554 if (response.requestId != request.requestId) { in getUserAssociation() 556 + response); in getUserAssociation() 559 if (response.numberAssociation != request.numberAssociationTypes) { in getUserAssociation() 562 + ": " + response); in getUserAssociation() 567 int actualType = response.associations.get(i).type; in getUserAssociation() 569 Log.w(TAG, "Wrong type on index " + i + " of HAL response (" + response + ") for " in getUserAssociation() 578 int[] associationTypes = new int[response.numberAssociation]; in getUserAssociation() [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/services/Car/computepipe/runner/graph/ |
D | GrpcGraph.cpp | 39 ResponseType* response) { in FinishRpcAndGetResult() argument 42 rpc->Finish(response, &grpcStatus, reinterpret_cast<void*>(random_tag)); in FinishRpcAndGetResult() 99 proto::GraphOptionsResponse response; in initialize() local 100 auto [mStatus, mErrorMessage] = FinishRpcAndGetResult(rpc.get(), &cq, &response); in initialize() 107 std::string serialized_options = response.serialized_options(); in initialize() 148 proto::StatusResponse response; in handleConfigPhase() local 149 auto [mStatus, mErrorMessage] = FinishRpcAndGetResult(rpc.get(), &cq, &response); in handleConfigPhase() 155 if (response.code() != proto::RemoteGraphStatusCode::SUCCESS) { in handleConfigPhase() 156 LOG(ERROR) << "Failed to cofngure remote graph. " << response.message(); in handleConfigPhase() 159 mStatus = static_cast<Status>(static_cast<int>(response.code())); in handleConfigPhase() [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()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
D | UserHalHelperTest.java | 557 UserIdentificationResponse response = UserHalHelper.toUserIdentificationResponse(prop); in testToUserIdentificationResponse_ok() local 559 assertWithMessage("Wrong request id on %s", response) in testToUserIdentificationResponse_ok() 560 .that(response.requestId).isEqualTo(42); in testToUserIdentificationResponse_ok() 561 assertWithMessage("Wrong number of associations on %s", response) in testToUserIdentificationResponse_ok() 562 .that(response.numberAssociation).isEqualTo(3); in testToUserIdentificationResponse_ok() 563 assertAssociation(response, 0, KEY_FOB, ASSOCIATED_ANOTHER_USER); in testToUserIdentificationResponse_ok() 564 assertAssociation(response, 1, CUSTOM_1, ASSOCIATED_CURRENT_USER); in testToUserIdentificationResponse_ok() 565 assertAssociation(response, 2, CUSTOM_2, NOT_ASSOCIATED_ANY_USER); in testToUserIdentificationResponse_ok() 566 assertWithMessage("Wrong error message on %s", response) in testToUserIdentificationResponse_ok() 567 .that(response.errorMessage).isEqualTo("D'OH!"); in testToUserIdentificationResponse_ok() [all …]
|
/packages/services/Car/computepipe/tests/runner/graph/ |
D | GrpcGraphTest.cpp | 95 proto::GraphOptionsResponse* response) override { in GetGraphOptions() argument 98 response->set_serialized_options(options.SerializeAsString()); in GetGraphOptions() 104 proto::StatusResponse* response) override { in SetGraphConfig() argument 105 response->set_code(proto::RemoteGraphStatusCode::SUCCESS); in SetGraphConfig() 106 response->set_message(kSetGraphConfigMessage); in SetGraphConfig() 112 proto::StatusResponse* response) override { in SetDebugOption() argument 113 response->set_code(proto::RemoteGraphStatusCode::SUCCESS); in SetDebugOption() 114 response->set_message(kSetDebugOptionMessage); in SetDebugOption() 120 proto::StatusResponse* response) override { in StartGraphExecution() argument 121 response->set_code(proto::RemoteGraphStatusCode::SUCCESS); in StartGraphExecution() [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() 418 } 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/apps/Launcher3/ext_tests/src/com/android/launcher3/testing/ |
D | DebugTestInformationHandler.java | 89 final Bundle response = new Bundle(); in call() local 98 return response; in call() 102 return response; in call() 105 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, Os.getpid()); in call() 106 return response; in call() 113 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, mem.getTotalPss()); in call() 114 return response; in call() 127 return response; in call() 137 return response; in call() 143 return response; in call() [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 | 330 VehiclePropValue response = createHalMessage( in testHandlePublisherIdRequestEvent() local 336 verify(mVehicleHal).set(response); in testHandlePublisherIdRequestEvent() 361 VehiclePropValue response = createHalMessage( in testHandlePublisherInformationRequestEvent() local 364 response.value.bytes.addAll(PAYLOAD_AS_LIST); in testHandlePublisherInformationRequestEvent() 367 verify(mVehicleHal).set(response); in testHandlePublisherInformationRequestEvent() 503 VehiclePropValue response = createHalMessage( in testHandleAvailabilityRequestEvent_ZeroLayers() local 510 verify(mVehicleHal).set(response); in testHandleAvailabilityRequestEvent_ZeroLayers() 523 VehiclePropValue response = createHalMessage( in testHandleAvailabilityRequestEvent_OneLayer() local 533 verify(mVehicleHal).set(response); in testHandleAvailabilityRequestEvent_OneLayer() 553 VehiclePropValue response = createHalMessage( in testHandleAvailabilityRequestEvent_MultipleLayers() local [all …]
|
D | UserHalServiceTest.java | 292 assertThat(callback.response).isNull(); in testGetUserInfo_halSetTimedOut() 308 assertThat(callback.response).isNull(); in testGetUserInfo_halDidNotReply() 324 assertThat(callback1.response).isNull(); in testGetUserInfo_secondCallFailWhilePending() 328 assertThat(callback1.response).isNull(); in testGetUserInfo_secondCallFailWhilePending() 346 assertThat(callback.response).isNull(); in testGetUserInfo_halReplyWithWrongRequestId() 369 assertThat(callback.response).isNull(); in testGetUserInfo_halReturnedInvalidAction() 392 InitialUserInfoResponse actualResponse = callback.response; in testGetUserInfo_successDefault() 421 InitialUserInfoResponse actualResponse = callback.response; in testGetUserInfo_successSwitchUser() 455 InitialUserInfoResponse actualResponse = callback.response; in testGetUserInfo_successCreateUser() 524 assertThat(callback.response).isNull(); in testSwitchUser_halSetTimedOut() [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 …]
|
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPanelViewControllerTest.java | 141 GetWalletCardsResponse response = new GetWalletCardsResponse(Collections.emptyList(), 0); in init_showsEmptyStateViewIfCardsNotReturnedLastTime() local 142 mViewController.onWalletCardsRetrieved(response); in init_showsEmptyStateViewIfCardsNotReturnedLastTime() 159 GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); in init_doesNotShowEmptyStateViewIfCardsReturnedLastTime() local 160 mViewController.onWalletCardsRetrieved(response); in init_doesNotShowEmptyStateViewIfCardsReturnedLastTime() 305 GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); in onWalletCardsRetrieved_showsCards() local 307 mCallbackCaptor.getValue().onWalletCardsRetrieved(response); in onWalletCardsRetrieved_showsCards() 324 GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); in onWalletCardsRetrieved_showsOverflowButton_startWalletActivity() local 326 mCallbackCaptor.getValue().onWalletCardsRetrieved(response); in onWalletCardsRetrieved_showsOverflowButton_startWalletActivity() 357 GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); in onWalletCardsRetrieved_noShortLabel_showsOnlySettingsInOverflowMenu() local 359 mCallbackCaptor.getValue().onWalletCardsRetrieved(response); in onWalletCardsRetrieved_noShortLabel_showsOnlySettingsInOverflowMenu() [all …]
|
/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/services/Car/user/car-user-lib/src/android/car/userlib/ |
D | UserHalHelper.java | 351 UserIdentificationResponse response = new UserIdentificationResponse(); in toUserIdentificationResponse() local 352 response.requestId = requestId; in toUserIdentificationResponse() 353 response.errorMessage = prop.value.stringValue; in toUserIdentificationResponse() 355 response.numberAssociation = numberAssociations; in toUserIdentificationResponse() 368 response.associations.add(association); in toUserIdentificationResponse() 371 return response; in toUserIdentificationResponse() 393 InitialUserInfoResponse response = new InitialUserInfoResponse(); in toInitialUserInfoResponse() local 394 response.requestId = requestId; in toInitialUserInfoResponse() 395 response.action = prop.value.int32Values.get(1); in toInitialUserInfoResponse() 406 response.userLocales = stringValues[0]; in toInitialUserInfoResponse() [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 …]
|