blob: 181349d4fbaaf1368f5f59030c32ccf86d8ceddf [file] [log] [blame]
Brian Stack60fcdcf2018-10-16 14:51:34 -07001/*
2 * Copyright (C) 2018 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 "Sensors.h"
18
19namespace android {
20namespace hardware {
21namespace sensors {
22namespace V2_0 {
23namespace implementation {
24
25using ::android::hardware::sensors::V1_0::Event;
26using ::android::hardware::sensors::V1_0::OperationMode;
27using ::android::hardware::sensors::V1_0::RateLevel;
28using ::android::hardware::sensors::V1_0::Result;
29using ::android::hardware::sensors::V1_0::SharedMemInfo;
30
31// Methods from ::android::hardware::sensors::V2_0::ISensors follow.
32Return<void> Sensors::getSensorsList(getSensorsList_cb /* _hidl_cb */) {
33 // TODO implement
34 return Void();
35}
36
37Return<Result> Sensors::setOperationMode(OperationMode /* mode */) {
38 // TODO implement
39 return Result{};
40}
41
42Return<Result> Sensors::activate(int32_t /* sensorHandle */, bool /* enabled */) {
43 // TODO implement
44 return Result{};
45}
46
47Return<Result> Sensors::initialize(
48 const ::android::hardware::MQDescriptorSync<Event>& /* eventQueueDescriptor */,
49 const ::android::hardware::MQDescriptorSync<uint32_t>& /* wakeLockDescriptor */,
50 const sp<ISensorsCallback>& /* sensorsCallback */) {
51 // TODO implement
52 return Result{};
53}
54
55Return<Result> Sensors::batch(int32_t /* sensorHandle */, int64_t /* samplingPeriodNs */,
56 int64_t /* maxReportLatencyNs */) {
57 // TODO implement
58 return Result{};
59}
60
61Return<Result> Sensors::flush(int32_t /* sensorHandle */) {
62 // TODO implement
63 return Result{};
64}
65
66Return<Result> Sensors::injectSensorData(const Event& /* event */) {
67 // TODO implement
68 return Result{};
69}
70
71Return<void> Sensors::registerDirectChannel(const SharedMemInfo& /* mem */,
72 registerDirectChannel_cb /* _hidl_cb */) {
73 // TODO implement
74 return Void();
75}
76
77Return<Result> Sensors::unregisterDirectChannel(int32_t /* channelHandle */) {
78 // TODO implement
79 return Result{};
80}
81
82Return<void> Sensors::configDirectReport(int32_t /* sensorHandle */, int32_t /* channelHandle */,
83 RateLevel /* rate */,
84 configDirectReport_cb /* _hidl_cb */) {
85 // TODO implement
86 return Void();
87}
88
89} // namespace implementation
90} // namespace V2_0
91} // namespace sensors
92} // namespace hardware
93} // namespace android