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