/cts/suite/audio_quality/test/ |
D | BufferTest.cpp | 41 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()
|
D | SignalProcessingInterfaceTest.cpp | 53 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()
|
D | TaskCaseTest.cpp | 40 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()
|
D | AudioSignalFactoryTest.cpp | 25 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()
|
D | AudioRecordPlayTestCommon.h | 35 android::sp<Buffer> mBufferRecording; 36 android::sp<Buffer> mBufferPlayback; 54 mBufferRecording = new Buffer(NUMBER_SAMPLES * 4, NUMBER_SAMPLES * 4); in SetUp()
|
D | AudioLocalTest.cpp | 31 android::sp<Buffer> mBufferPassed; 54 virtual bool doPlaybackOrRecord(android::sp<Buffer>& buffer) { in doPlaybackOrRecord()
|
D | ClientInterfaceTest.cpp | 67 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/ |
D | Buffer.cpp | 24 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 ==()
|
D | AudioSignalFactory.cpp | 23 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()
|
D | AudioRemote.cpp | 45 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/ |
D | Buffer.h | 33 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);
|
D | AudioSignalFactory.h | 30 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,
|
D | AudioLocal.h | 28 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;
|
D | AudioRemote.h | 47 virtual bool startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition = 1); 57 virtual bool startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition = 1);
|
D | RemoteAudio.h | 48 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;
|
D | AudioPlaybackLocal.h | 34 bool doPlaybackOrRecord(android::sp<Buffer>& buffer);
|
D | AudioRecordingLocal.h | 34 bool doPlaybackOrRecord(android::sp<Buffer>& buffer);
|
/cts/suite/audio_quality/lib/include/task/ |
D | TaskCase.h | 43 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;
|
D | TaskSound.h | 33 android::sp<Buffer> mBuffer;
|
D | TaskInput.h | 36 android::sp<Buffer> mBuffer;
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | ByteBufferTest.java | 24 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/ |
D | TaskInput.cpp | 64 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize, localDevice)); in start() 95 mBuffer->changeToMono(Buffer::EKeepCh0); in complete()
|
D | TaskCase.cpp | 138 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/ |
D | SignalProcessingImpl.cpp | 129 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()
|
D | BuiltinProcessing.cpp | 50 android::sp<Buffer>& data(*reinterpret_cast<android::sp<Buffer>*>(inputs[0])); in rms_mva()
|