/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | ByteBufferLineSpliterator.java | 17 private final ByteBuffer mBuffer; field in ByteBufferLineSpliterator 25 mBuffer = buffer; in ByteBufferLineSpliterator() 40 if (mBuffer.remaining() < 10 * mLineLengthEstimate) { in trySplit() 44 int curPos = mBuffer.position(); in trySplit() 45 mBuffer.position(curPos + mBuffer.remaining() / 2); in trySplit() 51 mBuffer.position(mBuffer.position() + nextNewLine + 1); in trySplit() 52 Spliterator<T> retValue = new ByteBufferLineSpliterator<T>(mBuffer.slice(), in trySplit() 56 mBuffer.position(curPos).limit(curPos + mBuffer.remaining() / 2 + nextNewLine); in trySplit() 63 return mBuffer.remaining() / mLineLengthEstimate; in estimateSize() 72 if (!mBuffer.hasRemaining()) { in findNextNewLine() [all …]
|
/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/tests/sensor/jni/ |
D | SensorTest.cpp | 107 return mBuffer; in getBuffer() 117 … int64_t atomicCounter = *reinterpret_cast<uint32_t *>(mBuffer + offset + kOffsetAtomicCounter); in parseEvents() 122 int32_t size = *reinterpret_cast<int32_t *>(mBuffer + offset + kOffsetSize); in parseEvents() 129 events.push_back(*reinterpret_cast<ASensorEvent *>(mBuffer + offset)); in parseEvents() 138 : mType(type), mSize(0), mBuffer(nullptr), in TestSharedMemory() 150 mBuffer = reinterpret_cast<char *>(::mmap( in TestSharedMemory() 154 if (mBuffer == MAP_FAILED) { in TestSharedMemory() 155 mBuffer = nullptr; in TestSharedMemory() 175 -1, nullptr, reinterpret_cast<void **>(&mBuffer)) == 0) { in TestSharedMemory() 176 if (mBuffer != nullptr) { in TestSharedMemory() [all …]
|
/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/tests/tests/graphics/jni/ |
D | android_graphics_cts_FrameRateCtsActivity.cpp | 50 int rc = AHardwareBuffer_allocate(&desc, &mBuffer); in Buffer() 51 if (rc < 0 || mBuffer == nullptr) { in Buffer() 59 rc = AHardwareBuffer_lockAndGetInfo(mBuffer, AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY, in Buffer() 69 rc = AHardwareBuffer_lock(mBuffer, AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY, in Buffer() 75 AHardwareBuffer_release(mBuffer); in Buffer() 76 mBuffer = nullptr; in Buffer() 97 rc = AHardwareBuffer_unlock(mBuffer, /*fence=*/nullptr); in Buffer() 100 AHardwareBuffer_release(mBuffer); in Buffer() 101 mBuffer = nullptr; in Buffer() 107 if (mBuffer) { in ~Buffer() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/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/tests/mediapc/src/android/mediapc/cts/ |
D | PlaybackFrameDrop.java | 42 private ByteBuffer mBuffer; field in PlaybackFrameDrop 129 mBuffer = ByteBuffer.allocate(totalSize); in setUpSourceFiles() 131 formats.add(createInputList(setUpSource(file), mBuffer, mBufferInfos, buffOffset, in setUpSourceFiles() local 166 dstBuf.put(mBuffer.array(), info.offset, info.size); in enqueueInput()
|
/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/media/jni/ |
D | NativeMuxerTest.cpp | 50 : mSrcPath(srcPath), mMime(mime), mTrackCount(0), mBuffer(nullptr) { in MuxerNativeTestHelper() 57 delete[] mBuffer; in ~MuxerNativeTestHelper() 109 uint8_t* mBuffer; member in MuxerNativeTestHelper 180 mBuffer = new uint8_t[bufferSize]; in splitMediaToMuxerParameters() 181 if (mBuffer == nullptr) { in splitMediaToMuxerParameters() 197 AMediaExtractor_readSampleData(extractor, mBuffer + offset, (bufferSize - offset)); in splitMediaToMuxerParameters() 231 if (AMediaMuxer_writeSampleData(muxer, mOutIndexMap.at(index), mBuffer, info) != in insertSampleData() 268 if (AMediaMuxer_writeSampleData(muxer, mOutIndexMap.at(trackIndex), mBuffer, info) != in writeAFewSamplesData() 306 if (AMediaMuxer_writeSampleData(muxer, mOutIndexMap.at(trackIndex), mBuffer, info) != in writeAFewSamplesDataFromTime() 420 if (AMediaMuxer_writeSampleData(muxer, outIndexMap[idx], group[k]->mBuffer, in combineMedias() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorDirectReportTest.java | 149 private byte[] mBuffer; field in SensorDirectReportTest 166 mBuffer = mByteBuffer.array(); in setUp() 785 int originalEventSize = mBuffer.length; in runSensorDirectReportUidIdleTest() 788 assertEquals(mBuffer.length, originalEventSize); in runSensorDirectReportUidIdleTest() 1206 if (lastArray[i] != mBuffer[lastOffset + i]) { in checkAtomicCounterUpdate() 1214 System.arraycopy(mBuffer, lastOffset, currentArray, 0, SENSORS_EVENT_SIZE); in checkAtomicCounterUpdate() 1229 System.arraycopy(mBuffer, lastOffset, delayedRead, 0, SENSORS_EVENT_SIZE); in checkAtomicCounterUpdate() 1252 System.arraycopy(mBuffer, lastOffset, lastArray, 0, SENSORS_EVENT_SIZE); in checkAtomicCounterUpdate() 1322 if (f.readBytes(mBuffer, offset, offset, length) != length) { in readSharedMemory() 1334 mBuffer, offset, offset, length); in readSharedMemory() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecTest.java | 2413 ByteBuffer mBuffer; field in MediaCodecTest.ByteBufferInputStream 2417 mBuffer = ByteBuffer.allocate(0); in ByteBufferInputStream() 2422 while (mBuffer != null && !mBuffer.hasRemaining()) { in read() 2424 mBuffer = mInput.read(); in read() 2427 if (mBuffer == null) { in read() 2431 return (0xff & mBuffer.get()); in read() 2438 public ByteBuffer mBuffer; // the audio buffer (furnished duplicated, read only). field in MediaCodecTest.PcmAudioBufferStream 2444 mBuffer = ByteBuffer.allocate(sizeInBytes); in PcmAudioBufferStream() 2445 mBuffer.order(java.nio.ByteOrder.nativeOrder()); in PcmAudioBufferStream() 2447 FloatBuffer fb = mBuffer.asFloatBuffer(); in PcmAudioBufferStream() [all …]
|