Home | History | Annotate | Download | only in notification

Lines Matching refs:channel

106         NotificationChannel channel = mock(NotificationChannel.class);
107 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
109 mController.onResume(appRow, channel, null, null);
116 NotificationChannel channel = mock(NotificationChannel.class);
119 mController.onResume(appRow, channel, group, null);
127 NotificationChannel channel = mock(NotificationChannel.class);
128 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT);
132 mController.onResume(appRow, channel, group, null);
139 NotificationChannel channel = mock(NotificationChannel.class);
143 mController.onResume(appRow, channel, group, admin);
146 assertEquals(channel, mController.mChannel);
154 NotificationChannel channel = mock(NotificationChannel.class);
155 when(channel.getImportance()).thenReturn(IMPORTANCE_UNSPECIFIED);
157 mController.onResume(appRow, channel, null, null);
164 NotificationChannel channel = mock(NotificationChannel.class);
165 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
167 mController.onResume(appRow, channel, null, null);
174 NotificationChannel channel = mock(NotificationChannel.class);
175 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
177 mController.onResume(appRow, channel, null, null);
184 NotificationChannel channel = mock(NotificationChannel.class);
185 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
187 mController.onResume(appRow, channel, null, null);
194 NotificationChannel channel = mock(NotificationChannel.class);
195 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT);
197 mController.onResume(appRow, channel, null, null);
207 NotificationChannel channel = mock(NotificationChannel.class);
208 when(channel.getId()).thenReturn(sameId);
210 mController.onResume(appRow, channel, null, null);
213 when(channel.getId()).thenReturn("something new");
214 mController.onResume(appRow, channel, null, null);
222 NotificationChannel channel = mock(NotificationChannel.class);
223 when(channel.isBlockableSystem()).thenReturn(false);
225 mController.onResume(appRow, channel, null, null);
233 NotificationChannel channel = mock(NotificationChannel.class);
234 when(channel.isBlockableSystem()).thenReturn(false);
235 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
237 mController.onResume(appRow, channel, null, null);
245 NotificationChannel channel = mock(NotificationChannel.class);
246 when(channel.isBlockableSystem()).thenReturn(true);
248 mController.onResume(appRow, channel, null, null);
256 NotificationChannel channel = mock(NotificationChannel.class);
257 when(channel.isBlockableSystem()).thenReturn(false);
258 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
260 mController.onResume(appRow, channel, null, null);
306 NotificationChannel channel = mock(NotificationChannel.class);
307 mController.onResume(mock(NotificationBackend.AppRow.class), channel, null, null);
314 NotificationChannel channel = mock(NotificationChannel.class);
315 when(channel.getId()).thenReturn(NotificationChannel.DEFAULT_CHANNEL_ID);
316 mController.onResume(mock(NotificationBackend.AppRow.class), channel, null, null);