Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/runtime/
DMemory.h162 int copyIBufferToMemory(const SharedBuffer& src, const SharedMemory& dst);
164 int copyMemoryToIBuffer(const SharedMemory& src, const SharedBuffer& dst,
177 const SharedBuffer& getIBuffer() const { return kBuffer; } in getIBuffer()
200 explicit RuntimeMemory(SharedBuffer buffer);
205 const SharedBuffer kBuffer;
352 static std::pair<int, std::unique_ptr<MemoryFromDevice>> create(SharedBuffer buffer);
355 explicit MemoryFromDevice(SharedBuffer buffer);
DMemory.cpp193 RuntimeMemory::RuntimeMemory(SharedBuffer buffer) : kBuffer(std::move(buffer)) {} in RuntimeMemory()
235 int copyIBufferToMemory(const SharedBuffer& src, const SharedMemory& dst) { in copyIBufferToMemory()
244 int copyMemoryToIBuffer(const SharedMemory& src, const SharedBuffer& dst, in copyMemoryToIBuffer()
254 static int copyIBuffers(const SharedBuffer& src, const SharedBuffer& dst, in copyIBuffers()
600 std::pair<int, std::unique_ptr<MemoryFromDevice>> MemoryFromDevice::create(SharedBuffer buffer) { in create()
608 MemoryFromDevice::MemoryFromDevice(SharedBuffer buffer) : RuntimeMemory(std::move(buffer)) {} in MemoryFromDevice()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DPrimaryImage.java44 import com.android.gallery3d.filtershow.pipeline.SharedBuffer;
68 private SharedBuffer mPreviewBuffer = new SharedBuffer();
324 public SharedBuffer getPreviewBuffer() { in getPreviewBuffer()
/packages/modules/NeuralNetworks/common/include/nnapi/
DTypes.h80 using SharedBuffer = std::shared_ptr<const IBuffer>; variable
898 using MemoryPool = std::variant<SharedMemory, MemoryDomainToken, SharedBuffer>;
DIDevice.h349 virtual GeneralResult<SharedBuffer> allocate(
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DSharedBuffer.java21 public class SharedBuffer { class
DUpdatePreviewTask.java57 SharedBuffer buffer = PrimaryImage.getImage().getPreviewBuffer(); in doInBackground()
DCachingPipeline.java417 public void compute(SharedBuffer buffer, ImagePreset preset, int type) { in compute()
429 SharedBuffer buffer = PrimaryImage.getImage().getPreviewBuffer(); in needsRepaint()
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalDevice.h65 GeneralResult<SharedBuffer> allocate(const BufferDesc& desc,
DLimitedSupportDevice.h72 GeneralResult<SharedBuffer> allocate(const BufferDesc& desc,
DLimitedSupportDevice.cpp109 GeneralResult<SharedBuffer> LimitedSupportDevice::allocate( in allocate()
DCanonicalDevice.cpp204 GeneralResult<SharedBuffer> Device::allocate(const BufferDesc& desc, in allocate()
/packages/modules/NeuralNetworks/common/
DTypeUtils.cpp831 } else if (std::holds_alternative<SharedBuffer>(memoryPool)) { in operator <<()
832 const auto& buffer = std::get<SharedBuffer>(memoryPool); in operator <<()
DValidation.cpp1096 if (std::holds_alternative<SharedBuffer>(memoryPool)) { in validateRequestMemoryPool()
1097 NN_VALIDATE(std::get<SharedBuffer>(memoryPool) != nullptr); in validateRequestMemoryPool()
/packages/modules/NeuralNetworks/tools/api/
DTypes.t73 using SharedBuffer = std::shared_ptr<const IBuffer>;
Dtypes.spec7800 using MemoryPool = std::variant<SharedMemory, MemoryDomainToken, SharedBuffer>;