Home
last modified time | relevance | path

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

/cts/tests/autofillservice/src/android/autofillservice/cts/
DInstrumentedAutoFillService.java122 public static List<Event> getFillEvents(int expectedSize) throws Exception { in getFillEvents() argument
123 final List<Event> events = getFillEventHistory(expectedSize).getEvents(); in getFillEvents()
125 if (expectedSize > 0 && events == null || events.size() != expectedSize) { in getFillEvents()
126 throw new IllegalStateException("INTERNAL ERROR: events should have " + expectedSize in getFillEvents()
135 public static FillEventHistory getFillEventHistory(int expectedSize) throws Exception { in getFillEventHistory() argument
138 if (expectedSize == 0) { in getFillEventHistory()
147 return FILL_EVENTS_TIMEOUT.run("getFillEvents(" + expectedSize + ")", () -> { in getFillEventHistory()
154 if (events.size() != expectedSize) { in getFillEventHistory()
155 Log.v(TAG, "Didn't get " + expectedSize + " events yet: " + events); in getFillEventHistory()
159 Log.v(TAG, "Events is still null (expecting " + expectedSize + ")"); in getFillEventHistory()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationScreenLayoutTest.java61 int expectedSize = expectedScreenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; in testScreenLayout() local
76 assertEquals("Expected screen size value of " + expectedSize + " but got " + actualSize in testScreenLayout()
77 + " for orientation " + ORIENTATIONS[i], expectedSize, actualSize); in testScreenLayout()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDisplaySizeTest.java156 final Point expectedSize = new Point(newLength, newLength); in testSizeRangesAfterSettingDisplaySize() local
160 assertEquals("Smallest size must be changed.", expectedSize, smallestSize); in testSizeRangesAfterSettingDisplaySize()
161 assertEquals("Largest size must be changed.", expectedSize, largestSize); in testSizeRangesAfterSettingDisplaySize()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java302 private void assertDesiredDimension(Point suggestedSize, Point expectedSize) { in assertDesiredDimension() argument
307 if ((actualSize.x != expectedSize.x || actualSize.y != expectedSize.y)) { in assertDesiredDimension()
308 throw new AssertionError("Expected x: " + expectedSize.x + " y: " in assertDesiredDimension()
309 + expectedSize.y + ", got x: " + actualSize.x + in assertDesiredDimension()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1677 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateYuvData() local
1678 assertEquals("Yuv data doesn't match", expectedSize, yuvData.length); in validateYuvData()
1692 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateRaw16Data() local
1693 assertEquals("Raw data doesn't match", expectedSize, rawData.length); in validateRaw16Data()
1709 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateY8Data() local
1710 assertEquals("Y8 data doesn't match", expectedSize, rawData.length); in validateY8Data()
1747 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateDepth16Data() local
1748 assertEquals("Depth data doesn't match", expectedSize, depthData.length); in validateDepth16Data()
2241 public static void basicValidateBlobImage(Image image, Size expectedSize, int format) { in basicValidateBlobImage() argument
2245 expectedSize.toString(), imageSz.toString()), expectedSize.equals(imageSz)); in basicValidateBlobImage()
[all …]
/cts/tests/fragment/src/android/fragment/cts/
DFragmentTransactionTest.java444 private void getFragmentsUntilSize(int expectedSize) { in getFragmentsUntilSize() argument
449 } while (mActivity.getFragmentManager().getFragments().size() != expectedSize); in getFragmentsUntilSize()
/cts/tests/tests/media/src/android/media/cts/
DImageReaderDecoderTest.java710 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateYuvData() local
711 assertEquals("Yuv data doesn't match", expectedSize, yuvData.length); in validateYuvData()