• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2013, 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.server.statusbar;
18 
19 import android.graphics.Rect;
20 import android.os.Bundle;
21 
22 import com.android.server.notification.NotificationDelegate;
23 
24 public interface StatusBarManagerInternal {
setNotificationDelegate(NotificationDelegate delegate)25     void setNotificationDelegate(NotificationDelegate delegate);
buzzBeepBlinked()26     void buzzBeepBlinked();
notificationLightPulse(int argb, int onMillis, int offMillis)27     void notificationLightPulse(int argb, int onMillis, int offMillis);
notificationLightOff()28     void notificationLightOff();
showScreenPinningRequest(int taskId)29     void showScreenPinningRequest(int taskId);
showAssistDisclosure()30     void showAssistDisclosure();
31 
preloadRecentApps()32     void preloadRecentApps();
33 
cancelPreloadRecentApps()34     void cancelPreloadRecentApps();
35 
showRecentApps(boolean triggeredFromAltTab, boolean fromHome)36     void showRecentApps(boolean triggeredFromAltTab, boolean fromHome);
37 
hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey)38     void hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey);
39 
dismissKeyboardShortcutsMenu()40     void dismissKeyboardShortcutsMenu();
toggleKeyboardShortcutsMenu(int deviceId)41     void toggleKeyboardShortcutsMenu(int deviceId);
42 
43     /**
44      * Show TV picture-in-picture menu.
45      */
showTvPictureInPictureMenu()46     void showTvPictureInPictureMenu();
47 
setWindowState(int window, int state)48     void setWindowState(int window, int state);
49 
50     /**
51      * Notifies the status bar that an app transition is pending to delay applying some flags with
52      * visual impact until {@link #appTransitionReady} is called.
53      */
appTransitionPending()54     void appTransitionPending();
55 
56     /**
57      * Notifies the status bar that a pending app transition has been cancelled.
58      */
appTransitionCancelled()59     void appTransitionCancelled();
60 
61     /**
62      * Notifies the status bar that an app transition is now being executed.
63      *
64      * @param statusBarAnimationsStartTime the desired start time for all visual animations in the
65      *        status bar caused by this app transition in uptime millis
66      * @param statusBarAnimationsDuration the duration for all visual animations in the status
67      *        bar caused by this app transition in millis
68      */
appTransitionStarting(long statusBarAnimationsStartTime, long statusBarAnimationsDuration)69     void appTransitionStarting(long statusBarAnimationsStartTime, long statusBarAnimationsDuration);
70 
startAssist(Bundle args)71     void startAssist(Bundle args);
onCameraLaunchGestureDetected(int source)72     void onCameraLaunchGestureDetected(int source);
topAppWindowChanged(boolean menuVisible)73     void topAppWindowChanged(boolean menuVisible);
setSystemUiVisibility(int vis, int fullscreenStackVis, int dockedStackVis, int mask, Rect fullscreenBounds, Rect dockedBounds, String cause)74     void setSystemUiVisibility(int vis, int fullscreenStackVis, int dockedStackVis, int mask,
75             Rect fullscreenBounds, Rect dockedBounds, String cause);
toggleSplitScreen()76     void toggleSplitScreen();
appTransitionFinished()77     void appTransitionFinished();
78 
toggleRecentApps()79     void toggleRecentApps();
80 
setCurrentUser(int newUserId)81     void setCurrentUser(int newUserId);
82 }
83