shubang | 420aaa1 | 2019-10-31 11:20:46 -0700 | [diff] [blame] | 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; |
| 18 | |
| 19 | import android.annotation.IntDef; |
shubang | 1512ec1 | 2019-12-23 18:22:42 -0800 | [diff] [blame] | 20 | import android.annotation.LongDef; |
shubang | 420aaa1 | 2019-10-31 11:20:46 -0700 | [diff] [blame] | 21 | import android.hardware.tv.tuner.V1_0.Constants; |
| 22 | |
| 23 | import java.lang.annotation.Retention; |
| 24 | import java.lang.annotation.RetentionPolicy; |
| 25 | |
| 26 | /** |
| 27 | * @hide |
| 28 | */ |
| 29 | final class TunerConstants { |
| 30 | public static final int INVALID_TS_PID = Constants.Constant.INVALID_TS_PID; |
| 31 | public static final int INVALID_STREAM_ID = Constants.Constant.INVALID_STREAM_ID; |
| 32 | |
| 33 | |
| 34 | @Retention(RetentionPolicy.SOURCE) |
| 35 | @IntDef({FRONTEND_TYPE_UNDEFINED, FRONTEND_TYPE_ANALOG, FRONTEND_TYPE_ATSC, FRONTEND_TYPE_ATSC3, |
| 36 | FRONTEND_TYPE_DVBC, FRONTEND_TYPE_DVBS, FRONTEND_TYPE_DVBT, FRONTEND_TYPE_ISDBS, |
| 37 | FRONTEND_TYPE_ISDBS3, FRONTEND_TYPE_ISDBT}) |
| 38 | public @interface FrontendType {} |
| 39 | |
| 40 | public static final int FRONTEND_TYPE_UNDEFINED = Constants.FrontendType.UNDEFINED; |
| 41 | public static final int FRONTEND_TYPE_ANALOG = Constants.FrontendType.ANALOG; |
| 42 | public static final int FRONTEND_TYPE_ATSC = Constants.FrontendType.ATSC; |
| 43 | public static final int FRONTEND_TYPE_ATSC3 = Constants.FrontendType.ATSC3; |
| 44 | public static final int FRONTEND_TYPE_DVBC = Constants.FrontendType.DVBC; |
| 45 | public static final int FRONTEND_TYPE_DVBS = Constants.FrontendType.DVBS; |
| 46 | public static final int FRONTEND_TYPE_DVBT = Constants.FrontendType.DVBT; |
| 47 | public static final int FRONTEND_TYPE_ISDBS = Constants.FrontendType.ISDBS; |
| 48 | public static final int FRONTEND_TYPE_ISDBS3 = Constants.FrontendType.ISDBS3; |
| 49 | public static final int FRONTEND_TYPE_ISDBT = Constants.FrontendType.ISDBT; |
| 50 | |
| 51 | |
| 52 | @Retention(RetentionPolicy.SOURCE) |
| 53 | @IntDef({FRONTEND_EVENT_TYPE_LOCKED, FRONTEND_EVENT_TYPE_NO_SIGNAL, |
| 54 | FRONTEND_EVENT_TYPE_LOST_LOCK}) |
| 55 | public @interface FrontendEventType {} |
| 56 | |
| 57 | public static final int FRONTEND_EVENT_TYPE_LOCKED = Constants.FrontendEventType.LOCKED; |
| 58 | public static final int FRONTEND_EVENT_TYPE_NO_SIGNAL = Constants.FrontendEventType.NO_SIGNAL; |
| 59 | public static final int FRONTEND_EVENT_TYPE_LOST_LOCK = Constants.FrontendEventType.LOST_LOCK; |
| 60 | |
| 61 | |
| 62 | @Retention(RetentionPolicy.SOURCE) |
| 63 | @IntDef({DATA_FORMAT_TS, DATA_FORMAT_PES, DATA_FORMAT_ES, DATA_FORMAT_SHV_TLV}) |
| 64 | public @interface DataFormat {} |
| 65 | |
| 66 | public static final int DATA_FORMAT_TS = Constants.DataFormat.TS; |
| 67 | public static final int DATA_FORMAT_PES = Constants.DataFormat.PES; |
| 68 | public static final int DATA_FORMAT_ES = Constants.DataFormat.ES; |
| 69 | public static final int DATA_FORMAT_SHV_TLV = Constants.DataFormat.SHV_TLV; |
| 70 | |
shubang | 13f15e0 | 2019-11-04 17:51:02 -0800 | [diff] [blame] | 71 | |
| 72 | @Retention(RetentionPolicy.SOURCE) |
| 73 | @IntDef({DEMUX_T_PID, DEMUX_MMPT_PID}) |
| 74 | public @interface DemuxPidType {} |
| 75 | |
| 76 | public static final int DEMUX_T_PID = 1; |
| 77 | public static final int DEMUX_MMPT_PID = 2; |
| 78 | |
shubang | d5b845f | 2019-12-11 15:29:09 -0800 | [diff] [blame] | 79 | @Retention(RetentionPolicy.SOURCE) |
shubang | 74bfd48 | 2019-10-29 19:10:22 -0700 | [diff] [blame] | 80 | @IntDef({FRONTEND_SETTINGS_ANALOG, FRONTEND_SETTINGS_ATSC, FRONTEND_SETTINGS_ATSC3, |
| 81 | FRONTEND_SETTINGS_DVBS, FRONTEND_SETTINGS_DVBC, FRONTEND_SETTINGS_DVBT, |
| 82 | FRONTEND_SETTINGS_ISDBS, FRONTEND_SETTINGS_ISDBS3, FRONTEND_SETTINGS_ISDBT}) |
| 83 | public @interface FrontendSettingsType {} |
| 84 | |
| 85 | public static final int FRONTEND_SETTINGS_ANALOG = 1; |
| 86 | public static final int FRONTEND_SETTINGS_ATSC = 2; |
| 87 | public static final int FRONTEND_SETTINGS_ATSC3 = 3; |
| 88 | public static final int FRONTEND_SETTINGS_DVBS = 4; |
| 89 | public static final int FRONTEND_SETTINGS_DVBC = 5; |
| 90 | public static final int FRONTEND_SETTINGS_DVBT = 6; |
| 91 | public static final int FRONTEND_SETTINGS_ISDBS = 7; |
| 92 | public static final int FRONTEND_SETTINGS_ISDBS3 = 8; |
| 93 | public static final int FRONTEND_SETTINGS_ISDBT = 9; |
| 94 | |
shubang | 75c8708 | 2019-11-15 11:26:56 -0800 | [diff] [blame] | 95 | @Retention(RetentionPolicy.SOURCE) |
shubang | 1c53a33 | 2019-12-17 12:53:36 -0800 | [diff] [blame] | 96 | @IntDef({FILTER_TYPE_TS, FILTER_TYPE_MMTP, FILTER_TYPE_IP, FILTER_TYPE_TLV, FILTER_TYPE_ALP}) |
| 97 | public @interface FilterType {} |
shubang | 75c8708 | 2019-11-15 11:26:56 -0800 | [diff] [blame] | 98 | |
shubang | 1c53a33 | 2019-12-17 12:53:36 -0800 | [diff] [blame] | 99 | public static final int FILTER_TYPE_TS = Constants.DemuxFilterMainType.TS; |
| 100 | public static final int FILTER_TYPE_MMTP = Constants.DemuxFilterMainType.MMTP; |
| 101 | public static final int FILTER_TYPE_IP = Constants.DemuxFilterMainType.IP; |
| 102 | public static final int FILTER_TYPE_TLV = Constants.DemuxFilterMainType.TLV; |
| 103 | public static final int FILTER_TYPE_ALP = Constants.DemuxFilterMainType.ALP; |
| 104 | |
| 105 | @Retention(RetentionPolicy.SOURCE) |
| 106 | @IntDef({FILTER_SUBTYPE_UNDEFINED, FILTER_SUBTYPE_SECTION, FILTER_SUBTYPE_PES, |
| 107 | FILTER_SUBTYPE_AUDIO, FILTER_SUBTYPE_VIDEO, FILTER_SUBTYPE_DOWNLOAD, |
| 108 | FILTER_SUBTYPE_RECORD, FILTER_SUBTYPE_TS, FILTER_SUBTYPE_PCR, FILTER_SUBTYPE_TEMI, |
| 109 | FILTER_SUBTYPE_MMPT, FILTER_SUBTYPE_NTP, FILTER_SUBTYPE_IP_PAYLOAD, FILTER_SUBTYPE_IP, |
| 110 | FILTER_SUBTYPE_PAYLOAD_THROUGH, FILTER_SUBTYPE_TLV, FILTER_SUBTYPE_PTP, }) |
| 111 | public @interface FilterSubtype {} |
| 112 | |
| 113 | public static final int FILTER_SUBTYPE_UNDEFINED = 0; |
| 114 | public static final int FILTER_SUBTYPE_SECTION = 1; |
| 115 | public static final int FILTER_SUBTYPE_PES = 2; |
| 116 | public static final int FILTER_SUBTYPE_AUDIO = 3; |
| 117 | public static final int FILTER_SUBTYPE_VIDEO = 4; |
| 118 | public static final int FILTER_SUBTYPE_DOWNLOAD = 5; |
| 119 | public static final int FILTER_SUBTYPE_RECORD = 6; |
| 120 | public static final int FILTER_SUBTYPE_TS = 7; |
| 121 | public static final int FILTER_SUBTYPE_PCR = 8; |
| 122 | public static final int FILTER_SUBTYPE_TEMI = 9; |
| 123 | public static final int FILTER_SUBTYPE_MMPT = 10; |
| 124 | public static final int FILTER_SUBTYPE_NTP = 11; |
| 125 | public static final int FILTER_SUBTYPE_IP_PAYLOAD = 12; |
| 126 | public static final int FILTER_SUBTYPE_IP = 13; |
| 127 | public static final int FILTER_SUBTYPE_PAYLOAD_THROUGH = 14; |
| 128 | public static final int FILTER_SUBTYPE_TLV = 15; |
| 129 | public static final int FILTER_SUBTYPE_PTP = 16; |
shubang | 75c8708 | 2019-11-15 11:26:56 -0800 | [diff] [blame] | 130 | |
shubang | 030afb5 | 2019-11-27 16:09:02 -0800 | [diff] [blame] | 131 | @Retention(RetentionPolicy.SOURCE) |
shubang | d5b845f | 2019-12-11 15:29:09 -0800 | [diff] [blame] | 132 | @IntDef({FRONTEND_SCAN_UNDEFINED, FRONTEND_SCAN_AUTO, FRONTEND_SCAN_BLIND}) |
| 133 | public @interface FrontendScanType {} |
| 134 | |
| 135 | public static final int FRONTEND_SCAN_UNDEFINED = Constants.FrontendScanType.SCAN_UNDEFINED; |
| 136 | public static final int FRONTEND_SCAN_AUTO = Constants.FrontendScanType.SCAN_AUTO; |
| 137 | public static final int FRONTEND_SCAN_BLIND = Constants.FrontendScanType.SCAN_BLIND; |
| 138 | |
| 139 | @Retention(RetentionPolicy.SOURCE) |
| 140 | @IntDef({SCAN_MESSAGE_TYPE_LOCKED, SCAN_MESSAGE_TYPE_END, SCAN_MESSAGE_TYPE_PROGRESS_PERCENT, |
| 141 | SCAN_MESSAGE_TYPE_FREQUENCY, SCAN_MESSAGE_TYPE_SYMBOL_RATE, SCAN_MESSAGE_TYPE_PLP_IDS, |
| 142 | SCAN_MESSAGE_TYPE_GROUP_IDS, SCAN_MESSAGE_TYPE_INPUT_STREAM_IDS, |
| 143 | SCAN_MESSAGE_TYPE_STANDARD, SCAN_MESSAGE_TYPE_ATSC3_PLP_INFO}) |
| 144 | public @interface ScanMessageType {} |
| 145 | |
| 146 | public static final int SCAN_MESSAGE_TYPE_LOCKED = Constants.FrontendScanMessageType.LOCKED; |
| 147 | public static final int SCAN_MESSAGE_TYPE_END = Constants.FrontendScanMessageType.END; |
| 148 | public static final int SCAN_MESSAGE_TYPE_PROGRESS_PERCENT = |
| 149 | Constants.FrontendScanMessageType.PROGRESS_PERCENT; |
| 150 | public static final int SCAN_MESSAGE_TYPE_FREQUENCY = |
| 151 | Constants.FrontendScanMessageType.FREQUENCY; |
| 152 | public static final int SCAN_MESSAGE_TYPE_SYMBOL_RATE = |
| 153 | Constants.FrontendScanMessageType.SYMBOL_RATE; |
| 154 | public static final int SCAN_MESSAGE_TYPE_PLP_IDS = Constants.FrontendScanMessageType.PLP_IDS; |
| 155 | public static final int SCAN_MESSAGE_TYPE_GROUP_IDS = |
| 156 | Constants.FrontendScanMessageType.GROUP_IDS; |
| 157 | public static final int SCAN_MESSAGE_TYPE_INPUT_STREAM_IDS = |
| 158 | Constants.FrontendScanMessageType.INPUT_STREAM_IDS; |
| 159 | public static final int SCAN_MESSAGE_TYPE_STANDARD = |
| 160 | Constants.FrontendScanMessageType.STANDARD; |
| 161 | public static final int SCAN_MESSAGE_TYPE_ATSC3_PLP_INFO = |
| 162 | Constants.FrontendScanMessageType.ATSC3_PLP_INFO; |
| 163 | |
shubang | 1512ec1 | 2019-12-23 18:22:42 -0800 | [diff] [blame] | 164 | |
| 165 | @Retention(RetentionPolicy.SOURCE) |
| 166 | @IntDef({FRONTEND_STATUS_TYPE_DEMOD_LOCK, FRONTEND_STATUS_TYPE_SNR, FRONTEND_STATUS_TYPE_BER, |
| 167 | FRONTEND_STATUS_TYPE_PER, FRONTEND_STATUS_TYPE_PRE_BER, |
| 168 | FRONTEND_STATUS_TYPE_SIGNAL_QUALITY, FRONTEND_STATUS_TYPE_SIGNAL_STRENGTH, |
| 169 | FRONTEND_STATUS_TYPE_SYMBOL_RATE, FRONTEND_STATUS_TYPE_FEC, |
| 170 | FRONTEND_STATUS_TYPE_MODULATION, FRONTEND_STATUS_TYPE_SPECTRAL, |
| 171 | FRONTEND_STATUS_TYPE_LNB_VOLTAGE, FRONTEND_STATUS_TYPE_PLP_ID, |
| 172 | FRONTEND_STATUS_TYPE_EWBS, FRONTEND_STATUS_TYPE_AGC, FRONTEND_STATUS_TYPE_LNA, |
| 173 | FRONTEND_STATUS_TYPE_LAYER_ERROR, FRONTEND_STATUS_TYPE_VBER_CN, |
| 174 | FRONTEND_STATUS_TYPE_LBER_CN, FRONTEND_STATUS_TYPE_XER_CN, FRONTEND_STATUS_TYPE_MER, |
| 175 | FRONTEND_STATUS_TYPE_FREQ_OFFSET, FRONTEND_STATUS_TYPE_HIERARCHY, |
| 176 | FRONTEND_STATUS_TYPE_RF_LOCK, FRONTEND_STATUS_TYPE_ATSC3_PLP_INFO}) |
| 177 | public @interface FrontendStatusType {} |
| 178 | |
| 179 | /** |
| 180 | * Lock status for Demod. |
| 181 | */ |
| 182 | public static final int FRONTEND_STATUS_TYPE_DEMOD_LOCK = |
| 183 | Constants.FrontendStatusType.DEMOD_LOCK; |
| 184 | /** |
| 185 | * Signal to Noise Ratio. |
| 186 | */ |
| 187 | public static final int FRONTEND_STATUS_TYPE_SNR = Constants.FrontendStatusType.SNR; |
| 188 | /** |
| 189 | * Bit Error Ratio. |
| 190 | */ |
| 191 | public static final int FRONTEND_STATUS_TYPE_BER = Constants.FrontendStatusType.BER; |
| 192 | /** |
| 193 | * Packages Error Ratio. |
| 194 | */ |
| 195 | public static final int FRONTEND_STATUS_TYPE_PER = Constants.FrontendStatusType.PER; |
| 196 | /** |
| 197 | * Bit Error Ratio before FEC. |
| 198 | */ |
| 199 | public static final int FRONTEND_STATUS_TYPE_PRE_BER = Constants.FrontendStatusType.PRE_BER; |
| 200 | /** |
| 201 | * Signal Quality (0..100). Good data over total data in percent can be |
| 202 | * used as a way to present Signal Quality. |
| 203 | */ |
| 204 | public static final int FRONTEND_STATUS_TYPE_SIGNAL_QUALITY = |
| 205 | Constants.FrontendStatusType.SIGNAL_QUALITY; |
| 206 | /** |
| 207 | * Signal Strength. |
| 208 | */ |
| 209 | public static final int FRONTEND_STATUS_TYPE_SIGNAL_STRENGTH = |
| 210 | Constants.FrontendStatusType.SIGNAL_STRENGTH; |
| 211 | /** |
| 212 | * Symbol Rate. |
| 213 | */ |
| 214 | public static final int FRONTEND_STATUS_TYPE_SYMBOL_RATE = |
| 215 | Constants.FrontendStatusType.SYMBOL_RATE; |
| 216 | /** |
| 217 | * Forward Error Correction Type. |
| 218 | */ |
| 219 | public static final int FRONTEND_STATUS_TYPE_FEC = Constants.FrontendStatusType.FEC; |
| 220 | /** |
| 221 | * Modulation Type. |
| 222 | */ |
| 223 | public static final int FRONTEND_STATUS_TYPE_MODULATION = |
| 224 | Constants.FrontendStatusType.MODULATION; |
| 225 | /** |
| 226 | * Spectral Inversion Type. |
| 227 | */ |
| 228 | public static final int FRONTEND_STATUS_TYPE_SPECTRAL = Constants.FrontendStatusType.SPECTRAL; |
| 229 | /** |
| 230 | * LNB Voltage. |
| 231 | */ |
| 232 | public static final int FRONTEND_STATUS_TYPE_LNB_VOLTAGE = |
| 233 | Constants.FrontendStatusType.LNB_VOLTAGE; |
| 234 | /** |
| 235 | * Physical Layer Pipe ID. |
| 236 | */ |
| 237 | public static final int FRONTEND_STATUS_TYPE_PLP_ID = Constants.FrontendStatusType.PLP_ID; |
| 238 | /** |
| 239 | * Status for Emergency Warning Broadcasting System. |
| 240 | */ |
| 241 | public static final int FRONTEND_STATUS_TYPE_EWBS = Constants.FrontendStatusType.EWBS; |
| 242 | /** |
| 243 | * Automatic Gain Control. |
| 244 | */ |
| 245 | public static final int FRONTEND_STATUS_TYPE_AGC = Constants.FrontendStatusType.AGC; |
| 246 | /** |
| 247 | * Low Noise Amplifier. |
| 248 | */ |
| 249 | public static final int FRONTEND_STATUS_TYPE_LNA = Constants.FrontendStatusType.LNA; |
| 250 | /** |
| 251 | * Error status by layer. |
| 252 | */ |
| 253 | public static final int FRONTEND_STATUS_TYPE_LAYER_ERROR = |
| 254 | Constants.FrontendStatusType.LAYER_ERROR; |
| 255 | /** |
| 256 | * CN value by VBER. |
| 257 | */ |
| 258 | public static final int FRONTEND_STATUS_TYPE_VBER_CN = Constants.FrontendStatusType.VBER_CN; |
| 259 | /** |
| 260 | * CN value by LBER. |
| 261 | */ |
| 262 | public static final int FRONTEND_STATUS_TYPE_LBER_CN = Constants.FrontendStatusType.LBER_CN; |
| 263 | /** |
| 264 | * CN value by XER. |
| 265 | */ |
| 266 | public static final int FRONTEND_STATUS_TYPE_XER_CN = Constants.FrontendStatusType.XER_CN; |
| 267 | /** |
| 268 | * Moduration Error Ratio. |
| 269 | */ |
| 270 | public static final int FRONTEND_STATUS_TYPE_MER = Constants.FrontendStatusType.MER; |
| 271 | /** |
| 272 | * Difference between tuning frequency and actual locked frequency. |
| 273 | */ |
| 274 | public static final int FRONTEND_STATUS_TYPE_FREQ_OFFSET = |
| 275 | Constants.FrontendStatusType.FREQ_OFFSET; |
| 276 | /** |
| 277 | * Hierarchy for DVBT. |
| 278 | */ |
| 279 | public static final int FRONTEND_STATUS_TYPE_HIERARCHY = Constants.FrontendStatusType.HIERARCHY; |
| 280 | /** |
| 281 | * Lock status for RF. |
| 282 | */ |
| 283 | public static final int FRONTEND_STATUS_TYPE_RF_LOCK = Constants.FrontendStatusType.RF_LOCK; |
| 284 | /** |
| 285 | * PLP information in a frequency band for ATSC3.0 frontend. |
| 286 | */ |
| 287 | public static final int FRONTEND_STATUS_TYPE_ATSC3_PLP_INFO = |
| 288 | Constants.FrontendStatusType.ATSC3_PLP_INFO; |
| 289 | |
| 290 | |
| 291 | @Retention(RetentionPolicy.SOURCE) |
| 292 | @LongDef({FEC_UNDEFINED, FEC_AUTO, FEC_1_2, FEC_1_3, FEC_1_4, FEC_1_5, FEC_2_3, FEC_2_5, |
| 293 | FEC_2_9, FEC_3_4, FEC_3_5, FEC_4_5, FEC_4_15, FEC_5_6, FEC_5_9, FEC_6_7, FEC_7_8, |
| 294 | FEC_7_9, FEC_7_15, FEC_8_9, FEC_8_15, FEC_9_10, FEC_9_20, FEC_11_15, FEC_11_20, |
| 295 | FEC_11_45, FEC_13_18, FEC_13_45, FEC_14_45, FEC_23_36, FEC_25_36, FEC_26_45, FEC_28_45, |
| 296 | FEC_29_45, FEC_31_45, FEC_32_45, FEC_77_90}) |
| 297 | public @interface FrontendInnerFec {} |
| 298 | |
| 299 | /** |
| 300 | * FEC not defined |
| 301 | */ |
| 302 | public static final long FEC_UNDEFINED = Constants.FrontendInnerFec.FEC_UNDEFINED; |
| 303 | /** |
| 304 | * hardware is able to detect and set FEC automatically |
| 305 | */ |
| 306 | public static final long FEC_AUTO = Constants.FrontendInnerFec.AUTO; |
| 307 | /** |
| 308 | * 1/2 conv. code rate |
| 309 | */ |
| 310 | public static final long FEC_1_2 = Constants.FrontendInnerFec.FEC_1_2; |
| 311 | /** |
| 312 | * 1/3 conv. code rate |
| 313 | */ |
| 314 | public static final long FEC_1_3 = Constants.FrontendInnerFec.FEC_1_3; |
| 315 | /** |
| 316 | * 1/4 conv. code rate |
| 317 | */ |
| 318 | public static final long FEC_1_4 = Constants.FrontendInnerFec.FEC_1_4; |
| 319 | /** |
| 320 | * 1/5 conv. code rate |
| 321 | */ |
| 322 | public static final long FEC_1_5 = Constants.FrontendInnerFec.FEC_1_5; |
| 323 | /** |
| 324 | * 2/3 conv. code rate |
| 325 | */ |
| 326 | public static final long FEC_2_3 = Constants.FrontendInnerFec.FEC_2_3; |
| 327 | /** |
| 328 | * 2/5 conv. code rate |
| 329 | */ |
| 330 | public static final long FEC_2_5 = Constants.FrontendInnerFec.FEC_2_5; |
| 331 | /** |
| 332 | * 2/9 conv. code rate |
| 333 | */ |
| 334 | public static final long FEC_2_9 = Constants.FrontendInnerFec.FEC_2_9; |
| 335 | /** |
| 336 | * 3/4 conv. code rate |
| 337 | */ |
| 338 | public static final long FEC_3_4 = Constants.FrontendInnerFec.FEC_3_4; |
| 339 | /** |
| 340 | * 3/5 conv. code rate |
| 341 | */ |
| 342 | public static final long FEC_3_5 = Constants.FrontendInnerFec.FEC_3_5; |
| 343 | /** |
| 344 | * 4/5 conv. code rate |
| 345 | */ |
| 346 | public static final long FEC_4_5 = Constants.FrontendInnerFec.FEC_4_5; |
| 347 | /** |
| 348 | * 4/15 conv. code rate |
| 349 | */ |
| 350 | public static final long FEC_4_15 = Constants.FrontendInnerFec.FEC_4_15; |
| 351 | /** |
| 352 | * 5/6 conv. code rate |
| 353 | */ |
| 354 | public static final long FEC_5_6 = Constants.FrontendInnerFec.FEC_5_6; |
| 355 | /** |
| 356 | * 5/9 conv. code rate |
| 357 | */ |
| 358 | public static final long FEC_5_9 = Constants.FrontendInnerFec.FEC_5_9; |
| 359 | /** |
| 360 | * 6/7 conv. code rate |
| 361 | */ |
| 362 | public static final long FEC_6_7 = Constants.FrontendInnerFec.FEC_6_7; |
| 363 | /** |
| 364 | * 7/8 conv. code rate |
| 365 | */ |
| 366 | public static final long FEC_7_8 = Constants.FrontendInnerFec.FEC_7_8; |
| 367 | /** |
| 368 | * 7/9 conv. code rate |
| 369 | */ |
| 370 | public static final long FEC_7_9 = Constants.FrontendInnerFec.FEC_7_9; |
| 371 | /** |
| 372 | * 7/15 conv. code rate |
| 373 | */ |
| 374 | public static final long FEC_7_15 = Constants.FrontendInnerFec.FEC_7_15; |
| 375 | /** |
| 376 | * 8/9 conv. code rate |
| 377 | */ |
| 378 | public static final long FEC_8_9 = Constants.FrontendInnerFec.FEC_8_9; |
| 379 | /** |
| 380 | * 8/15 conv. code rate |
| 381 | */ |
| 382 | public static final long FEC_8_15 = Constants.FrontendInnerFec.FEC_8_15; |
| 383 | /** |
| 384 | * 9/10 conv. code rate |
| 385 | */ |
| 386 | public static final long FEC_9_10 = Constants.FrontendInnerFec.FEC_9_10; |
| 387 | /** |
| 388 | * 9/20 conv. code rate |
| 389 | */ |
| 390 | public static final long FEC_9_20 = Constants.FrontendInnerFec.FEC_9_20; |
| 391 | /** |
| 392 | * 11/15 conv. code rate |
| 393 | */ |
| 394 | public static final long FEC_11_15 = Constants.FrontendInnerFec.FEC_11_15; |
| 395 | /** |
| 396 | * 11/20 conv. code rate |
| 397 | */ |
| 398 | public static final long FEC_11_20 = Constants.FrontendInnerFec.FEC_11_20; |
| 399 | /** |
| 400 | * 11/45 conv. code rate |
| 401 | */ |
| 402 | public static final long FEC_11_45 = Constants.FrontendInnerFec.FEC_11_45; |
| 403 | /** |
| 404 | * 13/18 conv. code rate |
| 405 | */ |
| 406 | public static final long FEC_13_18 = Constants.FrontendInnerFec.FEC_13_18; |
| 407 | /** |
| 408 | * 13/45 conv. code rate |
| 409 | */ |
| 410 | public static final long FEC_13_45 = Constants.FrontendInnerFec.FEC_13_45; |
| 411 | /** |
| 412 | * 14/45 conv. code rate |
| 413 | */ |
| 414 | public static final long FEC_14_45 = Constants.FrontendInnerFec.FEC_14_45; |
| 415 | /** |
| 416 | * 23/36 conv. code rate |
| 417 | */ |
| 418 | public static final long FEC_23_36 = Constants.FrontendInnerFec.FEC_23_36; |
| 419 | /** |
| 420 | * 25/36 conv. code rate |
| 421 | */ |
| 422 | public static final long FEC_25_36 = Constants.FrontendInnerFec.FEC_25_36; |
| 423 | /** |
| 424 | * 26/45 conv. code rate |
| 425 | */ |
| 426 | public static final long FEC_26_45 = Constants.FrontendInnerFec.FEC_26_45; |
| 427 | /** |
| 428 | * 28/45 conv. code rate |
| 429 | */ |
| 430 | public static final long FEC_28_45 = Constants.FrontendInnerFec.FEC_28_45; |
| 431 | /** |
| 432 | * 29/45 conv. code rate |
| 433 | */ |
| 434 | public static final long FEC_29_45 = Constants.FrontendInnerFec.FEC_29_45; |
| 435 | /** |
| 436 | * 31/45 conv. code rate |
| 437 | */ |
| 438 | public static final long FEC_31_45 = Constants.FrontendInnerFec.FEC_31_45; |
| 439 | /** |
| 440 | * 32/45 conv. code rate |
| 441 | */ |
| 442 | public static final long FEC_32_45 = Constants.FrontendInnerFec.FEC_32_45; |
| 443 | /** |
| 444 | * 77/90 conv. code rate |
| 445 | */ |
| 446 | public static final long FEC_77_90 = Constants.FrontendInnerFec.FEC_77_90; |
| 447 | |
| 448 | |
| 449 | @Retention(RetentionPolicy.SOURCE) |
| 450 | @IntDef({DVBC_MODULATION_UNDEFINED, DVBC_MODULATION_AUTO, DVBC_MODULATION_MOD_16QAM, |
| 451 | DVBC_MODULATION_MOD_32QAM, DVBC_MODULATION_MOD_64QAM, DVBC_MODULATION_MOD_128QAM, |
| 452 | DVBC_MODULATION_MOD_256QAM, DVBS_MODULATION_UNDEFINED, DVBS_MODULATION_AUTO, |
| 453 | DVBS_MODULATION_MOD_QPSK, DVBS_MODULATION_MOD_8PSK, DVBS_MODULATION_MOD_16QAM, |
| 454 | DVBS_MODULATION_MOD_16PSK, DVBS_MODULATION_MOD_32PSK, DVBS_MODULATION_MOD_ACM, |
| 455 | DVBS_MODULATION_MOD_8APSK, DVBS_MODULATION_MOD_16APSK, DVBS_MODULATION_MOD_32APSK, |
| 456 | DVBS_MODULATION_MOD_64APSK, DVBS_MODULATION_MOD_128APSK, DVBS_MODULATION_MOD_256APSK, |
| 457 | DVBS_MODULATION_MOD_RESERVED, ISDBS_MODULATION_UNDEFINED, ISDBS_MODULATION_AUTO, |
| 458 | ISDBS_MODULATION_MOD_BPSK, ISDBS_MODULATION_MOD_QPSK, ISDBS_MODULATION_MOD_TC8PSK, |
| 459 | ISDBS3_MODULATION_UNDEFINED, ISDBS3_MODULATION_AUTO, ISDBS3_MODULATION_MOD_BPSK, |
| 460 | ISDBS3_MODULATION_MOD_QPSK, ISDBS3_MODULATION_MOD_8PSK, ISDBS3_MODULATION_MOD_16APSK, |
| 461 | ISDBS3_MODULATION_MOD_32APSK, ISDBT_MODULATION_UNDEFINED, ISDBT_MODULATION_AUTO, |
| 462 | ISDBT_MODULATION_MOD_DQPSK, ISDBT_MODULATION_MOD_QPSK, ISDBT_MODULATION_MOD_16QAM, |
| 463 | ISDBT_MODULATION_MOD_64QAM}) |
| 464 | public @interface FrontendModulation {} |
| 465 | |
| 466 | public static final int DVBC_MODULATION_UNDEFINED = Constants.FrontendDvbcModulation.UNDEFINED; |
| 467 | public static final int DVBC_MODULATION_AUTO = Constants.FrontendDvbcModulation.AUTO; |
| 468 | public static final int DVBC_MODULATION_MOD_16QAM = Constants.FrontendDvbcModulation.MOD_16QAM; |
| 469 | public static final int DVBC_MODULATION_MOD_32QAM = Constants.FrontendDvbcModulation.MOD_32QAM; |
| 470 | public static final int DVBC_MODULATION_MOD_64QAM = Constants.FrontendDvbcModulation.MOD_64QAM; |
| 471 | public static final int DVBC_MODULATION_MOD_128QAM = |
| 472 | Constants.FrontendDvbcModulation.MOD_128QAM; |
| 473 | public static final int DVBC_MODULATION_MOD_256QAM = |
| 474 | Constants.FrontendDvbcModulation.MOD_256QAM; |
| 475 | public static final int DVBS_MODULATION_UNDEFINED = Constants.FrontendDvbsModulation.UNDEFINED; |
| 476 | public static final int DVBS_MODULATION_AUTO = Constants.FrontendDvbsModulation.AUTO; |
| 477 | public static final int DVBS_MODULATION_MOD_QPSK = Constants.FrontendDvbsModulation.MOD_QPSK; |
| 478 | public static final int DVBS_MODULATION_MOD_8PSK = Constants.FrontendDvbsModulation.MOD_8PSK; |
| 479 | public static final int DVBS_MODULATION_MOD_16QAM = Constants.FrontendDvbsModulation.MOD_16QAM; |
| 480 | public static final int DVBS_MODULATION_MOD_16PSK = Constants.FrontendDvbsModulation.MOD_16PSK; |
| 481 | public static final int DVBS_MODULATION_MOD_32PSK = Constants.FrontendDvbsModulation.MOD_32PSK; |
| 482 | public static final int DVBS_MODULATION_MOD_ACM = Constants.FrontendDvbsModulation.MOD_ACM; |
| 483 | public static final int DVBS_MODULATION_MOD_8APSK = Constants.FrontendDvbsModulation.MOD_8APSK; |
| 484 | public static final int DVBS_MODULATION_MOD_16APSK = |
| 485 | Constants.FrontendDvbsModulation.MOD_16APSK; |
| 486 | public static final int DVBS_MODULATION_MOD_32APSK = |
| 487 | Constants.FrontendDvbsModulation.MOD_32APSK; |
| 488 | public static final int DVBS_MODULATION_MOD_64APSK = |
| 489 | Constants.FrontendDvbsModulation.MOD_64APSK; |
| 490 | public static final int DVBS_MODULATION_MOD_128APSK = |
| 491 | Constants.FrontendDvbsModulation.MOD_128APSK; |
| 492 | public static final int DVBS_MODULATION_MOD_256APSK = |
| 493 | Constants.FrontendDvbsModulation.MOD_256APSK; |
| 494 | public static final int DVBS_MODULATION_MOD_RESERVED = |
| 495 | Constants.FrontendDvbsModulation.MOD_RESERVED; |
| 496 | public static final int ISDBS_MODULATION_UNDEFINED = |
| 497 | Constants.FrontendIsdbsModulation.UNDEFINED; |
| 498 | public static final int ISDBS_MODULATION_AUTO = Constants.FrontendIsdbsModulation.AUTO; |
| 499 | public static final int ISDBS_MODULATION_MOD_BPSK = Constants.FrontendIsdbsModulation.MOD_BPSK; |
| 500 | public static final int ISDBS_MODULATION_MOD_QPSK = Constants.FrontendIsdbsModulation.MOD_QPSK; |
| 501 | public static final int ISDBS_MODULATION_MOD_TC8PSK = |
| 502 | Constants.FrontendIsdbsModulation.MOD_TC8PSK; |
| 503 | public static final int ISDBS3_MODULATION_UNDEFINED = |
| 504 | Constants.FrontendIsdbs3Modulation.UNDEFINED; |
| 505 | public static final int ISDBS3_MODULATION_AUTO = Constants.FrontendIsdbs3Modulation.AUTO; |
| 506 | public static final int ISDBS3_MODULATION_MOD_BPSK = |
| 507 | Constants.FrontendIsdbs3Modulation.MOD_BPSK; |
| 508 | public static final int ISDBS3_MODULATION_MOD_QPSK = |
| 509 | Constants.FrontendIsdbs3Modulation.MOD_QPSK; |
| 510 | public static final int ISDBS3_MODULATION_MOD_8PSK = |
| 511 | Constants.FrontendIsdbs3Modulation.MOD_8PSK; |
| 512 | public static final int ISDBS3_MODULATION_MOD_16APSK = |
| 513 | Constants.FrontendIsdbs3Modulation.MOD_16APSK; |
| 514 | public static final int ISDBS3_MODULATION_MOD_32APSK = |
| 515 | Constants.FrontendIsdbs3Modulation.MOD_32APSK; |
| 516 | public static final int ISDBT_MODULATION_UNDEFINED = |
| 517 | Constants.FrontendIsdbtModulation.UNDEFINED; |
| 518 | public static final int ISDBT_MODULATION_AUTO = Constants.FrontendIsdbtModulation.AUTO; |
| 519 | public static final int ISDBT_MODULATION_MOD_DQPSK = |
| 520 | Constants.FrontendIsdbtModulation.MOD_DQPSK; |
| 521 | public static final int ISDBT_MODULATION_MOD_QPSK = Constants.FrontendIsdbtModulation.MOD_QPSK; |
| 522 | public static final int ISDBT_MODULATION_MOD_16QAM = |
| 523 | Constants.FrontendIsdbtModulation.MOD_16QAM; |
| 524 | public static final int ISDBT_MODULATION_MOD_64QAM = |
| 525 | Constants.FrontendIsdbtModulation.MOD_64QAM; |
| 526 | |
| 527 | |
| 528 | @Retention(RetentionPolicy.SOURCE) |
| 529 | @IntDef({SPECTRAL_INVERSION_UNDEFINED, SPECTRAL_INVERSION_NORMAL, SPECTRAL_INVERSION_INVERTED}) |
| 530 | public @interface FrontendDvbcSpectralInversion {} |
| 531 | |
| 532 | public static final int SPECTRAL_INVERSION_UNDEFINED = |
| 533 | Constants.FrontendDvbcSpectralInversion.UNDEFINED; |
| 534 | public static final int SPECTRAL_INVERSION_NORMAL = |
| 535 | Constants.FrontendDvbcSpectralInversion.NORMAL; |
| 536 | public static final int SPECTRAL_INVERSION_INVERTED = |
| 537 | Constants.FrontendDvbcSpectralInversion.INVERTED; |
| 538 | |
shubang | 1512ec1 | 2019-12-23 18:22:42 -0800 | [diff] [blame] | 539 | |
| 540 | @Retention(RetentionPolicy.SOURCE) |
| 541 | @IntDef({HIERARCHY_UNDEFINED, HIERARCHY_AUTO, HIERARCHY_NON_NATIVE, HIERARCHY_1_NATIVE, |
| 542 | HIERARCHY_2_NATIVE, HIERARCHY_4_NATIVE, HIERARCHY_NON_INDEPTH, HIERARCHY_1_INDEPTH, |
| 543 | HIERARCHY_2_INDEPTH, HIERARCHY_4_INDEPTH}) |
| 544 | public @interface FrontendDvbtHierarchy {} |
| 545 | |
| 546 | public static final int HIERARCHY_UNDEFINED = Constants.FrontendDvbtHierarchy.UNDEFINED; |
| 547 | public static final int HIERARCHY_AUTO = Constants.FrontendDvbtHierarchy.AUTO; |
| 548 | public static final int HIERARCHY_NON_NATIVE = |
| 549 | Constants.FrontendDvbtHierarchy.HIERARCHY_NON_NATIVE; |
| 550 | public static final int HIERARCHY_1_NATIVE = Constants.FrontendDvbtHierarchy.HIERARCHY_1_NATIVE; |
| 551 | public static final int HIERARCHY_2_NATIVE = Constants.FrontendDvbtHierarchy.HIERARCHY_2_NATIVE; |
| 552 | public static final int HIERARCHY_4_NATIVE = Constants.FrontendDvbtHierarchy.HIERARCHY_4_NATIVE; |
| 553 | public static final int HIERARCHY_NON_INDEPTH = |
| 554 | Constants.FrontendDvbtHierarchy.HIERARCHY_NON_INDEPTH; |
| 555 | public static final int HIERARCHY_1_INDEPTH = |
| 556 | Constants.FrontendDvbtHierarchy.HIERARCHY_1_INDEPTH; |
| 557 | public static final int HIERARCHY_2_INDEPTH = |
| 558 | Constants.FrontendDvbtHierarchy.HIERARCHY_2_INDEPTH; |
| 559 | public static final int HIERARCHY_4_INDEPTH = |
| 560 | Constants.FrontendDvbtHierarchy.HIERARCHY_4_INDEPTH; |
| 561 | |
| 562 | |
shubang | d5b845f | 2019-12-11 15:29:09 -0800 | [diff] [blame] | 563 | @Retention(RetentionPolicy.SOURCE) |
| 564 | @IntDef({FILTER_SETTINGS_TS, FILTER_SETTINGS_MMTP, FILTER_SETTINGS_IP, FILTER_SETTINGS_TLV, |
| 565 | FILTER_SETTINGS_ALP}) |
| 566 | public @interface FilterSettingsType {} |
| 567 | |
| 568 | public static final int FILTER_SETTINGS_TS = Constants.DemuxFilterMainType.TS; |
| 569 | public static final int FILTER_SETTINGS_MMTP = Constants.DemuxFilterMainType.MMTP; |
| 570 | public static final int FILTER_SETTINGS_IP = Constants.DemuxFilterMainType.IP; |
| 571 | public static final int FILTER_SETTINGS_TLV = Constants.DemuxFilterMainType.TLV; |
| 572 | public static final int FILTER_SETTINGS_ALP = Constants.DemuxFilterMainType.ALP; |
| 573 | |
| 574 | @Retention(RetentionPolicy.SOURCE) |
shubang | 030afb5 | 2019-11-27 16:09:02 -0800 | [diff] [blame] | 575 | @IntDef({DVR_SETTINGS_RECORD, DVR_SETTINGS_PLAYBACK}) |
| 576 | public @interface DvrSettingsType {} |
| 577 | |
| 578 | public static final int DVR_SETTINGS_RECORD = Constants.DvrType.RECORD; |
| 579 | public static final int DVR_SETTINGS_PLAYBACK = Constants.DvrType.PLAYBACK; |
| 580 | |
shubang | 847fc0a | 2019-12-26 16:54:10 -0800 | [diff] [blame] | 581 | |
| 582 | @Retention(RetentionPolicy.SOURCE) |
| 583 | @IntDef({LNB_VOLTAGE_NONE, LNB_VOLTAGE_5V, LNB_VOLTAGE_11V, LNB_VOLTAGE_12V, LNB_VOLTAGE_13V, |
| 584 | LNB_VOLTAGE_14V, LNB_VOLTAGE_15V, LNB_VOLTAGE_18V, LNB_VOLTAGE_19V}) |
| 585 | public @interface LnbVoltage {} |
| 586 | |
| 587 | public static final int LNB_VOLTAGE_NONE = Constants.LnbVoltage.NONE; |
| 588 | public static final int LNB_VOLTAGE_5V = Constants.LnbVoltage.VOLTAGE_5V; |
| 589 | public static final int LNB_VOLTAGE_11V = Constants.LnbVoltage.VOLTAGE_11V; |
| 590 | public static final int LNB_VOLTAGE_12V = Constants.LnbVoltage.VOLTAGE_12V; |
| 591 | public static final int LNB_VOLTAGE_13V = Constants.LnbVoltage.VOLTAGE_13V; |
| 592 | public static final int LNB_VOLTAGE_14V = Constants.LnbVoltage.VOLTAGE_14V; |
| 593 | public static final int LNB_VOLTAGE_15V = Constants.LnbVoltage.VOLTAGE_15V; |
| 594 | public static final int LNB_VOLTAGE_18V = Constants.LnbVoltage.VOLTAGE_18V; |
| 595 | public static final int LNB_VOLTAGE_19V = Constants.LnbVoltage.VOLTAGE_19V; |
| 596 | |
| 597 | @Retention(RetentionPolicy.SOURCE) |
| 598 | @IntDef({LNB_TONE_NONE, LNB_TONE_CONTINUOUS}) |
| 599 | public @interface LnbTone {} |
| 600 | |
| 601 | public static final int LNB_TONE_NONE = Constants.LnbTone.NONE; |
| 602 | public static final int LNB_TONE_CONTINUOUS = Constants.LnbTone.CONTINUOUS; |
| 603 | |
| 604 | @Retention(RetentionPolicy.SOURCE) |
| 605 | @IntDef({LNB_POSITION_UNDEFINED, LNB_POSITION_A, LNB_POSITION_B}) |
| 606 | public @interface LnbPosition {} |
| 607 | |
| 608 | public static final int LNB_POSITION_UNDEFINED = Constants.LnbPosition.UNDEFINED; |
| 609 | public static final int LNB_POSITION_A = Constants.LnbPosition.POSITION_A; |
| 610 | public static final int LNB_POSITION_B = Constants.LnbPosition.POSITION_B; |
| 611 | |
| 612 | |
shubang | 0d128c9 | 2019-12-17 16:12:23 -0800 | [diff] [blame] | 613 | @Retention(RetentionPolicy.SOURCE) |
| 614 | @IntDef({RESULT_SUCCESS, RESULT_UNAVAILABLE, RESULT_NOT_INITIALIZED, RESULT_INVALID_STATE, |
| 615 | RESULT_INVALID_ARGUMENT, RESULT_OUT_OF_MEMORY, RESULT_UNKNOWN_ERROR}) |
| 616 | public @interface Result {} |
| 617 | |
| 618 | public static final int RESULT_SUCCESS = Constants.Result.SUCCESS; |
| 619 | public static final int RESULT_UNAVAILABLE = Constants.Result.UNAVAILABLE; |
| 620 | public static final int RESULT_NOT_INITIALIZED = Constants.Result.NOT_INITIALIZED; |
| 621 | public static final int RESULT_INVALID_STATE = Constants.Result.INVALID_STATE; |
| 622 | public static final int RESULT_INVALID_ARGUMENT = Constants.Result.INVALID_ARGUMENT; |
| 623 | public static final int RESULT_OUT_OF_MEMORY = Constants.Result.OUT_OF_MEMORY; |
| 624 | public static final int RESULT_UNKNOWN_ERROR = Constants.Result.UNKNOWN_ERROR; |
| 625 | |
shubang | 420aaa1 | 2019-10-31 11:20:46 -0700 | [diff] [blame] | 626 | private TunerConstants() { |
| 627 | } |
| 628 | } |