Searched refs:BUFFER_SIZE (Results 1 - 10 of 10) sorted by relevance

/cts/suite/audio_quality/test/
H A DBufferTest.cpp39 const int BUFFER_SIZE = 32; local
41 UniquePtr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true));
45 for (int i = 0; i < BUFFER_SIZE/4; i++) {
54 ASSERT_TRUE(bufferRead->getSize() == (size_t)BUFFER_SIZE);
57 for (int i = 0; i < BUFFER_SIZE/4; i++) {
64 const int BUFFER_SIZE = 8; local
66 UniquePtr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true));
70 for (int i = 0; i < BUFFER_SIZE/
[all...]
/cts/tests/filesystem/src/android/filesystem/cts/
H A DSequentialRWTest.java37 private static final int BUFFER_SIZE = 10 * 1024 * 1024; field in class:SequentialRWTest
48 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE);
52 final int numberOfFiles =(int)(fileSize / BUFFER_SIZE);
56 final byte[] data = FileUtil.generateRandomData(BUFFER_SIZE);
68 double[] mbps = Stat.calcRatePerSecArray((double)BUFFER_SIZE / 1024 / 1024, times);
78 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE);
84 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE,
89 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE);
106 final byte[] data = new byte[BUFFER_SIZE];
115 read += BUFFER_SIZE;
[all...]
H A DAlmostFullTest.java107 final int BUFFER_SIZE = 10 * 1024 * 1024;
110 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, FILE_SIZE, BUFFER_SIZE,
117 final int BUFFER_SIZE = 4 * 1024;
126 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, BUFFER_SIZE);
131 final int BUFFER_SIZE = 4 * 1024;
140 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, BUFFER_SIZE);
H A DFileUtil.java143 final int BUFFER_SIZE = 10 * 1024 * 1024;
146 byte[] data = generateRandomData(BUFFER_SIZE);
150 written += BUFFER_SIZE;
/cts/tools/vm-tests-tf/src/util/build/
H A DBytesStreamSucker.java31 private static final int BUFFER_SIZE = 4096; field in class:BytesStreamSucker
34 private final byte[] buffer = new byte[BUFFER_SIZE];
/cts/tests/tests/mediastress/jni/
H A Dnative-media-jni.cpp79 #define BUFFER_SIZE (BLOCKS_PER_BUFFER*MPEG2_TS_BLOCK_SIZE) macro
83 char dataCache[BUFFER_SIZE * NB_BUFFERS];
102 nbRead = fread(dataCache, BUFFER_SIZE, NB_BUFFERS, file);
109 ALOGV("Initially queueing %u buffers of %u bytes each", nbRead, BUFFER_SIZE);
116 dataCache + i*BUFFER_SIZE, BUFFER_SIZE, NULL, 0);
154 assert(BUFFER_SIZE == dataSize);
156 &dataCache[BUFFER_SIZE * NB_BUFFERS]);
157 assert(0 == (((char *) pBufferData - dataCache) % BUFFER_SIZE));
166 nbRead = fread(pBufferData, BUFFER_SIZE,
[all...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
H A DPowerTestHostLink.java106 final int BUFFER_SIZE = 4096;
107 byte[] buffer = new byte[BUFFER_SIZE];
148 if (total < BUFFER_SIZE) {
150 (BUFFER_SIZE - total));
/cts/tests/tests/media/src/android/media/cts/
H A DAudioRecordTest.java165 final int BUFFER_SIZE = 102400;
166 byte[] byteData = new byte[BUFFER_SIZE];
172 mAudioRecord.read(byteData, 0, BUFFER_SIZE);
181 short[] shortData = new short[BUFFER_SIZE];
187 mAudioRecord.read(shortData, 0, BUFFER_SIZE);
196 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
202 mAudioRecord.read(byteBuffer, BUFFER_SIZE);
225 mAudioRecord.read(byteData, 0, BUFFER_SIZE);
H A DMediaSyncTest.java290 final int BUFFER_SIZE = 1024;
326 ByteBuffer buffer1 = ByteBuffer.allocate(BUFFER_SIZE);
327 ByteBuffer buffer2 = ByteBuffer.allocate(BUFFER_SIZE);
/cts/apps/CameraITS/pymodules/its/
H A Ddevice.py49 BUFFER_SIZE = 4096 variable in class:ItsSession

Completed in 291 milliseconds