blob: f32234823ace6f058d220f87b7958e2a48473073 [file] [log] [blame]
Christopher Tateacad1832012-02-17 16:01:27 -08001/*
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
Christopher Tateacad1832012-02-17 16:01:27 -080019import android.os.IBinder;
Christoph Studerd0694b62014-06-04 16:36:01 +020020import android.service.notification.NotificationListenerService.RankingMap;
John Spurlockde84f0e2013-06-12 12:41:00 -040021import android.service.notification.StatusBarNotification;
Christopher Tateacad1832012-02-17 16:01:27 -080022import android.view.View;
Christopher Tateacad1832012-02-17 16:01:27 -080023
John Spurlockde84f0e2013-06-12 12:41:00 -040024import com.android.internal.statusbar.StatusBarIcon;
Selim Cineka32ab602014-06-11 15:06:01 +020025import com.android.systemui.statusbar.ActivatableNotificationView;
John Spurlockde84f0e2013-06-12 12:41:00 -040026import com.android.systemui.statusbar.BaseStatusBar;
Selim Cinek379ff8f2015-02-20 17:03:16 +010027import com.android.systemui.statusbar.NotificationData;
Jaewan Kimc552b042016-01-18 16:08:45 +090028import com.android.systemui.tv.pip.PipManager;
John Spurlockde84f0e2013-06-12 12:41:00 -040029
Christopher Tateacad1832012-02-17 16:01:27 -080030/*
31 * Status bar implementation for "large screen" products that mostly present no on-screen nav
32 */
33
34public class TvStatusBar extends BaseStatusBar {
Christopher Tateacad1832012-02-17 16:01:27 -080035
36 @Override
Jason Monk07473ce2016-01-05 14:59:19 -050037 public void setIcon(String slot, StatusBarIcon icon) {
Christopher Tateacad1832012-02-17 16:01:27 -080038 }
39
40 @Override
Jason Monk07473ce2016-01-05 14:59:19 -050041 public void removeIcon(String slot) {
Christopher Tateacad1832012-02-17 16:01:27 -080042 }
43
44 @Override
Selim Cinek379ff8f2015-02-20 17:03:16 +010045 public void addNotification(StatusBarNotification notification, RankingMap ranking,
46 NotificationData.Entry entry) {
Christopher Tateacad1832012-02-17 16:01:27 -080047 }
48
49 @Override
Christoph Studere71fefc2014-06-24 16:16:49 +020050 protected void updateNotificationRanking(RankingMap ranking) {
Christoph Studer60748e72014-05-22 16:51:41 +020051 }
52
53 @Override
Christoph Studere71fefc2014-06-24 16:16:49 +020054 public void removeNotification(String key, RankingMap ranking) {
Christopher Tateacad1832012-02-17 16:01:27 -080055 }
56
57 @Override
Benjamin Franzcde0a2a2015-04-23 17:19:48 +010058 public void disable(int state1, int state2, boolean animate) {
Christopher Tateacad1832012-02-17 16:01:27 -080059 }
60
61 @Override
Daniel Sandler11cf1782012-09-27 14:03:08 -040062 public void animateExpandNotificationsPanel() {
Christopher Tateacad1832012-02-17 16:01:27 -080063 }
64
65 @Override
Daniel Sandler11cf1782012-09-27 14:03:08 -040066 public void animateCollapsePanels(int flags) {
Christopher Tateacad1832012-02-17 16:01:27 -080067 }
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
Jason Monkb605fec2014-05-02 17:04:10 -040078 public void setImeWindowStatus(IBinder token, int vis, int backDisposition,
79 boolean showImeSwitcher) {
Christopher Tateacad1832012-02-17 16:01:27 -080080 }
81
82 @Override
Christopher Tateacad1832012-02-17 16:01:27 -080083 public void toggleRecentApps() {
84 }
85
86 @Override // CommandQueue
John Spurlock97642182013-07-29 17:58:39 -040087 public void setWindowState(int window, int state) {
88 }
89
John Spurlockcad57682014-07-26 17:09:56 -040090 @Override // CommandQueue
91 public void buzzBeepBlinked() {
92 }
93
John Spurlockcb566aa2014-08-03 22:58:28 -040094 @Override // CommandQueue
95 public void notificationLightOff() {
96 }
97
98 @Override // CommandQueue
99 public void notificationLightPulse(int argb, int onMillis, int offMillis) {
100 }
101
Christopher Tateacad1832012-02-17 16:01:27 -0800102 @Override
Christopher Tateacad1832012-02-17 16:01:27 -0800103 protected void setAreThereNotifications() {
104 }
105
106 @Override
Christoph Studer37fe6932014-05-26 13:10:30 +0200107 protected void updateNotifications() {
Christopher Tateacad1832012-02-17 16:01:27 -0800108 }
109
110 @Override
Jorim Jaggi2fdeeab2015-04-01 15:13:03 -0700111 public boolean shouldDisableNavbarGestures() {
Christopher Tateacad1832012-02-17 16:01:27 -0800112 return true;
113 }
114
Michael Jurkacb2522c2012-04-13 09:32:47 -0700115 public View getStatusBarView() {
116 return null;
117 }
118
Svetoslav Ganove20a1772012-09-25 16:07:46 -0700119 @Override
Selim Cinek684a4422015-04-15 16:18:39 -0700120 public void maybeEscalateHeadsUp() {
Chris Wrena4ef6202014-06-09 18:07:30 -0400121 }
122
123 @Override
Chris Wren16895942015-06-23 11:22:20 -0400124 protected boolean isPanelFullyCollapsed() {
125 return false;
126 }
127
128 @Override
Selim Cinek5f71bee2015-11-18 10:25:23 -0800129 protected int getMaxKeyguardNotifications(boolean recompute) {
Jorim Jaggid4a57442014-04-10 02:45:55 +0200130 return 0;
131 }
132
133 @Override
Jason Monka9927322015-12-13 16:22:37 -0500134 public void animateExpandSettingsPanel(String subPanel) {
Christopher Tateacad1832012-02-17 16:01:27 -0800135 }
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -0700136
137 @Override
Jorim Jaggi5cf17872014-03-26 18:31:48 +0100138 protected void createAndAddWindows() {
139 }
140
141 @Override
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -0700142 protected void refreshLayout(int layoutDirection) {
143 }
144
Jorim Jaggid552d9d2014-05-07 19:41:13 +0200145 @Override
Selim Cineka32ab602014-06-11 15:06:01 +0200146 public void onActivated(ActivatableNotificationView view) {
Jorim Jaggid552d9d2014-05-07 19:41:13 +0200147 }
148
149 @Override
Selim Cineka32ab602014-06-11 15:06:01 +0200150 public void onActivationReset(ActivatableNotificationView view) {
Jorim Jaggid552d9d2014-05-07 19:41:13 +0200151 }
Jason Monk5565cb42014-09-12 10:59:21 -0400152
153 @Override
154 public void showScreenPinningRequest() {
155 }
Jorim Jaggi24bec7c2015-02-04 12:40:14 +0100156
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 }
Selim Cinek29fa89b2015-04-17 10:39:11 -0700168
169 @Override
Jorim Jaggi40aa8812015-09-23 12:59:22 -0700170 public void onCameraLaunchGestureDetected(int source) {
Selim Cinek372d1bd2015-08-14 13:19:37 -0700171 }
172
173 @Override
Jaewan Kimc552b042016-01-18 16:08:45 +0900174 public void requestTvPictureInPicture() {
175 PipManager.getInstance().requestTvPictureInPicture();
176 }
177
178 @Override
Chris Wrenbdf33762015-12-04 15:50:51 -0500179 protected void updateHeadsUp(String key, NotificationData.Entry entry, boolean shouldPeek,
Selim Cinek29fa89b2015-04-17 10:39:11 -0700180 boolean alertAgain) {
181 }
182
183 @Override
184 protected void setHeadsUpUser(int newUserId) {
185 }
186
187 protected boolean isSnoozedPackage(StatusBarNotification sbn) {
188 return false;
189 }
Christopher Tateacad1832012-02-17 16:01:27 -0800190}