Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ public class BubbleController { for (BubbleView bv : mBubbles.values()) { NotificationData.Entry entry = bv.getEntry(); if (entry != null) { if (entry.row.isRemoved() || entry.isBubbleDismissed() || entry.row.isDismissed()) { if (entry.isRowRemoved() || entry.isBubbleDismissed() || entry.isRowDismissed()) { viewsToRemove.add(bv); } } Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleView.java +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public class BubbleView extends LinearLayout implements BubbleTouchHandler.Float * @return the view to display when the bubble is expanded. */ public ExpandableNotificationRow getRowView() { return mEntry.row; return mEntry.getRow(); } @Override Loading packages/SystemUI/src/com/android/systemui/statusbar/AlertingNotificationManager.java +3 −4 Original line number Diff line number Diff line Loading @@ -112,8 +112,7 @@ public abstract class AlertingNotificationManager implements NotificationLifetim return; } alertEntry.mEntry.row.sendAccessibilityEvent( AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); alertEntry.mEntry.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); if (alert) { alertEntry.updateEntry(true /* updatePostTime */); } Loading Loading @@ -186,7 +185,7 @@ public abstract class AlertingNotificationManager implements NotificationLifetim alertEntry.setEntry(entry); mAlertEntries.put(entry.key, alertEntry); onAlertEntryAdded(alertEntry); entry.row.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); entry.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); } /** Loading @@ -207,7 +206,7 @@ public abstract class AlertingNotificationManager implements NotificationLifetim Entry entry = alertEntry.mEntry; mAlertEntries.remove(key); onAlertEntryRemoved(alertEntry); entry.row.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); entry.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); alertEntry.reset(); if (mExtendedLifetimeAlertEntries.contains(entry)) { if (mNotificationLifetimeFinishedCallback != null) { Loading packages/SystemUI/src/com/android/systemui/statusbar/AmbientPulseManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public final class AmbientPulseManager extends AlertingNotificationManager { @Override protected void onAlertEntryAdded(AlertEntry alertEntry) { NotificationData.Entry entry = alertEntry.mEntry; entry.row.setAmbientPulsing(true); entry.setAmbientPulsing(true); for (OnAmbientChangedListener listener : mListeners) { listener.onAmbientStateChanged(entry, true); } Loading @@ -88,11 +88,11 @@ public final class AmbientPulseManager extends AlertingNotificationManager { @Override protected void onAlertEntryRemoved(AlertEntry alertEntry) { NotificationData.Entry entry = alertEntry.mEntry; entry.row.setAmbientPulsing(false); entry.setAmbientPulsing(false); for (OnAmbientChangedListener listener : mListeners) { listener.onAmbientStateChanged(entry, false); } entry.row.freeContentViewWhenSafe(FLAG_CONTENT_VIEW_AMBIENT); entry.freeContentViewWhenSafe(FLAG_CONTENT_VIEW_AMBIENT); } @Override Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationMediaManager.java +1 −8 Original line number Diff line number Diff line Loading @@ -199,7 +199,7 @@ public class NotificationMediaManager implements Dumpable { for (int i = 0; i < N; i++) { final NotificationData.Entry entry = activeNotifications.get(i); if (isMediaNotification(entry)) { if (entry.isMediaNotification()) { final MediaSession.Token token = entry.notification.getNotification().extras.getParcelable( Notification.EXTRA_MEDIA_SESSION); Loading Loading @@ -336,13 +336,6 @@ public class NotificationMediaManager implements Dumpable { return PlaybackState.STATE_NONE; } private boolean isMediaNotification(NotificationData.Entry entry) { // TODO: confirm that there's a valid media key return entry.row.getExpandedContentView() != null && entry.row.getExpandedContentView().findViewById( com.android.internal.R.id.media_actions) != null; } private void clearCurrentMediaNotificationSession() { mMediaMetadata = null; if (mMediaController != null) { Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ public class BubbleController { for (BubbleView bv : mBubbles.values()) { NotificationData.Entry entry = bv.getEntry(); if (entry != null) { if (entry.row.isRemoved() || entry.isBubbleDismissed() || entry.row.isDismissed()) { if (entry.isRowRemoved() || entry.isBubbleDismissed() || entry.isRowDismissed()) { viewsToRemove.add(bv); } } Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleView.java +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public class BubbleView extends LinearLayout implements BubbleTouchHandler.Float * @return the view to display when the bubble is expanded. */ public ExpandableNotificationRow getRowView() { return mEntry.row; return mEntry.getRow(); } @Override Loading
packages/SystemUI/src/com/android/systemui/statusbar/AlertingNotificationManager.java +3 −4 Original line number Diff line number Diff line Loading @@ -112,8 +112,7 @@ public abstract class AlertingNotificationManager implements NotificationLifetim return; } alertEntry.mEntry.row.sendAccessibilityEvent( AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); alertEntry.mEntry.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); if (alert) { alertEntry.updateEntry(true /* updatePostTime */); } Loading Loading @@ -186,7 +185,7 @@ public abstract class AlertingNotificationManager implements NotificationLifetim alertEntry.setEntry(entry); mAlertEntries.put(entry.key, alertEntry); onAlertEntryAdded(alertEntry); entry.row.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); entry.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); } /** Loading @@ -207,7 +206,7 @@ public abstract class AlertingNotificationManager implements NotificationLifetim Entry entry = alertEntry.mEntry; mAlertEntries.remove(key); onAlertEntryRemoved(alertEntry); entry.row.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); entry.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); alertEntry.reset(); if (mExtendedLifetimeAlertEntries.contains(entry)) { if (mNotificationLifetimeFinishedCallback != null) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/AmbientPulseManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public final class AmbientPulseManager extends AlertingNotificationManager { @Override protected void onAlertEntryAdded(AlertEntry alertEntry) { NotificationData.Entry entry = alertEntry.mEntry; entry.row.setAmbientPulsing(true); entry.setAmbientPulsing(true); for (OnAmbientChangedListener listener : mListeners) { listener.onAmbientStateChanged(entry, true); } Loading @@ -88,11 +88,11 @@ public final class AmbientPulseManager extends AlertingNotificationManager { @Override protected void onAlertEntryRemoved(AlertEntry alertEntry) { NotificationData.Entry entry = alertEntry.mEntry; entry.row.setAmbientPulsing(false); entry.setAmbientPulsing(false); for (OnAmbientChangedListener listener : mListeners) { listener.onAmbientStateChanged(entry, false); } entry.row.freeContentViewWhenSafe(FLAG_CONTENT_VIEW_AMBIENT); entry.freeContentViewWhenSafe(FLAG_CONTENT_VIEW_AMBIENT); } @Override Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationMediaManager.java +1 −8 Original line number Diff line number Diff line Loading @@ -199,7 +199,7 @@ public class NotificationMediaManager implements Dumpable { for (int i = 0; i < N; i++) { final NotificationData.Entry entry = activeNotifications.get(i); if (isMediaNotification(entry)) { if (entry.isMediaNotification()) { final MediaSession.Token token = entry.notification.getNotification().extras.getParcelable( Notification.EXTRA_MEDIA_SESSION); Loading Loading @@ -336,13 +336,6 @@ public class NotificationMediaManager implements Dumpable { return PlaybackState.STATE_NONE; } private boolean isMediaNotification(NotificationData.Entry entry) { // TODO: confirm that there's a valid media key return entry.row.getExpandedContentView() != null && entry.row.getExpandedContentView().findViewById( com.android.internal.R.id.media_actions) != null; } private void clearCurrentMediaNotificationSession() { mMediaMetadata = null; if (mMediaController != null) { Loading