Home
last modified time | relevance | path

Searched refs:expectedSize (Results 1 – 20 of 20) 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/default/
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/av/drm/mediadrm/plugins/clearkey/hidl/
DInitDataParser.cpp91 uint32_t expectedSize = initData.size(); in parsePssh() local
92 expectedSize = htonl(expectedSize); in parsePssh()
93 if (memcmp(&initData[readPosition], &expectedSize, in parsePssh()
94 sizeof(expectedSize)) != 0) { in parsePssh()
97 readPosition += sizeof(expectedSize); in parsePssh()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtypeArray.java214 private static byte[] decompress(final byte[] data, final int expectedSize) { in decompress() argument
217 final byte [] result = new byte[expectedSize]; in decompress()
227 if (expectedSize != totalReadBytes) { in decompress()
/frameworks/av/camera/ndk/ndk_vendor/impl/
Dutils.cpp56 size_t expectedSize = metadata.size(); in convertFromHidlCloned() local
57 int ret = validate_camera_metadata_structure(buffer, &expectedSize); in convertFromHidlCloned()
/frameworks/base/core/tests/coretests/src/android/app/assist/
DAssistStructureTest.java134 private void assertStructureWithManySmallViews(AssistStructure structure, int expectedSize) { in assertStructureWithManySmallViews() argument
155 assertThat(parent.getChildCount()).isEqualTo(expectedSize); in assertStructureWithManySmallViews()
160 for (i = 0; i < expectedSize; i++) { in assertStructureWithManySmallViews()
/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java1453 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 …]
/frameworks/base/core/java/android/os/
DHwParcel.java547 public native final HwBlob readBuffer(long expectedSize); in readBuffer() argument
563 long expectedSize, long parentHandle, long offset, in readEmbeddedBuffer() argument
/frameworks/av/services/camera/libcameraservice/api2/
DHeicCompositeStream.cpp1269 size_t expectedSize = 0; in findAppSegmentsSize() local
1278 expectedSize = blob->blobSize; in findAppSegmentsSize()
1279 if (expectedSize == 0 || expectedSize > maxSize - sizeof(struct CameraBlob)) { in findAppSegmentsSize()
1280 ALOGE("%s: Invalid blobSize %zu.", __FUNCTION__, expectedSize); in findAppSegmentsSize()
1300 __FUNCTION__, expectedSize, app1Size); in findAppSegmentsSize()
1301 while (totalSize < expectedSize) { in findAppSegmentsSize()
1317 if (totalSize != expectedSize) { in findAppSegmentsSize()
1319 __FUNCTION__, totalSize, expectedSize); in findAppSegmentsSize()
1324 return expectedSize; in findAppSegmentsSize()
/frameworks/base/core/jni/
Dandroid_os_HwParcel.cpp894 jlong expectedSize) { in JHwParcel_native_readBuffer() argument
901 if (expectedSize < 0) { in JHwParcel_native_readBuffer()
906 status_t status = parcel->readBuffer(expectedSize, &handle, &ptr); in JHwParcel_native_readBuffer()
917 JNIEnv *env, jobject thiz, jlong expectedSize, in JHwParcel_native_readEmbeddedBuffer() argument
926 parcel->readNullableEmbeddedBuffer(expectedSize, in JHwParcel_native_readEmbeddedBuffer()
929 if (expectedSize < 0) { in JHwParcel_native_readEmbeddedBuffer()
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java147 int expectedSize = getParcelSize(original) + getParcelSize(child); in parcelSize_nestedViews() local
151 assertTrue(getParcelSize(original) < expectedSize); in parcelSize_nestedViews()
156 expectedSize = getParcelSize(original) + getParcelSize(child); in parcelSize_nestedViews()
160 assertTrue(getParcelSize(original) > expectedSize); in parcelSize_nestedViews()
/frameworks/av/services/camera/libcameraservice/hidl/
DConvert.cpp119 size_t expectedSize = src.size(); in convertFromHidl() local
121 int res = validate_camera_metadata_structure(buffer, &expectedSize); in convertFromHidl()
/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/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.cpp1910 size_t expectedSize = metadata.size(); in __anonbbf989410c02() local
1911 int res = validate_camera_metadata_structure(buffer, &expectedSize); in __anonbbf989410c02()
1989 size_t expectedSize = metadata.size(); in __anonbbf989410d02() local
1990 int res = validate_camera_metadata_structure(buffer, &expectedSize); in __anonbbf989410d02()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp6906 const uint32_t expectedSize = dtohl(header->header.size) - dtohl(header->header.headerSize); in load() local
6907 if (sizeOfEntries > expectedSize) { in load()
6909 expectedSize, entryCount, (uint32_t)sizeof(ResTable_lib_entry)); in load()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Device.cpp4073 size_t expectedSize = request.size(); in constructDefaultRequestSettings() local
4074 int ret = validate_camera_metadata_structure(r, &expectedSize); in constructDefaultRequestSettings()