2 * Copyright (C) 2012 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package com.android.systemui.statusbar.tv;
19 import android.os.IBinder;
20 import android.service.notification.NotificationListenerService.RankingMap;
21 import android.service.notification.StatusBarNotification;
22 import android.view.View;
23 import android.view.ViewGroup.LayoutParams;
24 import android.view.WindowManager;
26 import com.android.internal.statusbar.StatusBarIcon;
27 import com.android.systemui.statusbar.ActivatableNotificationView;
28 import com.android.systemui.statusbar.BaseStatusBar;
31 * Status bar implementation for "large screen" products that mostly present no on-screen nav
34 public class TvStatusBar extends BaseStatusBar {
37 public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon) {
41 public void updateIcon(String slot, int index, int viewIndex, StatusBarIcon old,
46 public void removeIcon(String slot, int index, int viewIndex) {
50 public void addNotification(StatusBarNotification notification, RankingMap ranking) {
54 protected void updateNotificationRanking(RankingMap ranking) {
58 public void removeNotification(String key, RankingMap ranking) {
62 public void disable(int state, boolean animate) {
66 public void animateExpandNotificationsPanel() {
70 public void animateCollapsePanels(int flags) {
74 public void setSystemUiVisibility(int vis, int mask) {
78 public void topAppWindowChanged(boolean visible) {
82 public void setImeWindowStatus(IBinder token, int vis, int backDisposition,
83 boolean showImeSwitcher) {
87 public void toggleRecentApps() {
90 @Override // CommandQueue
91 public void setWindowState(int window, int state) {
94 @Override // CommandQueue
95 public void buzzBeepBlinked() {
98 @Override // CommandQueue
99 public void notificationLightOff() {
102 @Override // CommandQueue
103 public void notificationLightPulse(int argb, int onMillis, int offMillis) {
107 protected WindowManager.LayoutParams getSearchLayoutParams(
108 LayoutParams layoutParams) {
113 protected void haltTicker() {
117 protected void setAreThereNotifications() {
121 protected void updateNotifications() {
125 protected void tick(StatusBarNotification n, boolean firstTime) {
129 protected void updateExpandedViewPos(int expandedPosition) {
133 protected boolean shouldDisableNavbarGestures() {
137 public View getStatusBarView() {
142 public void resetHeadsUpDecayTimer() {
146 public void scheduleHeadsUpOpen() {
150 public void scheduleHeadsUpEscalation() {
154 public void scheduleHeadsUpClose() {
158 protected int getMaxKeyguardNotifications() {
163 public void animateExpandSettingsPanel() {
167 protected void createAndAddWindows() {
171 protected void refreshLayout(int layoutDirection) {
175 public void onActivated(ActivatableNotificationView view) {
179 public void onActivationReset(ActivatableNotificationView view) {
183 public void showScreenPinningRequest() {