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