/device/generic/goldfish-opengl/android-emu/aemu/base/ |
D | AlignedBuf.h | 45 if (other.mBuffer) { // could have got moved out in AlignedBuf() 46 std::copy(other.mBuffer, other.mBuffer + other.mSize, mBuffer); in AlignedBuf() 61 mBuffer = other.mBuffer; 64 other.mBuffer = nullptr; 70 ~AlignedBuf() { if (mBuffer) freeImpl(mBuffer); } // account for getting moved out in ~AlignedBuf() 89 T* data() { return mBuffer; } in data() 91 T& operator[](size_t index) { return mBuffer[index]; } 93 const T& operator[](size_t index) const { return mBuffer[index]; } 96 return 0 == std::memcmp(mBuffer, other.mBuffer, sizeof(T) * std::min(mSize, other.mSize)); 107 std::vector<T> temp(mBuffer, mBuffer + keepSize); in resizeImpl() [all …]
|
/device/generic/goldfish/gnss/ |
D | GnssHwListener.cpp | 78 mBuffer.reserve(256); in GnssHwListener() 95 if (c == '$' || !mBuffer.empty()) { in consume1() 96 mBuffer.push_back(c); in consume1() 106 if (parse(mBuffer.data() + 1, mBuffer.data() + mBuffer.size() - 2, in consume1() 108 mSink.onGnssNmeaCb(timestampMs, std::string(mBuffer.data(), mBuffer.size())); in consume1() 110 mBuffer.back() = 0; in consume1() 112 __func__, __LINE__, mBuffer.data()); in consume1() 114 mBuffer.clear(); in consume1() 115 } else if (mBuffer.size() >= 1024) { in consume1() 117 mBuffer.clear(); in consume1()
|
D | GnssHwListener.h | 53 std::vector<char> mBuffer; variable
|
/device/generic/goldfish/camera/ |
D | CachedStreamBuffer.cpp | 99 : mBuffer(importAidlNativeHandle(sb.buffer)) in CachedStreamBuffer() 103 LOG_ALWAYS_FATAL_IF(!mBuffer); in CachedStreamBuffer() 109 : mBuffer(std::exchange(rhs.mBuffer, nullptr)) in CachedStreamBuffer() 114 LOG_ALWAYS_FATAL_IF(!mBuffer); 122 LOG_ALWAYS_FATAL_IF(!mBuffer); in ~CachedStreamBuffer() 123 LOG_ALWAYS_FATAL_IF(GraphicBufferMapper::get().freeBuffer(mBuffer) != NO_ERROR); in ~CachedStreamBuffer()
|
D | CachedStreamBuffer.h | 41 const native_handle_t* getBuffer() const { return mBuffer; } in getBuffer() 55 const native_handle_t* mBuffer; // owned by this class
|
/device/google/contexthub/sensorhal/ |
D | directchannel.cpp | 28 return mBuffer != nullptr; in isValid() 37 mBuffer->write(ev, 1); in write() 62 mBuffer = std::unique_ptr<LockfreeBuffer>(new LockfreeBuffer(mBase, mSize)); in AshmemDirectChannel() 63 if (!mBuffer) { in AshmemDirectChannel() 70 mBuffer = nullptr; in ~AshmemDirectChannel() 304 mBuffer = std::make_unique<LockfreeBuffer>(mBase, mSize); in GrallocDirectChannel() 305 if (!mBuffer) { in GrallocDirectChannel() 316 mBuffer = nullptr; in ~GrallocDirectChannel()
|
D | directchannel.h | 42 std::unique_ptr<LockfreeBuffer> mBuffer; variable
|
/device/generic/goldfish-opengl/system/hwc3/ |
D | DrmSwapchain.cpp | 26 : mBuffer(buffer), mDrmBuffer(drmBuffer) {} in Image() 29 : mBuffer(std::move(other.mBuffer)), in Image() 32 other.mBuffer = 0; in Image() 35 DrmSwapchain::Image::~Image() { ::android::GraphicBufferAllocator::get().free(mBuffer); } in ~Image() 56 const native_handle_t* DrmSwapchain::Image::getBuffer() { return mBuffer; } in getBuffer()
|
D | FencedBuffer.h | 28 FencedBuffer() : mBuffer(nullptr) {} in FencedBuffer() 31 mBuffer = buffer; in set() 35 buffer_handle_t getBuffer() const { return mBuffer; } in getBuffer() 54 buffer_handle_t mBuffer; variable
|
D | Layer.cpp | 61 mBuffer.set(buffer, fence); in setBuffer() 68 return mBuffer; in getBuffer() 74 ::android::base::unique_fd fence = mBuffer.getFence(); in waitAndGetBuffer() 83 return mBuffer.getBuffer(); in waitAndGetBuffer()
|
D | DrmSwapchain.h | 40 const native_handle_t* mBuffer = nullptr; variable
|
D | Layer.h | 99 FencedBuffer mBuffer; variable
|
/device/generic/vulkan-cereal/stream-servers/vulkan/ |
D | VulkanStream_unittest.cpp | 72 if (mBuffer.size() < mWriteCursor + size) { in writeFully() 73 mBuffer.resize(mWriteCursor + size); in writeFully() 76 memcpy(mBuffer.data() + mWriteCursor, buffer, size); in writeFully() 87 EXPECT_LE(mReadCursor + len, mBuffer.size()); in readFully() 88 memcpy(buf, mBuffer.data() + mReadCursor, len); in readFully() 100 mBuffer.clear(); in clear() 107 std::vector<char> mBuffer; member in gfxstream::vk::__anon46d1ea070111::TestStream
|
/device/generic/goldfish/audio/ |
D | ring_buffer.cpp | 27 : mBuffer(new uint8_t[capacity]) in RingBuffer() 71 chunk.data = &mBuffer[mProducePos]; in getProduceChunk() 102 void *dst = &mBuffer[mProducePos]; in produce() 131 chunk.data = &mBuffer[mConsumePos]; in getConsumeChunk()
|
D | ring_buffer.h | 88 std::unique_ptr<uint8_t[]> mBuffer;
|
/device/google/atv/audio_proxy/ |
D | OutputStreamImpl.cpp | 64 const std::unique_ptr<int8_t[]> mBuffer; member in audio_proxy::__anon31df340b0111::WriteThread 77 mBuffer(new int8_t[mDataMQ->getQuantumCount()]) {} in WriteThread() 87 if (!mDataMQ->read(&mBuffer[0], availToRead)) { in doWrite() 91 return mStream->write(&mBuffer[0], availToRead); in doWrite()
|
/device/generic/vulkan-cereal/stream-servers/tests/ |
D | HelloTriangleImp.cpp | 71 gl->glGenBuffers(1, &mBuffer); in initialize() 72 gl->glBindBuffer(GL_ARRAY_BUFFER, mBuffer); in initialize()
|
D | HelloTriangle.h | 39 GLuint mBuffer; variable
|
/device/generic/goldfish-opengl/system/codecs/c2/decoders/hevcdec/ |
D | C2GoldfishHevcDec.cpp | 608 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) {} in finishWork() 617 if (mBuffer) { in finishWork() 618 work->worklets.front()->output.buffers.push_back(mBuffer); in finishWork() 622 mBuffer ? "" : "o"); in finishWork() 628 const std::shared_ptr<C2Buffer> mBuffer; in finishWork() member in android::C2GoldfishHevcDec::finishWork::FillWork
|
/device/generic/goldfish-opengl/system/codecs/c2/decoders/avcdec/ |
D | C2GoldfishAvcDec.cpp | 662 : mFlags(flags), mOrdinal(ordinal), mBuffer(buffer) {} in finishWork() 671 if (mBuffer) { in finishWork() 672 work->worklets.front()->output.buffers.push_back(mBuffer); in finishWork() 676 mBuffer ? "" : "o"); in finishWork() 682 const std::shared_ptr<C2Buffer> mBuffer; in finishWork() member in android::C2GoldfishAvcDec::finishWork::FillWork
|