Lines Matching refs:bottom

80         final int midY = (r.top + r.bottom) / 2;
89 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom),
94 assertBoundsEquals(new Rect(400 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom),
100 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom),
106 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom),
115 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom),
120 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom),
125 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
128 // Drag to the bottom
130 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
142 final int midY = (r.top + r.bottom) / 2;
151 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom);
160 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom);
169 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom);
178 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom);
180 // Drag bottom right.
183 r.right + MOUSE_DELTA_X, r.bottom + MOUSE_DELTA_Y, r);
184 mPositioner.resizeDrag(r.right + 100, r.bottom + 100);
188 assertTrue(r.bottom != mPositioner.getWindowDragBounds().bottom);
190 // Drag bottom.
192 false /*preserveOrientation*/, midX, r.bottom + MOUSE_DELTA_Y, r);
193 mPositioner.resizeDrag(r.right + 100, r.bottom + 100);
197 assertTrue(r.bottom != mPositioner.getWindowDragBounds().bottom);
199 // Drag bottom left.
201 false /*preserveOrientation*/, r.left - MOUSE_DELTA_X, r.bottom + MOUSE_DELTA_Y, r);
202 mPositioner.resizeDrag(0.0f, r.bottom + 100);
206 assertTrue(r.bottom != mPositioner.getWindowDragBounds().bottom);
211 mPositioner.resizeDrag(0.0f, r.bottom + 100);
215 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom);
233 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom),
238 int width = Math.round((float) (r.bottom - MOUSE_DELTA_Y) * MIN_ASPECT);
239 assertBoundsEquals(new Rect(r.right - width, MOUSE_DELTA_Y, r.right, r.bottom),
246 assertBoundsEquals(new Rect(r.right - w, r.bottom - h, r.right, r.bottom),
252 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom),
264 final int midY = (r.top + r.bottom) / 2;
271 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom),
276 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom),
288 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
291 // Drag to the bottom.
293 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
312 assertBoundsEquals(new Rect(r.left, r.top + MOUSE_DELTA_Y, r.right, r.bottom),
317 assertBoundsEquals(new Rect(r.left , r.top + MOUSE_DELTA_Y, r.right, r.bottom),
322 int h = r.bottom - MOUSE_DELTA_Y;
324 assertBoundsEquals(new Rect(r.left, MOUSE_DELTA_Y, r.left + w, r.bottom),
327 // Drag to the bottom.
330 assertBoundsEquals(new Rect(r.left, r.bottom - h, r.right, r.bottom),
350 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.bottom - height, r.right, r.bottom),
355 assertBoundsEquals(new Rect(500 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom),
363 new Rect(r.right - w, r.bottom - h, r.right, r.bottom),
375 final int midY = (r.top + r.bottom) / 2;
389 assertBoundsEquals(new Rect(450 + MOUSE_DELTA_X, r.top, r.right, r.bottom),
401 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
404 // Drag to the bottom.
406 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
425 assertBoundsEquals(new Rect(r.left, r.top + MOUSE_DELTA_Y, r.right, r.bottom),
430 assertBoundsEquals(new Rect(r.left , r.top + MOUSE_DELTA_Y, r.right, r.bottom),
435 int h = r.bottom - MOUSE_DELTA_Y;
437 assertBoundsEquals(new Rect(r.left, MOUSE_DELTA_Y, r.left + w, r.bottom),
440 // Drag to the bottom.
444 assertBoundsEquals(new Rect(r.left, r.bottom - h, r.left + w, r.bottom),
458 assertEquals(expected.bottom, actual.bottom);