Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DGravity.java318 public static void applyDisplay(int gravity, Rect display, Rect inoutObj) { in applyDisplay() argument
320 if (inoutObj.top < display.top) inoutObj.top = display.top; in applyDisplay()
321 if (inoutObj.bottom > display.bottom) inoutObj.bottom = display.bottom; in applyDisplay()
324 if (inoutObj.top < display.top) off = display.top-inoutObj.top; in applyDisplay()
325 else if (inoutObj.bottom > display.bottom) off = display.bottom-inoutObj.bottom; in applyDisplay()
327 if (inoutObj.height() > (display.bottom-display.top)) { in applyDisplay()
328 inoutObj.top = display.top; in applyDisplay()
329 inoutObj.bottom = display.bottom; in applyDisplay()
331 inoutObj.top += off; in applyDisplay()
332 inoutObj.bottom += off; in applyDisplay()
[all …]