Home
last modified time | relevance | path

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

/hardware/interfaces/automotive/evs/1.0/default/
DEvsDisplay.cpp42 mBuffer.width = 320; in EvsDisplay()
43 mBuffer.height = 240; in EvsDisplay()
44 mBuffer.format = HAL_PIXEL_FORMAT_RGBA_8888; in EvsDisplay()
45 mBuffer.usage = GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_COMPOSER; in EvsDisplay()
46 mBuffer.bufferId = 0x3870; // Arbitrary magic number for self recognition in EvsDisplay()
47 mBuffer.pixelSize = 4; in EvsDisplay()
68 if (mBuffer.memHandle) { in forceShutdown()
76 alloc.free(mBuffer.memHandle); in forceShutdown()
77 mBuffer.memHandle = nullptr; in forceShutdown()
165 if (!mBuffer.memHandle) { in getTargetBuffer()
[all …]
DEvsDisplay.h48 BufferDesc mBuffer = {}; // A graphics buffer into which we'll store images variable
/hardware/interfaces/camera/common/1.0/default/
DCameraMetadata.cpp37 mBuffer(NULL), mLocked(false) { in CameraMetadata()
43 mBuffer = allocate_camera_metadata(entryCapacity, dataCapacity); in CameraMetadata()
48 mBuffer = clone_camera_metadata(other.mBuffer); in CameraMetadata()
52 mBuffer(NULL), mLocked(false) { in CameraMetadata()
57 return operator=(other.mBuffer); in operator =()
66 if (CC_LIKELY(buffer != mBuffer)) { in operator =()
69 mBuffer = newBuffer; in operator =()
81 return mBuffer; in getAndLock()
89 if (buffer != mBuffer) { in unlock()
103 camera_metadata_t *released = mBuffer; in release()
[all …]
/hardware/invensense/65xx/libsensors_iio/
DInputEventReader.cpp39 : mBuffer(new input_event[numEvents * 2]), in InputEventCircularReader()
40 mBufferEnd(mBuffer + numEvents), in InputEventCircularReader()
41 mHead(mBuffer), in InputEventCircularReader()
42 mCurr(mBuffer), in InputEventCircularReader()
50 delete [] mBuffer; in ~InputEventCircularReader()
84 memcpy(mBuffer, mBufferEnd, s * sizeof(input_event)); in fill()
85 mHead = mBuffer + s; in fill()
98 ssize_t available = (mBufferEnd - mBuffer) - mFreeSpace; in readEvent()
109 mCurr = mBuffer; in next()
111 ssize_t available = (mBufferEnd - mBuffer) - mFreeSpace; in next()
DInputEventReader.h33 struct input_event* const mBuffer; variable
/hardware/invensense/6515/libsensors_iio/
DInputEventReader.cpp39 : mBuffer(new input_event[numEvents * 2]), in InputEventCircularReader()
40 mBufferEnd(mBuffer + numEvents), in InputEventCircularReader()
41 mHead(mBuffer), in InputEventCircularReader()
42 mCurr(mBuffer), in InputEventCircularReader()
50 delete [] mBuffer; in ~InputEventCircularReader()
84 memcpy(mBuffer, mBufferEnd, s * sizeof(input_event)); in fill()
85 mHead = mBuffer + s; in fill()
98 ssize_t available = (mBufferEnd - mBuffer) - mFreeSpace; in readEvent()
109 mCurr = mBuffer; in next()
111 ssize_t available = (mBufferEnd - mBuffer) - mFreeSpace; in next()
DInputEventReader.h33 struct input_event* const mBuffer; variable
/hardware/interfaces/sensors/common/vts/utils/
DSensorsTestSharedMemory.cpp35 return mBuffer; in getBuffer()
57 *reinterpret_cast<uint32_t*>(mBuffer + offset + kOffsetAtomicCounter); in parseEvents()
64 int32_t size = *reinterpret_cast<int32_t*>(mBuffer + offset + kOffsetSize); in parseEvents()
71 int32_t token = *reinterpret_cast<int32_t*>(mBuffer + offset + kOffsetToken); in parseEvents()
72 int32_t type = *reinterpret_cast<int32_t*>(mBuffer + offset + kOffsetType); in parseEvents()
73 int64_t timestamp = *reinterpret_cast<int64_t*>(mBuffer + offset + kOffsetTimestamp); in parseEvents()
85 reinterpret_cast<float*>(mBuffer + offset + kOffsetData)); in parseEvents()
97 : mType(type), mSize(0), mBuffer(nullptr) { in SensorsTestSharedMemory()
138 mBuffer = buffer; in SensorsTestSharedMemory()
146 ::munmap(mBuffer, mSize); in ~SensorsTestSharedMemory()
[all …]
/hardware/google/pixel/perfstatsd/include/
Dstatstype.h32 std::queue<StatsData> buffer = mBuffer.dump(); in dump()
38 size_t bufferSize() { return mBuffer.size(); } in bufferSize()
39 void setBufferSize(size_t size) { mBuffer.setSize(size); } in setBufferSize()
40 size_t bufferCount() { return mBuffer.count(); } in bufferCount()
45 mBuffer.emplace(std::forward<StatsData>(data)); in append()
59 PerfstatsBuffer mBuffer;
/hardware/google/av/codec2/vndk/
DC2AllocatorGralloc.cpp302 buffer_handle_t mBuffer; member in android::C2AllocationGralloc
320 mBuffer(nullptr), in C2AllocationGralloc()
327 if (mBuffer && mLocked) { in ~C2AllocationGralloc()
332 if (mBuffer) { in ~C2AllocationGralloc()
333 mMapper->freeBuffer(const_cast<native_handle_t *>(mBuffer)); in ~C2AllocationGralloc()
357 if (mBuffer && mLocked) { in map()
367 if (!mBuffer) { in map()
372 mBuffer = static_cast<buffer_handle_t>(buffer); in map()
379 if (mBuffer == nullptr) { in map()
390 mBuffer, mInfo.mapperInfo.width, mInfo.mapperInfo.height, in map()
[all …]
DC2AllocatorIon.cpp76 int bufferFd() const { return mFds.mBuffer; } in bufferFd()
84 int mBuffer; // shared ion buffer member
168 mBuffer(buffer), in Impl()
261 int ret = ion_map(mIonFd, mBuffer, mapSize, prot, in map()
265 mIonFd, mBuffer, mapSize, prot, flags, mapOffset, ret); in map()
310 ALOGV("successfully unmapped: %d", mBuffer); in unmap()
329 (void)ion_free(mIonFd, mBuffer); in ~Impl()
350 return mBuffer; in ionHandle()
356 ion_user_handle_t mBuffer; member in android::C2AllocationIon::Impl
/hardware/interfaces/audio/core/all-versions/default/
DStreamOut.cpp52 mBuffer(nullptr) {} in WriteThread()
54 mBuffer.reset(new (std::nothrow) uint8_t[mDataMQ->getQuantumCount()]); in init()
55 return mBuffer != nullptr; in init()
66 std::unique_ptr<uint8_t[]> mBuffer; member in android::hardware::audio::CPP_VERSION::implementation::__anon4890291f0111::WriteThread
80 if (mDataMQ->read(&mBuffer[0], availToRead)) { in doWrite()
81 ssize_t writeResult = mStream->write(mStream, &mBuffer[0], availToRead); in doWrite()
DStreamIn.cpp53 mBuffer(nullptr) {} in ReadThread()
55 mBuffer.reset(new (std::nothrow) uint8_t[mDataMQ->getQuantumCount()]); in init()
56 return mBuffer != nullptr; in init()
67 std::unique_ptr<uint8_t[]> mBuffer; member in android::hardware::audio::CPP_VERSION::implementation::__anon4123301e0111::ReadThread
87 ssize_t readResult = mStream->read(mStream, &mBuffer[0], requestedToRead); in doRead()
91 if (!mDataMQ->write(&mBuffer[0], readResult)) { in doRead()
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsTestSharedMemory.h46 char* mBuffer; variable
/hardware/google/av/media/codecs/aac/
DC2SoftAacEnc.cpp403 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) { in process()
413 if (mBuffer) { in process()
414 work->worklets.front()->output.buffers.push_back(mBuffer); in process()
419 mBuffer ? "" : "o"); in process()
425 const std::shared_ptr<C2Buffer> mBuffer; in process() member in android::C2SoftAacEnc::process::FillWork
/hardware/interfaces/graphics/composer/2.1/utils/hwc2on1adapter/include/hwc2on1adapter/
DHWC2On1Adapter.h176 FencedBuffer() : mBuffer(nullptr), mFence(MiniFence::NO_FENCE) {} in FencedBuffer()
178 void setBuffer(buffer_handle_t buffer) { mBuffer = buffer; } in setBuffer()
181 buffer_handle_t getBuffer() const { return mBuffer; } in getBuffer()
185 buffer_handle_t mBuffer;
589 FencedBuffer mBuffer; variable
/hardware/interfaces/graphics/composer/2.1/utils/hwc2onfbadapter/include/hwc2onfbadapter/
DHWC2OnFbAdapter.h96 buffer_handle_t mBuffer{nullptr};
/hardware/qcom/display/msm8994/libhwcomposer/
DHWC2On1Adapter.h156 FencedBuffer() : mBuffer(nullptr), mFence(Fence::NO_FENCE) {} in FencedBuffer()
158 void setBuffer(buffer_handle_t buffer) { mBuffer = buffer; } in setBuffer()
161 buffer_handle_t getBuffer() const { return mBuffer; } in getBuffer()
165 buffer_handle_t mBuffer;
560 FencedBuffer mBuffer; variable
DHWC2On1Adapter.cpp1979 mBuffer(), in Layer()
2006 mBuffer.setBuffer(buffer); in setBuffer()
2007 mBuffer.setFence(acquireFence); in setBuffer()
2175 output << " Buffer: " << mBuffer.getBuffer() << "/" << in dump()
2176 mBuffer.getFence() << '\n'; in dump()
2281 hwc1Layer.handle = mBuffer.getBuffer(); in applyBufferState()
2282 hwc1Layer.acquireFenceFd = mBuffer.getFence(); in applyBufferState()
/hardware/interfaces/camera/common/1.0/default/include/
DCameraMetadata.h203 camera_metadata_t *mBuffer;
/hardware/libhardware/tests/keymaster/
Dkeymaster_test.cpp141 mBuffer = buffer; in UniqueReadOnlyBlob()
145 munmap(mBuffer, mBufferSize); in ~UniqueReadOnlyBlob()
149 return mBuffer; in get()
157 uint8_t* mBuffer; member in android::UniqueReadOnlyBlob
/hardware/interfaces/graphics/composer/2.1/utils/hwc2onfbadapter/
DHWC2OnFbAdapter.cpp781 mBuffer = buffer; in setBuffer()
786 if (mBuffer) { in postBuffer()
787 error = mFbDevice->post(mFbDevice, mBuffer); in postBuffer()
/hardware/interfaces/graphics/composer/2.1/utils/hwc2on1adapter/
DHWC2On1Adapter.cpp1908 mBuffer(), in Layer()
1932 mBuffer.setBuffer(buffer); in setBuffer()
1933 mBuffer.setFence(acquireFence); in setBuffer()
2099 output << " Buffer: " << mBuffer.getBuffer() << '\n'; in dump()
2181 hwc1Layer.handle = mBuffer.getBuffer(); in applyBufferState()
2182 hwc1Layer.acquireFenceFd = mBuffer.getFence(); in applyBufferState()
/hardware/interfaces/camera/device/3.4/default/
DExternalCameraDeviceSession.cpp1370 JOCTET *mBuffer; in encodeJpegYU12() member
1404 dmgr.mBuffer = static_cast<JOCTET*>(out); in encodeJpegYU12()
1414 dmgr.mgr.next_output_byte = dmgr.mBuffer; in encodeJpegYU12()
1417 __FUNCTION__, __LINE__, dmgr.mBuffer, dmgr.mBufferSize); in encodeJpegYU12()