Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java172 byte[] expectedBytes = null; in testReadMockData()
174 expectedBytes = Base64.decode(expected[1], Base64.DEFAULT); in testReadMockData()
181 (expectedBytes == null ? -1: expectedBytes.length), dataSize); in testReadMockData()
202 byte[] expectedBytes = null; in testReadRealData()
204 expectedBytes = Base64.decode(expected[1], Base64.DEFAULT); in testReadRealData()
211 (expectedBytes == null ? -1: expectedBytes.length), dataSize); in testReadRealData()
/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DFakeBlobData.java183 final byte[] expectedBytes = new byte[lengthBytes]; in readFromSessionAndVerifyBytes()
185 read(in, expectedBytes, offsetBytes, lengthBytes); in readFromSessionAndVerifyBytes()
194 assertThat(actualBytes).isEqualTo(expectedBytes); in readFromSessionAndVerifyBytes()
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java290 int expectedBytes = mPreviewSize.width * mPreviewSize.height * in startPreview() local
293 mCamera.addCallbackBuffer(new byte[expectedBytes]); in startPreview()
352 int expectedBytes = mPreviewSize.width * mPreviewSize.height * in onPreviewFrame() local
355 if (expectedBytes != data.length) { in onPreviewFrame()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/
DAppMetadataBackupWriterTest.java274 ByteArrayOutputStream expectedBytes = new ByteArrayOutputStream(); in testBackupWidget_writesCorrectData() local
275 DataOutputStream stream = new DataOutputStream(expectedBytes); in testBackupWidget_writesCorrectData()
280 assertThat(widgetData[2]).isEqualTo(expectedBytes.toString()); in testBackupWidget_writesCorrectData()
/frameworks/base/media/java/android/media/audiofx/
DDynamicsProcessing.java2154 int expectedBytes = 0; in numberArrayToByteArray() local
2157 expectedBytes += Integer.BYTES; in numberArrayToByteArray()
2159 expectedBytes += Float.BYTES; in numberArrayToByteArray()
2165 ByteBuffer converter = ByteBuffer.allocate(expectedBytes); in numberArrayToByteArray()