Loading core/res/AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -581,6 +581,7 @@ <protected-broadcast android:name="android.app.action.KEYGUARD_PRIVATE_NOTIFICATIONS_CHANGED" /> <protected-broadcast android:name="NotificationManagerService.TIMEOUT" /> <protected-broadcast android:name="com.android.server.notification.TimeToLiveHelper" /> <protected-broadcast android:name="NotificationHistoryDatabase.CLEANUP" /> <protected-broadcast android:name="ScheduleConditionProvider.EVALUATE" /> <protected-broadcast android:name="EventConditionProvider.EVALUATE" /> Loading services/core/java/com/android/server/notification/NotificationManagerPrivate.java +2 −0 Original line number Diff line number Diff line Loading @@ -25,4 +25,6 @@ import android.annotation.Nullable; interface NotificationManagerPrivate { @Nullable NotificationRecord getNotificationByKey(String key); void timeoutNotification(String key); } services/core/java/com/android/server/notification/NotificationManagerService.java +208 −114 File changed.Preview size limit exceeded, changes collapsed. Show changes services/core/java/com/android/server/notification/NotificationRecord.java +2 −2 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ import dalvik.annotation.optimization.NeverCompile; import java.io.PrintWriter; import java.lang.reflect.Array; import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; import java.util.List; Loading Loading @@ -600,8 +601,7 @@ public final class NotificationRecord { pw.println(prefix + "headsUpContentView=" + formatRemoteViews(notification.headsUpContentView)); pw.println(prefix + String.format("color=0x%08x", notification.color)); pw.println(prefix + "timeout=" + TimeUtils.formatForLogging(notification.getTimeoutAfter())); pw.println(prefix + "timeout=" + Duration.ofMillis(notification.getTimeoutAfter())); if (notification.actions != null && notification.actions.length > 0) { pw.println(prefix + "actions={"); final int N = notification.actions.length; Loading services/core/java/com/android/server/notification/ShortcutHelper.java +7 −0 Original line number Diff line number Diff line Loading @@ -287,4 +287,11 @@ public class ShortcutHelper { } } } void destroy() { if (mLauncherAppsCallbackRegistered) { mLauncherAppsService.unregisterCallback(mLauncherAppsCallback); mLauncherAppsCallbackRegistered = false; } } } Loading
core/res/AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -581,6 +581,7 @@ <protected-broadcast android:name="android.app.action.KEYGUARD_PRIVATE_NOTIFICATIONS_CHANGED" /> <protected-broadcast android:name="NotificationManagerService.TIMEOUT" /> <protected-broadcast android:name="com.android.server.notification.TimeToLiveHelper" /> <protected-broadcast android:name="NotificationHistoryDatabase.CLEANUP" /> <protected-broadcast android:name="ScheduleConditionProvider.EVALUATE" /> <protected-broadcast android:name="EventConditionProvider.EVALUATE" /> Loading
services/core/java/com/android/server/notification/NotificationManagerPrivate.java +2 −0 Original line number Diff line number Diff line Loading @@ -25,4 +25,6 @@ import android.annotation.Nullable; interface NotificationManagerPrivate { @Nullable NotificationRecord getNotificationByKey(String key); void timeoutNotification(String key); }
services/core/java/com/android/server/notification/NotificationManagerService.java +208 −114 File changed.Preview size limit exceeded, changes collapsed. Show changes
services/core/java/com/android/server/notification/NotificationRecord.java +2 −2 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ import dalvik.annotation.optimization.NeverCompile; import java.io.PrintWriter; import java.lang.reflect.Array; import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; import java.util.List; Loading Loading @@ -600,8 +601,7 @@ public final class NotificationRecord { pw.println(prefix + "headsUpContentView=" + formatRemoteViews(notification.headsUpContentView)); pw.println(prefix + String.format("color=0x%08x", notification.color)); pw.println(prefix + "timeout=" + TimeUtils.formatForLogging(notification.getTimeoutAfter())); pw.println(prefix + "timeout=" + Duration.ofMillis(notification.getTimeoutAfter())); if (notification.actions != null && notification.actions.length > 0) { pw.println(prefix + "actions={"); final int N = notification.actions.length; Loading
services/core/java/com/android/server/notification/ShortcutHelper.java +7 −0 Original line number Diff line number Diff line Loading @@ -287,4 +287,11 @@ public class ShortcutHelper { } } } void destroy() { if (mLauncherAppsCallbackRegistered) { mLauncherAppsService.unregisterCallback(mLauncherAppsCallback); mLauncherAppsCallbackRegistered = false; } } }