Home
last modified time | relevance | path

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

12

/chre-3.4.0/platform/android/
Dhost_link.cc88 fbs::HubInfoResponseT response; in handleHubInfoRequest() local
89 setVectorToString(&response.name, "CHRE on Android"); in handleHubInfoRequest()
90 setVectorToString(&response.vendor, "Google"); in handleHubInfoRequest()
92 &response.toolchain, in handleHubInfoRequest()
95 response.platform_version = 0; in handleHubInfoRequest()
96 response.toolchain_version = ((__clang_major__ & 0xFF) << 24) | in handleHubInfoRequest()
99 response.peak_mips = 1000; in handleHubInfoRequest()
100 response.stopped_power = 1000; in handleHubInfoRequest()
101 response.sleep_power = 1000; in handleHubInfoRequest()
102 response.peak_power = 10000; in handleHubInfoRequest()
[all …]
/chre-3.4.0/chpp/services/
Dwwan.c226 struct ChppAppHeader *response = in chppWwanServiceOpen() local
228 size_t responseLen = sizeof(*response); in chppWwanServiceOpen()
230 if (response == NULL) { in chppWwanServiceOpen()
235 &wwanServiceContext->open, response, in chppWwanServiceOpen()
261 struct ChppAppHeader *response = in chppWwanServiceClose() local
263 size_t responseLen = sizeof(*response); in chppWwanServiceClose()
265 if (response == NULL) { in chppWwanServiceClose()
270 &wwanServiceContext->close, response, in chppWwanServiceClose()
309 struct ChppWwanGetCapabilitiesResponse *response = in chppWwanServiceGetCapabilities() local
312 size_t responseLen = sizeof(*response); in chppWwanServiceGetCapabilities()
[all …]
Dloopback.c35 uint8_t *response = chppMalloc(len); in chppDispatchLoopbackClientRequest() local
36 if (response == NULL) { in chppDispatchLoopbackClientRequest()
45 memcpy(response, buf, len); in chppDispatchLoopbackClientRequest()
48 struct ChppAppHeader *responseHeader = (struct ChppAppHeader *)response; in chppDispatchLoopbackClientRequest()
52 chppEnqueueTxDatagramOrFail(context->transportContext, response, len); in chppDispatchLoopbackClientRequest()
Dtimesync.c45 struct ChppTimesyncResponse *response = in chppTimesyncGetTime() local
47 size_t responseLen = sizeof(*response); in chppTimesyncGetTime()
49 if (response == NULL) { in chppTimesyncGetTime()
54 response->timeNs = chppGetCurrentTimeNs(); in chppTimesyncGetTime()
57 responseLen, response->timeNs / CHPP_NSEC_PER_MSEC); in chppTimesyncGetTime()
59 chppEnqueueTxDatagramOrFail(context->transportContext, response, in chppTimesyncGetTime()
Dgnss.c262 struct ChppAppHeader *response = in chppGnssServiceOpen() local
264 size_t responseLen = sizeof(*response); in chppGnssServiceOpen()
266 if (response == NULL) { in chppGnssServiceOpen()
271 &gnssServiceContext->open, response, in chppGnssServiceOpen()
297 struct ChppAppHeader *response = in chppGnssServiceClose() local
299 size_t responseLen = sizeof(*response); in chppGnssServiceClose()
301 if (response == NULL) { in chppGnssServiceClose()
306 &gnssServiceContext->close, response, in chppGnssServiceClose()
345 struct ChppGnssGetCapabilitiesResponse *response = in chppGnssServiceGetCapabilities() local
348 size_t responseLen = sizeof(*response); in chppGnssServiceGetCapabilities()
[all …]
Dwifi.c256 struct ChppAppHeader *response = in chppWifiServiceOpen() local
258 size_t responseLen = sizeof(*response); in chppWifiServiceOpen()
260 if (response == NULL) { in chppWifiServiceOpen()
265 &wifiServiceContext->open, response, in chppWifiServiceOpen()
291 struct ChppAppHeader *response = in chppWifiServiceClose() local
293 size_t responseLen = sizeof(*response); in chppWifiServiceClose()
295 if (response == NULL) { in chppWifiServiceClose()
300 &wifiServiceContext->close, response, in chppWifiServiceClose()
338 struct ChppWifiGetCapabilitiesResponse *response = in chppWifiServiceGetCapabilities() local
341 size_t responseLen = sizeof(*response); in chppWifiServiceGetCapabilities()
[all …]
Ddiscovery.c54 struct ChppDiscoveryResponse *response = chppAllocServiceResponseTypedArray( in chppDiscoveryDiscoverAll() local
58 if (response == NULL) { in chppDiscoveryDiscoverAll()
65 response->header.error = CHPP_APP_ERROR_NONE; in chppDiscoveryDiscoverAll()
69 response->services[i] = context->registeredServices[i]->descriptor; in chppDiscoveryDiscoverAll()
73 chppEnqueueTxDatagramOrFail(context->transportContext, response, in chppDiscoveryDiscoverAll()
/chre-3.4.0/host/hal_generic/common/
Dgeneric_context_hub_base.h388 const ::chre::fbs::HubInfoResponseT &response) override { in handleHubInfoResponse()
395 mParent.mHubInfo.name = getStringFromByteVector(response.name); in handleHubInfoResponse()
396 mParent.mHubInfo.vendor = getStringFromByteVector(response.vendor); in handleHubInfoResponse()
398 getStringFromByteVector(response.toolchain); in handleHubInfoResponse()
399 mParent.mHubInfo.platformVersion = response.platform_version; in handleHubInfoResponse()
400 mParent.mHubInfo.toolchainVersion = response.toolchain_version; in handleHubInfoResponse()
403 mParent.mHubInfo.peakMips = response.peak_mips; in handleHubInfoResponse()
404 mParent.mHubInfo.stoppedPowerDrawMw = response.stopped_power; in handleHubInfoResponse()
405 mParent.mHubInfo.sleepPowerDrawMw = response.sleep_power; in handleHubInfoResponse()
406 mParent.mHubInfo.peakPowerDrawMw = response.peak_power; in handleHubInfoResponse()
[all …]
/chre-3.4.0/chpp/test/
Dclients_test.cpp138 const struct ChppAppHeader *response) { in validateTimeoutResponse() argument
140 ASSERT_TRUE(response != NULL); in validateTimeoutResponse()
142 EXPECT_EQ(response->handle, request->handle); in validateTimeoutResponse()
143 EXPECT_EQ(response->type, CHPP_MESSAGE_TYPE_SERVICE_RESPONSE); in validateTimeoutResponse()
144 EXPECT_EQ(response->transaction, request->transaction); in validateTimeoutResponse()
145 EXPECT_EQ(response->error, CHPP_APP_ERROR_TIMEOUT); in validateTimeoutResponse()
146 EXPECT_EQ(response->command, request->command); in validateTimeoutResponse()
297 struct ChppAppHeader *response = in TEST_F() local
299 validateTimeoutResponse(reqHeader, response); in TEST_F()
300 if (response != NULL) { in TEST_F()
[all …]
Dtransport_test.cpp141 struct ChppTestResponse *response = (ChppTestResponse *)buf; in validateChppTestResponse() local
144 EXPECT_EQ(response->preamble0, kChppPreamble0); in validateChppTestResponse()
145 EXPECT_EQ(response->preamble1, kChppPreamble1); in validateChppTestResponse()
148 EXPECT_EQ(response->transportHeader.packetCode, CHPP_TRANSPORT_ERROR_NONE); in validateChppTestResponse()
149 EXPECT_EQ(response->transportHeader.ackSeq, ackSeq); in validateChppTestResponse()
152 EXPECT_EQ(response->appHeader.handle, handle); in validateChppTestResponse()
153 EXPECT_EQ(response->appHeader.type, CHPP_MESSAGE_TYPE_SERVICE_RESPONSE); in validateChppTestResponse()
154 EXPECT_EQ(response->appHeader.transaction, transactionID); in validateChppTestResponse()
157 return response->appHeader.error; in validateChppTestResponse()
/chre-3.4.0/chpp/clients/
Ddiscovery.c107 const struct ChppDiscoveryResponse *response = in chppDiscoveryProcessDiscoverAll() local
134 chppFindMatchingClient(context, &response->services[i]); in chppDiscoveryProcessDiscoverAll()
137 chppUuidToStr(response->services[i].uuid, uuidText); in chppDiscoveryProcessDiscoverAll()
143 CHPP_SERVICE_HANDLE_OF_INDEX(i), response->services[i].name, uuidText, in chppDiscoveryProcessDiscoverAll()
144 response->services[i].version.major, in chppDiscoveryProcessDiscoverAll()
145 response->services[i].version.minor, in chppDiscoveryProcessDiscoverAll()
146 response->services[i].version.patch); in chppDiscoveryProcessDiscoverAll()
156 CHPP_SERVICE_HANDLE_OF_INDEX(i), response->services[i].name, uuidText, in chppDiscoveryProcessDiscoverAll()
163 response->services[i].version.major, in chppDiscoveryProcessDiscoverAll()
164 response->services[i].version.minor, in chppDiscoveryProcessDiscoverAll()
[all …]
Dloopback.c82 const uint8_t *response, size_t len) { in chppDispatchLoopbackServiceResponse() argument
86 CHPP_NOT_NULL(response); in chppDispatchLoopbackServiceResponse()
93 (const struct ChppAppHeader *)response)); in chppDispatchLoopbackServiceResponse()
117 ->loopbackData[loc - CHPP_LOOPBACK_HEADER_LEN] != response[loc]) { in chppDispatchLoopbackServiceResponse()
Dtimesync.c104 const struct ChppTimesyncResponse *response = in chppDispatchTimesyncServiceResponse() local
108 &context->timesyncClientContext->measureOffset, &response->header)) { in chppDispatchTimesyncServiceResponse()
113 (int64_t)(response->timeNs - in chppDispatchTimesyncServiceResponse()
/chre-3.4.0/platform/shared/
Dhost_protocol_chre.cc145 auto response = fbs::CreateHubInfoResponse( in encodeHubInfoResponse() local
149 finalize(builder, fbs::ChreMessage::HubInfoResponse, response.Union(), in encodeHubInfoResponse()
171 auto response = fbs::CreateNanoappListResponse(builder, vectorOffset); in finishNanoappListResponse() local
172 finalize(builder, fbs::ChreMessage::NanoappListResponse, response.Union(), in finishNanoappListResponse()
181 auto response = fbs::CreateLoadNanoappResponse(builder, transactionId, in encodeLoadNanoappResponse() local
183 finalize(builder, fbs::ChreMessage::LoadNanoappResponse, response.Union(), in encodeLoadNanoappResponse()
190 auto response = in encodeUnloadNanoappResponse() local
192 finalize(builder, fbs::ChreMessage::UnloadNanoappResponse, response.Union(), in encodeUnloadNanoappResponse()
231 auto response = fbs::CreateDebugDumpResponse(builder, success, dataCount); in encodeDebugDumpResponse() local
232 finalize(builder, fbs::ChreMessage::DebugDumpResponse, response.Union(), in encodeDebugDumpResponse()
[all …]
/chre-3.4.0/host/common/test/
Dchre_test_client.cc115 const fbs::NanoappListResponseT &response) override { in handleNanoappListResponse() argument
116 LOGI("Got nanoapp list response with %zu apps:", response.nanoapps.size()); in handleNanoappListResponse()
118 response.nanoapps) { in handleNanoappListResponse()
127 const fbs::LoadNanoappResponseT &response) override { in handleLoadNanoappResponse() argument
129 response.transaction_id, response.success); in handleLoadNanoappResponse()
133 const fbs::UnloadNanoappResponseT &response) override { in handleUnloadNanoappResponse() argument
135 response.transaction_id, response.success); in handleUnloadNanoappResponse()
138 void handleSelfTestResponse(const ::chre::fbs::SelfTestResponseT &response) { in handleSelfTestResponse() argument
139 LOGI("Got self test response with success %d", response.success); in handleSelfTestResponse()
140 mResultPromise.set_value(response.success); in handleSelfTestResponse()
/chre-3.4.0/java/test/utils/src/com/google/android/utils/chre/
DChreTestUtil.java207 ContextHubTransaction.Response<List<NanoAppState>> response = null; in queryNanoAppsAssertSuccess() local
209 response = transaction.waitForResponse(QUERY_NANOAPPS_TIMEOUT_SECONDS, in queryNanoAppsAssertSuccess()
216 return response.getContents(); in queryNanoAppsAssertSuccess()
279 ContextHubTransaction.Response<?> response = null; in assertTransactionSuccessSync() local
281 response = transaction.waitForResponse(timeoutInSeconds, TimeUnit.SECONDS); in assertTransactionSuccessSync()
288 Assert.assertTrue(type + " transaction failed with error code " + response.getResult(), in assertTransactionSuccessSync()
289 response.getResult() == ContextHubTransaction.RESULT_SUCCESS); in assertTransactionSuccessSync()
/chre-3.4.0/host/common/audio_stress_test/
Daudio_stress_test.cc74 const fbs::LoadNanoappResponseT &response) override { in handleLoadNanoappResponse() argument
76 response.transaction_id, response.success); in handleLoadNanoappResponse()
/chre-3.4.0/host/common/test/power_test/
Dchre_power_test_client.cc282 auto response = in handlePowerTestNanoappResponse() local
285 bool success = response->Verify(verifier); in handlePowerTestNanoappResponse()
286 mSuccess = success ? response->success() : false; in handlePowerTestNanoappResponse()
291 const fbs::NanoappListResponseT &response) override { in handleNanoappListResponse() argument
292 LOGI("Got nanoapp list response with %zu apps:", response.nanoapps.size()); in handleNanoappListResponse()
294 for (const auto &nanoapp : response.nanoapps) { in handleNanoappListResponse()
305 const fbs::LoadNanoappResponseT &response) override { in handleLoadNanoappResponse() argument
307 response.transaction_id, response.success); in handleLoadNanoappResponse()
308 mSuccess = response.success; in handleLoadNanoappResponse()
313 const fbs::UnloadNanoappResponseT &response) override { in handleUnloadNanoappResponse() argument
[all …]
/chre-3.4.0/chpp/
Dclients.c577 struct ChppAppHeader *response = in chppClientCloseOpenRequests() local
579 if (response == NULL) { in chppClientCloseOpenRequests()
582 response->handle = clientState->handle; in chppClientCloseOpenRequests()
583 response->type = CHPP_MESSAGE_TYPE_SERVICE_RESPONSE; in chppClientCloseOpenRequests()
584 response->transaction = clientState->rRStates[cmdIdx].transaction; in chppClientCloseOpenRequests()
585 response->error = CHPP_APP_ERROR_TIMEOUT; in chppClientCloseOpenRequests()
586 response->command = cmdIdx; in chppClientCloseOpenRequests()
588 chppAppProcessRxDatagram(clientState->appContext, (uint8_t *)response, in chppClientCloseOpenRequests()
Dapp.c600 struct ChppAppHeader *response = in chppProcessNegotiatedHandleDatagram() local
602 if (response == NULL) { in chppProcessNegotiatedHandleDatagram()
605 response->error = (uint8_t)error; in chppProcessNegotiatedHandleDatagram()
606 chppEnqueueTxDatagramOrFail(context->transportContext, response, in chppProcessNegotiatedHandleDatagram()
607 sizeof(*response)); in chppProcessNegotiatedHandleDatagram()
DRELEASE_NOTES.md109 - Transport-layer-loopback client validates response and returns the result
153 - Added missing WiFi ranging service response
171 - Added GNSS passive location listener service response
174 - Client request/response state refactoring
/chre-3.4.0/chpp/include/chpp/clients/
Dloopback.h78 const uint8_t *response, size_t len);
/chre-3.4.0/host/common/
Ddaemon_base.cc236 const auto *response = container->message.AsLoadNanoappResponse(); in handleDaemonMessage() local
240 response->transaction_id) { in handleDaemonMessage()
243 response->transaction_id, in handleDaemonMessage()
246 if (!response->success) { in handleDaemonMessage()
/chre-3.4.0/apps/test/common/proto/
Dping_test.proto23 // C2H: A message indicating a response from a ping command.
/chre-3.4.0/pal/util/tests/
Dwifi_scan_cache_test.cc87 WifiScanResponse response = { in chreWifiScanResponseCallback() local
91 gWifiScanResponse = response; in chreWifiScanResponseCallback()

12