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); |
John Spurlock | cad5768 | 2014-07-26 17:09:56 -0400 | [diff] [blame] | 26 | void buzzBeepBlinked(); |
John Spurlock | cb566aa | 2014-08-03 22:58:28 -0400 | [diff] [blame] | 27 | void notificationLightPulse(int argb, int onMillis, int offMillis); |
| 28 | void notificationLightOff(); |
Andrii Kulian | 0f051f5 | 2016-04-14 00:41:51 -0700 | [diff] [blame] | 29 | void showScreenPinningRequest(int taskId); |
Adrian Roos | 4f43dc0 | 2015-06-17 16:43:38 -0700 | [diff] [blame] | 30 | void showAssistDisclosure(); |
Adrian Roos | f2efdd8 | 2016-04-15 17:43:18 -0700 | [diff] [blame] | 31 | |
| 32 | void preloadRecentApps(); |
| 33 | |
| 34 | void cancelPreloadRecentApps(); |
| 35 | |
| 36 | void showRecentApps(boolean triggeredFromAltTab, boolean fromHome); |
| 37 | |
| 38 | void hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey); |
| 39 | |
Andrei Stingaceanu | 0bf096f | 2016-04-14 18:11:57 +0100 | [diff] [blame^] | 40 | void dismissKeyboardShortcutsMenu(); |
Adrian Roos | f2efdd8 | 2016-04-15 17:43:18 -0700 | [diff] [blame] | 41 | void toggleKeyboardShortcutsMenu(int deviceId); |
| 42 | |
| 43 | /** |
| 44 | * Request picture-in-picture. |
| 45 | * |
| 46 | * <p> |
| 47 | * This is called when an user presses picture-in-picture key or equivalent. |
| 48 | * TV device may start picture-in-picture from foreground activity if there's none. |
| 49 | * Picture-in-picture overlay menu will be shown instead otherwise. |
| 50 | */ |
| 51 | void requestTvPictureInPicture(); |
| 52 | |
| 53 | void setWindowState(int window, int state); |
| 54 | |
| 55 | /** |
| 56 | * Notifies the status bar that an app transition is pending to delay applying some flags with |
| 57 | * visual impact until {@link #appTransitionReady} is called. |
| 58 | */ |
| 59 | void appTransitionPending(); |
| 60 | |
| 61 | /** |
| 62 | * Notifies the status bar that a pending app transition has been cancelled. |
| 63 | */ |
| 64 | void appTransitionCancelled(); |
| 65 | |
| 66 | /** |
| 67 | * Notifies the status bar that an app transition is now being executed. |
| 68 | * |
| 69 | * @param statusBarAnimationsStartTime the desired start time for all visual animations in the |
| 70 | * status bar caused by this app transition in uptime millis |
| 71 | * @param statusBarAnimationsDuration the duration for all visual animations in the status |
| 72 | * bar caused by this app transition in millis |
| 73 | */ |
| 74 | void appTransitionStarting(long statusBarAnimationsStartTime, long statusBarAnimationsDuration); |
| 75 | |
Jorim Jaggi | 165ce06 | 2015-07-06 16:18:11 -0700 | [diff] [blame] | 76 | void startAssist(Bundle args); |
Jorim Jaggi | 40aa881 | 2015-09-23 12:59:22 -0700 | [diff] [blame] | 77 | void onCameraLaunchGestureDetected(int source); |
Jorim Jaggi | 8690558 | 2016-02-09 21:36:09 -0800 | [diff] [blame] | 78 | void topAppWindowChanged(boolean menuVisible); |
| 79 | void setSystemUiVisibility(int vis, int fullscreenStackVis, int dockedStackVis, int mask, |
| 80 | Rect fullscreenBounds, Rect dockedBounds, String cause); |
Phil Weaver | 315c34e | 2016-02-19 15:12:29 -0800 | [diff] [blame] | 81 | void toggleSplitScreen(); |
Jorim Jaggi | 2adba07 | 2016-03-03 13:43:39 +0100 | [diff] [blame] | 82 | void appTransitionFinished(); |
Adrian Roos | f2efdd8 | 2016-04-15 17:43:18 -0700 | [diff] [blame] | 83 | |
| 84 | void toggleRecentApps(); |
| 85 | |
| 86 | void setCurrentUser(int newUserId); |
Adam Lesinski | 182f73f | 2013-12-05 16:48:06 -0800 | [diff] [blame] | 87 | } |