Searched refs:mSnoozeHelper (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 61 private SnoozeHelper mSnoozeHelper; field in SnoozeHelperTest 67 mSnoozeHelper = new SnoozeHelper(getContext(), mCallback, mUserProfiles); in setUp() 68 mSnoozeHelper.setAlarmManager(mAm); in setUp() 74 mSnoozeHelper.snooze(r, 1000); in testSnoozeForTime() 80 assertTrue(mSnoozeHelper.isSnoozed( in testSnoozeForTime() 87 mSnoozeHelper.snooze(r); 90 assertTrue(mSnoozeHelper.isSnoozed( 98 mSnoozeHelper.snooze(r, 1000); 99 mSnoozeHelper.snooze(r2 , 1000); 100 assertTrue(mSnoozeHelper.isSnoozed( [all …]
|
D | NotificationManagerServiceTest.java | 226 @Mock SnoozeHelper mSnoozeHelper; field in NotificationManagerServiceTest 392 mCompanionMgr, mSnoozeHelper, mUsageStats, mPolicyFile, mActivityManager, in setUp() local 2060 verify(mSnoozeHelper, times(1)).snooze(any(NotificationRecord.class), anyLong()); in testSnoozeRunnable_snoozeNonGrouped() 2082 verify(mSnoozeHelper, times(3)).snooze(any(NotificationRecord.class), anyLong()); in testSnoozeRunnable_snoozeSummary_withChildren() 2103 verify(mSnoozeHelper, times(1)).snooze(any(NotificationRecord.class), anyLong()); in testSnoozeRunnable_snoozeGroupChild_fellowChildren() 2122 verify(mSnoozeHelper, times(2)).snooze(any(NotificationRecord.class), anyLong()); in testSnoozeRunnable_snoozeGroupChild_onlyChildOfSummary() 2137 verify(mSnoozeHelper, times(1)).snooze(any(NotificationRecord.class), anyLong()); in testSnoozeRunnable_snoozeGroupChild_noOthersInGroup() 2149 verify(mSnoozeHelper, times(1)).repostGroupSummary( in testPostGroupChild_unsnoozeParent() 2162 verify(mSnoozeHelper, never()).repostGroupSummary(anyString(), anyInt(), anyString()); in testPostNonGroup_noUnsnoozing() 2174 verify(mSnoozeHelper, never()).repostGroupSummary(anyString(), anyInt(), anyString()); in testPostGroupSummary_noUnsnoozing()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 464 private SnoozeHelper mSnoozeHelper; field in NotificationManagerService 1718 mSnoozeHelper = snoozeHelper; in init() 2973 mSnoozeHelper.clearData(UserHandle.getUserId(uid), packageName); 3071 for(NotificationRecord snoozed: mSnoozeHelper.getSnoozed(userId, pkg)) { 3418 List<NotificationRecord> snoozedRecords = mSnoozeHelper.getSnoozed(); 4511 List<NotificationRecord> snoozed = mSnoozeHelper.getSnoozed(); 4662 mSnoozeHelper.dump(pw, filter); 5239 if (mSnoozeHelper.isSnoozed(userId, pkg, r.getKey())) { 5246 mSnoozeHelper.update(userId, r); 5373 mSnoozeHelper.snooze(r); [all …]
|