TvStatusBar.java revision a9927325eda025504d59bb6594fee8e240d95b01
1/*
2 * Copyright (C) 2012 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
17package com.android.systemui.statusbar.tv;
18
19import android.os.IBinder;
20import android.service.notification.NotificationListenerService.RankingMap;
21import android.service.notification.StatusBarNotification;
22import android.view.View;
23
24import com.android.internal.statusbar.StatusBarIcon;
25import com.android.systemui.statusbar.ActivatableNotificationView;
26import com.android.systemui.statusbar.BaseStatusBar;
27import com.android.systemui.statusbar.NotificationData;
28
29/*
30 * Status bar implementation for "large screen" products that mostly present no on-screen nav
31 */
32
33public class TvStatusBar extends BaseStatusBar {
34
35    @Override
36    public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon) {
37    }
38
39    @Override
40    public void updateIcon(String slot, int index, int viewIndex, StatusBarIcon old,
41            StatusBarIcon icon) {
42    }
43
44    @Override
45    public void removeIcon(String slot, int index, int viewIndex) {
46    }
47
48    @Override
49    public void addNotification(StatusBarNotification notification, RankingMap ranking,
50            NotificationData.Entry entry) {
51    }
52
53    @Override
54    protected void updateNotificationRanking(RankingMap ranking) {
55    }
56
57    @Override
58    public void removeNotification(String key, RankingMap ranking) {
59    }
60
61    @Override
62    public void disable(int state1, int state2, boolean animate) {
63    }
64
65    @Override
66    public void animateExpandNotificationsPanel() {
67    }
68
69    @Override
70    public void animateCollapsePanels(int flags) {
71    }
72
73    @Override
74    public void setSystemUiVisibility(int vis, int mask) {
75    }
76
77    @Override
78    public void topAppWindowChanged(boolean visible) {
79    }
80
81    @Override
82    public void setImeWindowStatus(IBinder token, int vis, int backDisposition,
83            boolean showImeSwitcher) {
84    }
85
86    @Override
87    public void toggleRecentApps() {
88    }
89
90    @Override // CommandQueue
91    public void setWindowState(int window, int state) {
92    }
93
94    @Override // CommandQueue
95    public void buzzBeepBlinked() {
96    }
97
98    @Override // CommandQueue
99    public void notificationLightOff() {
100    }
101
102    @Override // CommandQueue
103    public void notificationLightPulse(int argb, int onMillis, int offMillis) {
104    }
105
106    @Override
107    protected void setAreThereNotifications() {
108    }
109
110    @Override
111    protected void updateNotifications() {
112    }
113
114    @Override
115    public boolean shouldDisableNavbarGestures() {
116        return true;
117    }
118
119    public View getStatusBarView() {
120        return null;
121    }
122
123    @Override
124    public void maybeEscalateHeadsUp() {
125    }
126
127    @Override
128    protected boolean isPanelFullyCollapsed() {
129        return false;
130    }
131
132    @Override
133    protected int getMaxKeyguardNotifications(boolean recompute) {
134        return 0;
135    }
136
137    @Override
138    public void animateExpandSettingsPanel(String subPanel) {
139    }
140
141    @Override
142    protected void createAndAddWindows() {
143    }
144
145    @Override
146    protected void refreshLayout(int layoutDirection) {
147    }
148
149    @Override
150    public void onActivated(ActivatableNotificationView view) {
151    }
152
153    @Override
154    public void onActivationReset(ActivatableNotificationView view) {
155    }
156
157    @Override
158    public void showScreenPinningRequest() {
159    }
160
161    @Override
162    public void appTransitionPending() {
163    }
164
165    @Override
166    public void appTransitionCancelled() {
167    }
168
169    @Override
170    public void appTransitionStarting(long startTime, long duration) {
171    }
172
173    @Override
174    public void onCameraLaunchGestureDetected(int source) {
175    }
176
177    @Override
178    protected void updateHeadsUp(String key, NotificationData.Entry entry, boolean shouldPeek,
179            boolean alertAgain) {
180    }
181
182    @Override
183    protected void setHeadsUpUser(int newUserId) {
184    }
185
186    protected boolean isSnoozedPackage(StatusBarNotification sbn) {
187        return false;
188    }
189}
190