@Test public void onScroll_withInitialLeftThenRightMovement_BeforeZigCompletes_MovesOutOfUpperYBounds_shouldSetStateToFailed() throws Exception { simulateScroll(INITIAL_X); assertZigZagState(UNSET); simulateScroll(INITIAL_X + 10); assertZigZagState(GOING_RIGHT); simulateScroll(savedX, INITIAL_Y + 49); assertZigZagState(GOING_RIGHT); assertThat(subject.getNumberOfZigzags()).isEqualTo(0); simulateScroll(savedX, INITIAL_Y + 102); assertZigZagState(FAILED); }
@Deprecated int getNumberOfZigzags() { return mNumberOfZigZags; }
AdAlertGestureListener extends GestureDetector.SimpleOnGestureListener { @Deprecated int getNumberOfZigzags() { return mNumberOfZigZags; } }
AdAlertGestureListener extends GestureDetector.SimpleOnGestureListener { @Deprecated int getNumberOfZigzags() { return mNumberOfZigZags; } AdAlertGestureListener(View view, @Nullable AdReport adReport); }
AdAlertGestureListener extends GestureDetector.SimpleOnGestureListener { @Deprecated int getNumberOfZigzags() { return mNumberOfZigZags; } AdAlertGestureListener(View view, @Nullable AdReport adReport); @Override boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY); }
AdAlertGestureListener extends GestureDetector.SimpleOnGestureListener { @Deprecated int getNumberOfZigzags() { return mNumberOfZigZags; } AdAlertGestureListener(View view, @Nullable AdReport adReport); @Override boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY);  }