Home
last modified time | relevance | path

Searched refs:Memory (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/ml/nn/runtime/
DMemory.h167 class Memory {
169 DISALLOW_COPY_AND_ASSIGN(Memory);
174 virtual ~Memory();
199 static int copy(const Memory& src, const Memory& dst);
202 Memory(hal::hidl_memory memory);
203 Memory(hal::hidl_memory memory, std::unique_ptr<MemoryValidatorBase> validator);
204 Memory(sp<hal::IBuffer> buffer, uint32_t token);
241 std::pair<int, std::unique_ptr<Memory>> allocate() const;
274 class MemoryAshmem : public Memory {
301 class MemoryFd : public Memory {
[all …]
DMemory.cpp186 Memory::Memory(hal::hidl_memory memory) in Memory() function in android::nn::Memory
190 Memory::Memory(hal::hidl_memory memory, std::unique_ptr<MemoryValidatorBase> validator) in Memory() function in android::nn::Memory
193 Memory::Memory(sp<hal::IBuffer> buffer, uint32_t token) in Memory() function in android::nn::Memory
196 Memory::~Memory() { in ~Memory()
204 Request::MemoryPool Memory::getMemoryPool() const { in getMemoryPool()
214 std::optional<RunTimePoolInfo> Memory::getRunTimePoolInfo() const { in getRunTimePoolInfo()
223 intptr_t Memory::getKey() const { in getKey()
227 void Memory::usedBy(const std::shared_ptr<ExecutionBurstController>& burst) const { in usedBy()
279 static int copyInternal(const Memory& src, const Memory& dst) { in copyInternal()
310 int Memory::copy(const Memory& src, const Memory& dst) { in copy()
[all …]
DExecutionBuilder.h44 class Memory; variable
58 const Memory* memory, size_t offset, size_t length);
62 const Memory* memory, size_t offset, size_t length);
257 int setInputFromMemory(uint32_t inputIndex, const Memory* memory, uint32_t offset) { in setInputFromMemory()
261 int setOutputFromMemory(uint32_t outputIndex, const Memory* memory, uint32_t offset) { in setOutputFromMemory()
287 int setInputOrOutputFromMemory(const hal::Operand& inputOrOutputOperand, const Memory* memory,
291 const std::optional<Deadline>& deadline, const std::vector<const Memory*>& memories,
DManager.cpp107 std::pair<int, std::unique_ptr<Memory>> allocate(const MemoryDescriptor& desc,
138 const std::vector<const Memory*>& memories,
146 const std::vector<const Memory*>& memories, const std::vector<int>& waitFor,
257 std::pair<int, std::unique_ptr<Memory>> DriverDevice::allocate(const MemoryDescriptor& desc, in allocate()
283 std::vector<const Memory*>* memories) { in allocatePointerArgumentsToPool()
325 const std::vector<const Memory*>& memories, in execute()
332 std::vector<const Memory*> localMemories = memories; in execute()
387 for (const Memory* memory : localMemories) { in execute()
433 const std::vector<const Memory*>& memories, const std::vector<int>& waitFor, in executeFenced()
440 std::vector<const Memory*> localMemories = memories; in executeFenced()
[all …]
DManager.h60 const std::vector<const Memory*>& memories,
71 const std::vector<const Memory*>& memories, const std::vector<int>& waitFor,
114 virtual std::pair<int, std::unique_ptr<Memory>> allocate(const MemoryDescriptor& desc,
DExecutionBuilder.cpp164 const Memory* memory, size_t offset, size_t length) { in setInputFromMemory()
241 const Memory* memory, size_t offset, size_t length) { in setOutputFromMemory()
810 const Memory* memory = mMemories[p.locationAndLength().poolIndex]; in compute()
921 const Memory* memory = mMemories[output.locationAndLength().poolIndex]; in updateMemories()
938 const Memory* memory = mMemories[output.locationAndLength().poolIndex]; in finishWithoutSyncFence()
1014 const Memory* memory = mExecutionBuilder->mMemories[builderPoolIndex]; in mapInputOrOutput()
1023 const Memory* memory, uint32_t offset, in setInputOrOutputFromMemory()
1082 const std::optional<Deadline>& deadline, const std::vector<const Memory*>& memories, in computeWithMemories()
1147 std::vector<const Memory*> memories = mMemories.getObjects(); in computeOnCpuFallback()
1150 std::vector<std::unique_ptr<Memory>> blobAhwbs; in computeOnCpuFallback()
[all …]
DNeuralNetworks.cpp991 const Memory* s = reinterpret_cast<const Memory*>(src); in ANeuralNetworksMemory_copy()
992 const Memory* d = reinterpret_cast<const Memory*>(dst); in ANeuralNetworksMemory_copy()
993 return Memory::copy(*s, *d); in ANeuralNetworksMemory_copy()
1027 Memory* m = reinterpret_cast<Memory*>(memory); in ANeuralNetworksMemory_free()
1094 const Memory* mem = reinterpret_cast<const Memory*>(memory); in ANeuralNetworksModel_setOperandValueFromMemory()
1305 const Memory* m = reinterpret_cast<const Memory*>(memory); in ANeuralNetworksExecution_setInputFromMemory()
1333 const Memory* m = reinterpret_cast<const Memory*>(memory); in ANeuralNetworksExecution_setOutputFromMemory()
DModelBuilder.h37 class Memory; variable
47 int setOperandValueFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
DExecutionPlan.h53 class Memory; variable
161 std::shared_ptr<StepExecutor> stepExecutor, const Memory* temporaryMemory,
407 const Memory* memory;
DAndroid.bp50 "Memory.cpp",
/frameworks/base/core/java/android/os/
DFileBridge.java28 import libcore.io.Memory;
100 final int cmd = Memory.peekInt(temp, 0, ByteOrder.BIG_ENDIAN); in run()
103 int len = Memory.peekInt(temp, 4, ByteOrder.BIG_ENDIAN); in run()
166 Memory.pokeInt(mTemp, 0, cmd, ByteOrder.BIG_ENDIAN); in writeCommandAndBlock()
171 if (Memory.peekInt(mTemp, 0, ByteOrder.BIG_ENDIAN) == cmd) { in writeCommandAndBlock()
182 Memory.pokeInt(mTemp, 0, CMD_WRITE, ByteOrder.BIG_ENDIAN); in write()
183 Memory.pokeInt(mTemp, 4, byteCount, ByteOrder.BIG_ENDIAN); in write()
DParcelFileDescriptor.java55 import libcore.io.Memory;
854 Memory.pokeInt(buf, writePtr, status, ByteOrder.BIG_ENDIAN); in writeCommStatusAndClose()
888 final int status = Memory.peekInt(buf, 0, ByteOrder.BIG_ENDIAN); in readCommStatus()
/frameworks/ml/nn/runtime/test/
DTestNeuralNetworksWrapper.h51 class Memory {
54 Memory(ANeuralNetworksMemory* memory) : mMemory(memory) {} in Memory() function
56 Memory(size_t size, int protect, int fd, size_t offset) { in Memory() function
61 Memory(AHardwareBuffer* buffer) { in Memory() function
66 virtual ~Memory() { ANeuralNetworksMemory_free(mMemory); } in ~Memory()
71 Memory(const Memory&) = delete;
72 Memory& operator=(const Memory&) = delete;
77 Memory(Memory&& other) { *this = std::move(other); } in Memory() function
78 Memory& operator=(Memory&& other) {
190 void setOperandValueFromMemory(uint32_t index, const Memory* memory, uint32_t offset, in setOperandValueFromMemory()
[all …]
DTestMemoryDomain.cpp214 std::pair<int, test_wrapper::Memory> allocateDeviceMemory( in allocateDeviceMemory()
233 return {n, test_wrapper::Memory(memory)}; in allocateDeviceMemory()
291 const Memory* m = reinterpret_cast<const Memory*>(memory.get()); in TEST_P()
301 const Memory* m = reinterpret_cast<const Memory*>(memory.get()); in TEST_P()
329 const Memory* m = reinterpret_cast<const Memory*>(memory.get()); in TEST_P()
339 const Memory* m = reinterpret_cast<const Memory*>(memory.get()); in TEST_P()
363 const Memory* m = reinterpret_cast<const Memory*>(memory.get()); in TEST_P()
386 const Memory* m = reinterpret_cast<const Memory*>(memory.get()); in TEST_P()
412 const Memory* m = reinterpret_cast<const Memory*>(memory.get()); in TEST_P()
DTestUtils.h36 test_wrapper::Memory memory) in TestAshmem()
58 test_wrapper::Memory memory(length, PROT_READ | PROT_WRITE, fd, 0); in createFrom()
67 test_wrapper::Memory* get() { return &mMemory; } in get()
77 test_wrapper::Memory mMemory;
DGeneratedTestUtils.h61 void setConstantReferenceMemory(std::unique_ptr<test_wrapper::Memory> memory) { in setConstantReferenceMemory()
67 std::unique_ptr<test_wrapper::Memory> mConstantReferenceMemory;
DGeneratedTestUtils.cpp50 class MemoryAHWB : public Memory {
81 MemoryAHWB(AHardwareBuffer* ahwb, void* buffer) : Memory(ahwb), mAhwb(ahwb), mBuffer(buffer) {} in MemoryAHWB()
DTestUnspecifiedDimensions.cpp108 memory = std::make_shared<Memory>(size, PROT_READ | PROT_WRITE, fd, 0); in initialize()
111 const Memory* getMemory() const { return memory.get(); } in getMemory()
116 std::shared_ptr<Memory> memory;
DTestMemory.cpp28 using WrapperMemory = ::android::nn::test_wrapper::Memory;
/frameworks/ml/nn/runtime/include/
DNeuralNetworksWrapper.h156 class Memory {
158 Memory(size_t size, int protect, int fd, size_t offset) { in Memory() function
163 Memory(AHardwareBuffer* buffer) { in Memory() function
168 ~Memory() { ANeuralNetworksMemory_free(mMemory); } in ~Memory()
173 Memory(const Memory&) = delete;
174 Memory& operator=(const Memory&) = delete;
179 Memory(Memory&& other) { *this = std::move(other); } in Memory() function
180 Memory& operator=(Memory&& other) {
264 void setOperandValueFromMemory(uint32_t index, const Memory* memory, uint32_t offset, in setOperandValueFromMemory()
440 Result setInputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
[all …]
/frameworks/base/core/proto/android/os/
Dpagetypeinfo.proto52 // Memory zone.
70 // Memory zone.
Dprocrank.proto24 // Memory usage of running processes
/frameworks/base/media/java/android/media/
DImageUtils.java24 import libcore.io.Memory;
279 Memory.memmove(dstBuffer, dstOffset, srcBuffer, srcOffset, srcByteCount); in directByteBufferCopy()
/frameworks/native/include/binder/
DIMemory.h74 DECLARE_META_INTERFACE(Memory)
/frameworks/native/libs/binder/include/binder/
DIMemory.h74 DECLARE_META_INTERFACE(Memory)

12