Amy | 016b731 | 2019-09-16 15:51:28 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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 | #define LOG_TAG "android.hardware.tv.tuner@1.0-Lnb" |
| 18 | |
| 19 | #include "Lnb.h" |
| 20 | #include <utils/Log.h> |
| 21 | |
| 22 | namespace android { |
| 23 | namespace hardware { |
| 24 | namespace tv { |
| 25 | namespace tuner { |
| 26 | namespace V1_0 { |
| 27 | namespace implementation { |
| 28 | |
| 29 | Lnb::Lnb() {} |
shubang | fd88251 | 2020-04-22 14:59:03 -0700 | [diff] [blame^] | 30 | Lnb::Lnb(int id) { |
| 31 | mId = id; |
| 32 | } |
Amy | 016b731 | 2019-09-16 15:51:28 -0700 | [diff] [blame] | 33 | |
| 34 | Lnb::~Lnb() {} |
| 35 | |
Amy | b4b6801 | 2019-10-15 17:38:19 -0700 | [diff] [blame] | 36 | Return<Result> Lnb::setCallback(const sp<ILnbCallback>& /* callback */) { |
Amy | 016b731 | 2019-09-16 15:51:28 -0700 | [diff] [blame] | 37 | ALOGV("%s", __FUNCTION__); |
| 38 | |
| 39 | return Result::SUCCESS; |
| 40 | } |
| 41 | |
Amy | b4b6801 | 2019-10-15 17:38:19 -0700 | [diff] [blame] | 42 | Return<Result> Lnb::setVoltage(LnbVoltage /* voltage */) { |
Amy | 016b731 | 2019-09-16 15:51:28 -0700 | [diff] [blame] | 43 | ALOGV("%s", __FUNCTION__); |
| 44 | |
| 45 | return Result::SUCCESS; |
| 46 | } |
| 47 | |
Amy | b4b6801 | 2019-10-15 17:38:19 -0700 | [diff] [blame] | 48 | Return<Result> Lnb::setTone(LnbTone /* tone */) { |
| 49 | ALOGV("%s", __FUNCTION__); |
| 50 | |
| 51 | return Result::SUCCESS; |
| 52 | } |
| 53 | |
| 54 | Return<Result> Lnb::setSatellitePosition(LnbPosition /* position */) { |
Amy | 016b731 | 2019-09-16 15:51:28 -0700 | [diff] [blame] | 55 | ALOGV("%s", __FUNCTION__); |
| 56 | |
| 57 | return Result::SUCCESS; |
| 58 | } |
| 59 | |
Amy | 42a5b4b | 2019-10-03 16:49:48 -0700 | [diff] [blame] | 60 | Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& /* diseqcMessage */) { |
| 61 | ALOGV("%s", __FUNCTION__); |
| 62 | |
| 63 | return Result::SUCCESS; |
| 64 | } |
| 65 | |
Amy | 016b731 | 2019-09-16 15:51:28 -0700 | [diff] [blame] | 66 | Return<Result> Lnb::close() { |
| 67 | ALOGV("%s", __FUNCTION__); |
| 68 | |
| 69 | return Result::SUCCESS; |
| 70 | } |
| 71 | |
shubang | fd88251 | 2020-04-22 14:59:03 -0700 | [diff] [blame^] | 72 | int Lnb::getId() { |
| 73 | return mId; |
| 74 | } |
| 75 | |
Amy | 016b731 | 2019-09-16 15:51:28 -0700 | [diff] [blame] | 76 | } // namespace implementation |
| 77 | } // namespace V1_0 |
| 78 | } // namespace tuner |
| 79 | } // namespace tv |
| 80 | } // namespace hardware |
shubang | fd88251 | 2020-04-22 14:59:03 -0700 | [diff] [blame^] | 81 | } // namespace android |