commit | 9505772cf2e5f624eb0a263db2ee9618a97e76c9 | [log] [tgz] |
---|---|---|
author | Anthony Stange <stange@google.com> | Thu Mar 18 22:19:35 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Mar 18 22:19:35 2021 +0000 |
tree | 5566d18e379941a7ea10b7f466b89b38269408ed | |
parent | f64937ba0e61f620003e6a1b85d1b270035dbff6 [diff] | |
parent | 778fb3e71720269da5131065cc8d193ef48e9bf1 [diff] |
Modify default contexthub impl based on latest spec am: 778fb3e717 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/13903325 Change-Id: Id06b10344b241a3b89b1f9ffc8988c66f7864cdd
diff --git a/contexthub/1.2/default/Contexthub.cpp b/contexthub/1.2/default/Contexthub.cpp index 601eccd..57145fc 100644 --- a/contexthub/1.2/default/Contexthub.cpp +++ b/contexthub/1.2/default/Contexthub.cpp
@@ -80,12 +80,6 @@ return Result::BAD_PARAMS; } -// We don't expose any nanoapps, therefore all nanoapp-related API calls return with BAD_PARAMS -Return<Result> Contexthub::sendMessageToHub_1_2(uint32_t /* hubId */, - const ContextHubMsg& /* msg */) { - return Result::BAD_PARAMS; -} - Return<void> Contexthub::onSettingChanged(SettingV1_1 /*setting*/, SettingValue /*newValue*/) { return Void(); }
diff --git a/contexthub/1.2/default/Contexthub.h b/contexthub/1.2/default/Contexthub.h index 32b862d..305544d 100644 --- a/contexthub/1.2/default/Contexthub.h +++ b/contexthub/1.2/default/Contexthub.h
@@ -55,8 +55,6 @@ Return<Result> registerCallback_1_2(uint32_t hubId, const sp<V1_2::IContexthubCallback>& cb) override; - Return<Result> sendMessageToHub_1_2(uint32_t hubId, const ContextHubMsg& msg) override; - private: sp<IContextHubCallbackWrapperBase> mCallback; };