/cts/suite/audio_quality/test/ |
D | BufferTest.cpp | 39 const int BUFFER_SIZE = 32; in TEST_F() local 41 std::unique_ptr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true)); in TEST_F() 45 for (int i = 0; i < BUFFER_SIZE/4; i++) { in TEST_F() 54 ASSERT_TRUE(bufferRead->getSize() == (size_t)BUFFER_SIZE); in TEST_F() 57 for (int i = 0; i < BUFFER_SIZE/4; i++) { in TEST_F() 64 const int BUFFER_SIZE = 8; in TEST_F() local 66 std::unique_ptr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true)); in TEST_F() 70 for (int i = 0; i < BUFFER_SIZE/2; i++) { in TEST_F() 73 std::unique_ptr<Buffer> bufferl(new Buffer(BUFFER_SIZE/2, BUFFER_SIZE/2, false)); in TEST_F() 77 for (int i = 0; i < BUFFER_SIZE/4; i++) { in TEST_F()
|
/cts/tests/filesystem/src/android/filesystem/cts/ |
D | SequentialRWTest.java | 46 private static final int BUFFER_SIZE = 10 * 1024 * 1024; field in SequentialRWTest 58 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialWrite() 62 final int numberOfFiles =(int)(fileSize / BUFFER_SIZE); in testSingleSequentialWrite() 66 final byte[] data = FileUtil.generateRandomData(BUFFER_SIZE); in testSingleSequentialWrite() 78 double[] mbps = Stat.calcRatePerSecArray((double)BUFFER_SIZE / 1024 / 1024, times); in testSingleSequentialWrite() 89 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate() 95 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE, in testSingleSequentialUpdate() local 102 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialRead() 119 final byte[] data = new byte[BUFFER_SIZE]; in testSingleSequentialRead() 128 read += BUFFER_SIZE; in testSingleSequentialRead()
|
D | AlmostFullTest.java | 75 final long MAX_FILE_SIZE_TO_FILL = FileUtil.BUFFER_SIZE * 100L; in setUp() 116 final int BUFFER_SIZE = 10 * 1024 * 1024; in testSequentialUpdate() local 119 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, FILE_SIZE, BUFFER_SIZE, in testSequentialUpdate() local 127 final int BUFFER_SIZE = 4 * 1024; in testRandomRead() local 136 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, BUFFER_SIZE); in testRandomRead() local 142 final int BUFFER_SIZE = 4 * 1024; in testRandomUpdate() local 151 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, BUFFER_SIZE); in testRandomUpdate() local
|
D | RandomRWTest.java | 72 if (fileSize > FileUtil.BUFFER_SIZE) { in testRandomUpdate()
|
D | FileUtil.java | 45 public static final int BUFFER_SIZE = 10 * 1024 * 1024; field in FileUtil 147 byte[] data = generateRandomData(BUFFER_SIZE); in createNewFilledFile() 150 int toWrite = (int) Math.min(BUFFER_SIZE, length - file.length()); in createNewFilledFile()
|
/cts/tests/tests/mediastress/jni/ |
D | native-media-jni.cpp | 79 #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); in enqueueInitialBuffers() 109 ALOGV("Initially queueing %zu buffers of %u bytes each", nbRead, BUFFER_SIZE); in enqueueInitialBuffers() 116 dataCache + i*BUFFER_SIZE, BUFFER_SIZE, NULL, 0); in enqueueInitialBuffers() 154 assert(BUFFER_SIZE == dataSize); in AndroidBufferQueueCallback() 156 &dataCache[BUFFER_SIZE * NB_BUFFERS]); in AndroidBufferQueueCallback() 157 assert(0 == (((char *) pBufferData - dataCache) % BUFFER_SIZE)); in AndroidBufferQueueCallback() 166 nbRead = fread(pBufferData, BUFFER_SIZE, 1, file); in AndroidBufferQueueCallback() 171 nbRead * BUFFER_SIZE /*dataLength*/, in AndroidBufferQueueCallback()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioPlaybackCaptureTest.java | 74 private static final int BUFFER_SIZE = SAMPLE_RATE * 2; // 1s at 44.1k/s 16bit mono field in AudioPlaybackCaptureTest 228 ByteBuffer rawBuffer = readToBuffer(audioRecord, BUFFER_SIZE); in testPlaybackCapture() 403 ByteBuffer rawBuffer = readToBuffer(audioRecord, BUFFER_SIZE); in testStopMediaProjectionDuringCapture() 427 ByteBuffer buffer = ByteBuffer.allocateDirect(BUFFER_SIZE); in testStopMediaProjectionDuringCapture() 429 while ((status = audioRecord.read(buffer, BUFFER_SIZE)) > 0) { in testStopMediaProjectionDuringCapture() 439 audioRecord.read(buffer, BUFFER_SIZE), lessThan(0)); in testStopMediaProjectionDuringCapture() 483 ByteBuffer rawBuffer = readToBuffer(audioRecord, BUFFER_SIZE); in testPlaybackCaptureDoS() 495 ByteBuffer rawBuffer = readToBuffer(audioRecords.peek(), BUFFER_SIZE); in testPlaybackCaptureDoS()
|
D | AudioRecordTest.java | 198 final int BUFFER_SIZE = 102400; in testAudioRecordOP() local 199 byte[] byteData = new byte[BUFFER_SIZE]; in testAudioRecordOP() 205 mAudioRecord.read(byteData, 0, BUFFER_SIZE); in testAudioRecordOP() 214 short[] shortData = new short[BUFFER_SIZE]; in testAudioRecordOP() 220 mAudioRecord.read(shortData, 0, BUFFER_SIZE); in testAudioRecordOP() 229 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE); in testAudioRecordOP() 235 mAudioRecord.read(byteBuffer, BUFFER_SIZE); in testAudioRecordOP() 258 mAudioRecord.read(byteData, 0, BUFFER_SIZE); in testAudioRecordOP()
|
D | MediaSyncTest.java | 293 final int BUFFER_SIZE = 1024; in runFlush() local 329 ByteBuffer buffer1 = ByteBuffer.allocate(BUFFER_SIZE); in runFlush() 330 ByteBuffer buffer2 = ByteBuffer.allocate(BUFFER_SIZE); in runFlush()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | PowerTestHostLink.java | 106 final int BUFFER_SIZE = 4096; in run() local 107 byte[] buffer = new byte[BUFFER_SIZE]; in run() 148 if (total < BUFFER_SIZE) { in run() 150 (BUFFER_SIZE - total)); in run()
|
/cts/apps/CameraITS/pymodules/its/ |
D | device.py | 51 BUFFER_SIZE = 4096 variable in ItsSession
|