Home | History | Annotate | Download | only in unit

Lines Matching refs:when

81      * Return null when there is nothing in the image queue.
85 when(mReader.acquireNextImage()).thenReturn(null);
86 when(mReader.acquireNextImageNoThrowISE()).thenReturn(null);
95 when(mReader.acquireNextImage()).thenReturn(mImage1);
96 when(mReader.acquireNextImageNoThrowISE()).thenReturn(null);
106 when(mReader.acquireNextImage()).thenReturn(mImage1);
107 when(mReader.acquireNextImageNoThrowISE()).thenReturn(mImage2).thenReturn(null);
118 when(mReader.acquireNextImage()).thenReturn(mImage1);
119 when(mReader.acquireNextImageNoThrowISE()).thenReturn(mImage2).
133 when(mReader.acquireNextImage()).thenThrow(new IllegalStateException());
142 * All images are cleaned up when we get an unexpected Error.
146 when(mReader.acquireNextImage()).thenReturn(mImage1);
147 when(mReader.acquireNextImageNoThrowISE()).thenReturn(mImage2).
162 * All images are cleaned up when we get an unexpected RuntimeException.
167 when(mReader.acquireNextImage()).thenReturn(mImage1);
168 when(mReader.acquireNextImageNoThrowISE()).thenReturn(mImage2).