blob: 0732addb73562b873c0f5782bd937aec19bac513 [file] [log] [blame]
Joe Onorato2314aab2010-04-08 16:41:23 -05001/**
2 * Copyright (c) 2007, The Android Open Source Project
3 *
Jorim Jaggi24bec7c2015-02-04 12:40:14 +01004 * 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 Onorato2314aab2010-04-08 16:41:23 -05007 *
Jorim Jaggi24bec7c2015-02-04 12:40:14 +01008 * http://www.apache.org/licenses/LICENSE-2.0
Joe Onorato2314aab2010-04-08 16:41:23 -05009 *
Jorim Jaggi24bec7c2015-02-04 12:40:14 +010010 * 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 Onorato2314aab2010-04-08 16:41:23 -050014 * limitations under the License.
15 */
Jorim Jaggi24bec7c2015-02-04 12:40:14 +010016
Joe Onorato0cbda992010-05-02 16:28:15 -070017package com.android.internal.statusbar;
18
19import com.android.internal.statusbar.StatusBarIcon;
Daniel Sandler5feceeb2013-03-22 18:29:23 -070020import android.service.notification.StatusBarNotification;
Joe Onorato2314aab2010-04-08 16:41:23 -050021
22/** @hide */
Joe Onorato0cbda992010-05-02 16:28:15 -070023oneway interface IStatusBar
Joe Onorato2314aab2010-04-08 16:41:23 -050024{
Joe Onorato0cbda992010-05-02 16:28:15 -070025 void setIcon(int index, in StatusBarIcon icon);
26 void removeIcon(int index);
Benjamin Franzcde0a2a2015-04-23 17:19:48 +010027 void disable(int state1, int state2);
Daniel Sandler11cf1782012-09-27 14:03:08 -040028 void animateExpandNotificationsPanel();
29 void animateExpandSettingsPanel();
30 void animateCollapsePanels();
Dianne Hackborn3a3a6cf2012-03-26 10:24:04 -070031 void setSystemUiVisibility(int vis, int mask);
Dianne Hackborn7d049322011-06-14 15:00:32 -070032 void topAppWindowChanged(boolean menuVisible);
Jason Monkb605fec2014-05-02 17:04:10 -040033 void setImeWindowStatus(in IBinder token, int vis, int backDisposition,
34 boolean showImeSwitcher);
Winson Chung1e8d71b2014-05-16 17:05:22 -070035 void setWindowState(int window, int state);
John Spurlockcad57682014-07-26 17:09:56 -040036 void buzzBeepBlinked();
John Spurlockcb566aa2014-08-03 22:58:28 -040037 void notificationLightOff();
38 void notificationLightPulse(int argb, int millisOn, int millisOff);
Winson Chung1e8d71b2014-05-16 17:05:22 -070039
40 void showRecentApps(boolean triggeredFromAltTab);
Winson Chungcdcd4872014-08-05 18:00:13 -070041 void hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey);
Michael Jurka3b1fc472011-06-13 10:54:40 -070042 void toggleRecentApps();
Michael Jurka7f2668c2012-03-27 07:49:52 -070043 void preloadRecentApps();
44 void cancelPreloadRecentApps();
Jason Monk5565cb42014-09-12 10:59:21 -040045 void showScreenPinningRequest();
Jorim Jaggi24bec7c2015-02-04 12:40:14 +010046
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);
Adrian Roos4f43dc02015-06-17 16:43:38 -070067
68 void showAssistDisclosure();
Joe Onorato2314aab2010-04-08 16:41:23 -050069}
70