Home
last modified time | relevance | path

Searched refs:mSnoozeHelper (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DSnoozeHelperTest.java89 private SnoozeHelper mSnoozeHelper; field in SnoozeHelperTest
95 mSnoozeHelper = new SnoozeHelper(getContext(), mCallback, mUserProfiles); in setUp()
96 mSnoozeHelper.setAlarmManager(mAm); in setUp()
112 mSnoozeHelper.readXml(parser, 1); in testWriteXMLformattedCorrectly_testReadingCorrectTime()
113 assertEquals((long) Long.MAX_VALUE, (long) mSnoozeHelper in testWriteXMLformattedCorrectly_testReadingCorrectTime()
131 mSnoozeHelper.readXml(parser, 1); in testWriteXML_afterReading_noNPE()
136 mSnoozeHelper.writeXml(serializer); in testWriteXML_afterReading_noNPE()
154 mSnoozeHelper.readXml(parser, 1); in testWriteXMLformattedCorrectly_testCorrectContextURI()
156 "uri", mSnoozeHelper.getSnoozeContextForUnpostedNotification( in testWriteXMLformattedCorrectly_testCorrectContextURI()
164 mSnoozeHelper.snooze(r, 999999999); in testReadValidSnoozedFromCorrectly_timeDeadline()
[all …]
DNotificationManagerServiceTest.java477 @Mock SnoozeHelper mSnoozeHelper; field in NotificationManagerServiceTest
750 mSnoozeHelper, mUsageStats, mPolicyFile, mActivityManager, mGroupHelper, mAm, mAtm, in initNMS()
2176 when(mSnoozeHelper.getSnoozeContextForUnpostedNotification(anyInt(), any(), any())) in enqueueNotificationWithTag_notEnqueued_usesAndCancelsTracker()
2236 when(mSnoozeHelper.getSnoozeContextForUnpostedNotification(anyInt(), any(), any())) in enqueueNotification_notEnqueued_acquiresAndReleasesWakeLock()
4542 when(mSnoozeHelper.canSnooze(anyInt())).thenReturn(true); in testSnoozeRunnable_tooManySnoozed_singleNotification()
4543 when(mSnoozeHelper.canSnooze(1)).thenReturn(false); in testSnoozeRunnable_tooManySnoozed_singleNotification()
4550 verify(mSnoozeHelper, never()).snooze(any(NotificationRecord.class), anyLong()); in testSnoozeRunnable_tooManySnoozed_singleNotification()
4563 when(mSnoozeHelper.canSnooze(anyInt())).thenReturn(true); in testSnoozeRunnable_tooManySnoozed_singleGroupChildNotification()
4564 when(mSnoozeHelper.canSnooze(2)).thenReturn(false); in testSnoozeRunnable_tooManySnoozed_singleGroupChildNotification()
4571 verify(mSnoozeHelper, never()).snooze(any(NotificationRecord.class), anyLong()); in testSnoozeRunnable_tooManySnoozed_singleGroupChildNotification()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationShellCmd.java346 final SnoozeHelper sh = mDirectService.mSnoozeHelper; in onCommand()
366 if (null != mDirectService.mSnoozeHelper.getNotification(key)) { in onCommand()
DNotificationManagerService.java722 protected SnoozeHelper mSnoozeHelper; field in NotificationManagerService
1099 } else if (mSnoozeHelper.XML_TAG_NAME.equals(parser.getName())) { in readPolicyXml()
1100 mSnoozeHelper.readXml(parser, System.currentTimeMillis()); in readPolicyXml()
1224 mSnoozeHelper.writeXml(out); in writePolicyXml()
2042 mSnoozeHelper.clearData(userHandle);
2523 mSnoozeHelper = snoozeHelper; in init()
2954 mSnoozeHelper.scheduleRepostsForPersistedNotifications(System.currentTimeMillis());
4626 mSnoozeHelper.clearData(UserHandle.getUserId(uid), packageName);
4736 for(NotificationRecord snoozed: mSnoozeHelper.getSnoozed(userId, pkg)) {
5332 List<NotificationRecord> snoozedRecords = mSnoozeHelper.getSnoozed();
[all …]