/cts/suite/audio_quality/lib/src/audio/ |
D | AudioProtocol.cpp | 31 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 …]
|
D | AudioLocal.cpp | 49 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()
|
D | RemoteAudio.cpp | 171 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/ |
D | AudioPlayTestCommon.h | 37 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/ |
D | FileUtil.cpp | 81 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 …]
|
D | SignalProcessingImpl.cpp | 47 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 …]
|
D | RWBuffer.h | 32 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
|
D | SignalProcessingImpl.h | 52 RWBuffer mBuffer; variable
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | ReadElf.java | 127 private final byte[] mBuffer = new byte[512]; field in ReadElf 225 mFile.readFully(mBuffer, 0, EI_NIDENT); in readHeader() 227 if (mBuffer[0] != ELFMAG[0] || mBuffer[1] != ELFMAG[1] || in readHeader() 228 mBuffer[2] != ELFMAG[2] || mBuffer[3] != ELFMAG[3]) { in readHeader() 232 int elfClass = mBuffer[EI_CLASS]; in readHeader() 241 mEndian = mBuffer[EI_DATA]; in readHeader() 436 mFile.readFully(mBuffer, 0, byteCount); in readX() 441 answer = (answer << 8) | (mBuffer[i] & 0xff); in readX() 446 answer = (answer << 8) | (mBuffer[i] & 0xff); in readX() 456 mFile.readFully(mBuffer, 0, (int) Math.min(mBuffer.length, mFile.length() - offset)); in readString() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/ |
D | PipeShort.java | 25 private short mBuffer[]; field in PipeShort 36 mBuffer = new short[mMaxValues]; in PipeShort() 51 System.arraycopy(buffer, offset, mBuffer, rear, written); in write() 57 System.arraycopy(buffer, offset + written, mBuffer, 0, count); in write() 103 System.arraycopy(mBuffer, front, buffer, offset, red); in read() 110 System.arraycopy(mBuffer, 0, buffer, offset + red, count); in read()
|
D | DspWindow.java | 20 public DspBufferDouble mBuffer; field in DspWindow 51 mBuffer = new DspBufferDouble(mSize); in init() 52 if (fillWindow(mBuffer, windowType, mOverlap)) { in init() 59 DspBufferMath.mult(mBuffer, mBuffer, scale); in scale()
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskInput.cpp | 79 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/audio/ |
D | AudioProtocol.h | 39 android::sp<Buffer> mBuffer; variable 96 int mBuffer[8];
|
D | AudioLocal.h | 73 android::sp<Buffer> mBuffer; variable
|
/cts/suite/audio_quality/lib/include/task/ |
D | TaskSound.h | 33 android::sp<Buffer> mBuffer;
|
D | TaskInput.h | 36 android::sp<Buffer> mBuffer; variable
|
/cts/suite/audio_quality/lib/include/ |
D | FileUtil.h | 60 char* mBuffer; variable
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessageQueueTest.java | 287 private byte[] mBuffer = new byte[4096]; in testFileDescriptorCallbacks() 305 int count = Math.min(mBuffer.length, mRemaining); in testFileDescriptorCallbacks() 307 writer.write(mBuffer, 0, count); in testFileDescriptorCallbacks() 324 private byte[] mBuffer = new byte[4096]; in testFileDescriptorCallbacks() 342 int count = reader.read(mBuffer, 0, mBuffer.length); in testFileDescriptorCallbacks()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VideoEncoderTest.java | 172 private ByteBuffer mBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); field in VideoEncoderTest.VideoProcessorBase 287 int size = mExtractor.readSampleData(mBuffer, 0); in fillDecoderInputBuffer() 295 mBuffer.limit(size); in fillDecoderInputBuffer() 296 mBuffer.position(0); in fillDecoderInputBuffer() 299 0, mBuffer.limit(), mExtractor.getSampleTime(), in fillDecoderInputBuffer() 301 mDecoder.getInputBuffer(ix).put(mBuffer); in fillDecoderInputBuffer() 305 ix, 0, mBuffer.limit(), info.presentationTimeUs, 0); in fillDecoderInputBuffer()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioFrequencySpeakerActivity.java | 673 DspBufferMath.mult(mData, mData, mWindow.mBuffer); in onPeriodicNotification()
|
D | AudioFrequencyLineActivity.java | 655 DspBufferMath.mult(mData, mData, mWindow.mBuffer); in onPeriodicNotification()
|
D | AudioFrequencyMicActivity.java | 813 DspBufferMath.mult(mData, mData, mWindow.mBuffer); in onPeriodicNotification()
|
/cts/tools/dex-tools/dex/ |
D | classes.out.dex | 73043 protected java.lang.String mBuffer 78972 private android.text.Editable mBuffer 80960 private final java.nio.ByteBuffer mBuffer
|