/core/java/android/app/INotificationManager.aidl

https://github.com/BhargzShukla/android_frameworks_base · Android Interface Definition Language · 58 lines · 31 code · 10 blank · 17 comment · 0 complexity · d8b91a03450b54c9d42af511c684d1ca MD5 · raw file

  1. /* //device/java/android/android/app/INotificationManager.aidl
  2. **
  3. ** Copyright 2007, The Android Open Source Project
  4. **
  5. ** Licensed under the Apache License, Version 2.0 (the "License");
  6. ** you may not use this file except in compliance with the License.
  7. ** You may obtain a copy of the License at
  8. **
  9. ** http://www.apache.org/licenses/LICENSE-2.0
  10. **
  11. ** Unless required by applicable law or agreed to in writing, software
  12. ** distributed under the License is distributed on an "AS IS" BASIS,
  13. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ** See the License for the specific language governing permissions and
  15. ** limitations under the License.
  16. */
  17. package android.app;
  18. import android.app.ITransientNotification;
  19. import android.service.notification.StatusBarNotification;
  20. import android.app.Notification;
  21. import android.content.ComponentName;
  22. import android.content.Intent;
  23. import android.service.notification.INotificationListener;
  24. /** {@hide} */
  25. interface INotificationManager
  26. {
  27. void cancelAllNotifications(String pkg, int userId);
  28. void enqueueToast(String pkg, ITransientNotification callback, int duration);
  29. void cancelToast(String pkg, ITransientNotification callback);
  30. void enqueueNotificationWithTag(String pkg, String basePkg, String tag, int id,
  31. in Notification notification, inout int[] idReceived, int userId);
  32. void cancelNotificationWithTag(String pkg, String tag, int id, int userId);
  33. void setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled);
  34. boolean areNotificationsEnabledForPackage(String pkg, int uid);
  35. StatusBarNotification[] getActiveNotifications(String callingPkg);
  36. StatusBarNotification[] getHistoricalNotifications(String callingPkg, int count);
  37. void registerListener(in INotificationListener listener, in ComponentName component, int userid);
  38. void unregisterListener(in INotificationListener listener, int userid);
  39. void cancelNotificationFromListener(in INotificationListener token, String pkg, String tag, int id);
  40. void cancelAllNotificationsFromListener(in INotificationListener token);
  41. StatusBarNotification[] getActiveNotificationsFromListener(in INotificationListener token);
  42. void setHaloPolicyBlack(boolean state);
  43. void setHaloStatus(String pkg, boolean status);
  44. void setHaloBlacklistStatus(String pkg, boolean status);
  45. void setHaloWhitelistStatus(String pkg, boolean status);
  46. boolean isHaloPolicyBlack();
  47. boolean isPackageAllowedForHalo(String pkg);
  48. }