Lines Matching refs:mImpl

53     PlayerAdapter mImpl;
64 mImpl = Mockito.mock(PlayerAdapter.class);
68 mGlue = new PlaybackTransportControlGlue(mContext, mImpl);
147 when(mImpl.isPrepared()).thenReturn(true);
148 when(mImpl.getCurrentPosition()).thenReturn(123L);
149 when(mImpl.getDuration()).thenReturn(20000L);
150 when(mImpl.getBufferedPosition()).thenReturn(321L);
153 Mockito.verify(mImpl, times(1)).play();
155 Mockito.verify(mImpl, times(1)).pause();
157 Mockito.verify(mImpl, times(1)).seekTo(1231);
158 mImpl.getCallback().onCurrentPositionChanged(mImpl);
159 mImpl.getCallback().onDurationChanged(mImpl);
160 mImpl.getCallback().onBufferedPositionChanged(mImpl);
168 when(mImpl.getCurrentPosition()).thenReturn(124L);
169 mImpl.getCallback().onCurrentPositionChanged(mImpl);
172 when(mImpl.getBufferedPosition()).thenReturn(333L);
173 mImpl.getCallback().onBufferedPositionChanged(mImpl);
176 when(mImpl.getDuration()).thenReturn((long) (Integer.MAX_VALUE) * 2);
177 mImpl.getCallback().onDurationChanged(mImpl);
200 when(mImpl.isPrepared()).thenReturn(true);
201 when(mImpl.getCurrentPosition()).thenReturn(0L);
202 when(mImpl.getDuration()).thenReturn(20000L);
203 when(mImpl.getBufferedPosition()).thenReturn(321L);
204 mImpl.getCallback().onCurrentPositionChanged(mImpl);
205 mImpl.getCallback().onDurationChanged(mImpl);
206 mImpl.getCallback().onBufferedPositionChanged(mImpl);
221 Mockito.verify(mImpl).seekTo(positions[2]);
229 when(mImpl.isPrepared()).thenReturn(true);
230 when(mImpl.getCurrentPosition()).thenReturn(4489L);
231 when(mImpl.getDuration()).thenReturn(20000L);
232 when(mImpl.getBufferedPosition()).thenReturn(4489L);
233 mImpl.getCallback().onCurrentPositionChanged(mImpl);
234 mImpl.getCallback().onDurationChanged(mImpl);
235 mImpl.getCallback().onBufferedPositionChanged(mImpl);
255 when(mImpl.isPrepared()).thenReturn(true);
256 when(mImpl.getCurrentPosition()).thenReturn(0L);
257 when(mImpl.getDuration()).thenReturn(20000L);
258 when(mImpl.getBufferedPosition()).thenReturn(321L);
259 mImpl.getCallback().onCurrentPositionChanged(mImpl);
260 mImpl.getCallback().onDurationChanged(mImpl);
261 mImpl.getCallback().onBufferedPositionChanged(mImpl);
277 Mockito.verify(mImpl, times(0)).seekTo(anyInt());
288 when(mImpl.isPrepared()).thenReturn(true);
289 when(mImpl.getCurrentPosition()).thenReturn((positions[0] + positions[1]) / 2);
290 mImpl.getCallback().onCurrentPositionChanged(mImpl);
291 when(mImpl.getDuration()).thenReturn(20000L);
292 when(mImpl.getBufferedPosition()).thenReturn(321L);
293 mImpl.getCallback().onDurationChanged(mImpl);
294 mImpl.getCallback().onBufferedPositionChanged(mImpl);
313 when(mImpl.isPrepared()).thenReturn(true);
314 when(mImpl.getCurrentPosition()).thenReturn((positions[0] + positions[1]) / 2);
315 mImpl.getCallback().onCurrentPositionChanged(mImpl);
316 when(mImpl.getDuration()).thenReturn(20000L);
317 when(mImpl.getBufferedPosition()).thenReturn(321L);
318 mImpl.getCallback().onDurationChanged(mImpl);
319 mImpl.getCallback().onBufferedPositionChanged(mImpl);
338 when(mImpl.isPrepared()).thenReturn(true);
339 when(mImpl.getCurrentPosition()).thenReturn((positions[0] + positions[1]) / 2);
340 mImpl.getCallback().onCurrentPositionChanged(mImpl);
341 when(mImpl.getDuration()).thenReturn(20000L);
342 when(mImpl.getBufferedPosition()).thenReturn(321L);
343 mImpl.getCallback().onDurationChanged(mImpl);
344 mImpl.getCallback().onBufferedPositionChanged(mImpl);
367 when(mImpl.isPrepared()).thenReturn(true);
368 when(mImpl.getCurrentPosition()).thenReturn(positions[0] / 2);
369 mImpl.getCallback().onCurrentPositionChanged(mImpl);
370 when(mImpl.getDuration()).thenReturn(20000L);
371 when(mImpl.getBufferedPosition()).thenReturn(321L);
372 mImpl.getCallback().onDurationChanged(mImpl);
373 mImpl.getCallback().onBufferedPositionChanged(mImpl);
394 when(mImpl.isPrepared()).thenReturn(true);
395 when(mImpl.getCurrentPosition()).thenReturn(positions[0] / 2);
396 mImpl.getCallback().onCurrentPositionChanged(mImpl);
397 when(mImpl.getDuration()).thenReturn(20000L);
398 when(mImpl.getBufferedPosition()).thenReturn(321L);
399 mImpl.getCallback().onDurationChanged(mImpl);
400 mImpl.getCallback().onBufferedPositionChanged(mImpl);
420 when(mImpl.isPrepared()).thenReturn(true);
421 when(mImpl.getCurrentPosition()).thenReturn((positions[positions.length - 2]
423 mImpl.getCallback().onCurrentPositionChanged(mImpl);
424 when(mImpl.getDuration()).thenReturn(20000L);
425 when(mImpl.getBufferedPosition()).thenReturn(321L);
426 mImpl.getCallback().onDurationChanged(mImpl);
427 mImpl.getCallback().onBufferedPositionChanged(mImpl);
453 when(mImpl.isPrepared()).thenReturn(true);
454 when(mImpl.getCurrentPosition()).thenReturn(positions[positions.length - 1] + 100);
455 mImpl.getCallback().onCurrentPositionChanged(mImpl);
456 when(mImpl.getDuration()).thenReturn(20000L);
457 when(mImpl.getBufferedPosition()).thenReturn(321L);
458 mImpl.getCallback().onDurationChanged(mImpl);
459 mImpl.getCallback().onBufferedPositionChanged(mImpl);
479 when(mImpl.isPrepared()).thenReturn(true);
480 when(mImpl.getCurrentPosition()).thenReturn(positions[positions.length - 1] + 100);
481 mImpl.getCallback().onCurrentPositionChanged(mImpl);
482 when(mImpl.getDuration()).thenReturn(20000L);
483 when(mImpl.getBufferedPosition()).thenReturn(321L);
484 mImpl.getCallback().onDurationChanged(mImpl);
485 mImpl.getCallback().onBufferedPositionChanged(mImpl);
500 when(mImpl.isPrepared()).thenReturn(true);
501 when(mImpl.getCurrentPosition()).thenReturn(0L);
502 when(mImpl.getDuration()).thenReturn(20000L);
503 when(mImpl.getBufferedPosition()).thenReturn(321L);
504 mImpl.getCallback().onCurrentPositionChanged(mImpl);
505 mImpl.getCallback().onDurationChanged(mImpl);
506 mImpl.getCallback().onBufferedPositionChanged(mImpl);