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