Loading core/java/android/app/Notification.java +0 −11 Original line number Diff line number Diff line Loading @@ -2687,17 +2687,6 @@ public class Notification implements Parcelable /** * Constructs a new Builder with the defaults: * * <table> * <tr><th align=right>priority</th> * <td>{@link #PRIORITY_DEFAULT}</td></tr> * <tr><th align=right>when</th> * <td>now ({@link System#currentTimeMillis()})</td></tr> * <tr><th align=right>audio stream</th> * <td>{@link #STREAM_DEFAULT}</td></tr> * </table> * * @param context * A {@link Context} that will be used by the Builder to construct the * RemoteViews. The Context will not be held past the lifetime of this Builder Loading core/java/android/app/NotificationManager.java +12 −3 Original line number Diff line number Diff line Loading @@ -422,7 +422,9 @@ public class NotificationManager * Creates a notification channel that notifications can be posted to. * * This can also be used to restore a deleted channel and to update an existing channel's * name and description. The name and description should only be changed if the locale changes * name and description. * * <p>The name and description should only be changed if the locale changes * or in response to the user renaming this channel. For example, if a user has a channel * named 'John Doe' that represents messages from a 'John Doe', and 'John Doe' changes his name * to 'John Smith,' the channel can be renamed to match. Loading Loading @@ -454,6 +456,8 @@ public class NotificationManager /** * Returns the notification channel settings for a given channel id. * * The channel must belong to your package, or it will not be returned. */ public NotificationChannel getNotificationChannel(String channelId) { INotificationManager service = getService(); Loading @@ -465,7 +469,7 @@ public class NotificationManager } /** * Returns all notification channels belonging to the calling app. * Returns all notification channels belonging to the calling package. */ public List<NotificationChannel> getNotificationChannels() { INotificationManager service = getService(); Loading @@ -478,6 +482,10 @@ public class NotificationManager /** * Deletes the given notification channel. * * <p>If you {@link #createNotificationChannel(NotificationChannel) create} a new channel with * this same id, the deleted channel will be un-deleted with all of the same settings it * had before it was deleted. */ public void deleteNotificationChannel(String channelId) { INotificationManager service = getService(); Loading @@ -501,7 +509,8 @@ public class NotificationManager } /** * Deletes the given notification channel group. * Deletes the given notification channel group, and all notification channels that * belong to it. */ public void deleteNotificationChannelGroup(String groupId) { INotificationManager service = getService(); Loading core/java/android/service/notification/NotificationListenerService.java +3 −3 Original line number Diff line number Diff line Loading @@ -1094,9 +1094,9 @@ public abstract class NotificationListenerService extends Service { /** * Request that the service be unbound. * * <p>This will no longer receive updates until * {@link #requestRebind(ComponentName)} is called. * The service will likely be kiled by the system after this call. * <p>Once this is called, you will no longer receive updates and no method calls are * guaranteed to be successful, until you next receive the {@link #onListenerConnected()} event. * The service will likely be killed by the system after this call. * * <p>The service should wait for the {@link #onListenerConnected()} event * before performing this operation. I know it's tempting, but you must wait. Loading Loading
core/java/android/app/Notification.java +0 −11 Original line number Diff line number Diff line Loading @@ -2687,17 +2687,6 @@ public class Notification implements Parcelable /** * Constructs a new Builder with the defaults: * * <table> * <tr><th align=right>priority</th> * <td>{@link #PRIORITY_DEFAULT}</td></tr> * <tr><th align=right>when</th> * <td>now ({@link System#currentTimeMillis()})</td></tr> * <tr><th align=right>audio stream</th> * <td>{@link #STREAM_DEFAULT}</td></tr> * </table> * * @param context * A {@link Context} that will be used by the Builder to construct the * RemoteViews. The Context will not be held past the lifetime of this Builder Loading
core/java/android/app/NotificationManager.java +12 −3 Original line number Diff line number Diff line Loading @@ -422,7 +422,9 @@ public class NotificationManager * Creates a notification channel that notifications can be posted to. * * This can also be used to restore a deleted channel and to update an existing channel's * name and description. The name and description should only be changed if the locale changes * name and description. * * <p>The name and description should only be changed if the locale changes * or in response to the user renaming this channel. For example, if a user has a channel * named 'John Doe' that represents messages from a 'John Doe', and 'John Doe' changes his name * to 'John Smith,' the channel can be renamed to match. Loading Loading @@ -454,6 +456,8 @@ public class NotificationManager /** * Returns the notification channel settings for a given channel id. * * The channel must belong to your package, or it will not be returned. */ public NotificationChannel getNotificationChannel(String channelId) { INotificationManager service = getService(); Loading @@ -465,7 +469,7 @@ public class NotificationManager } /** * Returns all notification channels belonging to the calling app. * Returns all notification channels belonging to the calling package. */ public List<NotificationChannel> getNotificationChannels() { INotificationManager service = getService(); Loading @@ -478,6 +482,10 @@ public class NotificationManager /** * Deletes the given notification channel. * * <p>If you {@link #createNotificationChannel(NotificationChannel) create} a new channel with * this same id, the deleted channel will be un-deleted with all of the same settings it * had before it was deleted. */ public void deleteNotificationChannel(String channelId) { INotificationManager service = getService(); Loading @@ -501,7 +509,8 @@ public class NotificationManager } /** * Deletes the given notification channel group. * Deletes the given notification channel group, and all notification channels that * belong to it. */ public void deleteNotificationChannelGroup(String groupId) { INotificationManager service = getService(); Loading
core/java/android/service/notification/NotificationListenerService.java +3 −3 Original line number Diff line number Diff line Loading @@ -1094,9 +1094,9 @@ public abstract class NotificationListenerService extends Service { /** * Request that the service be unbound. * * <p>This will no longer receive updates until * {@link #requestRebind(ComponentName)} is called. * The service will likely be kiled by the system after this call. * <p>Once this is called, you will no longer receive updates and no method calls are * guaranteed to be successful, until you next receive the {@link #onListenerConnected()} event. * The service will likely be killed by the system after this call. * * <p>The service should wait for the {@link #onListenerConnected()} event * before performing this operation. I know it's tempting, but you must wait. Loading