Home | History | Annotate | Download | only in test

Lines Matching full:view

21 import android.view.View;
22 import android.view.ViewGroup;
32 * Assert that view is on the screen.
33 * @param origin The root view of the screen.
34 * @param view The view.
36 static public void assertOnScreen(View origin, View view) {
38 view.getLocationOnScreen(xy);
45 assertTrue("view should have positive y coordinate on screen",
48 assertTrue("view should have y location on screen less than drawing "
49 + "height of root view",
50 y <= view.getRootView().getHeight());
54 * Assert that view is below the visible screen.
55 * @param origin The root view of the screen.
56 * @param view The view
58 static public void assertOffScreenBelow(View origin, View view) {
60 view.getLocationOnScreen(xy);
67 assertTrue("view should have y location on screen greater than drawing "
68 + "height of origen view (" + y + " is not greater than "
74 * Assert that view is above the visible screen.
75 * @param origin Te root view of the screen.
76 * @param view The view
78 static public void assertOffScreenAbove(View origin, View view) {
80 view.getLocationOnScreen(xy);
87 assertTrue("view should have y location less than that of origin view",
92 * Assert that a view has a particular x and y position on the visible screen.
93 * @param origin The root view of the screen.
94 * @param view The view.
98 static public void assertHasScreenCoordinates(View origin, View view, int x, int y) {
100 view.getLocationOnScreen(xy);
113 * @param first The first view
114 * @param second The second view
116 static public void assertBaselineAligned(View first, View second) {
131 * @param first The first view
132 * @param second The second view
134 static public void assertRightAligned(View first, View second) {
149 * @param first The first view
150 * @param second The second view
151 * @param margin The margin between the first view and the second view
153 static public void assertRightAligned(View first, View second, int margin) {
168 * @param first The first view
169 * @param second The second view
171 static public void assertLeftAligned(View first, View second) {
186 * @param first The first view
187 * @param second The second view
188 * @param margin The margin between the first view and the second view
190 static public void assertLeftAligned(View first, View second, int margin) {
205 * @param first The first view
206 * @param second The second view
208 static public void assertBottomAligned(View first, View second) {
223 * @param first The first view
224 * @param second The second view
225 * @param margin The margin between the first view and the second view
227 static public void assertBottomAligned(View first, View second, int margin) {
242 * @param first The first view
243 * @param second The second view
245 static public void assertTopAligned(View first, View second) {
260 * @param first The first view
261 * @param second The second view
262 * @param margin The margin between the first view and the second view
264 static public void assertTopAligned(View first, View second, int margin) {
276 * Assert that the <code>test</code> view is horizontally center aligned
277 * with respect to the <code>reference</code> view.
279 * @param reference The reference view
280 * @param test The view that should be center aligned with the reference view
282 static public void assertHorizontalCenterAligned(View reference, View test) {
297 * Assert that the <code>test</code> view is vertically center aligned
298 * with respect to the <code>reference</code> view.
300 * @param reference The reference view
301 * @param test The view that should be center aligned with the reference view
303 static public void assertVerticalCenterAligned(View reference, View test) {
339 static public void assertGroupContains(ViewGroup parent, View child) {
363 static public void assertGroupNotContains(ViewGroup parent, View child) {