Home
last modified time | relevance | path

Searched refs:Buffer (Results 1 – 25 of 31) sorted by relevance

12

/packages/services/DeviceAsWebcam/jni/
DBuffer.h79 class Buffer {
81 Buffer() = default;
86 virtual ~Buffer() = default;
99 class V4L2Buffer : public Buffer {
131 virtual Buffer* getFreeBufferIfAvailable() = 0;
134 virtual Status queueFilledBuffer(Buffer* buffer) = 0;
137 virtual Status cancelBuffer(Buffer* buffer) = 0;
146 virtual Buffer* getFilledBufferAndSwap() = 0;
153 virtual Status allocateAndMapBuffers(std::shared_ptr<Buffer>* consumerBuffer,
154 std::vector<std::shared_ptr<Buffer>>* producerBuffer) = 0;
[all …]
DBuffer.cpp31 std::vector<std::shared_ptr<Buffer>> producerBuffers; in BufferManager()
43 std::vector<std::shared_ptr<Buffer>> producerBuffers; in ~BufferManager()
52 Buffer* BufferManager::getFreeBufferIfAvailable() { in getFreeBufferIfAvailable()
103 Buffer* BufferManager::getFilledBufferAndSwap() { in getFilledBufferAndSwap()
122 bool BufferManager::changeProducerBufferStateLocked(Buffer* buffer, BufferState newState) { in changeProducerBufferStateLocked()
142 Status BufferManager::cancelBuffer(Buffer* buffer) { in cancelBuffer()
150 Status BufferManager::queueFilledBuffer(Buffer* buffer) { in queueFilledBuffer()
DUVCProvider.h145 std::shared_ptr<Buffer>* consumerBuffer,
146 std::vector<std::shared_ptr<Buffer>>* producerBuffers) override;
147 void destroyBuffers(std::shared_ptr<Buffer>& consumerBuffer,
148 std::vector<std::shared_ptr<Buffer>>& producerBuffers) override;
162 std::shared_ptr<Buffer> mapBuffer(uint32_t i);
163 static Status unmapBuffer(std::shared_ptr<Buffer>& buffer);
DEncoder.h39 EncodeRequest(HardwareBufferDesc& buffer, Buffer* producerBuffer, uint32_t rotation) in EncodeRequest()
42 Buffer* dstBuffer = nullptr;
58 virtual void onEncoded(Buffer* producerBuffer, HardwareBufferDesc& srcBuffer, bool success) = 0;
DUVCProvider.cpp572 std::shared_ptr<Buffer> UVCProvider::UVCDevice::mapBuffer(uint32_t i) { in mapBuffer()
597 std::shared_ptr<Buffer>* consumerBuffer, in allocateAndMapBuffers()
598 std::vector<std::shared_ptr<Buffer>>* producerBuffers) { in allocateAndMapBuffers()
634 std::shared_ptr<Buffer> buffer = mapBuffer(i); in allocateAndMapBuffers()
646 Status UVCProvider::UVCDevice::unmapBuffer(std::shared_ptr<Buffer>& buffer) { in unmapBuffer()
656 void UVCProvider::UVCDevice::destroyBuffers(std::shared_ptr<Buffer>& consumerBuffer, in destroyBuffers()
657 std::vector<std::shared_ptr<Buffer>>& producerBuffers) { in destroyBuffers()
689 Buffer* buffer = mBufferManager->getFilledBufferAndSwap(); in getFrameAndQueueBufferToGadgetDriver()
DSdkFrameProvider.cpp129 Buffer* producerBuffer = mBufferProducer->getFreeBufferIfAvailable(); in encodeImage()
144 void SdkFrameProvider::onEncoded(Buffer* producerBuffer, HardwareBufferDesc& desc, bool success) { in onEncoded()
DAndroid.bp21 "Buffer.cpp",
DSdkFrameProvider.h42 void onEncoded(Buffer* producerBuffer, HardwareBufferDesc& hardwareBufferDesc,
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DSharedBuffer.java25 private volatile Buffer mProducer = null;
26 private volatile Buffer mConsumer = null;
27 private volatile Buffer mIntermediate = null;
39 mProducer = new Buffer(producer); in setProducer()
45 public synchronized Buffer getProducer() { in getProducer()
49 public synchronized Buffer getConsumer() { in getConsumer()
54 Buffer intermediate = mIntermediate; in swapProducer()
64 Buffer intermediate = mIntermediate; in swapConsumerIfNeeded()
DBuffer.java25 public class Buffer { class
30 public Buffer(Bitmap bitmap) { in Buffer() method in Buffer
DFilterEnvironment.java61 public void cache(Buffer buffer) { in cache()
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalBuffer.cpp60 Buffer::Buffer(std::shared_ptr<ManagedBuffer> buffer, std::unique_ptr<BufferTracker::Token> token) in Buffer() function in android::nn::sample::Buffer
66 Request::MemoryDomainToken Buffer::getToken() const { in getToken()
70 GeneralResult<void> Buffer::copyTo(const SharedMemory& dst) const { in copyTo()
88 GeneralResult<void> Buffer::copyFrom(const SharedMemory& src, const Dimensions& dimensions) const { in copyFrom()
DCanonicalBuffer.h30 class Buffer final : public IBuffer {
32 Buffer(std::shared_ptr<ManagedBuffer> buffer, std::unique_ptr<BufferTracker::Token> token);
DCanonicalDevice.cpp255 auto sampleBuffer = std::make_shared<const Buffer>(std::move(bufferWrapper), std::move(token)); in allocate()
/packages/modules/StatsD/framework/java/android/util/
DStatsEvent.java244 private Buffer mBuffer;
247 private StatsEvent(final int atomId, @Nullable final Buffer buffer, in StatsEvent()
260 return new StatsEvent.Builder(Buffer.obtain()); in newBuilder()
354 private final Buffer mBuffer;
365 private Builder(final Buffer buffer) { in Builder()
848 private static final class Buffer { class in StatsEvent
852 private static Buffer sPool;
859 private static Buffer obtain() { in obtain()
860 final Buffer buffer; in obtain()
862 buffer = null == sPool ? new Buffer() : sPool; in obtain()
[all …]
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DConverter.cpp62 TestBuffer convert(size_t size, bool initialize, const Buffer& buffer) { in convert()
64 case Buffer::TypeCase::TYPE_NOT_SET: in convert()
65 case Buffer::TypeCase::kEmpty: in convert()
67 case Buffer::TypeCase::kScalar: { in convert()
71 case Buffer::TypeCase::kRandomSeed: { in convert()
DModel.proto161 message Buffer { message
189 Buffer data = 8;
DGenerateCorpus.cpp78 Buffer convert(bool noValue, const TestBuffer& buffer) { in convert()
79 Buffer protoBuffer; in convert()
/packages/modules/Bluetooth/system/gd/proto/bluetooth/metrics/
Dbluetooth.proto154 // Buffer overruns count.
157 // Buffer overruns total.
160 // Buffer underruns average.
163 // Buffer underruns count.
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DBitmapCache.java22 import com.android.gallery3d.filtershow.pipeline.Buffer;
121 public void cache(Buffer buffer) { in cache()
/packages/modules/NeuralNetworks/runtime/
DExecutionPlan.h793 class Buffer {
795 Buffer(void* pointer, uint32_t size);
796 Buffer(RunTimePoolInfo info, uint32_t offset);
807 std::optional<Buffer> getBuffer(std::shared_ptr<Controller> controller,
809 std::optional<Buffer> getBufferFromModelArgumentInfo(
DExecutionPlan.cpp1467 ExecutionPlan::Buffer::Buffer(void* pointer, uint32_t size) in Buffer() function in android::nn::ExecutionPlan::Buffer
1471 ExecutionPlan::Buffer::Buffer(RunTimePoolInfo info, uint32_t offset) in Buffer() function in android::nn::ExecutionPlan::Buffer
1474 void* ExecutionPlan::Buffer::getPointer() const { in getPointer()
1478 uint32_t ExecutionPlan::Buffer::getSize() const { in getSize()
1482 void ExecutionPlan::Buffer::flush() const { in flush()
1486 std::optional<ExecutionPlan::Buffer> ExecutionPlan::getBufferFromModelArgumentInfo( in getBufferFromModelArgumentInfo()
1490 return Buffer(info.buffer(), info.length()); in getBufferFromModelArgumentInfo()
1495 return Buffer(*poolInfo, info.locationAndLength().offset); in getBufferFromModelArgumentInfo()
1512 std::optional<ExecutionPlan::Buffer> ExecutionPlan::getBuffer( in getBuffer()
1523 return Buffer(memory->getPointer() + offset, memory->getSize() - offset); in getBuffer()
[all …]
DFlatbufferModelBuilderUtils.h43 using BufferFlatbuffer = flatbuffers::Offset<tflite::Buffer>;
/packages/apps/Car/DebuggingRestrictionController/libs/
Dokio-1.15.0.jarMETA-INF/ META-INF/MANIFEST.MF okio/ okio/AsyncTimeout$Watchdog. ...
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DPrimaryImage.java40 import com.android.gallery3d.filtershow.pipeline.Buffer;
334 Buffer consumer = mPreviewBuffer.getConsumer(); in getFilteredImage()

12