Loading packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java +3 −0 Original line number Diff line number Diff line Loading @@ -311,6 +311,8 @@ public class StorageNotification extends SystemUI { } mUsbStorageNotification.setLatestEventInfo(mContext, title, message, pi); mUsbStorageNotification.visibility = Notification.VISIBILITY_PUBLIC; final boolean adbOn = 1 == Settings.Global.getInt( mContext.getContentResolver(), Settings.Global.ADB_ENABLED, Loading Loading @@ -401,6 +403,7 @@ public class StorageNotification extends SystemUI { mMediaStorageNotification.icon = icon; mMediaStorageNotification.setLatestEventInfo(mContext, title, message, pi); mMediaStorageNotification.visibility = Notification.VISIBILITY_PUBLIC; } final int notificationId = mMediaStorageNotification.icon; Loading services/core/java/com/android/server/connectivity/Tethering.java +1 −0 Original line number Diff line number Diff line Loading @@ -470,6 +470,7 @@ public class Tethering extends BaseNetworkObserver { mTetheredNotification.defaults &= ~Notification.DEFAULT_SOUND; mTetheredNotification.flags = Notification.FLAG_ONGOING_EVENT; mTetheredNotification.tickerText = title; mTetheredNotification.visibility = Notification.VISIBILITY_PUBLIC; mTetheredNotification.setLatestEventInfo(mContext, title, message, pi); notificationManager.notifyAsUser(null, mTetheredNotification.icon, Loading services/core/java/com/android/server/storage/DeviceStorageMonitorService.java +1 −0 Original line number Diff line number Diff line Loading @@ -454,6 +454,7 @@ public class DeviceStorageMonitorService extends SystemService { notification.tickerText = title; notification.flags |= Notification.FLAG_NO_CLEAR; notification.setLatestEventInfo(context, title, details, intent); notification.visibility = Notification.VISIBILITY_PUBLIC; mNotificationMgr.notifyAsUser(null, LOW_MEMORY_NOTIFICATION_ID, notification, UserHandle.ALL); context.sendStickyBroadcastAsUser(mStorageLowIntent, UserHandle.ALL); Loading services/core/java/com/android/server/usb/UsbDeviceManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -697,6 +697,7 @@ public class UsbDeviceManager { PendingIntent pi = PendingIntent.getActivityAsUser(mContext, 0, intent, 0, null, UserHandle.CURRENT); notification.setLatestEventInfo(mContext, title, message, pi); notification.visibility = Notification.VISIBILITY_PUBLIC; mNotificationManager.notifyAsUser(null, id, notification, UserHandle.ALL); mUsbNotificationId = id; Loading Loading @@ -732,6 +733,7 @@ public class UsbDeviceManager { PendingIntent pi = PendingIntent.getActivityAsUser(mContext, 0, intent, 0, null, UserHandle.CURRENT); notification.setLatestEventInfo(mContext, title, message, pi); notification.visibility = Notification.VISIBILITY_PUBLIC; mAdbNotificationShown = true; mNotificationManager.notifyAsUser(null, id, notification, UserHandle.ALL); Loading Loading
packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java +3 −0 Original line number Diff line number Diff line Loading @@ -311,6 +311,8 @@ public class StorageNotification extends SystemUI { } mUsbStorageNotification.setLatestEventInfo(mContext, title, message, pi); mUsbStorageNotification.visibility = Notification.VISIBILITY_PUBLIC; final boolean adbOn = 1 == Settings.Global.getInt( mContext.getContentResolver(), Settings.Global.ADB_ENABLED, Loading Loading @@ -401,6 +403,7 @@ public class StorageNotification extends SystemUI { mMediaStorageNotification.icon = icon; mMediaStorageNotification.setLatestEventInfo(mContext, title, message, pi); mMediaStorageNotification.visibility = Notification.VISIBILITY_PUBLIC; } final int notificationId = mMediaStorageNotification.icon; Loading
services/core/java/com/android/server/connectivity/Tethering.java +1 −0 Original line number Diff line number Diff line Loading @@ -470,6 +470,7 @@ public class Tethering extends BaseNetworkObserver { mTetheredNotification.defaults &= ~Notification.DEFAULT_SOUND; mTetheredNotification.flags = Notification.FLAG_ONGOING_EVENT; mTetheredNotification.tickerText = title; mTetheredNotification.visibility = Notification.VISIBILITY_PUBLIC; mTetheredNotification.setLatestEventInfo(mContext, title, message, pi); notificationManager.notifyAsUser(null, mTetheredNotification.icon, Loading
services/core/java/com/android/server/storage/DeviceStorageMonitorService.java +1 −0 Original line number Diff line number Diff line Loading @@ -454,6 +454,7 @@ public class DeviceStorageMonitorService extends SystemService { notification.tickerText = title; notification.flags |= Notification.FLAG_NO_CLEAR; notification.setLatestEventInfo(context, title, details, intent); notification.visibility = Notification.VISIBILITY_PUBLIC; mNotificationMgr.notifyAsUser(null, LOW_MEMORY_NOTIFICATION_ID, notification, UserHandle.ALL); context.sendStickyBroadcastAsUser(mStorageLowIntent, UserHandle.ALL); Loading
services/core/java/com/android/server/usb/UsbDeviceManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -697,6 +697,7 @@ public class UsbDeviceManager { PendingIntent pi = PendingIntent.getActivityAsUser(mContext, 0, intent, 0, null, UserHandle.CURRENT); notification.setLatestEventInfo(mContext, title, message, pi); notification.visibility = Notification.VISIBILITY_PUBLIC; mNotificationManager.notifyAsUser(null, id, notification, UserHandle.ALL); mUsbNotificationId = id; Loading Loading @@ -732,6 +733,7 @@ public class UsbDeviceManager { PendingIntent pi = PendingIntent.getActivityAsUser(mContext, 0, intent, 0, null, UserHandle.CURRENT); notification.setLatestEventInfo(mContext, title, message, pi); notification.visibility = Notification.VISIBILITY_PUBLIC; mAdbNotificationShown = true; mNotificationManager.notifyAsUser(null, id, notification, UserHandle.ALL); Loading