@Test public void constructor_shouldSetThresholdToOneThirdOfViewsWidth() throws Exception { stub(mockView.getWidth()).toReturn(150); subject = new AdAlertGestureListener(mockView, mockAdReport); assertThat(subject.getMinimumDipsInZigZag()).isEqualTo(50); }
@Deprecated float getMinimumDipsInZigZag() { return mCurrentThresholdInDips; }
AdAlertGestureListener extends GestureDetector.SimpleOnGestureListener { @Deprecated float getMinimumDipsInZigZag() { return mCurrentThresholdInDips; } }
AdAlertGestureListener extends GestureDetector.SimpleOnGestureListener { @Deprecated float getMinimumDipsInZigZag() { return mCurrentThresholdInDips; } AdAlertGestureListener(View view, @Nullable AdReport adReport); }
AdAlertGestureListener extends GestureDetector.SimpleOnGestureListener { @Deprecated float getMinimumDipsInZigZag() { return mCurrentThresholdInDips; } AdAlertGestureListener(View view, @Nullable AdReport adReport); @Override boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY); }
AdAlertGestureListener extends GestureDetector.SimpleOnGestureListener { @Deprecated float getMinimumDipsInZigZag() { return mCurrentThresholdInDips; } AdAlertGestureListener(View view, @Nullable AdReport adReport); @Override boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY);  }