/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 | 56 private static final int BUFFER_SIZE = 10 * 1024 * 1024; field in SequentialRWTest 71 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialWrite() 76 final int numberOfFiles =(int)(fileSize / BUFFER_SIZE); in testSingleSequentialWrite() 80 final byte[] data = FileUtil.generateRandomData(BUFFER_SIZE); in testSingleSequentialWrite() 92 double[] mbps = Stat.calcRatePerSecArray((double)BUFFER_SIZE / 1024 / 1024, times); in testSingleSequentialWrite() 112 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate() 119 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE, in testSingleSequentialUpdate() local 126 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 | 76 final long MAX_FILE_SIZE_TO_FILL = FileUtil.BUFFER_SIZE * 100L; in setUp() 118 final int BUFFER_SIZE = 10 * 1024 * 1024; in testSequentialUpdate() local 121 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, FILE_SIZE, BUFFER_SIZE, in testSequentialUpdate() local 129 final int BUFFER_SIZE = 4 * 1024; in testRandomRead() local 138 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, BUFFER_SIZE); in testRandomRead() local 144 final int BUFFER_SIZE = 4 * 1024; in testRandomUpdate() local 153 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, BUFFER_SIZE); in testRandomUpdate() local
|
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()
|
D | RandomRWTest.java | 93 if (fileSize > FileUtil.BUFFER_SIZE) { in testRandomUpdate()
|
/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/audio/src/android/media/audio/cts/ |
D | AudioPlaybackCaptureTest.java | 78 private static final int BUFFER_SIZE = SAMPLE_RATE * 2; // 1s at 44.1k/s 16bit mono field in AudioPlaybackCaptureTest 232 ByteBuffer rawBuffer = readToBuffer(audioRecord, BUFFER_SIZE); in testPlaybackCapture() 420 ByteBuffer rawBuffer = readToBuffer(audioRecord, BUFFER_SIZE); in testStopMediaProjectionDuringCapture() 444 ByteBuffer buffer = ByteBuffer.allocateDirect(BUFFER_SIZE); in testStopMediaProjectionDuringCapture() 446 while ((status = audioRecord.read(buffer, BUFFER_SIZE)) > 0) { in testStopMediaProjectionDuringCapture() 456 audioRecord.read(buffer, BUFFER_SIZE), lessThan(0)); in testStopMediaProjectionDuringCapture() 500 ByteBuffer rawBuffer = readToBuffer(audioRecord, BUFFER_SIZE); in testPlaybackCaptureDoS() 514 ByteBuffer rawBuffer = readToBuffer(audioRecords.peek(), BUFFER_SIZE); in testPlaybackCaptureDoS()
|
D | AudioRecordTest.java | 212 final int BUFFER_SIZE = 102400; in testAudioRecordOP() local 213 byte[] byteData = new byte[BUFFER_SIZE]; in testAudioRecordOP() 219 mAudioRecord.read(byteData, 0, BUFFER_SIZE); in testAudioRecordOP() 228 short[] shortData = new short[BUFFER_SIZE]; in testAudioRecordOP() 234 mAudioRecord.read(shortData, 0, BUFFER_SIZE); in testAudioRecordOP() 243 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE); in testAudioRecordOP() 249 mAudioRecord.read(byteBuffer, BUFFER_SIZE); in testAudioRecordOP() 272 mAudioRecord.read(byteData, 0, BUFFER_SIZE); in testAudioRecordOP() 1822 final int BUFFER_SIZE = 16000; in testCompressedCaptureAAC() local 1861 public ByteBuffer mByteBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE); in testCompressedCaptureAAC() [all …]
|
/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/tests/tests/media/misc/src/android/media/misc/cts/ |
D | MediaSyncTest.java | 294 final int BUFFER_SIZE = 1024; in runFlush() local 330 ByteBuffer buffer1 = ByteBuffer.allocate(BUFFER_SIZE); in runFlush() 331 ByteBuffer buffer2 = ByteBuffer.allocate(BUFFER_SIZE); in runFlush()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | HdmiCecClientWrapper.java | 47 private static final int BUFFER_SIZE = 1024; field in HdmiCecClientWrapper 142 BUFFER_SIZE); in initValidCecClient()
|
/cts/apps/CameraITS/utils/ |
D | its_session_utils.py | 104 BUFFER_SIZE = 4096 variable in ItsSession
|