/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
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()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/ |
D | InitDataParser.cpp | 83 uint32_t expectedSize = initData.size(); in parsePssh() local 87 size_t headerSize = sizeof(expectedSize) + sizeof(psshIdentifier) + in parsePssh() 94 expectedSize = htonl(expectedSize); in parsePssh() 95 if (memcmp(&initData[readPosition], &expectedSize, in parsePssh() 96 sizeof(expectedSize)) != 0) { in parsePssh() 99 readPosition += sizeof(expectedSize); in parsePssh()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | InitDataParser.cpp | 91 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/ |
D | InputMethodSubtypeArray.java | 214 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/ |
D | utils.cpp | 56 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/ |
D | AssistStructureTest.java | 134 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/ |
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()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
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 …]
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | HeicCompositeStream.cpp | 1319 size_t expectedSize = 0; in findAppSegmentsSize() local 1328 expectedSize = blob->blobSize; in findAppSegmentsSize() 1329 if (expectedSize == 0 || expectedSize > maxSize - sizeof(struct CameraBlob)) { in findAppSegmentsSize() 1330 ALOGE("%s: Invalid blobSize %zu.", __FUNCTION__, expectedSize); in findAppSegmentsSize() 1350 __FUNCTION__, expectedSize, app1Size); in findAppSegmentsSize() 1351 while (totalSize < expectedSize) { in findAppSegmentsSize() 1367 if (totalSize != expectedSize) { in findAppSegmentsSize() 1369 __FUNCTION__, totalSize, expectedSize); in findAppSegmentsSize() 1374 return expectedSize; in findAppSegmentsSize()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RemoteViewsTest.java | 147 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/ |
D | Convert.cpp | 119 size_t expectedSize = src.size(); in convertFromHidl() local 121 int res = validate_camera_metadata_structure(buffer, &expectedSize); in convertFromHidl()
|
/frameworks/base/core/java/android/os/ |
D | HwParcel.java | 631 public native final HwBlob readBuffer(long expectedSize); in readBuffer() argument 648 long expectedSize, long parentHandle, long offset, in readEmbeddedBuffer() argument
|
/frameworks/base/core/jni/ |
D | android_os_HwParcel.cpp | 1000 jlong expectedSize) { in JHwParcel_native_readBuffer() argument 1007 if (expectedSize < 0) { in JHwParcel_native_readBuffer() 1012 status_t status = parcel->readBuffer(expectedSize, &handle, &ptr); in JHwParcel_native_readBuffer() 1023 JNIEnv *env, jobject thiz, jlong expectedSize, in JHwParcel_native_readEmbeddedBuffer() argument 1032 parcel->readNullableEmbeddedBuffer(expectedSize, in JHwParcel_native_readEmbeddedBuffer() 1035 if (expectedSize < 0) { in JHwParcel_native_readEmbeddedBuffer()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpManager.java | 149 byte[] getObject(int deviceId, int objectHandle, int expectedSize) in getObject() argument 154 device.getObject(objectHandle, expectedSize), in getObject()
|
/frameworks/hardware/interfaces/cameraservice/vts/functional/ |
D | VtsHalCameraServiceV2_0TargetTest.cpp | 216 size_t expectedSize = metadata.size(); in convertFromHidlCloned() local 217 int ret = validate_camera_metadata_structure(buffer, &expectedSize); in convertFromHidlCloned()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | TestMtpManager.java | 211 byte[] getObject(int deviceId, int objectHandle, int expectedSize) throws IOException { in getObject() argument
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | CameraMetadataTest.java | 1335 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/ |
D | BugreportReceiverTest.java | 823 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/ |
D | CameraProviderManager.cpp | 1946 size_t expectedSize = metadata.size(); in __anon330ebd180e02() local 1947 int res = validate_camera_metadata_structure(buffer, &expectedSize); in __anon330ebd180e02() 2025 size_t expectedSize = metadata.size(); in __anon330ebd180f02() local 2026 int res = validate_camera_metadata_structure(buffer, &expectedSize); in __anon330ebd180f02()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 6905 const uint32_t expectedSize = dtohl(header->header.size) - dtohl(header->header.headerSize); in load() local 6906 if (entryCount > (expectedSize / sizeof(ResTable_lib_entry))) { in load() 6908 expectedSize, entryCount, (uint32_t)sizeof(ResTable_lib_entry)); in load()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3Device.cpp | 4082 size_t expectedSize = request.size(); in constructDefaultRequestSettings() local 4083 int ret = validate_camera_metadata_structure(r, &expectedSize); in constructDefaultRequestSettings()
|