summaryrefslogtreecommitdiff
path: root/contexthub/aidl/default/include/contexthub-impl/ContextHub.h
diff options
context:
space:
mode:
authorArthur Ishiguro <arthuri@google.com>2022-01-06 22:42:10 +0000
committerArthur Ishiguro <arthuri@google.com>2022-01-07 16:58:59 +0000
commit070f47dd7fd64c0c979a85a65c23fe559f65a6ed (patch)
treefc67eb83a088356d969cd0921c10aaa2fa790ce8 /contexthub/aidl/default/include/contexthub-impl/ContextHub.h
parent7ae4255438c5b187186416e2a5c84842eeed1192 (diff)
Make return values of IContextHub.aidl more consistent
Follow the pattern of using well-defined AIDL error codes as return values for methods. Bug: 213474931 Test: Compile, run VTS Change-Id: If04d989cf504161638ec47b2302e60cbf32db502
Diffstat (limited to 'contexthub/aidl/default/include/contexthub-impl/ContextHub.h')
-rw-r--r--contexthub/aidl/default/include/contexthub-impl/ContextHub.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/contexthub/aidl/default/include/contexthub-impl/ContextHub.h b/contexthub/aidl/default/include/contexthub-impl/ContextHub.h
index dd739e63f8..03d8432134 100644
--- a/contexthub/aidl/default/include/contexthub-impl/ContextHub.h
+++ b/contexthub/aidl/default/include/contexthub-impl/ContextHub.h
@@ -28,21 +28,19 @@ namespace contexthub {
class ContextHub : public BnContextHub {
::ndk::ScopedAStatus getContextHubs(std::vector<ContextHubInfo>* out_contextHubInfos) override;
::ndk::ScopedAStatus loadNanoapp(int32_t in_contextHubId, const NanoappBinary& in_appBinary,
- int32_t in_transactionId, bool* _aidl_return) override;
+ int32_t in_transactionId) override;
::ndk::ScopedAStatus unloadNanoapp(int32_t in_contextHubId, int64_t in_appId,
- int32_t in_transactionId, bool* _aidl_return) override;
+ int32_t in_transactionId) override;
::ndk::ScopedAStatus disableNanoapp(int32_t in_contextHubId, int64_t in_appId,
- int32_t in_transactionId, bool* _aidl_return) override;
+ int32_t in_transactionId) override;
::ndk::ScopedAStatus enableNanoapp(int32_t in_contextHubId, int64_t in_appId,
- int32_t in_transactionId, bool* _aidl_return) override;
+ int32_t in_transactionId) override;
::ndk::ScopedAStatus onSettingChanged(Setting in_setting, bool in_enabled) override;
- ::ndk::ScopedAStatus queryNanoapps(int32_t in_contextHubId, bool* _aidl_return) override;
- ::ndk::ScopedAStatus registerCallback(int32_t in_contextHubId,
- const std::shared_ptr<IContextHubCallback>& in_cb,
- bool* _aidl_return) override;
+ ::ndk::ScopedAStatus queryNanoapps(int32_t in_contextHubId) override;
+ ::ndk::ScopedAStatus registerCallback(
+ int32_t in_contextHubId, const std::shared_ptr<IContextHubCallback>& in_cb) override;
::ndk::ScopedAStatus sendMessageToHub(int32_t in_contextHubId,
- const ContextHubMessage& in_message,
- bool* _aidl_return) override;
+ const ContextHubMessage& in_message) override;
::ndk::ScopedAStatus onHostEndpointConnected(const HostEndpointInfo& in_info) override;
::ndk::ScopedAStatus onHostEndpointDisconnected(char16_t in_hostEndpointId) override;