• 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 android.content.ComponentName;
20 import android.graphics.Rect;
21 import android.os.Bundle;
22 import android.service.notification.StatusBarNotification;
23 
24 import com.android.internal.statusbar.StatusBarIcon;
25 
26 /** @hide */
27 oneway interface IStatusBar
28 {
setIcon(String slot, in StatusBarIcon icon)29     void setIcon(String slot, in StatusBarIcon icon);
removeIcon(String slot)30     void removeIcon(String slot);
disable(int state1, int state2)31     void disable(int state1, int state2);
animateExpandNotificationsPanel()32     void animateExpandNotificationsPanel();
animateExpandSettingsPanel(String subPanel)33     void animateExpandSettingsPanel(String subPanel);
animateCollapsePanels()34     void animateCollapsePanels();
35 
36     /**
37      * Notifies the status bar of a System UI visibility flag change.
38      *
39      * @param vis the visibility flags except SYSTEM_UI_FLAG_LIGHT_STATUS_BAR which will be reported
40      *            separately in fullscreenStackVis and dockedStackVis
41      * @param fullscreenStackVis the flags which only apply in the region of the fullscreen stack,
42      *                           which is currently only SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
43      * @param dockedStackVis the flags that only apply in the region of the docked stack, which is
44      *                       currently only SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
45      * @param mask which flags to change
46      * @param fullscreenBounds the current bounds of the fullscreen stack, in screen coordinates
47      * @param dockedBounds the current bounds of the docked stack, in screen coordinates
48      */
setSystemUiVisibility(int vis, int fullscreenStackVis, int dockedStackVis, int mask, in Rect fullscreenBounds, in Rect dockedBounds)49     void setSystemUiVisibility(int vis, int fullscreenStackVis, int dockedStackVis, int mask,
50             in Rect fullscreenBounds, in Rect dockedBounds);
51 
topAppWindowChanged(boolean menuVisible)52     void topAppWindowChanged(boolean menuVisible);
setImeWindowStatus(in IBinder token, int vis, int backDisposition, boolean showImeSwitcher)53     void setImeWindowStatus(in IBinder token, int vis, int backDisposition,
54             boolean showImeSwitcher);
setWindowState(int window, int state)55     void setWindowState(int window, int state);
buzzBeepBlinked()56     void buzzBeepBlinked();
notificationLightOff()57     void notificationLightOff();
notificationLightPulse(int argb, int millisOn, int millisOff)58     void notificationLightPulse(int argb, int millisOn, int millisOff);
59 
showRecentApps(boolean triggeredFromAltTab, boolean fromHome)60     void showRecentApps(boolean triggeredFromAltTab, boolean fromHome);
hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey)61     void hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey);
toggleRecentApps()62     void toggleRecentApps();
toggleSplitScreen()63     void toggleSplitScreen();
preloadRecentApps()64     void preloadRecentApps();
cancelPreloadRecentApps()65     void cancelPreloadRecentApps();
showScreenPinningRequest(int taskId)66     void showScreenPinningRequest(int taskId);
67 
dismissKeyboardShortcutsMenu()68     void dismissKeyboardShortcutsMenu();
toggleKeyboardShortcutsMenu(int deviceId)69     void toggleKeyboardShortcutsMenu(int deviceId);
70 
71     /**
72      * Notifies the status bar that an app transition is pending to delay applying some flags with
73      * visual impact until {@link #appTransitionReady} is called.
74      */
appTransitionPending()75     void appTransitionPending();
76 
77     /**
78      * Notifies the status bar that a pending app transition has been cancelled.
79      */
appTransitionCancelled()80     void appTransitionCancelled();
81 
82     /**
83      * Notifies the status bar that an app transition is now being executed.
84      *
85      * @param statusBarAnimationsStartTime the desired start time for all visual animations in the
86      *        status bar caused by this app transition in uptime millis
87      * @param statusBarAnimationsDuration the duration for all visual animations in the status
88      *        bar caused by this app transition in millis
89      */
appTransitionStarting(long statusBarAnimationsStartTime, long statusBarAnimationsDuration)90     void appTransitionStarting(long statusBarAnimationsStartTime, long statusBarAnimationsDuration);
91 
92     /**
93      * Notifies the status bar that an app transition is done.
94      */
appTransitionFinished()95     void appTransitionFinished();
96 
showAssistDisclosure()97     void showAssistDisclosure();
startAssist(in Bundle args)98     void startAssist(in Bundle args);
99 
100     /**
101      * Notifies the status bar that a camera launch gesture has been detected.
102      *
103      * @param source the identifier for the gesture, see {@link StatusBarManager}
104      */
onCameraLaunchGestureDetected(int source)105     void onCameraLaunchGestureDetected(int source);
106 
107     /**
108      * Shows the TV's picture-in-picture menu if an activity is in picture-in-picture mode.
109      */
showTvPictureInPictureMenu()110     void showTvPictureInPictureMenu();
111 
addQsTile(in ComponentName tile)112     void addQsTile(in ComponentName tile);
remQsTile(in ComponentName tile)113     void remQsTile(in ComponentName tile);
clickQsTile(in ComponentName tile)114     void clickQsTile(in ComponentName tile);
handleSystemNavigationKey(in int key)115     void handleSystemNavigationKey(in int key);
116 }
117