/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/hostsidetests/securitybulletin/securityPatch/CVE-2018-9466/ |
D | poc-CVE-2017-9047.c | 20 #define BUFFER_SIZE 64 macro 23 char buf[BUFFER_SIZE]; in main() 34 memset(buf, 0, BUFFER_SIZE); in main() 35 xmlSnprintfElementContent(buf, BUFFER_SIZE, &content, 1); in main()
|
D | poc-CVE-2017-9048.c | 20 #define BUFFER_SIZE 64 macro 23 char buf[BUFFER_SIZE]; in main() 32 memset(buf, 0, BUFFER_SIZE); in main() 33 xmlSnprintfElementContent(buf, BUFFER_SIZE, &content, 1); in main()
|
/cts/tests/filesystem/src/android/filesystem/cts/ |
D | SequentialRWTest.java | 52 private static final int BUFFER_SIZE = 10 * 1024 * 1024; field in SequentialRWTest 77 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialWrite() 81 final int numberOfFiles =(int)(fileSize / BUFFER_SIZE); in testSingleSequentialWrite() 85 final byte[] data = FileUtil.generateRandomData(BUFFER_SIZE); in testSingleSequentialWrite() 97 double[] mbps = Stat.calcRatePerSecArray((double)BUFFER_SIZE / 1024 / 1024, times); in testSingleSequentialWrite() 114 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate() 120 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE, in testSingleSequentialUpdate() local 127 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialRead() 144 final byte[] data = new byte[BUFFER_SIZE]; in testSingleSequentialRead() 153 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 | 93 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 | 75 private static final int BUFFER_SIZE = SAMPLE_RATE * 2; // 1s at 44.1k/s 16bit mono field in AudioPlaybackCaptureTest 229 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() 497 ByteBuffer rawBuffer = readToBuffer(audioRecords.peek(), BUFFER_SIZE); in testPlaybackCaptureDoS()
|
D | AudioRecordTest.java | 206 final int BUFFER_SIZE = 102400; in testAudioRecordOP() local 207 byte[] byteData = new byte[BUFFER_SIZE]; in testAudioRecordOP() 213 mAudioRecord.read(byteData, 0, BUFFER_SIZE); in testAudioRecordOP() 222 short[] shortData = new short[BUFFER_SIZE]; in testAudioRecordOP() 228 mAudioRecord.read(shortData, 0, BUFFER_SIZE); in testAudioRecordOP() 237 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE); in testAudioRecordOP() 243 mAudioRecord.read(byteBuffer, BUFFER_SIZE); in testAudioRecordOP() 266 mAudioRecord.read(byteData, 0, BUFFER_SIZE); in testAudioRecordOP()
|
D | MediaSyncTest.java | 291 final int BUFFER_SIZE = 1024; in runFlush() local 327 ByteBuffer buffer1 = ByteBuffer.allocate(BUFFER_SIZE); in runFlush() 328 ByteBuffer buffer2 = ByteBuffer.allocate(BUFFER_SIZE); in runFlush()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13241/ |
D | poc.cpp | 20 #define BUFFER_SIZE 12 macro 63 params->nBufferSize = BUFFER_SIZE; in main()
|
/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/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | HdmiCecClientWrapper.java | 44 private static final int BUFFER_SIZE = 1024; field in HdmiCecClientWrapper 114 BUFFER_SIZE); in initValidCecClient()
|
/cts/apps/CameraITS/utils/ |
D | its_session_utils.py | 73 BUFFER_SIZE = 4096 variable in ItsSession
|