Home
last modified time | relevance | path

Searched refs:expectedDim (Results 1 – 1 of 1) sorted by relevance

/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java305 float expectedDim = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dim, in validateViewPlacement() local
321 assertWithinAPixel(expectedDim, aboveSquare.getHeight()); in validateViewPlacement()
322 assertWithinAPixel(expectedDim, aboveSquare.getWidth()); in validateViewPlacement()
323 assertWithinAPixel(expectedDim, belowSquare.getHeight()); in validateViewPlacement()
324 assertWithinAPixel(expectedDim, belowSquare.getWidth()); in validateViewPlacement()
330 private static boolean isWithinAPixel(float expectedDim, int dim) { in isWithinAPixel() argument
331 return (Math.abs(dim - expectedDim) <= 1); in isWithinAPixel()
334 private static void assertWithinAPixel(float expectedDim, int dim) { in assertWithinAPixel() argument
336 + expectedDim + ", but was " + dim, isWithinAPixel(expectedDim, dim)); in assertWithinAPixel()