Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 17 of 17) sorted by relevance

/cts/suite/cts/deviceTests/dram/jni/
DMemoryNativeJni.cpp30 jclass clazz, jint bufferSize, jint repetition) in Java_com_android_cts_dram_MemoryNative_runMemcpy() argument
32 char* src = new char[bufferSize]; in Java_com_android_cts_dram_MemoryNative_runMemcpy()
33 char* dst = new char[bufferSize]; in Java_com_android_cts_dram_MemoryNative_runMemcpy()
40 memset(src, 0, bufferSize); in Java_com_android_cts_dram_MemoryNative_runMemcpy()
41 memset(dst, 0, bufferSize); in Java_com_android_cts_dram_MemoryNative_runMemcpy()
44 memcpy(dst, src, bufferSize); in Java_com_android_cts_dram_MemoryNative_runMemcpy()
45 src[bufferSize - 1] = i & 0xff; in Java_com_android_cts_dram_MemoryNative_runMemcpy()
54 jclass clazz, jint bufferSize, jint repetition, jint c) in Java_com_android_cts_dram_MemoryNative_runMemset() argument
56 char* dst = new char[bufferSize]; in Java_com_android_cts_dram_MemoryNative_runMemset()
62 memset(dst, 0, bufferSize); in Java_com_android_cts_dram_MemoryNative_runMemset()
[all …]
/cts/suite/audio_quality/lib/src/audio/
DAudioSignalFactory.cpp27 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateSineWave() local
28 android::sp<Buffer> buffer(new Buffer(bufferSize)); in generateSineWave()
48 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateWhiteNoise() local
49 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize)); in generateWhiteNoise()
73 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateZeroSound() local
74 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize)); in generateZeroSound()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecord_BufferSizeTest.java68 int bufferSize = AudioRecord.getMinBufferSize(sampleRateInHz, CHANNEL_CONFIG, AUDIO_FORMAT); in record() local
69 assertTrue(bufferSize > 0); in record()
71 createAudioRecord(sampleRateInHz, bufferSize); in record()
81 byte[] buffer = new byte[bufferSize]; in record()
82 assertTrue(mAudioRecord.read(buffer, 0, bufferSize) > 0); in record()
91 private void createAudioRecord(final int sampleRateInHz, final int bufferSize) { in createAudioRecord() argument
93 CHANNEL_CONFIG, AUDIO_FORMAT, bufferSize); in createAudioRecord()
DRoutingTest.java56 int bufferSize = in allocAudioTrack() local
67 bufferSize, in allocAudioTrack()
149 int bufferSize = in allocAudioRecord() local
159 bufferSize); in allocAudioRecord()
234 public AudioTrackFiller(AudioTrack audioTrack, int bufferSize) { in AudioTrackFiller() argument
236 mBufferSize = bufferSize; in AudioTrackFiller()
258 int bufferSize = in test_audioTrack_getRoutedDevice() local
269 bufferSize, in test_audioTrack_getRoutedDevice()
272 AudioTrackFiller filler = new AudioTrackFiller(audioTrack, bufferSize); in test_audioTrack_getRoutedDevice()
299 public AudioRecordPuller(AudioRecord audioRecord, int bufferSize) { in AudioRecordPuller() argument
[all …]
DNonBlockingAudioTrack.java70 int bufferSize = 2 * minBufferSize; in NonBlockingAudioTrack() local
78 bufferSize, in NonBlockingAudioTrack()
92 mAudioTrack = new AudioTrack(audioAttributes, audioFormat, bufferSize, in NonBlockingAudioTrack()
DMediaMuxerTest.java203 int bufferSize = MAX_SAMPLE_SIZE; in cloneMediaUsingMuxer() local
207 ByteBuffer dstBuf = ByteBuffer.allocate(bufferSize); in cloneMediaUsingMuxer()
370 int bufferSize = MAX_SAMPLE_SIZE; in verifySamplesMatch() local
371 ByteBuffer byteBufSrc = ByteBuffer.allocate(bufferSize); in verifySamplesMatch()
372 ByteBuffer byteBufTest = ByteBuffer.allocate(bufferSize); in verifySamplesMatch()
DAudioHelper.java215 int format, int bufferSize, boolean isChannelIndex) { in AudioRecordAudit() argument
216 this(audioSource, sampleRate, channelMask, format, bufferSize, isChannelIndex, in AudioRecordAudit()
221 int format, int bufferSize, in AudioRecordAudit() argument
234 bufferSize, in AudioRecordAudit()
DAudioTrackTest.java1407 int bufferSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT); in testReloadStaticData() local
1409 bufferSize, TEST_SR, 1024 /* frequency */, 0 /* sweep */); in testReloadStaticData()
1411 bufferSize, TEST_MODE); in testReloadStaticData()
1413 track.write(data, OFFSET_DEFAULT, bufferSize); in testReloadStaticData()
1463 final int bufferSize = bufferSamples in testPlayStaticData() local
1468 TEST_CONF, TEST_FORMAT, bufferSize, TEST_MODE); in testPlayStaticData()
1686 int bufferSize = 12 * minBufferSize; in testPlayStreamByteBuffer() local
1687 int bufferSamples = bufferSize in testPlayStreamByteBuffer()
1703 ? ByteBuffer.allocateDirect(bufferSize) in testPlayStreamByteBuffer()
1704 : ByteBuffer.allocate(bufferSize); in testPlayStreamByteBuffer()
[all …]
DAudioRecordTest.java126 int bufferSize = AudioRecord.getMinBufferSize(mHz, in testAudioRecordProperties() local
128 assertTrue(bufferSize > 0); in testAudioRecordProperties()
/cts/tests/tests/permission2/src/android/permission2/cts/
DNoCaptureAudioOutputPermissionTest.java41 int bufferSize = AudioRecord.getMinBufferSize(44100, in testCreateAudioRecord() local
44 if (bufferSize <= 0) in testCreateAudioRecord()
51 bufferSize = 44100; in testCreateAudioRecord()
60 AudioFormat.CHANNEL_IN_STEREO, AudioFormat.ENCODING_PCM_16BIT, bufferSize); in testCreateAudioRecord()
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/
DFileUtil.java242 public static long getFileSizeExceedingMemory(Context context, int bufferSize) { in getFileSizeExceedingMemory() argument
245 long diskSizeTarget = (2 * memSize / bufferSize) * bufferSize; in getFileSizeExceedingMemory()
246 final long minimumDiskSize = (512L * 1024L * 1024L / bufferSize) * bufferSize; in getFileSizeExceedingMemory()
247 final long reservedDiskSize = (50L * 1024L * 1024L / bufferSize) * bufferSize; in getFileSizeExceedingMemory()
271 long fileSize, int bufferSize) throws Exception { in doRandomReadTest() argument
275 final byte[] data = FileUtil.generateRandomData(bufferSize); in doRandomReadTest()
277 final int totalReadCount = (int)(fileSize / bufferSize); in doRandomReadTest()
281 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomReadTest()
282 ~(bufferSize - 1); in doRandomReadTest()
326 long fileSize, int bufferSize) throws Exception { in doRandomWriteTest() argument
[all …]
/cts/suite/cts/deviceTests/dram/src/com/android/cts/dram/
DBandwidthTest.java158 private void doRunMemcpy(int bufferSize) { in doRunMemcpy() argument
161 if (bufferSize < (1 * MB)) { in doRunMemcpy()
163 repeatInEachCall *= (1 * MB / bufferSize); in doRunMemcpy()
166 result[i] = MemoryNative.runMemcpy(bufferSize, repeatInEachCall); in doRunMemcpy()
171 (double)bufferSize * repeatInEachCall / 1024.0 / 1024.0, result); in doRunMemcpy()
191 private void doRunMemset(int bufferSize) { in doRunMemset() argument
194 if (bufferSize < (1 * MB)) { in doRunMemset()
196 repeatInEachCall *= (1 * MB / bufferSize); in doRunMemset()
199 result[i] = MemoryNative.runMemset(bufferSize, repeatInEachCall, MEMSET_CHAR); in doRunMemset()
204 (double)bufferSize * repeatInEachCall / 1024.0 / 1024.0, result); in doRunMemset()
DMemoryNative.java30 public static native double runMemcpy(int bufferSize, int repetition); in runMemcpy() argument
40 public static native double runMemset(int bufferSize, int repetition, int c); in runMemset() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioRecordHelper.java27 private final int bufferSize; field in AudioRecordHelper
55 bufferSize = tmpBufferSize; in AudioRecordHelper()
76 audioRecord = new AudioRecord(source, sampleRate, CHANNEL, ENCODING, bufferSize); in start()
103 byte data[] = new byte[bufferSize]; in startPullingData()
105 int read = audioRecord.read(data, 0, bufferSize); in startPullingData()
/cts/suite/audio_quality/lib/src/task/
DTaskInput.cpp62 size_t bufferSize = mRecordingTimeInMs * AudioHardware::ESampleRate_44100 / 1000 * in start() local
64 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize, localDevice)); in start()
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DAudioProtocol.java262 int bufferSize = AudioTrack.getMinBufferSize(samplingRate, in handleStartPlayback()
265 bufferSize = bufferSize * 4; in handleStartPlayback()
266 if (bufferSize < 256 * 1024) { in handleStartPlayback()
267 bufferSize = 256 * 1024; in handleStartPlayback()
269 if (bufferSize > data.capacity()) { in handleStartPlayback()
270 bufferSize = data.capacity(); in handleStartPlayback()
274 AudioFormat.ENCODING_PCM_16BIT, bufferSize, in handleStartPlayback()
283 int dataToWrite = (bufferSize < data.capacity())? bufferSize : data.capacity(); in handleStartPlayback()
296 dataToWrite = (bufferSize < dataLeft)? bufferSize : dataLeft; in handleStartPlayback()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dgbemu.js101 bufferSize : 0, property
123 this.createJavaScriptNode = function (bufferSize, inputChannels, outputChannels) { argument
124 GameBoyAudioNode.bufferSize = bufferSize;
130 GameBoyAudioNode.outputBuffer.channelData[i] = new Float32Array(bufferSize);