Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (c) 2007, The Android Open Source Project |
| 3 | * |
Jorim Jaggi | 24bec7c | 2015-02-04 12:40:14 +0100 | [diff] [blame] | 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 |
Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 7 | * |
Jorim Jaggi | 24bec7c | 2015-02-04 12:40:14 +0100 | [diff] [blame] | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 9 | * |
Jorim Jaggi | 24bec7c | 2015-02-04 12:40:14 +0100 | [diff] [blame] | 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 |
Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 14 | * limitations under the License. |
| 15 | */ |
Jorim Jaggi | 24bec7c | 2015-02-04 12:40:14 +0100 | [diff] [blame] | 16 | |
Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 17 | package com.android.internal.statusbar; |
| 18 | |
Jorim Jaggi | 165ce06 | 2015-07-06 16:18:11 -0700 | [diff] [blame] | 19 | import android.os.Bundle; |
Daniel Sandler | 5feceeb | 2013-03-22 18:29:23 -0700 | [diff] [blame] | 20 | import android.service.notification.StatusBarNotification; |
Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 21 | |
Jorim Jaggi | 165ce06 | 2015-07-06 16:18:11 -0700 | [diff] [blame] | 22 | import com.android.internal.statusbar.StatusBarIcon; |
| 23 | |
Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 24 | /** @hide */ |
Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 25 | oneway interface IStatusBar |
Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 26 | { |
Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 27 | void setIcon(int index, in StatusBarIcon icon); |
| 28 | void removeIcon(int index); |
Benjamin Franz | cde0a2a | 2015-04-23 17:19:48 +0100 | [diff] [blame] | 29 | void disable(int state1, int state2); |
Daniel Sandler | 11cf178 | 2012-09-27 14:03:08 -0400 | [diff] [blame] | 30 | void animateExpandNotificationsPanel(); |
Jason Monk | a992732 | 2015-12-13 16:22:37 -0500 | [diff] [blame] | 31 | void animateExpandSettingsPanel(String subPanel); |
Daniel Sandler | 11cf178 | 2012-09-27 14:03:08 -0400 | [diff] [blame] | 32 | void animateCollapsePanels(); |
Dianne Hackborn | 3a3a6cf | 2012-03-26 10:24:04 -0700 | [diff] [blame] | 33 | void setSystemUiVisibility(int vis, int mask); |
Dianne Hackborn | 7d04932 | 2011-06-14 15:00:32 -0700 | [diff] [blame] | 34 | void topAppWindowChanged(boolean menuVisible); |
Jason Monk | b605fec | 2014-05-02 17:04:10 -0400 | [diff] [blame] | 35 | void setImeWindowStatus(in IBinder token, int vis, int backDisposition, |
| 36 | boolean showImeSwitcher); |
Winson Chung | 1e8d71b | 2014-05-16 17:05:22 -0700 | [diff] [blame] | 37 | void setWindowState(int window, int state); |
John Spurlock | cad5768 | 2014-07-26 17:09:56 -0400 | [diff] [blame] | 38 | void buzzBeepBlinked(); |
John Spurlock | cb566aa | 2014-08-03 22:58:28 -0400 | [diff] [blame] | 39 | void notificationLightOff(); |
| 40 | void notificationLightPulse(int argb, int millisOn, int millisOff); |
Winson Chung | 1e8d71b | 2014-05-16 17:05:22 -0700 | [diff] [blame] | 41 | |
| 42 | void showRecentApps(boolean triggeredFromAltTab); |
Winson Chung | cdcd487 | 2014-08-05 18:00:13 -0700 | [diff] [blame] | 43 | void hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey); |
Michael Jurka | 3b1fc47 | 2011-06-13 10:54:40 -0700 | [diff] [blame] | 44 | void toggleRecentApps(); |
Michael Jurka | 7f2668c | 2012-03-27 07:49:52 -0700 | [diff] [blame] | 45 | void preloadRecentApps(); |
| 46 | void cancelPreloadRecentApps(); |
Jason Monk | 5565cb4 | 2014-09-12 10:59:21 -0400 | [diff] [blame] | 47 | void showScreenPinningRequest(); |
Jorim Jaggi | 24bec7c | 2015-02-04 12:40:14 +0100 | [diff] [blame] | 48 | |
Clara Bayarri | f2debb1 | 2015-07-10 14:47:17 +0100 | [diff] [blame] | 49 | void showKeyboardShortcutsMenu(); |
| 50 | |
Jorim Jaggi | 24bec7c | 2015-02-04 12:40:14 +0100 | [diff] [blame] | 51 | /** |
| 52 | * Notifies the status bar that an app transition is pending to delay applying some flags with |
| 53 | * visual impact until {@link #appTransitionReady} is called. |
| 54 | */ |
| 55 | void appTransitionPending(); |
| 56 | |
| 57 | /** |
| 58 | * Notifies the status bar that a pending app transition has been cancelled. |
| 59 | */ |
| 60 | void appTransitionCancelled(); |
| 61 | |
| 62 | /** |
| 63 | * Notifies the status bar that an app transition is now being executed. |
| 64 | * |
| 65 | * @param statusBarAnimationsStartTime the desired start time for all visual animations in the |
| 66 | * status bar caused by this app transition in uptime millis |
| 67 | * @param statusBarAnimationsDuration the duration for all visual animations in the status |
| 68 | * bar caused by this app transition in millis |
| 69 | */ |
| 70 | void appTransitionStarting(long statusBarAnimationsStartTime, long statusBarAnimationsDuration); |
Adrian Roos | 4f43dc0 | 2015-06-17 16:43:38 -0700 | [diff] [blame] | 71 | |
| 72 | void showAssistDisclosure(); |
Jorim Jaggi | 165ce06 | 2015-07-06 16:18:11 -0700 | [diff] [blame] | 73 | void startAssist(in Bundle args); |
Selim Cinek | 372d1bd | 2015-08-14 13:19:37 -0700 | [diff] [blame] | 74 | |
| 75 | /** |
| 76 | * Notifies the status bar that a camera launch gesture has been detected. |
Jorim Jaggi | 40aa881 | 2015-09-23 12:59:22 -0700 | [diff] [blame] | 77 | * |
| 78 | * @param source the identifier for the gesture, see {@link StatusBarManager} |
Selim Cinek | 372d1bd | 2015-08-14 13:19:37 -0700 | [diff] [blame] | 79 | */ |
Jorim Jaggi | 40aa881 | 2015-09-23 12:59:22 -0700 | [diff] [blame] | 80 | void onCameraLaunchGestureDetected(int source); |
Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 81 | } |
| 82 | |