@Test public void onScroll_withFourZigZags_shouldSetStateToFinished() throws Exception { performZigZag(); assertThat(subject.getNumberOfZigzags()).isEqualTo(1); performZigZag(); assertThat(subject.getNumberOfZigzags()).isEqualTo(2); performZigZag(); assertThat(subject.getNumberOfZigzags()).isEqualTo(3); performZigZag(); assertThat(subject.getNumberOfZigzags()).isEqualTo(4); assertZigZagState(FINISHED); }
@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);  }