/device/generic/goldfish-opengl/android-emu/android/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/network/wifi_forwarder/ |
D | remote_connection.cpp | 112 size_t start = mBuffer.size(); in receive() 123 mBuffer.resize(newSize); in receive() 127 mBuffer.data() + start, in receive() 128 mBuffer.size() - start); in receive() 136 mBuffer.resize(start); in receive() 141 mBuffer.resize(start); in receive() 146 mBuffer.resize(start + static_cast<size_t>(result)); in receive() 150 while (mBuffer.size() >= sizeof(WifiForwardHeader)) { in receive() 151 auto fwd = reinterpret_cast<WifiForwardHeader*>(mBuffer.data()); in receive() 159 ::memmem(mBuffer.data(), mBuffer.size(), in receive() [all …]
|
D | remote_connection.h | 58 std::vector<unsigned char> mBuffer; variable
|
/device/generic/goldfish/camera/jpeg-stub/ |
D | Compressor.cpp | 40 return mDestManager.mBuffer; in getCompressedData() 184 manager->mBuffer.resize(16 * 1024); in initDestination() 185 manager->next_output_byte = &manager->mBuffer[0]; in initDestination() 186 manager->free_in_buffer = manager->mBuffer.size(); in initDestination() 195 size_t oldSize = manager->mBuffer.size(); in emptyOutputBuffer() 196 manager->mBuffer.resize(oldSize * 2); in emptyOutputBuffer() 197 manager->next_output_byte = &manager->mBuffer[oldSize]; in emptyOutputBuffer() 198 manager->free_in_buffer = manager->mBuffer.size() - oldSize; in emptyOutputBuffer() 207 manager->mBuffer.resize(manager->mBuffer.size() - manager->free_in_buffer); in termDestination()
|
D | Compressor.h | 57 std::vector<unsigned char> mBuffer; member
|
/device/google/cuttlefish/guest/hals/camera/ |
D | Compressor.cpp | 41 return mDestManager.mBuffer; in getCompressedData() 209 manager->mBuffer.resize(16 * 1024); in initDestination() 210 manager->next_output_byte = &manager->mBuffer[0]; in initDestination() 211 manager->free_in_buffer = manager->mBuffer.size(); in initDestination() 220 size_t oldSize = manager->mBuffer.size(); in emptyOutputBuffer() 221 manager->mBuffer.resize(oldSize * 2); in emptyOutputBuffer() 222 manager->next_output_byte = &manager->mBuffer[oldSize]; in emptyOutputBuffer() 223 manager->free_in_buffer = manager->mBuffer.size() - oldSize; in emptyOutputBuffer() 232 manager->mBuffer.resize(manager->mBuffer.size() - manager->free_in_buffer); in termDestination()
|
D | Compressor.h | 57 std::vector<unsigned char> mBuffer; member
|
/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/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/generic/goldfish-opengl/system/hwc2/ |
D | EmuHWC2.h | 129 FencedBuffer() : mBuffer(nullptr) {} in FencedBuffer() 131 void setBuffer(buffer_handle_t buffer) { mBuffer = buffer; } in setBuffer() 136 buffer_handle_t getBuffer() const { return mBuffer; } in getBuffer() 140 buffer_handle_t mBuffer; 426 FencedBuffer& getLayerBuffer() {return mBuffer; } in getLayerBuffer() 436 FencedBuffer mBuffer; variable
|
D | EmuHWC2.cpp | 1499 mBuffer(), in Layer() 1517 mBuffer.setBuffer(buffer); in setBuffer() 1518 mBuffer.setFence(acquireFence); in setBuffer()
|
/device/google/cuttlefish/guest/hals/hwcomposer/cutf_cvm/ |
D | HWC2.h | 173 FencedBuffer() : mBuffer(nullptr), mFence(MiniFence::NO_FENCE) {} in FencedBuffer() 175 void setBuffer(buffer_handle_t buffer) { mBuffer = buffer; } in setBuffer() 178 buffer_handle_t getBuffer() const { return mBuffer; } in getBuffer() 182 buffer_handle_t mBuffer; 594 FencedBuffer mBuffer; variable
|
D | HWC2.cpp | 2064 mBuffer(), in Layer() 2088 mBuffer.setBuffer(buffer); in setBuffer() 2089 mBuffer.setFence(acquireFence); in setBuffer() 2255 output << " Buffer: " << mBuffer.getBuffer() << '\n'; in dump() 2337 hwc1Layer.handle = mBuffer.getBuffer(); in applyBufferState() 2338 hwc1Layer.acquireFenceFd = mBuffer.getFence(); in applyBufferState()
|