Searched refs:FLAG_FOREGROUND_SERVICE (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationComparatorTest.java108 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true)
117 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true)
173 |Notification.FLAG_FOREGROUND_SERVICE, true)
208 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true)
219 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true)
H A DNotificationManagerServiceTest.java19 import static android.app.Notification.FLAG_FOREGROUND_SERVICE;
537 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE;
566 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE;
588 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE;
633 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE;
791 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE;
805 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE;
933 sbn.getNotification().flags |= FLAG_FOREGROUND_SERVICE;
941 assertEquals(0, notifs[0].getNotification().flags & FLAG_FOREGROUND_SERVICE);
948 Notification.FLAG_ONGOING_EVENT | FLAG_FOREGROUND_SERVICE;
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DForegroundServiceControllerTest.java329 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE;
342 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE;
359 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE;
407 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE;
425 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE;
463 makeMockSBN(userid, pkg, id, "foo", Notification.FLAG_FOREGROUND_SERVICE);
475 return makeMockSBN(userid, pkg, 1000, "foo", Notification.FLAG_FOREGROUND_SERVICE);
/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationTest.java81 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true)
87 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true)
92 .setFlag(Notification.FLAG_FOREGROUND_SERVICE, false)
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationComparator.java154 final int ongoingFlags = Notification.FLAG_FOREGROUND_SERVICE;
H A DNotificationManagerService.java19 import static android.app.Notification.FLAG_FOREGROUND_SERVICE;
717 FLAG_FOREGROUND_SERVICE, false, r.getUserId(),
761 Notification.FLAG_ONGOING_EVENT | FLAG_FOREGROUND_SERVICE,
993 FLAG_FOREGROUND_SERVICE, true, record.getUserId(),
2093 (FLAG_FOREGROUND_SERVICE | Notification.FLAG_AUTOGROUP_SUMMARY);
2108 pkg, null, 0, FLAG_FOREGROUND_SERVICE, true, userId,
2695 Notification.FLAG_ONGOING_EVENT | FLAG_FOREGROUND_SERVICE,
3970 // FLAG_FOREGROUND_SERVICE. Hence it's not enough to remove
3971 // FLAG_FOREGROUND_SERVICE, we have to revert to the flags we received
3972 // initially *and* force remove FLAG_FOREGROUND_SERVICE
[all...]
H A DNotificationUsageStats.java432 if ((n.flags & Notification.FLAG_FOREGROUND_SERVICE) != 0) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DForegroundServiceControllerImpl.java131 // this is safe to call on any notification, not just FLAG_FOREGROUND_SERVICE
154 if (0 != (sbn.getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE)) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationInfoTest.java262 mSbn.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE;
682 mSbn.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE;
948 mSbn.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE;
H A DNotificationDataTest.java307 n.flags = Notification.FLAG_FOREGROUND_SERVICE;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationInfo.java183 (mSbn.getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE) != 0;
H A DNotificationMenuRow.java196 boolean isForeground = (flags & Notification.FLAG_FOREGROUND_SERVICE) != 0;
H A DNotificationData.java550 & Notification.FLAG_FOREGROUND_SERVICE) != 0) {
H A DNotificationEntryManager.java671 & Notification.FLAG_FOREGROUND_SERVICE) != 0) {
/frameworks/base/services/core/java/com/android/server/am/
H A DServiceRecord.java624 notiBuilder.setFlag(Notification.FLAG_FOREGROUND_SERVICE, true);
H A DActiveServices.java1244 notification.flags |= Notification.FLAG_FOREGROUND_SERVICE;
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DNotificationCompat.java165 public static final int FLAG_FOREGROUND_SERVICE = 0x00000040; field in class:NotificationCompat
/frameworks/base/core/java/android/app/
H A DNotification.java567 public static final int FLAG_FOREGROUND_SERVICE = 0x00000040; field in class:Notification
1249 * {@link #FLAG_FOREGROUND_SERVICE} notification currently visible to the user.
5850 return (flags & Notification.FLAG_FOREGROUND_SERVICE) != 0;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBar.java5440 if ((flags & Notification.FLAG_FOREGROUND_SERVICE) != 0) {

Completed in 349 milliseconds