aboutsummaryrefslogtreecommitdiff
path: root/host/hal_generic/common
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-14 00:23:47 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-14 00:23:47 +0000
commit9ee1f6e341b21dc1b3374c16f449cec319b573c3 (patch)
tree43b1922b8c73bc3f4dbf9f9123e81b18cf362531 /host/hal_generic/common
parent35540e1e17fbb379ed445dd7b030b81ed55fb6be (diff)
parent2a0e1ef4a874911a4574ee0f94a4eb9b59092db8 (diff)
downloadchre-9ee1f6e341b21dc1b3374c16f449cec319b573c3.tar.gz
Snap for 11216811 from 2a0e1ef4a874911a4574ee0f94a4eb9b59092db8 to 24Q1-release
Change-Id: Ic030b4d9fc7e90766166464ebdb6716c0ca78916
Diffstat (limited to 'host/hal_generic/common')
-rw-r--r--host/hal_generic/common/multi_client_context_hub_base.cc10
-rw-r--r--host/hal_generic/common/multi_client_context_hub_base.h3
2 files changed, 13 insertions, 0 deletions
diff --git a/host/hal_generic/common/multi_client_context_hub_base.cc b/host/hal_generic/common/multi_client_context_hub_base.cc
index 289d78ce..0c257c36 100644
--- a/host/hal_generic/common/multi_client_context_hub_base.cc
+++ b/host/hal_generic/common/multi_client_context_hub_base.cc
@@ -411,6 +411,13 @@ ScopedAStatus MultiClientContextHubBase::setTestMode(bool enable) {
return fromResult(enable ? enableTestMode() : disableTestMode());
}
+ScopedAStatus MultiClientContextHubBase::sendMessageDeliveryStatusToHub(
+ int32_t /* contextHubId */,
+ const MessageDeliveryStatus & /* messageDeliveryStatus */) {
+ // TODO(b/312417087): Implement reliable message support - transaction status
+ return ndk::ScopedAStatus::ok();
+}
+
bool MultiClientContextHubBase::enableTestMode() {
std::unique_lock<std::mutex> lock(mTestModeMutex);
if (mIsTestModeEnabled) {
@@ -531,6 +538,9 @@ void MultiClientContextHubBase::handleHubInfoResponse(
mContextHubInfo->chreApiMinorVersion = extractChreApiMinorVersion(version);
mContextHubInfo->chrePatchVersion = extractChrePatchVersion(version);
mContextHubInfo->supportedPermissions = kSupportedPermissions;
+
+ // TODO(b/312417087): Implement reliable message support
+ mContextHubInfo->supportsReliableMessages = false;
mHubInfoCondition.notify_all();
}
diff --git a/host/hal_generic/common/multi_client_context_hub_base.h b/host/hal_generic/common/multi_client_context_hub_base.h
index b35c444b..7d92e71e 100644
--- a/host/hal_generic/common/multi_client_context_hub_base.h
+++ b/host/hal_generic/common/multi_client_context_hub_base.h
@@ -78,6 +78,9 @@ class MultiClientContextHubBase
ScopedAStatus onNanSessionStateChanged(
const NanSessionStateUpdate &in_update) override;
ScopedAStatus setTestMode(bool enable) override;
+ ScopedAStatus sendMessageDeliveryStatusToHub(
+ int32_t contextHubId,
+ const MessageDeliveryStatus &messageDeliveryStatus) override;
// The callback function implementing ChreConnectionCallback
void handleMessageFromChre(const unsigned char *messageBuffer,