blob: 1b5660832be71546ad959074ec4a5b497d7ba686 [file] [log] [blame]
Arthur Ishiguroa257b782021-08-04 10:40:29 -07001/*
2 * Copyright (C) 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "contexthub-impl/ContextHub.h"
18
19namespace aidl {
20namespace android {
21namespace hardware {
22namespace contexthub {
23
24// TODO(b/194285834): Implement AIDL HAL
25
26::ndk::ScopedAStatus ContextHub::getContextHubs(
27 std::vector<ContextHubInfo>* /* out_contextHubInfos */) {
28 return ndk::ScopedAStatus::ok();
29}
30
31::ndk::ScopedAStatus ContextHub::loadNanoapp(int32_t /* in_contextHubId */,
32 const NanoappBinary& /* in_appBinary */,
33 int32_t /* in_transactionId */,
34 bool* /* _aidl_return */) {
35 return ndk::ScopedAStatus::ok();
36}
37
38::ndk::ScopedAStatus ContextHub::unloadNanoapp(int32_t /* in_contextHubId */,
39 int64_t /* in_appId */,
40 int32_t /* in_transactionId */,
41 bool* /* _aidl_return */) {
42 return ndk::ScopedAStatus::ok();
43}
44
45::ndk::ScopedAStatus ContextHub::disableNanoapp(int32_t /* in_contextHubId */,
46 int64_t /* in_appId */,
47 int32_t /* in_transactionId */,
48 bool* /* _aidl_return */) {
49 return ndk::ScopedAStatus::ok();
50}
51
52::ndk::ScopedAStatus ContextHub::enableNanoapp(int32_t /* in_contextHubId */,
53 int64_t /* in_appId */,
54 int32_t /* in_transactionId */,
55 bool* /* _aidl_return */) {
56 return ndk::ScopedAStatus::ok();
57}
58
59::ndk::ScopedAStatus ContextHub::onSettingChanged(Setting /* in_setting */, bool /*in_enabled */) {
60 return ndk::ScopedAStatus::ok();
61}
62
63::ndk::ScopedAStatus ContextHub::queryNanoapps(int32_t /* in_contextHubId */,
64 bool* /* _aidl_return */) {
65 return ndk::ScopedAStatus::ok();
66}
67
68::ndk::ScopedAStatus ContextHub::registerCallback(
69 int32_t /* in_contextHubId */, const std::shared_ptr<IContextHubCallback>& /* in_cb */,
70 bool* /* _aidl_return */) {
71 return ndk::ScopedAStatus::ok();
72}
73
74::ndk::ScopedAStatus ContextHub::sendMessageToHub(int32_t /* in_contextHubId */,
75 const ContextHubMessage& /* in_message */,
76 bool* /* _aidl_return */) {
77 return ndk::ScopedAStatus::ok();
78}
79
80} // namespace contexthub
81} // namespace hardware
82} // namespace android
83} // namespace aidl