checks that the frame listener will not be called after it is removed . concode_field_sep int TEST_FRAME_WIDTH concode_elem_sep int REMOVE_FRAME_LISTENER_RACY_NUM_TESTS concode_elem_sep TestFrameListener testFrameListener concode_elem_sep ArrayList<Bitmap> bitmaps concode_elem_sep EglRenderer eglRenderer concode_elem_sep ByteBuffer[][] TEST_FRAMES concode_elem_sep int SURFACE_WAIT_MS concode_elem_sep Bitmap storedBitmap concode_elem_sep int oesTextureId concode_elem_sep SurfaceTexture surfaceTexture concode_elem_sep String TAG concode_elem_sep int TEST_FRAME_HEIGHT concode_elem_sep int RENDER_WAIT_MS concode_elem_sep CountDownLatch surfaceReadyLatch concode_elem_sep boolean bitmapReceived concode_field_sep void checkBitmap concode_elem_sep byte[] convertYUVFrameToRGBA concode_elem_sep boolean waitForBitmap concode_elem_sep void feedFrame concode_elem_sep Bitmap resetAndGetBitmap concode_elem_sep void tearDown concode_elem_sep void testAddFrameListenerBitmapScale concode_elem_sep void checkBitmapContent concode_elem_sep void testAddFrameListener concode_elem_sep void testFrameListenersFpsReduction concode_elem_sep void testFrameListenerNotCalledWithOldFrames concode_elem_sep void onFrame concode_elem_sep void testAddFrameListenerBitmap concode_elem_sep void setUp concode_elem_sep float linearSample concode_elem_sep byte saturatedFloatToByte
void function ( ) { for ( int loc0 = 0 ; loc0 < REMOVE_FRAME_LISTENER_RACY_NUM_TESTS ; loc0 ++ ) { feedFrame ( 0 ) ; eglRenderer . addFrameListener ( testFrameListener , 0f ) ; eglRenderer . removeFrameListener ( testFrameListener ) ; feedFrame ( 1 ) ; } assertFalse ( testFrameListener . waitForBitmap ( RENDER_WAIT_MS ) ) ; }