Home
last modified time | relevance | path

Searched refs:Buffer (Results 1 – 25 of 41) sorted by relevance

12

/cts/suite/audio_quality/test/
DBufferTest.cpp41 std::unique_ptr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true)); in TEST_F()
52 std::unique_ptr<Buffer> bufferRead(Buffer::loadFromFile(file)); in TEST_F()
66 std::unique_ptr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true)); in TEST_F()
73 std::unique_ptr<Buffer> bufferl(new Buffer(BUFFER_SIZE/2, BUFFER_SIZE/2, false)); in TEST_F()
80 buffer->changeToMono(Buffer::EKeepCh0); in TEST_F()
DSignalProcessingInterfaceTest.cpp53 android::sp<Buffer> in0(new Buffer(160000, 160000, true)); in TEST_F()
58 android::sp<Buffer> in1(new Buffer(8, 8, false)); in TEST_F()
67 android::sp<Buffer> out0(new Buffer(160000, 160000, true)); in TEST_F()
72 android::sp<Buffer> out1(new Buffer(8, 8, false)); in TEST_F()
149 android::sp<Buffer> in0(new Buffer(16, 16, true)); in TEST_F()
154 android::sp<Buffer> in1(new Buffer(16, 16, true)); in TEST_F()
159 android::sp<Buffer> in2(new Buffer(8, 8, false)); in TEST_F()
164 android::sp<Buffer> in3(new Buffer(8, 8, false)); in TEST_F()
175 android::sp<Buffer> out0(new Buffer(16, 16, true)); in TEST_F()
180 android::sp<Buffer> out1(new Buffer(8, 8, false)); in TEST_F()
DTaskCaseTest.cpp40 android::sp<Buffer> buffer1(new Buffer(4, 4, true)); in TEST_F()
41 android::sp<Buffer> buffer2(new Buffer(4, 4, true)); in TEST_F()
42 android::sp<Buffer> buffer3(new Buffer(4, 4, true)); in TEST_F()
43 android::sp<Buffer> buffer4(new Buffer(4, 4, true)); in TEST_F()
54 android::sp<Buffer> buffer1f = mTaskCase->findBuffer(BUFFER1); in TEST_F()
110 Buffer buffer1(4, 4, true); in TEST_F()
111 Buffer buffer2(4, 4, true); in TEST_F()
112 Buffer buffer3(4, 4, true); in TEST_F()
113 Buffer buffer4(4, 4, true); in TEST_F()
DAudioSignalFactoryTest.cpp25 void testSignalBasic(android::sp<Buffer>& buffer, int maxPositive, in testSignalBasic()
44 android::sp<Buffer> buffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS, in TEST_F()
53 android::sp<Buffer> buffer = AudioSignalFactory::generateWhiteNoise(AudioHardware::E2BPS, in TEST_F()
DAudioRecordPlayTestCommon.h35 android::sp<Buffer> mBufferRecording;
36 android::sp<Buffer> mBufferPlayback;
54 mBufferRecording = new Buffer(NUMBER_SAMPLES * 4, NUMBER_SAMPLES * 4); in SetUp()
DAudioLocalTest.cpp31 android::sp<Buffer> mBufferPassed;
54 virtual bool doPlaybackOrRecord(android::sp<Buffer>& buffer) { in doPlaybackOrRecord()
DClientInterfaceTest.cpp67 android::sp<Buffer> buffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS, in TEST_F()
86 android::sp<Buffer> buffer(new Buffer(samples * 2, samples * 2, false)); in TEST_F()
/cts/suite/audio_quality/lib/src/audio/
DBuffer.cpp24 Buffer::Buffer(size_t capacity, size_t size, bool stereo) in Buffer() function in Buffer
39 Buffer::~Buffer() in ~Buffer()
45 void Buffer::changeToMono(ConvertOption option) in changeToMono()
72 bool Buffer::changeToStereo() in changeToStereo()
80 Buffer* Buffer::loadFromFile(const android::String8& filename) in loadFromFile()
98 Buffer* buffer = new Buffer(size, size, stereo); in loadFromFile()
108 bool Buffer::saveToFile(const android::String8& filename) in saveToFile()
133 bool Buffer::operator == (const Buffer& b) const in operator ==()
DAudioSignalFactory.cpp23 android::sp<Buffer> AudioSignalFactory::generateSineWave(AudioHardware::BytesPerSample BPS, in generateSineWave()
28 android::sp<Buffer> buffer(new Buffer(bufferSize)); in generateSineWave()
45 android::sp<Buffer> AudioSignalFactory::generateWhiteNoise(AudioHardware::BytesPerSample BPS, in generateWhiteNoise()
49 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize)); in generateWhiteNoise()
70 android::sp<Buffer> AudioSignalFactory::generateZeroSound(AudioHardware::BytesPerSample BPS, in generateZeroSound()
74 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize)); in generateZeroSound()
DAudioRemote.cpp45 bool AudioRemotePlayback::startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition) in startPlaybackOrRecord()
72 bool AudioRemoteRecording::startPlaybackOrRecord(android::sp<Buffer>& buffer, in startPlaybackOrRecord()
/cts/suite/audio_quality/lib/include/audio/
DBuffer.h33 class Buffer: public virtual android::RefBase {
35 explicit Buffer(size_t capacity, size_t size = 0, bool stereo = true);
37 virtual ~Buffer();
114 bool operator ==(const Buffer& b) const;
120 static Buffer* loadFromFile(const android::String8& filename);
DAudioSignalFactory.h30 static android::sp<Buffer> generateSineWave(AudioHardware::BytesPerSample BPS,
33 static android::sp<Buffer> generateWhiteNoise(AudioHardware::BytesPerSample BPS,
35 static android::sp<Buffer> generateZeroSound(AudioHardware::BytesPerSample BPS,
DAudioLocal.h28 class Buffer; variable
38 virtual bool startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition = 1);
47 virtual bool doPlaybackOrRecord(android::sp<Buffer>& buffer) = 0;
73 android::sp<Buffer> mBuffer;
DAudioRemote.h47 virtual bool startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition = 1);
57 virtual bool startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition = 1);
DRemoteAudio.h48 bool downloadData(const android::String8& name, android::sp<Buffer>& buffer, int& id);
57 android::sp<Buffer>& buffer);
149 std::map<int, android::sp<Buffer> > mBufferList;
DAudioPlaybackLocal.h34 bool doPlaybackOrRecord(android::sp<Buffer>& buffer);
DAudioRecordingLocal.h34 bool doPlaybackOrRecord(android::sp<Buffer>& buffer);
/cts/suite/audio_quality/lib/include/task/
DTaskCase.h43 bool registerBuffer(const android::String8& name, android::sp<Buffer>& buffer);
45 bool updateBuffer(const android::String8& name, android::sp<Buffer>& buffer);
47 android::sp<Buffer> findBuffer(const android::String8& name);
48 typedef std::pair<android::String8, android::sp<Buffer> > BufferPair;
132 std::map<android::String8, android::sp<Buffer> > mBufferList;
DTaskSound.h33 android::sp<Buffer> mBuffer;
DTaskInput.h36 android::sp<Buffer> mBuffer;
/cts/tests/tests/opengl/src/android/opengl/cts/
DByteBufferTest.java24 import java.nio.Buffer;
56 Buffer mappedBuffer = glMapBufferRange(GL_UNIFORM_BUFFER, 0, 1024, GL_MAP_READ_BIT); in testMapBufferRange()
61 Buffer pointerBuffer = glGetBufferPointerv(GL_UNIFORM_BUFFER, GL_BUFFER_MAP_POINTER); in testMapBufferRange()
/cts/suite/audio_quality/lib/src/task/
DTaskInput.cpp64 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize, localDevice)); in start()
95 mBuffer->changeToMono(Buffer::EKeepCh0); in complete()
DTaskCase.cpp138 bool TaskCase::registerBuffer(const android::String8& orig, android::sp<Buffer>& buffer) in registerBuffer()
144 return registerGeneric<android::sp<Buffer> >(mBufferList, translated, buffer); in registerBuffer()
147 bool TaskCase::updateBuffer(const android::String8& orig, android::sp<Buffer>& buffer) in updateBuffer()
153 return updateGeneric<android::sp<Buffer> >(mBufferList, translated, buffer); in updateBuffer()
156 android::sp<Buffer> TaskCase::findBuffer(const android::String8& orig) in findBuffer()
159 android::sp<Buffer> result; in findBuffer()
163 findGeneric<android::sp<Buffer> >(mBufferList, translated, result); in findBuffer()
173 return findAllGeneric<android::sp<Buffer> >(mBufferList, translated.string()); in findAllBuffers()
/cts/suite/audio_quality/lib/src/
DSignalProcessingImpl.cpp129 android::sp<Buffer>* buffer = reinterpret_cast<android::sp<Buffer>*>(inputs[i]); in run()
191 android::sp<Buffer>* buffer = reinterpret_cast<android::sp<Buffer>*>(outputs[i]); in run()
193 *buffer = new Buffer(dataLen, dataLen, (type == EAudioStereo) ? true: false); in run()
DBuiltinProcessing.cpp50 android::sp<Buffer>& data(*reinterpret_cast<android::sp<Buffer>*>(inputs[0])); in rms_mva()

12