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 package android.media.tv.tuner; 18 19 import android.hardware.tv.tuner.LnbPosition; 20 import android.hardware.tv.tuner.LnbTone; 21 import android.hardware.tv.tuner.LnbVoltage; 22 import android.media.tv.tuner.ITunerLnbCallback; 23 24 /** 25 * Tuner Lnb interface handles Lnb related operations. 26 * 27 * {@hide} 28 */ 29 interface ITunerLnb { 30 /** 31 * Set the lnb callback. 32 */ setCallback(in ITunerLnbCallback tunerLnbCallback)33 void setCallback(in ITunerLnbCallback tunerLnbCallback); 34 35 /** 36 * Set the lnb's power voltage. 37 */ setVoltage(in LnbVoltage voltage)38 void setVoltage(in LnbVoltage voltage); 39 40 /** 41 * Set the lnb's tone mode. 42 */ setTone(in LnbTone tone)43 void setTone(in LnbTone tone); 44 45 /** 46 * Select the lnb's position. 47 */ setSatellitePosition(in LnbPosition position)48 void setSatellitePosition(in LnbPosition position); 49 50 /** 51 * Sends DiSEqC (Digital Satellite Equipment Control) message. 52 */ sendDiseqcMessage(in byte[] diseqcMessage)53 void sendDiseqcMessage(in byte[] diseqcMessage); 54 55 /** 56 * Releases the LNB instance. 57 */ close()58 void close(); 59 } 60