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 "[email protected]"
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 
Lnb()29 Lnb::Lnb() {}
Lnb(int id)30 Lnb::Lnb(int id) {
31     mId = id;
32 }
33 
~Lnb()34 Lnb::~Lnb() {}
35 
setCallback(const sp<ILnbCallback> &)36 Return<Result> Lnb::setCallback(const sp<ILnbCallback>& /* callback */) {
37     ALOGV("%s", __FUNCTION__);
38 
39     return Result::SUCCESS;
40 }
41 
setVoltage(LnbVoltage)42 Return<Result> Lnb::setVoltage(LnbVoltage /* voltage */) {
43     ALOGV("%s", __FUNCTION__);
44 
45     return Result::SUCCESS;
46 }
47 
setTone(LnbTone)48 Return<Result> Lnb::setTone(LnbTone /* tone */) {
49     ALOGV("%s", __FUNCTION__);
50 
51     return Result::SUCCESS;
52 }
53 
setSatellitePosition(LnbPosition)54 Return<Result> Lnb::setSatellitePosition(LnbPosition /* position */) {
55     ALOGV("%s", __FUNCTION__);
56 
57     return Result::SUCCESS;
58 }
59 
sendDiseqcMessage(const hidl_vec<uint8_t> &)60 Return<Result> Lnb::sendDiseqcMessage(const hidl_vec<uint8_t>& /* diseqcMessage */) {
61     ALOGV("%s", __FUNCTION__);
62 
63     return Result::SUCCESS;
64 }
65 
close()66 Return<Result> Lnb::close() {
67     ALOGV("%s", __FUNCTION__);
68 
69     return Result::SUCCESS;
70 }
71 
getId()72 int Lnb::getId() {
73     return mId;
74 }
75 
76 }  // namespace implementation
77 }  // namespace V1_0
78 }  // namespace tuner
79 }  // namespace tv
80 }  // namespace hardware
81 }  // namespace android
82