public class NotificationManagerService.NotificationListeners extends ManagedServices
ManagedServices.Config, ManagedServices.ManagedServiceInfo, ManagedServices.UserProfiles
DEBUG, ENABLED_SERVICES_SEPARATOR, mContext, mMutex, mServices, TAG
Constructor and Description |
---|
NotificationListeners() |
Modifier and Type | Method and Description |
---|---|
protected IInterface |
asInterface(IBinder binder) |
protected boolean |
checkType(IInterface service) |
protected ManagedServices.Config |
getConfig() |
int |
getOnNotificationPostedTrim(ManagedServices.ManagedServiceInfo info) |
void |
notifyInterruptionFilterChanged(int interruptionFilter) |
void |
notifyListenerHintsChangedLocked(int hints) |
void |
notifyPostedLocked(StatusBarNotification sbn,
StatusBarNotification oldSbn)
asynchronously notify all listeners about a new notification
Also takes care of removing a notification that has been visible to a listener before,
but isn't anymore.
|
void |
notifyRankingUpdateLocked()
asynchronously notify all listeners about a reordering of notifications
|
void |
notifyRemovedLocked(StatusBarNotification sbn)
asynchronously notify all listeners about a removed notification
|
void |
onServiceAdded(ManagedServices.ManagedServiceInfo info) |
protected void |
onServiceRemovedLocked(ManagedServices.ManagedServiceInfo removed) |
void |
setOnNotificationPostedTrimLocked(ManagedServices.ManagedServiceInfo info,
int trim) |
checkServiceTokenLocked, dump, getServiceFromTokenLocked, isComponentEnabledForCurrentProfiles, isComponentEnabledForPackage, loadComponentNamesFromSetting, onBootPhaseAppsCanStart, onPackagesChanged, onUserSwitched, onUserUnlocked, queryPackageForServices, registerGuestService, registerService, registerSystemService, restoredSettingName, setComponentState, settingRestored, unregisterService
protected ManagedServices.Config getConfig()
getConfig
in class ManagedServices
protected IInterface asInterface(IBinder binder)
asInterface
in class ManagedServices
protected boolean checkType(IInterface service)
checkType
in class ManagedServices
public void onServiceAdded(ManagedServices.ManagedServiceInfo info)
onServiceAdded
in class ManagedServices
protected void onServiceRemovedLocked(ManagedServices.ManagedServiceInfo removed)
onServiceRemovedLocked
in class ManagedServices
public void setOnNotificationPostedTrimLocked(ManagedServices.ManagedServiceInfo info, int trim)
public int getOnNotificationPostedTrim(ManagedServices.ManagedServiceInfo info)
public void notifyPostedLocked(StatusBarNotification sbn, StatusBarNotification oldSbn)
Also takes care of removing a notification that has been visible to a listener before, but isn't anymore.
public void notifyRemovedLocked(StatusBarNotification sbn)
public void notifyRankingUpdateLocked()
public void notifyListenerHintsChangedLocked(int hints)
public void notifyInterruptionFilterChanged(int interruptionFilter)