blob: 849d3145bb56d0ffce8e752f6bee311aa1690977 [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
Jorim Jaggi165ce062015-07-06 16:18:11 -070019import android.os.Bundle;
Daniel Sandler5feceeb2013-03-22 18:29:23 -070020import android.service.notification.StatusBarNotification;
Joe Onorato2314aab2010-04-08 16:41:23 -050021
Jorim Jaggi165ce062015-07-06 16:18:11 -070022import com.android.internal.statusbar.StatusBarIcon;
23
Joe Onorato2314aab2010-04-08 16:41:23 -050024/** @hide */
Joe Onorato0cbda992010-05-02 16:28:15 -070025oneway interface IStatusBar
Joe Onorato2314aab2010-04-08 16:41:23 -050026{
Joe Onorato0cbda992010-05-02 16:28:15 -070027 void setIcon(int index, in StatusBarIcon icon);
28 void removeIcon(int index);
Benjamin Franzcde0a2a2015-04-23 17:19:48 +010029 void disable(int state1, int state2);
Daniel Sandler11cf1782012-09-27 14:03:08 -040030 void animateExpandNotificationsPanel();
Jason Monka9927322015-12-13 16:22:37 -050031 void animateExpandSettingsPanel(String subPanel);
Daniel Sandler11cf1782012-09-27 14:03:08 -040032 void animateCollapsePanels();
Dianne Hackborn3a3a6cf2012-03-26 10:24:04 -070033 void setSystemUiVisibility(int vis, int mask);
Dianne Hackborn7d049322011-06-14 15:00:32 -070034 void topAppWindowChanged(boolean menuVisible);
Jason Monkb605fec2014-05-02 17:04:10 -040035 void setImeWindowStatus(in IBinder token, int vis, int backDisposition,
36 boolean showImeSwitcher);
Winson Chung1e8d71b2014-05-16 17:05:22 -070037 void setWindowState(int window, int state);
John Spurlockcad57682014-07-26 17:09:56 -040038 void buzzBeepBlinked();
John Spurlockcb566aa2014-08-03 22:58:28 -040039 void notificationLightOff();
40 void notificationLightPulse(int argb, int millisOn, int millisOff);
Winson Chung1e8d71b2014-05-16 17:05:22 -070041
42 void showRecentApps(boolean triggeredFromAltTab);
Winson Chungcdcd4872014-08-05 18:00:13 -070043 void hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey);
Michael Jurka3b1fc472011-06-13 10:54:40 -070044 void toggleRecentApps();
Michael Jurka7f2668c2012-03-27 07:49:52 -070045 void preloadRecentApps();
46 void cancelPreloadRecentApps();
Jason Monk5565cb42014-09-12 10:59:21 -040047 void showScreenPinningRequest();
Jorim Jaggi24bec7c2015-02-04 12:40:14 +010048
Clara Bayarrif2debb12015-07-10 14:47:17 +010049 void showKeyboardShortcutsMenu();
50
Jorim Jaggi24bec7c2015-02-04 12:40:14 +010051 /**
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 Roos4f43dc02015-06-17 16:43:38 -070071
72 void showAssistDisclosure();
Jorim Jaggi165ce062015-07-06 16:18:11 -070073 void startAssist(in Bundle args);
Selim Cinek372d1bd2015-08-14 13:19:37 -070074
75 /**
76 * Notifies the status bar that a camera launch gesture has been detected.
Jorim Jaggi40aa8812015-09-23 12:59:22 -070077 *
78 * @param source the identifier for the gesture, see {@link StatusBarManager}
Selim Cinek372d1bd2015-08-14 13:19:37 -070079 */
Jorim Jaggi40aa8812015-09-23 12:59:22 -070080 void onCameraLaunchGestureDetected(int source);
Joe Onorato2314aab2010-04-08 16:41:23 -050081}
82