Home
last modified time | relevance | path

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

/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java303 private void validateViewPlacement(int topViewResource, int bottomViewResource, int dim) { in validateViewPlacement() argument
305 float expectedDim = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dim, 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()
399 int dim = newDim; in validateDim() local
408 dim = Math.max(lastDim, newDim); in validateDim()
413 dim = Math.min(lastDim, newDim); in validateDim()
423 return dim; in validateDim()
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DValidationTests.java313 for (DimensionsValue dim : dims) { in getStatsdWakelockData()
314 if (dim.hasValueInt()) { in getStatsdWakelockData()
315 uid = dim.getValueInt(); in getStatsdWakelockData()
316 } else if (dim.hasValueStrHash()) { in getStatsdWakelockData()
318 tag = dim.getValueStrHash(); in getStatsdWakelockData()
/cts/apps/CameraITS/pymodules/its/
Dcv2image.py62 dim = (int(img.shape[1]*scale), int(img.shape[0]*scale))
63 return cv2.resize(img.copy(), dim, interpolation=cv2.INTER_AREA)
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java191 final float dim = mResources.getDimension(R.dimen.app_icon_size); in testGetDimension() local
192 assertEquals(48.0f, dim); in testGetDimension()
204 final int dim = mResources.getDimensionPixelOffset(R.dimen.app_icon_size); in testGetDimensionPixelOffset() local
205 assertEquals(48, dim); in testGetDimensionPixelOffset()
/cts/tests/tests/media/src/android/media/cts/
DVideoEncoderTest.java996 int dim = i == 1 ? range.getUpper() - delta : range.getLower() + delta; in getExtreme() local
998 || (dim > range.getLower() && dim < range.getUpper())) { in getExtreme()
999 return dim; in getExtreme()