Home
last modified time | relevance | path

Searched refs:dataLength (Results 1 – 5 of 5) sorted by relevance

/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DIcmpMessage.java37 int dataLength = length - 8; in IcmpMessage() local
38 data = new byte[dataLength]; in IcmpMessage()
39 int len = stream.read(data, 0, dataLength); in IcmpMessage()
40 if (len != dataLength) { in IcmpMessage()
41 throw new IOException("Expected " + dataLength + " data bytes, received " + len); in IcmpMessage()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/suplClient/
DSuplTcpClient.java66 short dataLength = ByteBuffer.wrap(lengthArray).getShort(); in getSuplResponse() local
67 bufferedInputStream.read(SUPL_RESPONSE_BUFFER, 2, dataLength - HEADER_SIZE); in getSuplResponse()
/cts/tests/tests/media/misc/jni/
DAImageReaderCts.cpp409 int dataLength = 0; in HandleImageAvailable() local
410 ret = AImage_getPlaneData(img.get(), 0, &data, &dataLength); in HandleImageAvailable()
413 if (ret != AMEDIA_OK || data == nullptr || dataLength < 0) { in HandleImageAvailable()
415 dataLength); in HandleImageAvailable()
419 if (ret != AMEDIA_IMGREADER_CANNOT_LOCK_IMAGE || data != nullptr || dataLength != 0) { in HandleImageAvailable()
421 data, dataLength); in HandleImageAvailable()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp753 int dataLength = 0; in validateImageCb() local
754 ret = AImage_getPlaneData(img, /*planeIdx*/0, &data, &dataLength); in validateImageCb()
755 if (ret != AMEDIA_OK || data == nullptr || dataLength <= 0) { in validateImageCb()
757 __FUNCTION__, img, ret, data, dataLength); in validateImageCb()
769 fwrite(data, 1, dataLength, file); in validateImageCb()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackTest.java1335 int dataLength = -10; in testWriteByteNegativeSize() local
1336 assertTrue(TEST_NAME, track.write(data, OFFSET_DEFAULT, dataLength) in testWriteByteNegativeSize()
1360 int dataLength = -10; in testWriteShortNegativeSize() local
1361 assertTrue(TEST_NAME, track.write(data, OFFSET_DEFAULT, dataLength) in testWriteShortNegativeSize()