Home | History | Annotate | Download | only in notification

Lines Matching defs:stats

40         NotificationStats stats = new NotificationStats();
42 assertFalse(stats.hasSeen());
43 assertFalse(stats.hasDirectReplied());
44 assertFalse(stats.hasExpanded());
45 assertFalse(stats.hasInteracted());
46 assertFalse(stats.hasViewedSettings());
47 assertFalse(stats.hasSnoozed());
48 assertEquals(NotificationStats.DISMISSAL_NOT_DISMISSED, stats.getDismissalSurface());
53 NotificationStats stats = new NotificationStats();
54 stats.setSeen();
55 assertTrue(stats.hasSeen());
56 assertFalse(stats.hasInteracted());
61 NotificationStats stats = new NotificationStats();
62 stats.setDirectReplied();
63 assertTrue(stats.hasDirectReplied());
64 assertTrue(stats.hasInteracted());
69 NotificationStats stats = new NotificationStats();
70 stats.setExpanded();
71 assertTrue(stats.hasExpanded());
72 assertTrue(stats.hasInteracted());
77 NotificationStats stats = new NotificationStats();
78 stats.setSnoozed();
79 assertTrue(stats.hasSnoozed());
80 assertTrue(stats.hasInteracted());
85 NotificationStats stats = new NotificationStats();
86 stats.setViewedSettings();
87 assertTrue(stats.hasViewedSettings());
88 assertTrue(stats.hasInteracted());
93 NotificationStats stats = new NotificationStats();
94 stats.setDismissalSurface(DISMISSAL_PEEK);
95 assertEquals(DISMISSAL_PEEK, stats.getDismissalSurface());
96 assertFalse(stats.hasInteracted());
101 NotificationStats stats = new NotificationStats();
102 stats.setViewedSettings();
103 stats.setDismissalSurface(NotificationStats.DISMISSAL_AOD);
105 stats.writeToParcel(parcel, 0);
108 assertEquals(stats, stats1);