Lines Matching refs:bounds
53 Rect bounds = new Rect(0, 0, WIDTH, HEIGHT);
55 parentDrawable.updateBounds(bounds);
58 assertEquals(bounds, adjustedBounds);
67 Rect bounds = new Rect(0, 0, WIDTH, HEIGHT);
68 assertEquals(HEIGHT, bounds.height());
69 assertEquals(WIDTH, bounds.width());
75 parentDrawable.updateBounds(bounds);
78 Rect expectedBounds = new Rect(bounds);
79 expectedBounds.bottom = bounds.top + (int) (HEIGHT * fraction);
83 drawable.setBounds(bounds);
85 parentDrawable.updateBounds(bounds);
88 expectedBounds = new Rect(bounds);
95 parentDrawable.updateBounds(bounds);
98 expectedBounds = new Rect(bounds);
99 expectedBounds.bottom = bounds.top + (int) (HEIGHT * fraction + 100);
103 bounds = new Rect(100, 200, WIDTH, HEIGHT);
106 parentDrawable.updateBounds(bounds);
109 expectedBounds = new Rect(bounds);
110 expectedBounds.bottom = bounds.top + (int) ((HEIGHT - 200) * fraction);
120 Rect bounds = new Rect(0, 0, WIDTH, HEIGHT);
121 drawable.setBounds(bounds);
133 parentDrawable.updateBounds(bounds);
136 Rect expectedBounds = new Rect(bounds);
144 parentDrawable.updateBounds(bounds);
147 expectedBounds = new Rect(bounds);
155 parentDrawable.updateBounds(bounds);
157 expectedBounds = new Rect(bounds);