/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 | 39 private static final int BUFFER_SIZE = 10 * 1024 * 1024; field in SequentialRWTest 51 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialWrite() 55 final int numberOfFiles =(int)(fileSize / BUFFER_SIZE); in testSingleSequentialWrite() 59 final byte[] data = FileUtil.generateRandomData(BUFFER_SIZE); in testSingleSequentialWrite() 71 double[] mbps = Stat.calcRatePerSecArray((double)BUFFER_SIZE / 1024 / 1024, times); in testSingleSequentialWrite() 81 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate() 87 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE, in testSingleSequentialUpdate() local 93 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialRead() 110 final byte[] data = new byte[BUFFER_SIZE]; in testSingleSequentialRead() 119 read += BUFFER_SIZE; in testSingleSequentialRead()
|
D | AlmostFullTest.java | 107 final int BUFFER_SIZE = 10 * 1024 * 1024; in testSequentialUpdate() local 110 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, FILE_SIZE, BUFFER_SIZE, in testSequentialUpdate() local 117 final int BUFFER_SIZE = 4 * 1024; in testRandomRead() local 126 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, BUFFER_SIZE); in testRandomRead() local 131 final int BUFFER_SIZE = 4 * 1024; in testRandomUpdate() local 140 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, BUFFER_SIZE); in testRandomUpdate() local
|
D | RandomRWTest.java | 62 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 - written); 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 %u 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/common/util/src/com/android/compatibility/common/util/ |
D | StreamUtil.java | 27 private static final int BUFFER_SIZE = 16 * 1024; field in StreamUtil 39 byte[] buf = new byte[BUFFER_SIZE]; in copyStreams()
|
/cts/tools/vm-tests-tf/src/util/build/ |
D | BytesStreamSucker.java | 31 private static final int BUFFER_SIZE = 4096; field in BytesStreamSucker 34 private final byte[] buffer = new byte[BUFFER_SIZE];
|
/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/src/android/media/cts/ |
D | AudioRecordTest.java | 165 final int BUFFER_SIZE = 102400; in testAudioRecordOP() local 166 byte[] byteData = new byte[BUFFER_SIZE]; in testAudioRecordOP() 172 mAudioRecord.read(byteData, 0, BUFFER_SIZE); in testAudioRecordOP() 181 short[] shortData = new short[BUFFER_SIZE]; in testAudioRecordOP() 187 mAudioRecord.read(shortData, 0, BUFFER_SIZE); in testAudioRecordOP() 196 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE); in testAudioRecordOP() 202 mAudioRecord.read(byteBuffer, BUFFER_SIZE); in testAudioRecordOP() 225 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/apps/CameraITS/pymodules/its/ |
D | device.py | 53 BUFFER_SIZE = 4096 variable in ItsSession
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 11281 private static final int BUFFER_SIZE 29582 private static final int BUFFER_SIZE 29617 private static final int BUFFER_SIZE 81113 private static final int BUFFER_SIZE 82166 private static final int BUFFER_SIZE
|
D | classes.out.dex | 98599 private static final int BUFFER_SIZE 98873 private static final int BUFFER_SIZE 131328 static final int BUFFER_SIZE 148081 private static final int BUFFER_SIZE 151956 private static final int BUFFER_SIZE
|