blob: d6ca42674f5da9e71394706e442ee13a8bde10c8 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001/**
2 * Copyright (c) 2007, 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
Joe Onorato0cbda992010-05-02 16:28:15 -070017package com.android.internal.statusbar;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080018
Joe Onorato0cbda992010-05-02 16:28:15 -070019import com.android.internal.statusbar.IStatusBar;
20import com.android.internal.statusbar.StatusBarIcon;
21import com.android.internal.statusbar.StatusBarIconList;
Joe Onorato75199e32010-05-29 17:22:51 -040022import com.android.internal.statusbar.StatusBarNotification;
Joe Onorato2314aab2010-04-08 16:41:23 -050023
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080024/** @hide */
Joe Onorato25f95f92010-04-08 18:37:10 -050025interface IStatusBarService
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080026{
Joe Onoratof3f0e052010-05-14 18:49:29 -070027 void expand();
28 void collapse();
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080029 void disable(int what, IBinder token, String pkg);
Joe Onorato0cbda992010-05-02 16:28:15 -070030 void setIcon(String slot, String iconPackage, int iconId, int iconLevel);
31 void setIconVisibility(String slot, boolean visible);
32 void removeIcon(String slot);
Daniel Sandlere02d8082010-10-08 15:13:22 -040033 void setMenuKeyVisible(boolean visible);
Joe Onorato857fd9b2011-01-27 15:08:35 -080034 void setImeWindowStatus(in IBinder token, int vis, int backDisposition);
Joe Onorato2314aab2010-04-08 16:41:23 -050035
36 // ---- Methods below are for use by the status bar policy services ----
Joe Onorato8bc6c512010-06-04 16:21:12 -040037 // You need the STATUS_BAR_SERVICE permission
Joe Onorato75199e32010-05-29 17:22:51 -040038 void registerStatusBar(IStatusBar callbacks, out StatusBarIconList iconList,
Joe Onorato93056472010-09-10 10:30:46 -040039 out List<IBinder> notificationKeys, out List<StatusBarNotification> notifications,
satokcd7cd292010-11-20 15:46:23 +090040 out int[] switches, out List<IBinder> binders);
Joe Onoratof1f25912010-06-07 11:52:41 -070041 void onPanelRevealed();
Joe Onoratoaaba60b2010-05-23 15:18:41 -040042 void onNotificationClick(String pkg, String tag, int id);
Dianne Hackborn9d39d0c2010-06-24 15:57:42 -070043 void onNotificationError(String pkg, String tag, int id,
44 int uid, int initialPid, String message);
Joe Onoratoaaba60b2010-05-23 15:18:41 -040045 void onClearAllNotifications();
Daniel Sandler0f0b11c2010-08-04 15:54:58 -040046 void onNotificationClear(String pkg, String tag, int id);
Joe Onorato664644d2011-01-23 17:53:23 -080047 void setSystemUiVisibility(int vis);
Jeff Brown2992ea72011-01-28 22:04:14 -080048 void setHardKeyboardEnabled(boolean enabled);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080049}