Home
last modified time | relevance | path

Searched refs:yIntercept (Results 1 – 3 of 3) 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/bubbles/
DBubbleTouchHandler.java246 final float yIntercept = rawY - slope * rawX; in isFastFlingTowardsDismissTarget() local
248 bottomOfScreenInterceptX = (mStack.getHeight() - yIntercept) / slope; in isFastFlingTowardsDismissTarget()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMotionHelper.java485 final float yIntercept = pipBounds.top - slope * pipBounds.left; in getDismissEndPoint() local
487 final float x = (bottomBound - yIntercept) / slope; in getDismissEndPoint()