1 /*
2  * Copyright (C) 2018 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 package com.android.tv.common.compat;
17 
18 /** Temp TIF Compatibility for {@link TvInputManager} constants. */
19 public class TvInputConstantCompat {
20 
21     /**
22      * Status for {@link TisSessionCompat#notifySignalStrength(int)} and
23      * {@link TvViewCompat.TvInputCallback#onTimeShiftStatusChanged(String, int)}:
24      *
25      * <p>SIGNAL_STRENGTH_NOT_USED means the TV Input does not report signal strength. Each onTune
26      * command implicitly resets the TV App's signal strength state to SIGNAL_STRENGTH_NOT_USED.
27      */
28     public static final int SIGNAL_STRENGTH_NOT_USED = -3;
29 
30     /**
31      * Status for {@link TisSessionCompat#notifySignalStrength(int)} and
32      * {@link TvViewCompat.TvInputCallback#onTimeShiftStatusChanged(String, int)}:
33      *
34      * <p>SIGNAL_STRENGTH_ERROR means exception/error when handling signal strength.
35      */
36     public static final int SIGNAL_STRENGTH_ERROR = -2;
37 
38     /**
39      * Status for {@link TisSessionCompat#notifySignalStrength(int)} and
40      * {@link TvViewCompat.TvInputCallback#onTimeShiftStatusChanged(String, int)}:
41      *
42      * <p>SIGNAL_STRENGTH_UNKNOWN means the TV Input supports signal strength, but does not
43      * currently know what the strength is.
44      */
45     public static final int SIGNAL_STRENGTH_UNKNOWN = -1;
46 }
47