@Test public void onScroll_withZigZagZigZagZigZagZig_BeforeNextZagCompletes_MovesOutOfLowerYBounds_shouldSetStateToFailed() throws Exception { performZigZag(); performZigZag(); performZigZag(); performZig(); simulateScroll(savedX - 1, INITIAL_Y - 49); assertZigZagState(GOING_LEFT); assertThat(subject.getNumberOfZigzags()).isEqualTo(3); simulateScroll(savedX, INITIAL_Y - 101); 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);  }