Searched refs:dataLength (Results 1 – 6 of 6) sorted by relevance
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
D | IcmpMessage.java | 37 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/tests/media/libimagereaderjni/ |
D | AImageReaderCts.cpp | 414 int dataLength = 0; in HandleImageAvailable() local 415 ret = AImage_getPlaneData(img.get(), 0, &data, &dataLength); in HandleImageAvailable() 418 if (ret != AMEDIA_OK || data == nullptr || dataLength < 0) { in HandleImageAvailable() 420 dataLength); in HandleImageAvailable() 424 if (ret != AMEDIA_IMGREADER_CANNOT_LOCK_IMAGE || data != nullptr || dataLength != 0) { in HandleImageAvailable() 426 data, dataLength); in HandleImageAvailable()
|
/cts/tests/tests/location/src/android/location/cts/suplClient/ |
D | SuplTcpClient.java | 66 short dataLength = ByteBuffer.wrap(lengthArray).getShort(); in getSuplResponse() local 67 bufferedInputStream.read(SUPL_RESPONSE_BUFFER, 2, dataLength - HEADER_SIZE); in getSuplResponse()
|
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | AudioProtocol.java | 224 int dataLength = len - 4; in handleDownload() local 225 ByteBuffer data = ByteBuffer.allocate(dataLength); in handleDownload() 226 read(mInput, data, dataLength); in handleDownload() 228 Log.d(TAG, "downloaded data id " + id + " len " + dataLength); in handleDownload()
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 624 int dataLength = 0; in validateImageCb() local 625 ret = AImage_getPlaneData(img, /*planeIdx*/0, &data, &dataLength); in validateImageCb() 626 if (ret != AMEDIA_OK || data == nullptr || dataLength <= 0) { in validateImageCb() 628 __FUNCTION__, img, ret, data, dataLength); in validateImageCb() 640 fwrite(data, 1, dataLength, file); in validateImageCb()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackTest.java | 1302 int dataLength = -10; in testWriteByteNegativeSize() local 1303 assertTrue(TEST_NAME, track.write(data, OFFSET_DEFAULT, dataLength) in testWriteByteNegativeSize() 1327 int dataLength = -10; in testWriteShortNegativeSize() local 1328 assertTrue(TEST_NAME, track.write(data, OFFSET_DEFAULT, dataLength) in testWriteShortNegativeSize()
|