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; |
Chris Wren | 333a61c | 2014-05-28 16:40:57 -0400 | [diff] [blame] | 20 | import android.service.notification.NotificationListenerService; |
Christoph Studer | 37fe693 | 2014-05-26 13:10:30 +0200 | [diff] [blame] | 21 | import android.service.notification.NotificationListenerService.Ranking; |
John Spurlock | de84f0e | 2013-06-12 12:41:00 -0400 | [diff] [blame] | 22 | import android.service.notification.StatusBarNotification; |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 23 | import android.view.View; |
| 24 | import android.view.ViewGroup.LayoutParams; |
| 25 | import android.view.WindowManager; |
| 26 | |
John Spurlock | de84f0e | 2013-06-12 12:41:00 -0400 | [diff] [blame] | 27 | import com.android.internal.statusbar.StatusBarIcon; |
| 28 | import com.android.systemui.statusbar.BaseStatusBar; |
| 29 | |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 30 | /* |
| 31 | * Status bar implementation for "large screen" products that mostly present no on-screen nav |
| 32 | */ |
| 33 | |
| 34 | public class TvStatusBar extends BaseStatusBar { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 35 | |
| 36 | @Override |
| 37 | public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon) { |
| 38 | } |
| 39 | |
| 40 | @Override |
| 41 | public void updateIcon(String slot, int index, int viewIndex, StatusBarIcon old, |
| 42 | StatusBarIcon icon) { |
| 43 | } |
| 44 | |
| 45 | @Override |
| 46 | public void removeIcon(String slot, int index, int viewIndex) { |
| 47 | } |
| 48 | |
| 49 | @Override |
Christoph Studer | 71f18fd | 2014-05-20 17:02:04 +0200 | [diff] [blame] | 50 | public void addNotification(StatusBarNotification notification) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | @Override |
Christoph Studer | 37fe693 | 2014-05-26 13:10:30 +0200 | [diff] [blame] | 54 | public void addNotificationInternal(StatusBarNotification notification, Ranking ranking) { |
Christoph Studer | 60748e7 | 2014-05-22 16:51:41 +0200 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | @Override |
Chris Wren | 333a61c | 2014-05-28 16:40:57 -0400 | [diff] [blame] | 58 | protected void updateRankingInternal(Ranking ranking) { |
| 59 | } |
| 60 | |
| 61 | @Override |
Christoph Studer | 71f18fd | 2014-05-20 17:02:04 +0200 | [diff] [blame] | 62 | public void updateNotification(StatusBarNotification notification) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | @Override |
Chris Wren | 333a61c | 2014-05-28 16:40:57 -0400 | [diff] [blame] | 66 | public void removeNotificationInternal(String key, Ranking ranking) { |
Christoph Studer | 60748e7 | 2014-05-22 16:51:41 +0200 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | @Override |
Christoph Studer | 71f18fd | 2014-05-20 17:02:04 +0200 | [diff] [blame] | 70 | public void removeNotification(String key) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | @Override |
| 74 | public void disable(int state) { |
| 75 | } |
| 76 | |
| 77 | @Override |
Daniel Sandler | 11cf178 | 2012-09-27 14:03:08 -0400 | [diff] [blame] | 78 | public void animateExpandNotificationsPanel() { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | @Override |
Daniel Sandler | 11cf178 | 2012-09-27 14:03:08 -0400 | [diff] [blame] | 82 | public void animateCollapsePanels(int flags) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | @Override |
| 86 | public void setSystemUiVisibility(int vis, int mask) { |
| 87 | } |
| 88 | |
| 89 | @Override |
| 90 | public void topAppWindowChanged(boolean visible) { |
| 91 | } |
| 92 | |
| 93 | @Override |
Jason Monk | b605fec | 2014-05-02 17:04:10 -0400 | [diff] [blame] | 94 | public void setImeWindowStatus(IBinder token, int vis, int backDisposition, |
| 95 | boolean showImeSwitcher) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | @Override |
| 99 | public void setHardKeyboardStatus(boolean available, boolean enabled) { |
| 100 | } |
| 101 | |
| 102 | @Override |
| 103 | public void toggleRecentApps() { |
| 104 | } |
| 105 | |
| 106 | @Override // CommandQueue |
John Spurlock | 9764218 | 2013-07-29 17:58:39 -0400 | [diff] [blame] | 107 | public void setWindowState(int window, int state) { |
| 108 | } |
| 109 | |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 110 | @Override |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 111 | protected WindowManager.LayoutParams getSearchLayoutParams( |
| 112 | LayoutParams layoutParams) { |
| 113 | return null; |
| 114 | } |
| 115 | |
| 116 | @Override |
| 117 | protected void haltTicker() { |
| 118 | } |
| 119 | |
| 120 | @Override |
| 121 | protected void setAreThereNotifications() { |
| 122 | } |
| 123 | |
| 124 | @Override |
Christoph Studer | 37fe693 | 2014-05-26 13:10:30 +0200 | [diff] [blame] | 125 | protected void updateNotifications() { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 126 | } |
| 127 | |
| 128 | @Override |
Christoph Studer | 71f18fd | 2014-05-20 17:02:04 +0200 | [diff] [blame] | 129 | protected void tick(StatusBarNotification n, boolean firstTime) { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 130 | } |
| 131 | |
| 132 | @Override |
| 133 | protected void updateExpandedViewPos(int expandedPosition) { |
| 134 | } |
| 135 | |
| 136 | @Override |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 137 | protected boolean shouldDisableNavbarGestures() { |
| 138 | return true; |
| 139 | } |
| 140 | |
Michael Jurka | cb2522c | 2012-04-13 09:32:47 -0700 | [diff] [blame] | 141 | public View getStatusBarView() { |
| 142 | return null; |
| 143 | } |
| 144 | |
Svetoslav Ganov | e20a177 | 2012-09-25 16:07:46 -0700 | [diff] [blame] | 145 | @Override |
Chris Wren | 51c7510 | 2013-07-16 20:49:17 -0400 | [diff] [blame] | 146 | public void resetHeadsUpDecayTimer() { |
| 147 | } |
| 148 | |
| 149 | @Override |
Chris Wren | a4ef620 | 2014-06-09 18:07:30 -0400 | [diff] [blame^] | 150 | public void scheduleHeadsUpOpen() { |
| 151 | } |
| 152 | |
| 153 | @Override |
| 154 | public void scheduleHeadsUpEscalation() { |
| 155 | } |
| 156 | |
| 157 | @Override |
| 158 | public void scheduleHeadsUpClose() { |
| 159 | } |
| 160 | |
| 161 | @Override |
Jorim Jaggi | d4a5744 | 2014-04-10 02:45:55 +0200 | [diff] [blame] | 162 | protected int getMaxKeyguardNotifications() { |
| 163 | return 0; |
| 164 | } |
| 165 | |
| 166 | @Override |
Daniel Sandler | 11cf178 | 2012-09-27 14:03:08 -0400 | [diff] [blame] | 167 | public void animateExpandSettingsPanel() { |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 168 | } |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 169 | |
| 170 | @Override |
Jorim Jaggi | 5cf1787 | 2014-03-26 18:31:48 +0100 | [diff] [blame] | 171 | protected void createAndAddWindows() { |
| 172 | } |
| 173 | |
| 174 | @Override |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 175 | protected void refreshLayout(int layoutDirection) { |
| 176 | } |
| 177 | |
Jorim Jaggi | d552d9d | 2014-05-07 19:41:13 +0200 | [diff] [blame] | 178 | @Override |
| 179 | public void onActivated(View view) { |
| 180 | } |
| 181 | |
| 182 | @Override |
| 183 | public void onActivationReset(View view) { |
| 184 | } |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 185 | } |