Paul Keith | bde3a83 | 2020-01-27 20:19:30 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2020 The LineageOS 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 | |
Paul Keith | af24a5d | 2020-01-27 20:19:23 -0600 | [diff] [blame] | 17 | #ifndef ANDROID_HARDWARE_IR_V1_0_CONSUMERIR_H |
| 18 | #define ANDROID_HARDWARE_IR_V1_0_CONSUMERIR_H |
| 19 | |
| 20 | #include <android/hardware/ir/1.0/IConsumerIr.h> |
| 21 | #include <hidl/MQDescriptor.h> |
| 22 | #include <hidl/Status.h> |
| 23 | |
| 24 | namespace android { |
| 25 | namespace hardware { |
| 26 | namespace ir { |
| 27 | namespace V1_0 { |
| 28 | namespace implementation { |
| 29 | |
Paul Keith | af24a5d | 2020-01-27 20:19:23 -0600 | [diff] [blame] | 30 | using ::android::hardware::Return; |
| 31 | using ::android::hardware::Void; |
Paul Keith | af24a5d | 2020-01-27 20:19:23 -0600 | [diff] [blame] | 32 | |
Paul Keith | bde3a83 | 2020-01-27 20:19:30 -0600 | [diff] [blame] | 33 | class ConsumerIr : public IConsumerIr { |
| 34 | public: |
Paul Keith | af24a5d | 2020-01-27 20:19:23 -0600 | [diff] [blame] | 35 | // Methods from ::android::hardware::ir::V1_0::IConsumerIr follow. |
| 36 | Return<bool> transmit(int32_t carrierFreq, const hidl_vec<int32_t>& pattern) override; |
| 37 | Return<void> getCarrierFreqs(getCarrierFreqs_cb _hidl_cb) override; |
Paul Keith | af24a5d | 2020-01-27 20:19:23 -0600 | [diff] [blame] | 38 | }; |
| 39 | |
Paul Keith | af24a5d | 2020-01-27 20:19:23 -0600 | [diff] [blame] | 40 | } // namespace implementation |
| 41 | } // namespace V1_0 |
| 42 | } // namespace ir |
| 43 | } // namespace hardware |
| 44 | } // namespace android |
| 45 | |
| 46 | #endif // ANDROID_HARDWARE_IR_V1_0_CONSUMERIR_H |