Adam Lesinski | 182f73f | 2013-12-05 16:48:06 -0800 | [diff] [blame] | 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 | |
Jorim Jaggi | 8690558 | 2016-02-09 21:36:09 -0800 | [diff] [blame] | 19 | import android.graphics.Rect; |
Jorim Jaggi | 165ce06 | 2015-07-06 16:18:11 -0700 | [diff] [blame] | 20 | import android.os.Bundle; |
| 21 | |
Adam Lesinski | 182f73f | 2013-12-05 16:48:06 -0800 | [diff] [blame] | 22 | import com.android.server.notification.NotificationDelegate; |
| 23 | |
Adam Lesinski | 182f73f | 2013-12-05 16:48:06 -0800 | [diff] [blame] | 24 | public interface StatusBarManagerInternal { |
| 25 | void setNotificationDelegate(NotificationDelegate delegate); |
Andrii Kulian | 0f051f5 | 2016-04-14 00:41:51 -0700 | [diff] [blame] | 26 | void showScreenPinningRequest(int taskId); |
Adrian Roos | 4f43dc0 | 2015-06-17 16:43:38 -0700 | [diff] [blame] | 27 | void showAssistDisclosure(); |
Adrian Roos | f2efdd8 | 2016-04-15 17:43:18 -0700 | [diff] [blame] | 28 | |
| 29 | void preloadRecentApps(); |
| 30 | |
| 31 | void cancelPreloadRecentApps(); |
| 32 | |
| 33 | void showRecentApps(boolean triggeredFromAltTab, boolean fromHome); |
| 34 | |
| 35 | void hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey); |
| 36 | |
Andrei Stingaceanu | 0bf096f | 2016-04-14 18:11:57 +0100 | [diff] [blame] | 37 | void dismissKeyboardShortcutsMenu(); |
Adrian Roos | f2efdd8 | 2016-04-15 17:43:18 -0700 | [diff] [blame] | 38 | void toggleKeyboardShortcutsMenu(int deviceId); |
| 39 | |
| 40 | /** |
Winson Chung | ac52f28 | 2017-03-30 14:44:52 -0700 | [diff] [blame] | 41 | * Show picture-in-picture menu. |
Adrian Roos | f2efdd8 | 2016-04-15 17:43:18 -0700 | [diff] [blame] | 42 | */ |
Winson Chung | ac52f28 | 2017-03-30 14:44:52 -0700 | [diff] [blame] | 43 | void showPictureInPictureMenu(); |
Adrian Roos | f2efdd8 | 2016-04-15 17:43:18 -0700 | [diff] [blame] | 44 | |
| 45 | void setWindowState(int window, int state); |
| 46 | |
| 47 | /** |
| 48 | * Notifies the status bar that an app transition is pending to delay applying some flags with |
| 49 | * visual impact until {@link #appTransitionReady} is called. |
| 50 | */ |
| 51 | void appTransitionPending(); |
| 52 | |
| 53 | /** |
| 54 | * Notifies the status bar that a pending app transition has been cancelled. |
| 55 | */ |
| 56 | void appTransitionCancelled(); |
| 57 | |
| 58 | /** |
| 59 | * Notifies the status bar that an app transition is now being executed. |
| 60 | * |
| 61 | * @param statusBarAnimationsStartTime the desired start time for all visual animations in the |
| 62 | * status bar caused by this app transition in uptime millis |
| 63 | * @param statusBarAnimationsDuration the duration for all visual animations in the status |
| 64 | * bar caused by this app transition in millis |
| 65 | */ |
| 66 | void appTransitionStarting(long statusBarAnimationsStartTime, long statusBarAnimationsDuration); |
| 67 | |
Jorim Jaggi | 165ce06 | 2015-07-06 16:18:11 -0700 | [diff] [blame] | 68 | void startAssist(Bundle args); |
Jorim Jaggi | 40aa881 | 2015-09-23 12:59:22 -0700 | [diff] [blame] | 69 | void onCameraLaunchGestureDetected(int source); |
Jorim Jaggi | 8690558 | 2016-02-09 21:36:09 -0800 | [diff] [blame] | 70 | void topAppWindowChanged(boolean menuVisible); |
| 71 | void setSystemUiVisibility(int vis, int fullscreenStackVis, int dockedStackVis, int mask, |
| 72 | Rect fullscreenBounds, Rect dockedBounds, String cause); |
Phil Weaver | 315c34e | 2016-02-19 15:12:29 -0800 | [diff] [blame] | 73 | void toggleSplitScreen(); |
Jorim Jaggi | 2adba07 | 2016-03-03 13:43:39 +0100 | [diff] [blame] | 74 | void appTransitionFinished(); |
Adrian Roos | f2efdd8 | 2016-04-15 17:43:18 -0700 | [diff] [blame] | 75 | |
| 76 | void toggleRecentApps(); |
| 77 | |
| 78 | void setCurrentUser(int newUserId); |
Jason Monk | 361915c | 2017-03-21 20:33:59 -0400 | [diff] [blame] | 79 | |
| 80 | void setGlobalActionsListener(GlobalActionsListener listener); |
| 81 | void showGlobalActions(); |
| 82 | |
Jason Monk | b430218 | 2017-08-04 13:39:17 -0400 | [diff] [blame] | 83 | boolean showShutdownUi(boolean isReboot, String requestString); |
| 84 | |
Jason Monk | 361915c | 2017-03-21 20:33:59 -0400 | [diff] [blame] | 85 | public interface GlobalActionsListener { |
| 86 | /** |
| 87 | * Called when sysui starts and connects its status bar, or when the status bar binder |
| 88 | * dies indicating sysui is no longer alive. |
| 89 | */ |
| 90 | void onStatusBarConnectedChanged(boolean connected); |
| 91 | |
| 92 | /** |
| 93 | * Callback from sysui to notify system that global actions has been successfully shown. |
| 94 | */ |
| 95 | void onGlobalActionsShown(); |
| 96 | |
| 97 | /** |
| 98 | * Callback from sysui to notify system that the user has dismissed global actions and |
| 99 | * it no longer needs to be displayed (even if sysui dies). |
| 100 | */ |
| 101 | void onGlobalActionsDismissed(); |
| 102 | } |
Adam Lesinski | 182f73f | 2013-12-05 16:48:06 -0800 | [diff] [blame] | 103 | } |