INotificationManager.aidl revision 5feceebb892d4cb5777cea3c6174b206705d456b
19066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project/* //device/java/android/android/app/INotificationManager.aidl
29066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project**
39066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project** Copyright 2007, The Android Open Source Project
49066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project**
59066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project** Licensed under the Apache License, Version 2.0 (the "License");
69066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project** you may not use this file except in compliance with the License.
79066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project** You may obtain a copy of the License at
89066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project**
99066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project**     http://www.apache.org/licenses/LICENSE-2.0
109066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project**
119066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project** Unless required by applicable law or agreed to in writing, software
129066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project** distributed under the License is distributed on an "AS IS" BASIS,
139066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
149066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project** See the License for the specific language governing permissions and
159066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project** limitations under the License.
169066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project*/
179066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
189066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectpackage android.app;
199066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
209066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.app.ITransientNotification;
215feceebb892d4cb5777cea3c6174b206705d456bDaniel Sandlerimport android.service.notification.StatusBarNotification;
229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.app.Notification;
235feceebb892d4cb5777cea3c6174b206705d456bDaniel Sandlerimport android.content.ComponentName;
249066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.content.Intent;
255feceebb892d4cb5777cea3c6174b206705d456bDaniel Sandlerimport android.service.notification.INotificationListener;
26fde19b106b2b77bc3540b04445357870caf878b5Daniel Sandler
279066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project/** {@hide} */
289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectinterface INotificationManager
299066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project{
304120375d46091df8527bb701882e056fbb0e6b06Dianne Hackborn    void cancelAllNotifications(String pkg, int userId);
319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
329066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    void enqueueToast(String pkg, ITransientNotification callback, int duration);
339066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    void cancelToast(String pkg, ITransientNotification callback);
34f265ea9d8307282ff1da3915978625a94fc2859eDianne Hackborn    void enqueueNotificationWithTag(String pkg, String basePkg, String tag, int id,
354120375d46091df8527bb701882e056fbb0e6b06Dianne Hackborn            in Notification notification, inout int[] idReceived, int userId);
364120375d46091df8527bb701882e056fbb0e6b06Dianne Hackborn    void cancelNotificationWithTag(String pkg, String tag, int id, int userId);
370da673f02e542c644c300568807c80e196296860Daniel Sandler
384a900acdef4559f9f84ca7e2bce45485215fc130Daniel Sandler    void setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled);
394a900acdef4559f9f84ca7e2bce45485215fc130Daniel Sandler    boolean areNotificationsEnabledForPackage(String pkg, int uid);
40fde19b106b2b77bc3540b04445357870caf878b5Daniel Sandler
41fde19b106b2b77bc3540b04445357870caf878b5Daniel Sandler    StatusBarNotification[] getActiveNotifications(String callingPkg);
4278d0d25dca42fcde5dcea98ab74bfc7f5c8e1114Daniel Sandler    StatusBarNotification[] getHistoricalNotifications(String callingPkg, int count);
4309a247e9a86df068422cbe8b60430fb6583c028cDaniel Sandler
445feceebb892d4cb5777cea3c6174b206705d456bDaniel Sandler    void registerListener(in INotificationListener listener, in ComponentName component, int userid);
4509a247e9a86df068422cbe8b60430fb6583c028cDaniel Sandler    void unregisterListener(in INotificationListener listener, int userid);
469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
475feceebb892d4cb5777cea3c6174b206705d456bDaniel Sandler    void clearNotificationFromListener(in INotificationListener token, String pkg, String tag, int id);
485feceebb892d4cb5777cea3c6174b206705d456bDaniel Sandler    void clearAllNotificationsFromListener(in INotificationListener token);
495feceebb892d4cb5777cea3c6174b206705d456bDaniel Sandler}