Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 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 | |
| 17 | package com.android.systemui.statusbar.tv; |
| 18 | |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 19 | import android.os.IBinder; |
Christoph Studer | d0694b6 | 2014-06-04 16:36:01 +0200 | [diff] [blame] | 20 | import android.service.notification.NotificationListenerService.RankingMap; |
John Spurlock | de84f0e | 2013-06-12 12:41:00 -0400 | [diff] [blame] | 21 | import android.service.notification.StatusBarNotification; |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 22 | import android.view.View; |
| 23 | import android.view.ViewGroup.LayoutParams; |
| 24 | import android.view.WindowManager; |
| 25 | |
John Spurlock | de84f0e | 2013-06-12 12:41:00 -0400 | [diff] [blame] | 26 | import com.android.internal.statusbar.StatusBarIcon; |
Selim Cinek | a32ab60 | 2014-06-11 15:06:01 +0200 | [diff] [blame] | 27 | import com.android.systemui.statusbar.ActivatableNotificationView; |
John Spurlock | de84f0e | 2013-06-12 12:41:00 -0400 | [diff] [blame] | 28 | import com.android.systemui.statusbar.BaseStatusBar; |
Selim Cinek | 379ff8f | 2015-02-20 17:03:16 +0100 | [diff] [blame] | 29 | import com.android.systemui.statusbar.NotificationData; |
John Spurlock | de84f0e | 2013-06-12 12:41:00 -0400 | [diff] [blame] | 30 | |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 31 | /* |
| 32 | * Status bar implementation for "large screen" products that mostly present no on-screen nav |
| 33 | */ |
| 34 | |
| 35 | public class TvStatusBar extends BaseStatusBar { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 36 | |
| 37 | @Override |
| 38 | public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon) { |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | public void updateIcon(String slot, int index, int viewIndex, StatusBarIcon old, |
| 43 | StatusBarIcon icon) { |
| 44 | } |
| 45 | |
| 46 | @Override |
| 47 | public void removeIcon(String slot, int index, int viewIndex) { |
| 48 | } |
| 49 | |
| 50 | @Override |
Selim Cinek | 379ff8f | 2015-02-20 17:03:16 +0100 | [diff] [blame] | 51 | public void addNotification(StatusBarNotification notification, RankingMap ranking, |
| 52 | NotificationData.Entry entry) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | @Override |
Christoph Studer | e71fefc | 2014-06-24 16:16:49 +0200 | [diff] [blame] | 56 | protected void updateNotificationRanking(RankingMap ranking) { |
Christoph Studer | 60748e7 | 2014-05-22 16:51:41 +0200 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | @Override |
Christoph Studer | e71fefc | 2014-06-24 16:16:49 +0200 | [diff] [blame] | 60 | public void removeNotification(String key, RankingMap ranking) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | @Override |
Jorim Jaggi | 2580a976 | 2014-06-25 03:08:25 +0200 | [diff] [blame] | 64 | public void disable(int state, boolean animate) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 65 | } |
| 66 | |
| 67 | @Override |
Daniel Sandler | 11cf178 | 2012-09-27 14:03:08 -0400 | [diff] [blame] | 68 | public void animateExpandNotificationsPanel() { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | @Override |
Daniel Sandler | 11cf178 | 2012-09-27 14:03:08 -0400 | [diff] [blame] | 72 | public void animateCollapsePanels(int flags) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public void setSystemUiVisibility(int vis, int mask) { |
| 77 | } |
| 78 | |
| 79 | @Override |
| 80 | public void topAppWindowChanged(boolean visible) { |
| 81 | } |
| 82 | |
| 83 | @Override |
Jason Monk | b605fec | 2014-05-02 17:04:10 -0400 | [diff] [blame] | 84 | public void setImeWindowStatus(IBinder token, int vis, int backDisposition, |
| 85 | boolean showImeSwitcher) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | @Override |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 89 | public void toggleRecentApps() { |
| 90 | } |
| 91 | |
| 92 | @Override // CommandQueue |
John Spurlock | 9764218 | 2013-07-29 17:58:39 -0400 | [diff] [blame] | 93 | public void setWindowState(int window, int state) { |
| 94 | } |
| 95 | |
John Spurlock | cad5768 | 2014-07-26 17:09:56 -0400 | [diff] [blame] | 96 | @Override // CommandQueue |
| 97 | public void buzzBeepBlinked() { |
| 98 | } |
| 99 | |
John Spurlock | cb566aa | 2014-08-03 22:58:28 -0400 | [diff] [blame] | 100 | @Override // CommandQueue |
| 101 | public void notificationLightOff() { |
| 102 | } |
| 103 | |
| 104 | @Override // CommandQueue |
| 105 | public void notificationLightPulse(int argb, int onMillis, int offMillis) { |
| 106 | } |
| 107 | |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 108 | @Override |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 109 | protected void setAreThereNotifications() { |
| 110 | } |
| 111 | |
| 112 | @Override |
Christoph Studer | 37fe693 | 2014-05-26 13:10:30 +0200 | [diff] [blame] | 113 | protected void updateNotifications() { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 114 | } |
| 115 | |
| 116 | @Override |
Jorim Jaggi | 2fdeeab | 2015-04-01 15:13:03 -0700 | [diff] [blame] | 117 | public boolean shouldDisableNavbarGestures() { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 118 | return true; |
| 119 | } |
| 120 | |
Michael Jurka | cb2522c | 2012-04-13 09:32:47 -0700 | [diff] [blame] | 121 | public View getStatusBarView() { |
| 122 | return null; |
| 123 | } |
| 124 | |
Svetoslav Ganov | e20a177 | 2012-09-25 16:07:46 -0700 | [diff] [blame] | 125 | @Override |
Selim Cinek | b8f09cf | 2015-03-16 17:09:28 -0700 | [diff] [blame] | 126 | public void escalateHeadsUp() { |
Chris Wren | a4ef620 | 2014-06-09 18:07:30 -0400 | [diff] [blame] | 127 | } |
| 128 | |
| 129 | @Override |
Jorim Jaggi | d4a5744 | 2014-04-10 02:45:55 +0200 | [diff] [blame] | 130 | protected int getMaxKeyguardNotifications() { |
| 131 | return 0; |
| 132 | } |
| 133 | |
| 134 | @Override |
Daniel Sandler | 11cf178 | 2012-09-27 14:03:08 -0400 | [diff] [blame] | 135 | public void animateExpandSettingsPanel() { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 136 | } |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 137 | |
| 138 | @Override |
Jorim Jaggi | 5cf1787 | 2014-03-26 18:31:48 +0100 | [diff] [blame] | 139 | protected void createAndAddWindows() { |
| 140 | } |
| 141 | |
| 142 | @Override |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 143 | protected void refreshLayout(int layoutDirection) { |
| 144 | } |
| 145 | |
Jorim Jaggi | d552d9d | 2014-05-07 19:41:13 +0200 | [diff] [blame] | 146 | @Override |
Selim Cinek | a32ab60 | 2014-06-11 15:06:01 +0200 | [diff] [blame] | 147 | public void onActivated(ActivatableNotificationView view) { |
Jorim Jaggi | d552d9d | 2014-05-07 19:41:13 +0200 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | @Override |
Selim Cinek | a32ab60 | 2014-06-11 15:06:01 +0200 | [diff] [blame] | 151 | public void onActivationReset(ActivatableNotificationView view) { |
Jorim Jaggi | d552d9d | 2014-05-07 19:41:13 +0200 | [diff] [blame] | 152 | } |
Jason Monk | 5565cb4 | 2014-09-12 10:59:21 -0400 | [diff] [blame] | 153 | |
| 154 | @Override |
| 155 | public void showScreenPinningRequest() { |
| 156 | } |
Jorim Jaggi | 24bec7c | 2015-02-04 12:40:14 +0100 | [diff] [blame] | 157 | |
| 158 | @Override |
| 159 | public void appTransitionPending() { |
| 160 | } |
| 161 | |
| 162 | @Override |
| 163 | public void appTransitionCancelled() { |
| 164 | } |
| 165 | |
| 166 | @Override |
| 167 | public void appTransitionStarting(long startTime, long duration) { |
| 168 | } |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 169 | } |