Home
last modified time | relevance | path

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

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DColorSpace.java105 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()
/frameworks/av/drm/mediadrm/plugins/clearkey/
DInitDataParser.cpp82 uint32_t expectedSize = initData.size(); in parsePssh() local
83 expectedSize = htonl(expectedSize); in parsePssh()
84 if (memcmp(&initData[readPosition], &expectedSize, in parsePssh()
85 sizeof(expectedSize)) != 0) { in parsePssh()
88 readPosition += sizeof(expectedSize); in parsePssh()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtypeArray.java212 private static byte[] decompress(final byte[] data, final int expectedSize) { in decompress() argument
215 final byte [] result = new byte[expectedSize]; in decompress()
225 if (expectedSize != totalReadBytes) { in decompress()
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java140 int expectedSize = getParcelSize(original) + getParcelSize(child); in parcelSize_nestedViews() local
144 assertTrue(getParcelSize(original) < expectedSize); in parcelSize_nestedViews()
149 expectedSize = getParcelSize(original) + getParcelSize(child); in parcelSize_nestedViews()
153 assertTrue(getParcelSize(original) > expectedSize); in parcelSize_nestedViews()
/frameworks/base/core/java/android/os/
DHwParcel.java212 public native final HwBlob readBuffer(long expectedSize); in readBuffer() argument
215 long expectedSize, long parentHandle, long offset, in readEmbeddedBuffer() argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java1398 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateYuvData() local
1399 assertEquals("Yuv data doesn't match", expectedSize, yuvData.length); in validateYuvData()
1413 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateRaw16Data() local
1414 assertEquals("Raw data doesn't match", expectedSize, rawData.length); in validateRaw16Data()
1451 int expectedSize = width * height * ImageFormat.getBitsPerPixel(format) / 8; in validateDepth16Data() local
1452 assertEquals("Depth data doesn't match", expectedSize, depthData.length); in validateDepth16Data()
1749 public static void basicValidateJpegImage(Image image, Size expectedSize) { in basicValidateJpegImage() argument
1753 expectedSize.toString(), imageSz.toString()), expectedSize.equals(imageSz)); in basicValidateJpegImage()
1778 public static void verifyJpegKeys(Image image, CaptureResult captureResult, Size expectedSize, in verifyJpegKeys() argument
1782 basicValidateJpegImage(image, expectedSize); in verifyJpegKeys()
[all …]
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java474 long expectedSize = getBytesDownloaded(id) + bytesToReceive; in waitToReceiveData() local
476 while ((currentSize = getBytesDownloaded(id)) <= expectedSize) { in waitToReceiveData()
478 expectedSize, currentSize)); in waitToReceiveData()
/frameworks/base/core/jni/
Dandroid_os_HwParcel.cpp802 jlong expectedSize) { in JHwParcel_native_readBuffer() argument
809 if (expectedSize < 0) { in JHwParcel_native_readBuffer()
814 status_t status = parcel->readBuffer(expectedSize, &handle, &ptr); in JHwParcel_native_readBuffer()
825 JNIEnv *env, jobject thiz, jlong expectedSize, in JHwParcel_native_readEmbeddedBuffer() argument
834 parcel->readNullableEmbeddedBuffer(expectedSize, in JHwParcel_native_readEmbeddedBuffer()
837 if (expectedSize < 0) { in JHwParcel_native_readEmbeddedBuffer()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpManager.java149 byte[] getObject(int deviceId, int objectHandle, int expectedSize) in getObject() argument
154 device.getObject(objectHandle, expectedSize), in getObject()
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
DSortedListTest.java581 int expectedSize = 5; in testAddAllAccessFromCallbacks()
587 assertIntegrity(++expectedSize, "onChanged(" + position + ")"); in testAddAllAccessFromCallbacks()
592 int expectedSize = 5; in testAddAllAccessFromCallbacks()
598 assertIntegrity(++expectedSize, "onInserted(" + position + ")"); in testAddAllAccessFromCallbacks()
/frameworks/support/fragment/tests/java/android/support/v4/app/
DFragmentTransactionTest.java450 private void getFragmentsUntilSize(int expectedSize) { in getFragmentsUntilSize() argument
455 } while (mActivity.getSupportFragmentManager().getFragments().size() != expectedSize); in getFragmentsUntilSize()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestMtpManager.java211 byte[] getObject(int deviceId, int objectHandle, int expectedSize) throws IOException { in getObject() argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DCameraMetadataTest.java1335 android.util.Size expectedSize = new android.util.Size(width, height); in checkStreamConfigurationMapByFormatSize() local
1338 assertArrayContains(expectedSize, sizes); in checkStreamConfigurationMapByFormatSize()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java823 int expectedSize = expectedNumberScreenshots + 1; // All screenshots plus the bugreport file in assertActionSendMultiple() local
825 expectedSize, attachments.size()); in assertActionSendMultiple()
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.cpp928 size_t expectedSize = metadata.size(); in __anonb0e2bf370b02() local
929 int res = validate_camera_metadata_structure(buffer, &expectedSize); in __anonb0e2bf370b02()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp6632 const uint32_t expectedSize = dtohl(header->header.size) - dtohl(header->header.headerSize); in load() local
6633 if (sizeOfEntries > expectedSize) { in load()
6635 expectedSize, entryCount, (uint32_t)sizeof(ResTable_lib_entry)); in load()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Device.cpp3126 size_t expectedSize = request.size(); in constructDefaultRequestSettings() local
3127 int ret = validate_camera_metadata_structure(r, &expectedSize); in constructDefaultRequestSettings()