Lines Matching refs:reference
28 * <a href="{@docRoot}reference/android/support/test/espresso/matcher/ViewMatchers.html">Espresso
285 * with respect to the <code>reference</code> view.
287 * @param reference The reference view
288 * @param test The view that should be center aligned with the reference view
290 static public void assertHorizontalCenterAligned(View reference, View test) {
292 reference.getLocationOnScreen(xy);
298 int center = (reference.getMeasuredWidth() - test.getMeasuredWidth()) / 2;
306 * with respect to the <code>reference</code> view.
308 * @param reference The reference view
309 * @param test The view that should be center aligned with the reference view
311 static public void assertVerticalCenterAligned(View reference, View test) {
313 reference.getLocationOnScreen(xy);
319 int center = (reference.getMeasuredHeight() - test.getMeasuredHeight()) / 2;