Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java130 final float yIntercept = y - slope * x; // rearrange line equation for yIntercept in getEdgeIntersect() local
140 vertPoint.y = findY(slope, yIntercept, vertPoint.x); in getEdgeIntersect()
145 horizPoint.x = findX(slope, yIntercept, horizPoint.y); in getEdgeIntersect()
194 private int findY(float slope, float yIntercept, float x) { in findY() argument
195 return (int) ((slope * x) + yIntercept); in findY()
198 private int findX(float slope, float yIntercept, float y) { in findX() argument
199 return (int) ((y - yIntercept) / slope); in findX()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMotionHelper.java468 final float yIntercept = pipBounds.top - slope * pipBounds.left; in getDismissEndPoint() local
470 final float x = (bottomBound - yIntercept) / slope; in getDismissEndPoint()