1 /* 2 * Copyright 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 package android.media.tv.tuner.frontend; 18 19 import android.annotation.SystemApi; 20 21 /** 22 * ISDBT Capabilities. 23 * 24 * @hide 25 */ 26 @SystemApi 27 public class IsdbtFrontendCapabilities extends FrontendCapabilities { 28 private final int mModeCap; 29 private final int mBandwidthCap; 30 private final int mModulationCap; 31 private final int mCodeRateCap; 32 private final int mGuardIntervalCap; 33 IsdbtFrontendCapabilities(int modeCap, int bandwidthCap, int modulationCap, int codeRateCap, int guardIntervalCap)34 private IsdbtFrontendCapabilities(int modeCap, int bandwidthCap, int modulationCap, 35 int codeRateCap, int guardIntervalCap) { 36 mModeCap = modeCap; 37 mBandwidthCap = bandwidthCap; 38 mModulationCap = modulationCap; 39 mCodeRateCap = codeRateCap; 40 mGuardIntervalCap = guardIntervalCap; 41 } 42 43 /** 44 * Gets mode capability. 45 */ 46 @IsdbtFrontendSettings.Mode getModeCapability()47 public int getModeCapability() { 48 return mModeCap; 49 } 50 /** 51 * Gets bandwidth capability. 52 */ 53 @IsdbtFrontendSettings.Bandwidth getBandwidthCapability()54 public int getBandwidthCapability() { 55 return mBandwidthCap; 56 } 57 /** 58 * Gets modulation capability. 59 */ 60 @IsdbtFrontendSettings.Modulation getModulationCapability()61 public int getModulationCapability() { 62 return mModulationCap; 63 } 64 /** 65 * Gets code rate capability. 66 */ 67 @DvbtFrontendSettings.CodeRate getCodeRateCapability()68 public int getCodeRateCapability() { 69 return mCodeRateCap; 70 } 71 /** 72 * Gets guard interval capability. 73 */ 74 @DvbtFrontendSettings.GuardInterval getGuardIntervalCapability()75 public int getGuardIntervalCapability() { 76 return mGuardIntervalCap; 77 } 78 } 79