test_class.file: library/src/test/java/com/mapbox/android/gestures/ShoveGestureDetectorTest.java
test_class.identifier: ShoveGestureDetectorTest
test_class.superclass: extends
    AbstractGestureDetectorTest<ShoveGestureDetector, ShoveGestureDetector.OnShoveGestureListener>
test_case.body: @Test
    public void isAngleAcceptableTest() {
      gestureDetector.pointerIdList.add(0);
      gestureDetector.pointerIdList.add(1);
      gestureDetector.pointersDistanceMap.put(
        new PointerDistancePair(0, 1),
        new MultiFingerDistancesObject(300, 0, 275, 15)
      );
      assertTrue(gestureDetector.isAngleAcceptable());
  
      gestureDetector.pointerIdList.clear();
      gestureDetector.pointersDistanceMap.clear();
      gestureDetector.pointerIdList.add(0);
      gestureDetector.pointerIdList.add(1);
      gestureDetector.pointersDistanceMap.put(
        new PointerDistancePair(0, 1),
        new MultiFingerDistancesObject(300, 0, 275, 150)
      );
      assertFalse(gestureDetector.isAngleAcceptable());
    }
test_case.class_method_signature: ShoveGestureDetectorTest.isAngleAcceptableTest()
test_case.full_signature: @Test public void isAngleAcceptableTest()
test_case.identifier: isAngleAcceptableTest
test_case.invocations: add add put assertTrue isAngleAcceptable clear clear add add put assertFalse isAngleAcceptable
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void isAngleAcceptableTest()
focal_class.declarator: handledTypes = new HashSet<>()
focal_class.modifier: private static final
focal_class.original_string: private static final Set<Integer> handledTypes = new HashSet<>();
focal_class.type: Set<Integer>
focal_class.var_name: handledTypes
focal_class.declarator: maxShoveAngle
focal_class.modifier: private
focal_class.original_string: private float maxShoveAngle;
focal_class.type: float
focal_class.var_name: maxShoveAngle
focal_class.declarator: pixelDeltaThreshold
focal_class.modifier: private
focal_class.original_string: private float pixelDeltaThreshold;
focal_class.type: float
focal_class.var_name: pixelDeltaThreshold
focal_class.declarator: deltaPixelsSinceStart
focal_class.original_string: float deltaPixelsSinceStart;
focal_class.type: float
focal_class.var_name: deltaPixelsSinceStart
focal_class.declarator: deltaPixelSinceLast
focal_class.original_string: float deltaPixelSinceLast;
focal_class.type: float
focal_class.var_name: deltaPixelSinceLast
focal_class.file: library/src/main/java/com/mapbox/android/gestures/ShoveGestureDetector.java
focal_class.identifier: ShoveGestureDetector
focal_class.class_method_signature: ShoveGestureDetector.ShoveGestureDetector(Context context, AndroidGesturesManager gesturesManager)
focal_class.full_signature: public  ShoveGestureDetector(Context context, AndroidGesturesManager gesturesManager)
focal_class.identifier: ShoveGestureDetector
focal_class.modifiers: public
focal_class.parameters: (Context context, AndroidGesturesManager gesturesManager)
focal_class.signature:  ShoveGestureDetector(Context context, AndroidGesturesManager gesturesManager)
focal_class.class_method_signature: ShoveGestureDetector.provideHandledTypes()
focal_class.full_signature: @NonNull @Override protected Set<Integer> provideHandledTypes()
focal_class.identifier: provideHandledTypes
focal_class.modifiers: @NonNull @Override protected
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> provideHandledTypes()
focal_class.class_method_signature: ShoveGestureDetector.analyzeMovement()
focal_class.full_signature: @Override protected boolean analyzeMovement()
focal_class.identifier: analyzeMovement
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean analyzeMovement()
focal_class.class_method_signature: ShoveGestureDetector.canExecute(int invokedGestureType)
focal_class.full_signature: @Override protected boolean canExecute(int invokedGestureType)
focal_class.identifier: canExecute
focal_class.modifiers: @Override protected
focal_class.parameters: (int invokedGestureType)
focal_class.return: boolean
focal_class.signature: boolean canExecute(int invokedGestureType)
focal_class.class_method_signature: ShoveGestureDetector.isSloppyGesture()
focal_class.full_signature: @Override protected boolean isSloppyGesture()
focal_class.identifier: isSloppyGesture
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSloppyGesture()
focal_class.class_method_signature: ShoveGestureDetector.gestureStopped()
focal_class.full_signature: @Override protected void gestureStopped()
focal_class.identifier: gestureStopped
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void gestureStopped()
focal_class.class_method_signature: ShoveGestureDetector.reset()
focal_class.full_signature: @Override protected void reset()
focal_class.identifier: reset
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_class.class_method_signature: ShoveGestureDetector.isAngleAcceptable()
focal_class.full_signature:  boolean isAngleAcceptable()
focal_class.identifier: isAngleAcceptable
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAngleAcceptable()
focal_class.class_method_signature: ShoveGestureDetector.calculateDeltaPixelsSinceLast()
focal_class.full_signature:  float calculateDeltaPixelsSinceLast()
focal_class.identifier: calculateDeltaPixelsSinceLast
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float calculateDeltaPixelsSinceLast()
focal_class.class_method_signature: ShoveGestureDetector.getDeltaPixelsSinceStart()
focal_class.full_signature: public float getDeltaPixelsSinceStart()
focal_class.identifier: getDeltaPixelsSinceStart
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float getDeltaPixelsSinceStart()
focal_class.class_method_signature: ShoveGestureDetector.getDeltaPixelSinceLast()
focal_class.full_signature: public float getDeltaPixelSinceLast()
focal_class.identifier: getDeltaPixelSinceLast
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float getDeltaPixelSinceLast()
focal_class.class_method_signature: ShoveGestureDetector.getPixelDeltaThreshold()
focal_class.full_signature: public float getPixelDeltaThreshold()
focal_class.identifier: getPixelDeltaThreshold
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float getPixelDeltaThreshold()
focal_class.class_method_signature: ShoveGestureDetector.setPixelDeltaThreshold(float pixelDeltaThreshold)
focal_class.full_signature: public void setPixelDeltaThreshold(float pixelDeltaThreshold)
focal_class.identifier: setPixelDeltaThreshold
focal_class.modifiers: public
focal_class.parameters: (float pixelDeltaThreshold)
focal_class.return: void
focal_class.signature: void setPixelDeltaThreshold(float pixelDeltaThreshold)
focal_class.class_method_signature: ShoveGestureDetector.setPixelDeltaThresholdResource(@DimenRes int pixelDeltaThresholdDimen)
focal_class.full_signature: public void setPixelDeltaThresholdResource(@DimenRes int pixelDeltaThresholdDimen)
focal_class.identifier: setPixelDeltaThresholdResource
focal_class.modifiers: public
focal_class.parameters: (@DimenRes int pixelDeltaThresholdDimen)
focal_class.return: void
focal_class.signature: void setPixelDeltaThresholdResource(@DimenRes int pixelDeltaThresholdDimen)
focal_class.class_method_signature: ShoveGestureDetector.getMaxShoveAngle()
focal_class.full_signature: public float getMaxShoveAngle()
focal_class.identifier: getMaxShoveAngle
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float getMaxShoveAngle()
focal_class.class_method_signature: ShoveGestureDetector.setMaxShoveAngle(float maxShoveAngle)
focal_class.full_signature: public void setMaxShoveAngle(float maxShoveAngle)
focal_class.identifier: setMaxShoveAngle
focal_class.modifiers: public
focal_class.parameters: (float maxShoveAngle)
focal_class.return: void
focal_class.signature: void setMaxShoveAngle(float maxShoveAngle)
focal_class.superclass: extends ProgressiveGesture<ShoveGestureDetector.OnShoveGestureListener>
focal_method.body: boolean isAngleAcceptable() {
      MultiFingerDistancesObject distancesObject =
        pointersDistanceMap.get(new PointerDistancePair(pointerIdList.get(0), pointerIdList.get(1)));
  
      // Takes values from 0 to 180
      double angle = Math.toDegrees(Math.abs(Math.atan2(
        distancesObject.getCurrFingersDiffY(), distancesObject.getCurrFingersDiffX())));
  
      return angle <= maxShoveAngle || 180f - angle <= maxShoveAngle;
    }
focal_method.class_method_signature: ShoveGestureDetector.isAngleAcceptable()
focal_method.full_signature:  boolean isAngleAcceptable()
focal_method.identifier: isAngleAcceptable
focal_method.invocations: get get get toDegrees abs atan2 getCurrFingersDiffY getCurrFingersDiffX
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isAngleAcceptable()