• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2007, 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.internal.statusbar;
18 
19 import com.android.internal.statusbar.IStatusBar;
20 import com.android.internal.statusbar.StatusBarIcon;
21 import com.android.internal.statusbar.StatusBarIconList;
22 import android.service.notification.StatusBarNotification;
23 
24 /** @hide */
25 interface IStatusBarService
26 {
expandNotificationsPanel()27     void expandNotificationsPanel();
collapsePanels()28     void collapsePanels();
disable(int what, IBinder token, String pkg)29     void disable(int what, IBinder token, String pkg);
setIcon(String slot, String iconPackage, int iconId, int iconLevel, String contentDescription)30     void setIcon(String slot, String iconPackage, int iconId, int iconLevel, String contentDescription);
setIconVisibility(String slot, boolean visible)31     void setIconVisibility(String slot, boolean visible);
removeIcon(String slot)32     void removeIcon(String slot);
topAppWindowChanged(boolean menuVisible)33     void topAppWindowChanged(boolean menuVisible);
setImeWindowStatus(in IBinder token, int vis, int backDisposition, boolean showImeSwitcher)34     void setImeWindowStatus(in IBinder token, int vis, int backDisposition,
35             boolean showImeSwitcher);
expandSettingsPanel()36     void expandSettingsPanel();
setCurrentUser(int newUserId)37     void setCurrentUser(int newUserId);
38 
39     // ---- Methods below are for use by the status bar policy services ----
40     // You need the STATUS_BAR_SERVICE permission
registerStatusBar(IStatusBar callbacks, out StatusBarIconList iconList, out int[] switches, out List<IBinder> binders)41     void registerStatusBar(IStatusBar callbacks, out StatusBarIconList iconList,
42             out int[] switches, out List<IBinder> binders);
onPanelRevealed()43     void onPanelRevealed();
onPanelHidden()44     void onPanelHidden();
onNotificationClick(String key)45     void onNotificationClick(String key);
onNotificationError(String pkg, String tag, int id, int uid, int initialPid, String message, int userId)46     void onNotificationError(String pkg, String tag, int id,
47             int uid, int initialPid, String message, int userId);
onClearAllNotifications(int userId)48     void onClearAllNotifications(int userId);
onNotificationClear(String pkg, String tag, int id, int userId)49     void onNotificationClear(String pkg, String tag, int id, int userId);
onNotificationVisibilityChanged( in String[] newlyVisibleKeys, in String[] noLongerVisibleKeys)50     void onNotificationVisibilityChanged(
51             in String[] newlyVisibleKeys, in String[] noLongerVisibleKeys);
onNotificationExpansionChanged(in String key, in boolean userAction, in boolean expanded)52     void onNotificationExpansionChanged(in String key, in boolean userAction, in boolean expanded);
setSystemUiVisibility(int vis, int mask)53     void setSystemUiVisibility(int vis, int mask);
setWindowState(int window, int state)54     void setWindowState(int window, int state);
55 
showRecentApps(boolean triggeredFromAltTab)56     void showRecentApps(boolean triggeredFromAltTab);
hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey)57     void hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey);
toggleRecentApps()58     void toggleRecentApps();
preloadRecentApps()59     void preloadRecentApps();
cancelPreloadRecentApps()60     void cancelPreloadRecentApps();
61 }
62