Lines Matching refs:right

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),
118 // Drag to the right.
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),
130 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
141 final int midX = (r.left + r.right) / 2;
149 assertEquals(r.right, mPositioner.getWindowDragBounds().right);
158 assertEquals(r.right, mPositioner.getWindowDragBounds().right);
162 // Drag upper right.
164 false /*preserveOrientation*/, r.right + MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y, r);
165 mPositioner.resizeDrag(r.right + 100, 0.0f);
167 assertTrue(r.right != mPositioner.getWindowDragBounds().right);
171 // Drag right.
173 false /*preserveOrientation*/, r.right + MOUSE_DELTA_X, midY, r);
174 mPositioner.resizeDrag(r.right + 100, 0.0f);
176 assertTrue(r.right != mPositioner.getWindowDragBounds().right);
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);
186 assertTrue(r.right != mPositioner.getWindowDragBounds().right);
193 mPositioner.resizeDrag(r.right + 100, r.bottom + 100);
195 assertEquals(r.right, mPositioner.getWindowDragBounds().right);
204 assertEquals(r.right, mPositioner.getWindowDragBounds().right);
213 assertEquals(r.right, mPositioner.getWindowDragBounds().right);
220 * right things upon resizing when dragged from the top left corner.
233 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom),
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),
258 * right things upon resizing when dragged from the left corner.
271 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom),
274 // Drag to the right.
276 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom),
279 // Drag all the way to the right and see the height also shrinking.
283 assertBoundsEquals(new Rect(r.right - w, r.top, r.right, r.top + h),
288 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
293 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
299 * right things upon resizing when dragged from the top corner.
305 final int midX = (r.left + r.right) / 2;
312 assertBoundsEquals(new Rect(r.left, r.top + MOUSE_DELTA_Y, r.right, r.bottom),
315 // Drag to the right (no change).
317 assertBoundsEquals(new Rect(r.left , r.top + MOUSE_DELTA_Y, r.right, r.bottom),
323 int w = Math.max(r.right - r.left, Math.round(h * MIN_ASPECT));
330 assertBoundsEquals(new Rect(r.left, r.bottom - h, r.right, r.bottom),
336 * right things upon resizing when dragged from the top left corner.
349 int height = Math.round((float) (r.right - MOUSE_DELTA_X) * MIN_ASPECT);
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),
369 * right things upon resizing when dragged from the left corner.
382 int w = r.right - MOUSE_DELTA_X;
384 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.top + h),
387 // Drag to the right.
389 assertBoundsEquals(new Rect(450 + MOUSE_DELTA_X, r.top, r.right, r.bottom),
392 // Drag all the way to the right.
396 assertBoundsEquals(new Rect(r.right - w, r.top, r.right, r.top + h),
401 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
406 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
412 * right things upon resizing when dragged from the top corner.
418 final int midX = (r.left + r.right) / 2;
425 assertBoundsEquals(new Rect(r.left, r.top + MOUSE_DELTA_Y, r.right, r.bottom),
428 // Drag to the right (no change).
430 assertBoundsEquals(new Rect(r.left , r.top + MOUSE_DELTA_Y, r.right, r.bottom),
456 assertEquals(expected.right, actual.right);