Home
last modified time | relevance | path

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

/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java47 private ByteBuffer mOutputBuffer; field in Transport
61 mOutputBuffer = ByteBuffer.allocate(maxPacketSize); in Transport()
85 if (mOutputBuffer != null) { in close()
95 mOutputBuffer = null; in close()
114 if (mOutputBuffer == null) { in sendMessage()
119 final byte[] outputArray = mOutputBuffer.array(); in sendMessage()
120 final int capacity = mOutputBuffer.capacity(); in sendMessage()
121 mOutputBuffer.clear(); in sendMessage()
122 mOutputBuffer.putShort((short)service); in sendMessage()
123 mOutputBuffer.putShort((short)what); in sendMessage()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/fuzzer/
Dmpeg4_h263_dec_fuzzer.cpp53 uint8_t *mOutputBuffer[kNumOutputBuffers]; member in Codec
81 if (!mOutputBuffer[i]) { in allocOutputBuffer()
82 mOutputBuffer[i] = static_cast<uint8_t *>(malloc(outputBufferSize)); in allocOutputBuffer()
83 if (!mOutputBuffer[i]) { in allocOutputBuffer()
93 if (mOutputBuffer[i]) { in freeOutputBuffer()
94 free(mOutputBuffer[i]); in freeOutputBuffer()
95 mOutputBuffer[i] = nullptr; in freeOutputBuffer()
154 PVSetReferenceYUV(mDecHandle, mOutputBuffer[1]); in decodeFrames()
165 &useExtTimestamp, mOutputBuffer[mNumSamplesOutput & 1]) != PV_TRUE) { in decodeFrames()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
DMpeg4H263EncoderTest.cpp46 mOutputBuffer(nullptr), in Mpeg4H263EncoderTest()
60 if(mOutputBuffer) free(mOutputBuffer); in ~Mpeg4H263EncoderTest()
103 uint8_t *mInputBuffer, *mOutputBuffer; member in Mpeg4H263EncoderTest
180 status = PVEncodeVideoFrame(mEncodeControl, &videoIn, &videoOut, &modTimeMs, mOutputBuffer, in processEncoder()
190 int64_t numBytes = fwrite(mOutputBuffer, 1, dataLength, mFpOutput); in processEncoder()
201 mOutputBuffer = (uint8_t *)malloc(mOutputBufferSize); in TEST_P()
202 ASSERT_NE(mOutputBuffer, nullptr) << "Failed to allocate the output buffer!"; in TEST_P()
215 status = PVGetVolHeader(mEncodeControl, mOutputBuffer, &size, 0); in TEST_P()
219 int32_t numBytes = fwrite(mOutputBuffer, 1, size, mFpOutput); in TEST_P()
/frameworks/av/services/oboeservice/
DAAudioMixer.cpp37 delete[] mOutputBuffer; in ~AAudioMixer()
44 mOutputBuffer = new float[samplesPerBuffer]; in allocate()
49 memset(mOutputBuffer, 0, mBufferSizeInBytes); in clear()
54 float *destination = mOutputBuffer; in mix()
120 return mOutputBuffer; in getOutputBuffer()
DAAudioMixer.h50 float *mOutputBuffer = nullptr; variable
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/test/
DMpeg4H263DecoderTest.cpp63 memset(mOutputBuffer, 0x0, sizeof(mOutputBuffer)); in Mpeg4H263DecoderTest()
90 uint8_t *mOutputBuffer[kNumOutputBuffers]; member in Mpeg4H263DecoderTest
112 if (!mOutputBuffer[i]) { in allocOutputBuffer()
113 mOutputBuffer[i] = (uint8_t *)malloc(outputBufferSize); in allocOutputBuffer()
114 ASSERT_NE(mOutputBuffer[i], nullptr) << "Output buffer allocation failed"; in allocOutputBuffer()
120 uint8_t *src = mOutputBuffer[mNumSamplesOutput & 1]; in dumpOutput()
147 if (mOutputBuffer[i]) { in freeOutputBuffer()
148 free(mOutputBuffer[i]); in freeOutputBuffer()
149 mOutputBuffer[i] = nullptr; in freeOutputBuffer()
242 PVSetReferenceYUV(mDecHandle, mOutputBuffer[1]); in processMpeg4H263Decoder()
[all …]
/frameworks/base/tests/SerialChat/src/com/android/serialchat/
DSerialChat.java44 private ByteBuffer mOutputBuffer; field in SerialChat
63 mOutputBuffer = ByteBuffer.allocateDirect(1024); in onCreate()
66 mOutputBuffer = ByteBuffer.allocate(1024); in onCreate()
111 mOutputBuffer.clear(); in onEditorAction()
112 mOutputBuffer.put(bytes); in onEditorAction()
113 mSerialPort.write(mOutputBuffer, bytes.length); in onEditorAction()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestVirtualDisplay.cpp28 mDisplayDimension.setDependent(&mOutputBuffer); in Hwc2TestVirtualDisplay()
47 int ret = mOutputBuffer.getOutputBuffer(outHandle, &acquireFence); in getOutputBuffer()
76 ComparatorResult::get().CompareBuffers(mOutputBuffer.graphicBuffer(), in verifyOutputBuffer()
94 !mOutputBuffer.writeBufferToFile(resultPath.str())) in writeBuffersToFile()
DHwc2TestVirtualDisplay.h50 Hwc2TestOutputBuffer mOutputBuffer;
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Dec.cpp252 mOutputBuffer{}, in C2SoftMpeg4Dec()
273 if (mOutputBuffer[i]) { in onStop()
274 free(mOutputBuffer[i]); in onStop()
275 mOutputBuffer[i] = nullptr; in onStop()
304 if (mOutputBuffer[i]) { in onRelease()
305 free(mOutputBuffer[i]); in onRelease()
306 mOutputBuffer[i] = nullptr; in onRelease()
398 if (!mOutputBuffer[i]) { in ensureDecoderState()
399 mOutputBuffer[i] = (uint8_t *)malloc(mOutputBufferSize); in ensureDecoderState()
400 if (!mOutputBuffer[i]) { in ensureDecoderState()
[all …]
DC2SoftMpeg4Dec.h59 uint8_t *mOutputBuffer[kNumOutputBuffers]; member
/frameworks/ml/nn/runtime/test/
DTestExecution.cpp667 mOutputBuffer = kOutputBufferInitial; in setInputOutput()
669 ASSERT_EQ(execution->setOutput(0, &mOutputBuffer, sizeof(mOutputBuffer)), Result::NO_ERROR); in setInputOutput()
675 float mOutputBuffer; member in android::__anon50a6e8490111::ExecutionTestTemplate
722 ASSERT_EQ(mOutputBuffer, kOutputBufferExpected); in TestWait()
744 ASSERT_EQ(mOutputBuffer, kOutputBufferExpected); in TestWait()
777 ASSERT_EQ(mOutputBuffer, kOutputBufferExpected); in TestWait()
807 ASSERT_EQ(mOutputBuffer, kOutputBufferExpected); in TestWait()
/frameworks/av/media/libstagefright/codecs/xaacdec/
DSoftXAAC.cpp101 mOutputBuffer(NULL), in SoftXAAC()
728 memset(mOutputBuffer, 0, numOutBytes); // TODO: check for overflow, ASAN in onQueueFilled()
766 memcpy(outBuffer, mOutputBuffer, numOutBytes); in onQueueFilled()
927 mOutputBuffer = 0; in initXAACDecoder()
1046 mOutputBuffer = (pWORD8)pv_alloc_ptr; in initXAACDecoder()
1487 memcpy(mDrcInBuf, mOutputBuffer, *outBytes); in decodeXAACStream()
1495 memcpy(mOutputBuffer, mDrcOutBuf, *outBytes); in decodeXAACStream()
DSoftXAAC.h111 int8_t* mOutputBuffer; member
/frameworks/av/media/codec2/components/xaac/
DC2SoftXaacDec.cpp250 mOutputBuffer = nullptr; in onInit()
585 memset(mOutputBuffer, 0, mNumOutBytes); in process()
592 memcpy(tempOutputDrainBuffer, mOutputBuffer, mNumOutBytes); in process()
691 mOutputBuffer = nullptr; in initXAACDecoder()
831 mOutputBuffer = (pWORD8)pv_alloc_ptr; in initXAACDecoder()
1366 memcpy(mDrcInBuf, mOutputBuffer, *outBytes); in decodeXAACStream()
1374 memcpy(mOutputBuffer, mDrcOutBuf, *outBytes); in decodeXAACStream()
DC2SoftXaacDec.h78 int8_t* mOutputBuffer; member