Home
last modified time | relevance | path

Searched refs:mBuffer (Results 1 – 16 of 16) sorted by relevance

/cts/suite/audio_quality/lib/src/audio/
DAudioProtocol.cpp31 mBuffer[0] = htonl(mCommand); in sendCommand()
32 mBuffer[1] = 0; in sendCommand()
33 return sendData((char*)mBuffer, 8); in sendCommand()
93 mBuffer[0] = htonl(ECmdDownload); in sendCommand()
94 mBuffer[1] = htonl(4 + param.mBuffer->getSize()); in sendCommand()
95 mBuffer[2] = htonl(param.mId); in sendCommand()
96 if(!sendData((char*)mBuffer, 12)) { in sendCommand()
99 return sendData(param.mBuffer->getData(), param.mBuffer->getSize()); in sendCommand()
111 mBuffer[0] = htonl(ECmdStartPlayback); in sendCommand()
112 mBuffer[1] = htonl(20); in sendCommand()
[all …]
DAudioLocal.cpp49 mBuffer = buffer; in startPlaybackOrRecord()
57 int waitTimeInMsec = mBuffer->getSamples() / (mSamplingRate/1000); in waitForCompletion()
115 if (doPlaybackOrRecord(mBuffer)) { in threadLoop()
117 if (mBuffer->bufferHandled()) { in threadLoop()
126 mBuffer->restart(); in threadLoop()
155 mCommandResult = doPlaybackOrRecord(mBuffer); in threadLoop()
DRemoteAudio.cpp171 int runTime = handler->getParam().mBuffer->getSize() / in waitForPlaybackOrRecordingCompletion()
203 handler->getParam().mBuffer = buffer; in downloadData()
255 handler->getParam().mBuffer = it->second; in startPlayback()
291 handler->getParam().mBuffer = buffer; in startRecording()
/cts/suite/audio_quality/test/
DAudioPlayTestCommon.h37 android::sp<Buffer> mBuffer;
52 mBuffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS, in SetUp()
55 ASSERT_TRUE(mBuffer.get() != NULL); in SetUp()
66 ASSERT_TRUE(mAudioHw->startPlaybackOrRecord(mBuffer, numberRepetition)); in playAll()
69 LOGV("size %d, handled %d", mBuffer->getSize(), mBuffer->amountHandled()); in playAll()
70 ASSERT_TRUE(mBuffer->amountHandled() == mBuffer->getSize()); in playAll()
76 mBuffer->restart(); in repeatPlayStop()
77 ASSERT_TRUE(mAudioHw->startPlaybackOrRecord(mBuffer, 10)); in repeatPlayStop()
83 ASSERT_FALSE(mAudioHw->startPlaybackOrRecord(mBuffer)); in playWrongUsage()
/cts/suite/audio_quality/lib/src/
DFileUtil.cpp81 mBuffer = new char[DEFAULT_BUFFER_SIZE]; in FileUtil()
82 if (mBuffer == NULL) { in FileUtil()
94 delete[] mBuffer; in ~FileUtil()
117 mBuffer[0] = '0' + logLevel; in doVprintf()
118 mBuffer[1] = '>'; in doVprintf()
122 size = vsnprintf(mBuffer + start, mBufferSize - start - 2, fmt, ap); // 2 for \n\0 in doVprintf()
129 delete[] mBuffer; in doVprintf()
130 mBuffer = new char[2 * size]; in doVprintf()
131 if (mBuffer == NULL) { in doVprintf()
140 mBuffer[size] = '\n'; in doVprintf()
[all …]
DRWBuffer.h32 mBuffer = new char[capacity]; in RWBuffer()
36 delete[] mBuffer; in ~RWBuffer()
53 return mBuffer; in getBuffer()
56 return mBuffer + mWrPoint; in getUnwrittenBuffer()
78 memcpy(mBuffer + mWrPoint, src, sizeof(T)); in write()
84 memcpy(mBuffer + mWrPoint, str.string(), len); in writeStr()
90 memcpy(&v, mBuffer + mRdPoint, sizeof(T)); in read()
98 char* mBuffer; variable
DSignalProcessingImpl.cpp47 mBuffer(1024) in SignalProcessingImpl()
116 mBuffer.reset(); in run()
117 mBuffer.write <int32_t>((int32_t)EHeader); in run()
118 mBuffer.write<int32_t>(nInputs + 1); in run()
119 mBuffer.write<int32_t>((int32_t)EFunctionName); in run()
120 mBuffer.write<int32_t>((int32_t)functionScript.length()); in run()
121 mBuffer.writeStr(functionScript); in run()
122 if (!send(mBuffer.getBuffer(), mBuffer.getSizeWritten())) { in run()
127 mBuffer.reset(); in run()
130 mBuffer.write<int32_t>((int32_t)((*buffer)->isStereo() ? EAudioStereo : EAudioMono)); in run()
[all …]
DSignalProcessingImpl.h52 RWBuffer mBuffer; variable
/cts/tests/src/android/os/cts/
DReadElf.java191 private final byte[] mBuffer = new byte[512]; field in ReadElf
407 mFile.readFully(mBuffer, 0, 1); in readByte()
409 return mBuffer[0]; in readByte()
414 mFile.readFully(mBuffer, 0, mWordSize); in readHalf()
418 answer = mBuffer[1] << 8 | mBuffer[0]; in readHalf()
420 answer = mBuffer[0] << 8 | mBuffer[1]; in readHalf()
428 mFile.readFully(mBuffer, 0, mWordSize); in readWord()
433 answer = (answer << 8) | (mBuffer[i] & 0xFF); in readWord()
438 answer = (answer << 8) | mBuffer[i]; in readWord()
447 mFile.readFully(mBuffer, 0, (int) Math.min(mBuffer.length, mFile.length() - offset)); in readString()
[all …]
/cts/suite/audio_quality/lib/src/task/
DTaskInput.cpp79 mBuffer = buffer; in start()
94 if (mBuffer->isStereo()) { in complete()
95 mBuffer->changeToMono(Buffer::EKeepCh0); in complete()
97 if (!getTestCase()->registerBuffer(mId, mBuffer)) { in complete()
98 if (!getTestCase()->updateBuffer(mId, mBuffer)) { in complete()
/cts/suite/audio_quality/lib/include/task/
DTaskSound.h33 android::sp<Buffer> mBuffer;
DTaskInput.h36 android::sp<Buffer> mBuffer; variable
/cts/suite/audio_quality/lib/include/audio/
DAudioProtocol.h39 android::sp<Buffer> mBuffer; variable
96 int mBuffer[8];
DAudioLocal.h73 android::sp<Buffer> mBuffer; variable
/cts/suite/audio_quality/lib/include/
DFileUtil.h60 char* mBuffer; variable
/cts/tools/dex-tools/dex/
Dclasses.out.dex73043 protected java.lang.String mBuffer
78972 private android.text.Editable mBuffer
80960 private final java.nio.ByteBuffer mBuffer