Home
last modified time | relevance | path

Searched refs:angleFromVerticalInDegrees (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/widget/
DEditorTouchState.java232 public static float getXYRatio(int angleFromVerticalInDegrees) { in getXYRatio() argument
233 if (angleFromVerticalInDegrees <= 0) { in getXYRatio()
236 if (angleFromVerticalInDegrees >= 90) { in getXYRatio()
239 return (float) Math.tan(Math.toRadians(angleFromVerticalInDegrees)); in getXYRatio()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java425 private void doTestGetXYRatio(int angleFromVerticalInDegrees, float expectedXYRatioRounded) { in doTestGetXYRatio() argument
426 float result = EditorTouchState.getXYRatio(angleFromVerticalInDegrees); in doTestGetXYRatio()
429 angleFromVerticalInDegrees, expectedXYRatioRounded, result); in doTestGetXYRatio()