• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2020 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
17syntax = "proto2";
18
19package android.stats.tv;
20option java_multiple_files = true;
21
22// Enums for TV Input Framework
23option java_outer_classname = "TifStatsEnums";
24
25// Tune State of a TV Input Service Framework
26enum TifTuneState {
27  TIF_TUNE_STATE_UNKNOWN = 0;
28  CREATED = 1;
29  SURFACE_ATTACHED = 2;
30  SURFACE_DETACHED = 3;
31  RELEASED = 4;
32  TUNE_STARTED = 5;
33  VIDEO_AVAILABLE = 6;
34
35  // Keep in sync with TvInputManager
36  // Use the TvInputManager value + 100
37  VIDEO_UNAVAILABLE_REASON_UNKNOWN = 100;
38  VIDEO_UNAVAILABLE_REASON_TUNING = 101;
39  VIDEO_UNAVAILABLE_REASON_WEAK_SIGNAL = 102;
40  VIDEO_UNAVAILABLE_REASON_BUFFERING = 103;
41  VIDEO_UNAVAILABLE_REASON_AUDIO_ONLY = 104;
42  VIDEO_UNAVAILABLE_REASON_NOT_CONNECTED = 105;
43  VIDEO_UNAVAILABLE_REASON_INSUFFICIENT_RESOURCE = 106;
44  VIDEO_UNAVAILABLE_REASON_CAS_INSUFFICIENT_OUTPUT_PROTECTION = 107;
45  VIDEO_UNAVAILABLE_REASON_CAS_PVR_RECORDING_NOT_ALLOWED = 108;
46  VIDEO_UNAVAILABLE_REASON_CAS_NO_LICENSE = 109;
47  VIDEO_UNAVAILABLE_REASON_CAS_LICENSE_EXPIRED = 110;
48  VIDEO_UNAVAILABLE_REASON_CAS_NEED_ACTIVATION = 111;
49  VIDEO_UNAVAILABLE_REASON_CAS_NEED_PAIRING = 112;
50  VIDEO_UNAVAILABLE_REASON_CAS_NO_CARD = 113;
51  VIDEO_UNAVAILABLE_REASON_CAS_CARD_MUTE = 114;
52  VIDEO_UNAVAILABLE_REASON_CAS_CARD_INVALID = 115;
53  VIDEO_UNAVAILABLE_REASON_CAS_BLACKOUT = 116;
54  VIDEO_UNAVAILABLE_REASON_CAS_REBOOTING = 117;
55  VIDEO_UNAVAILABLE_REASON_CAS_UNKNOWN = 118;
56}
57
58// Tv Input Types.  Keep in sync with
59// android.media.tv.TvInputInfo.Type
60enum TifInputType {
61
62  TIF_INPUT_TYPE_UNKNOWN = 0;
63
64  // TV input type: the TV input service is a tuner which provides channels.
65  // This is 0 in  android.media.tv.TvInputInfo
66  TUNER = 1;
67
68  // TV input type: a generic hardware TV input type.
69  OTHER = 1000;
70
71  // TV input type: the TV input service represents a composite port.
72  COMPOSITE = 1001;
73
74  // TV input type: the TV input service represents a SVIDEO port.
75  SVIDEO = 1002;
76
77  // TV input type: the TV input service represents a SCART port.
78  SCART = 1003;
79
80  // TV input type: the TV input service represents a component port.
81  COMPONENT = 1004;
82
83  // TV input type: the TV input service represents a VGA port.
84  VGA = 1005;
85
86  // TV input type: the TV input service represents a DVI port.
87  DVI = 1006;
88
89  // TV input type: the TV input service is HDMI. (e.g. HDMI 1)
90  HDMI = 1007;
91
92  // TV input type: the TV input service represents a display port.
93  DISPLAY_PORT = 1008;
94}
95