Brian Stack | 60fcdcf | 2018-10-16 14:51:34 -0700 | [diff] [blame^] | 1 | /* |
| 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 | |
| 19 | namespace android { |
| 20 | namespace hardware { |
| 21 | namespace sensors { |
| 22 | namespace V2_0 { |
| 23 | namespace implementation { |
| 24 | |
| 25 | using ::android::hardware::sensors::V1_0::Event; |
| 26 | using ::android::hardware::sensors::V1_0::OperationMode; |
| 27 | using ::android::hardware::sensors::V1_0::RateLevel; |
| 28 | using ::android::hardware::sensors::V1_0::Result; |
| 29 | using ::android::hardware::sensors::V1_0::SharedMemInfo; |
| 30 | |
| 31 | // Methods from ::android::hardware::sensors::V2_0::ISensors follow. |
| 32 | Return<void> Sensors::getSensorsList(getSensorsList_cb /* _hidl_cb */) { |
| 33 | // TODO implement |
| 34 | return Void(); |
| 35 | } |
| 36 | |
| 37 | Return<Result> Sensors::setOperationMode(OperationMode /* mode */) { |
| 38 | // TODO implement |
| 39 | return Result{}; |
| 40 | } |
| 41 | |
| 42 | Return<Result> Sensors::activate(int32_t /* sensorHandle */, bool /* enabled */) { |
| 43 | // TODO implement |
| 44 | return Result{}; |
| 45 | } |
| 46 | |
| 47 | Return<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 | |
| 55 | Return<Result> Sensors::batch(int32_t /* sensorHandle */, int64_t /* samplingPeriodNs */, |
| 56 | int64_t /* maxReportLatencyNs */) { |
| 57 | // TODO implement |
| 58 | return Result{}; |
| 59 | } |
| 60 | |
| 61 | Return<Result> Sensors::flush(int32_t /* sensorHandle */) { |
| 62 | // TODO implement |
| 63 | return Result{}; |
| 64 | } |
| 65 | |
| 66 | Return<Result> Sensors::injectSensorData(const Event& /* event */) { |
| 67 | // TODO implement |
| 68 | return Result{}; |
| 69 | } |
| 70 | |
| 71 | Return<void> Sensors::registerDirectChannel(const SharedMemInfo& /* mem */, |
| 72 | registerDirectChannel_cb /* _hidl_cb */) { |
| 73 | // TODO implement |
| 74 | return Void(); |
| 75 | } |
| 76 | |
| 77 | Return<Result> Sensors::unregisterDirectChannel(int32_t /* channelHandle */) { |
| 78 | // TODO implement |
| 79 | return Result{}; |
| 80 | } |
| 81 | |
| 82 | Return<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 |