IStatusBarService.aidl revision 1f32c65697c22f423c2888cf4c53da1c95d602c1
1/** 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 17package com.android.internal.statusbar; 18 19import com.android.internal.statusbar.IStatusBar; 20import com.android.internal.statusbar.StatusBarIcon; 21import com.android.internal.statusbar.StatusBarIconList; 22import android.service.notification.StatusBarNotification; 23 24/** @hide */ 25interface IStatusBarService 26{ 27 void expandNotificationsPanel(); 28 void collapsePanels(); 29 void disable(int what, IBinder token, String pkg); 30 void setIcon(String slot, String iconPackage, int iconId, int iconLevel, String contentDescription); 31 void setIconVisibility(String slot, boolean visible); 32 void removeIcon(String slot); 33 void topAppWindowChanged(boolean menuVisible); 34 void setImeWindowStatus(in IBinder token, int vis, int backDisposition, 35 boolean showImeSwitcher); 36 void expandSettingsPanel(); 37 void setCurrentUser(int newUserId); 38 39 // ---- Methods below are for use by the status bar policy services ---- 40 // You need the STATUS_BAR_SERVICE permission 41 void registerStatusBar(IStatusBar callbacks, out StatusBarIconList iconList, 42 out int[] switches, out List<IBinder> binders); 43 void onPanelRevealed(boolean clearNotificationEffects); 44 void onPanelHidden(); 45 // Mark current notifications as "seen" and stop ringing, vibrating, blinking. 46 void clearNotificationEffects(); 47 void onNotificationClick(String key); 48 void onNotificationActionClick(String key, int actionIndex); 49 void onNotificationError(String pkg, String tag, int id, 50 int uid, int initialPid, String message, int userId); 51 void onClearAllNotifications(int userId); 52 void onNotificationClear(String pkg, String tag, int id, int userId); 53 void onNotificationVisibilityChanged( 54 in String[] newlyVisibleKeys, in String[] noLongerVisibleKeys); 55 void onNotificationExpansionChanged(in String key, in boolean userAction, in boolean expanded); 56 void setSystemUiVisibility(int vis, int mask, String cause); 57 void setWindowState(int window, int state); 58 59 void showRecentApps(boolean triggeredFromAltTab); 60 void hideRecentApps(boolean triggeredFromAltTab, boolean triggeredFromHomeKey); 61 void toggleRecentApps(); 62 void preloadRecentApps(); 63 void cancelPreloadRecentApps(); 64} 65