/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ColorSpace.java | 105 private static void expectInputSize(ByteBuffer input, int expectedSize) { in expectInputSize() argument 106 if (input.remaining() < expectedSize) { in expectInputSize() 108 + "and height! Expected: " + expectedSize + ", Got: " + input.remaining() in expectInputSize() 113 private static void expectOutputSize(ByteBuffer output, int expectedSize) { in expectOutputSize() argument 114 if (output.remaining() < expectedSize) { in expectOutputSize() 116 + "and height! Expected: " + expectedSize + ", Got: " + output.remaining() in expectOutputSize()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/window/ |
H A D | WindowMetricsHelperTest.java | 61 final Point expectedSize = new Point(); in testGetLegacySizeMatchesDisplayGetSize() 62 activity.getDisplay().getSize(expectedSize); in testGetLegacySizeMatchesDisplayGetSize() 64 assertEquals(expectedSize.x, legacyBounds.width()); in testGetLegacySizeMatchesDisplayGetSize() 65 assertEquals(expectedSize.y, legacyBounds.height()); in testGetLegacySizeMatchesDisplayGetSize()
|
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/util/ |
H A D | UserIconsTest.java | 41 int expectedSize = res.getDimensionPixelSize(R.dimen.user_icon_size); in convertToBitmapAtUserIconSize_sizeIsCorrect() local 43 assertThat(bitmap.getWidth()).isEqualTo(expectedSize); in convertToBitmapAtUserIconSize_sizeIsCorrect() 44 assertThat(bitmap.getHeight()).isEqualTo(expectedSize); in convertToBitmapAtUserIconSize_sizeIsCorrect()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
H A D | PhoneSizeSpecSourceTest.java | 132 Size expectedSize = expectedSizesEntry.getValue(); in forEveryTestCaseCheck() local 134 Assert.assertEquals(expectedSize, callback.apply(aspectRatio)); in forEveryTestCaseCheck() 197 Size expectedSize = new Size(338, 601); in testGetSizeForAspectRatio_noOverrideMinSize() local 200 Assert.assertEquals(expectedSize, actualSize); in testGetSizeForAspectRatio_noOverrideMinSize() 209 Size expectedSize = new Size(40, 71); in testGetSizeForAspectRatio_withOverrideMinSize() local 212 Assert.assertEquals(expectedSize, actualSize); in testGetSizeForAspectRatio_withOverrideMinSize()
|
/aosp14/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodSubtypeArray.java | 218 private static byte[] decompress(final byte[] data, final int expectedSize) { in decompress() argument 221 final byte [] result = new byte[expectedSize]; in decompress() 231 if (expectedSize != totalReadBytes) { in decompress()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/ |
H A D | KeyRemapperTests.kt | 132 val expectedSize = REMAPPABLE_KEYS.size regex 133 assertEquals("Remapping size should be $expectedSize", expectedSize, remapping.size)
|
/aosp14/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerBaseTest.java | 474 long expectedSize = getBytesDownloaded(id) + bytesToReceive; in waitToReceiveData() local 476 while ((currentSize = getBytesDownloaded(id)) <= expectedSize) { in waitToReceiveData() 478 expectedSize, currentSize)); in waitToReceiveData()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 1453 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateYuvData() local 1454 assertEquals("Yuv data doesn't match", expectedSize, yuvData.length); in validateYuvData() 1468 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateRaw16Data() local 1469 assertEquals("Raw data doesn't match", expectedSize, rawData.length); in validateRaw16Data() 1506 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateDepth16Data() local 1507 assertEquals("Depth data doesn't match", expectedSize, depthData.length); in validateDepth16Data() 1821 public static void basicValidateJpegImage(Image image, Size expectedSize) { in basicValidateJpegImage() argument 1825 expectedSize.toString(), imageSz.toString()), expectedSize.equals(imageSz)); in basicValidateJpegImage() 1850 public static void verifyJpegKeys(Image image, CaptureResult captureResult, Size expectedSize, in verifyJpegKeys() argument 1854 basicValidateJpegImage(image, expectedSize); in verifyJpegKeys() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/compose/core/tests/src/com/android/compose/animation/scene/ |
H A D | SceneTransitionLayoutTest.kt | 285 val expectedSize = 100.dp + (150.dp - 100.dp) * interpolatedProgress regex 290 sharedFoo.assertWidthIsEqualTo(expectedSize) 291 sharedFoo.assertHeightIsEqualTo(expectedSize)
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/assist/ |
H A D | AssistStructureTest.java | 138 private void assertStructureWithManySmallViews(AssistStructure structure, int expectedSize) { in assertStructureWithManySmallViews() argument 159 assertThat(parent.getChildCount()).isEqualTo(expectedSize); in assertStructureWithManySmallViews() 164 for (i = 0; i < expectedSize; i++) { in assertStructureWithManySmallViews()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | HwParcel.java | 630 public native final HwBlob readBuffer(long expectedSize); in readBuffer() argument 647 long expectedSize, long parentHandle, long offset, in readEmbeddedBuffer() argument
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_os_HwParcel.cpp | 1002 jlong expectedSize) { in JHwParcel_native_readBuffer() argument 1009 if (expectedSize < 0) { in JHwParcel_native_readBuffer() 1014 status_t status = parcel->readBuffer(expectedSize, &handle, &ptr); in JHwParcel_native_readBuffer() 1025 JNIEnv *env, jobject thiz, jlong expectedSize, in JHwParcel_native_readEmbeddedBuffer() argument 1034 parcel->readNullableEmbeddedBuffer(expectedSize, in JHwParcel_native_readEmbeddedBuffer() 1037 if (expectedSize < 0) { in JHwParcel_native_readEmbeddedBuffer()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/ |
H A D | PromptViewModelTest.kt | 110 val expectedSize = regex 126 assertThat(size).isEqualTo(expectedSize) 135 assertThat(size).isEqualTo(expectedSize) 136 assertButtonsVisible(negative = expectedSize != PromptSize.SMALL)
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | RemoteViewsTest.java | 152 int expectedSize = getParcelSize(original) + getParcelSize(child); in parcelSize_nestedViews() local 156 assertTrue(getParcelSize(original) < expectedSize); in parcelSize_nestedViews() 161 expectedSize = getParcelSize(original) + getParcelSize(child); in parcelSize_nestedViews() 165 assertTrue(getParcelSize(original) > expectedSize); in parcelSize_nestedViews()
|
/aosp14/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
H A D | BugreportReceiverTest.java | 729 int expectedSize = expectedNumberScreenshots + 1; // All screenshots plus the bugreport file in assertActionSendMultiple() local 731 expectedSize, attachments.size()); in assertActionSendMultiple()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | CameraMetadataTest.java | 1341 android.util.Size expectedSize = new android.util.Size(width, height); in checkStreamConfigurationMapByFormatSize() local 1344 assertArrayContains(expectedSize, sizes); in checkStreamConfigurationMapByFormatSize()
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 7050 const uint32_t expectedSize = dtohl(header->header.size) - dtohl(header->header.headerSize); in load() local 7051 if (entryCount > (expectedSize / sizeof(ResTable_lib_entry))) { in load() 7053 expectedSize, entryCount, (uint32_t)sizeof(ResTable_lib_entry)); in load()
|