Hongguang | 4092f2f | 2021-07-08 18:49:12 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 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 | //#define LOG_NDEBUG 0 |
| 18 | #define LOG_TAG "android.hardware.tv.tuner-service.example-Lnb" |
| 19 | |
| 20 | #include "Lnb.h" |
| 21 | #include <utils/Log.h> |
| 22 | |
| 23 | namespace aidl { |
| 24 | namespace android { |
| 25 | namespace hardware { |
| 26 | namespace tv { |
| 27 | namespace tuner { |
| 28 | |
| 29 | Lnb::Lnb() {} |
| 30 | |
| 31 | Lnb::Lnb(int id) { |
| 32 | mId = id; |
| 33 | } |
| 34 | |
| 35 | Lnb::~Lnb() {} |
| 36 | |
| 37 | ::ndk::ScopedAStatus Lnb::setCallback(const std::shared_ptr<ILnbCallback>& /* in_callback */) { |
| 38 | ALOGV("%s", __FUNCTION__); |
| 39 | |
| 40 | return ::ndk::ScopedAStatus::ok(); |
| 41 | } |
| 42 | |
| 43 | ::ndk::ScopedAStatus Lnb::setVoltage(LnbVoltage /* in_voltage */) { |
| 44 | ALOGV("%s", __FUNCTION__); |
| 45 | |
| 46 | return ::ndk::ScopedAStatus::ok(); |
| 47 | } |
| 48 | |
| 49 | ::ndk::ScopedAStatus Lnb::setTone(LnbTone /* in_tone */) { |
| 50 | ALOGV("%s", __FUNCTION__); |
| 51 | |
| 52 | return ::ndk::ScopedAStatus::ok(); |
| 53 | } |
| 54 | |
| 55 | ::ndk::ScopedAStatus Lnb::setSatellitePosition(LnbPosition /* in_position */) { |
| 56 | ALOGV("%s", __FUNCTION__); |
| 57 | |
| 58 | return ::ndk::ScopedAStatus::ok(); |
| 59 | } |
| 60 | |
| 61 | ::ndk::ScopedAStatus Lnb::sendDiseqcMessage(const std::vector<uint8_t>& /* in_diseqcMessage */) { |
| 62 | ALOGV("%s", __FUNCTION__); |
| 63 | |
| 64 | return ::ndk::ScopedAStatus::ok(); |
| 65 | } |
| 66 | |
| 67 | ::ndk::ScopedAStatus Lnb::close() { |
| 68 | ALOGV("%s", __FUNCTION__); |
| 69 | |
| 70 | return ::ndk::ScopedAStatus::ok(); |
| 71 | } |
| 72 | |
| 73 | int Lnb::getId() { |
| 74 | return mId; |
| 75 | } |
| 76 | |
| 77 | } // namespace tuner |
| 78 | } // namespace tv |
| 79 | } // namespace hardware |
| 80 | } // namespace android |
| 81 | } // namespace aidl |