/packages/modules/NeuralNetworks/common/types/src/ |
D | SharedMemoryAndroid.cpp | 53 auto handle = Memory::Fd{ in createSharedMemoryFromUniqueFd() 59 return std::make_shared<const Memory>(Memory{.handle = std::move(handle)}); in createSharedMemoryFromUniqueFd() 74 auto handle = Memory::Ashmem{ in allocateSharedMemory() 78 return std::make_shared<const Memory>(Memory{.handle = std::move(handle)}); in allocateSharedMemory() 81 GeneralResult<Mapping> map(const Memory::Ashmem& memory) { in map() 118 GeneralResult<Mapping> map(const Memory::Ashmem& /*memory*/) { in map() 124 size_t getSize(const Memory::Ashmem& memory) { in getSize() 128 size_t getSize(const Memory::Fd& memory) { in getSize() 132 size_t getSize(const Memory::HardwareBuffer& memory) { in getSize() 145 size_t getSize(const Memory::Unknown& memory) { in getSize() [all …]
|
D | TypeUtils.cpp | 607 static std::ostream& operator<<(std::ostream& os, const Memory::Ashmem& memory) { in operator <<() 612 static std::ostream& operator<<(std::ostream& os, const Memory::Fd& memory) { in operator <<() 618 static std::ostream& operator<<(std::ostream& os, const Memory::HardwareBuffer& memory) { in operator <<() 625 static std::ostream& operator<<(std::ostream& os, const Memory::Unknown::Handle& handle) { in operator <<() 630 static std::ostream& operator<<(std::ostream& os, const Memory::Unknown& memory) { in operator <<() 635 std::ostream& operator<<(std::ostream& os, const Memory& memory) { in operator <<()
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestNeuralNetworksWrapper.h | 55 class Memory { 58 Memory(ANeuralNetworksMemory* memory) : mMemory(memory) {} in Memory() function 60 Memory(size_t size, int protect, int fd, size_t offset) { in Memory() function 66 Memory(AHardwareBuffer* buffer) { in Memory() function 72 virtual ~Memory() { ANeuralNetworksMemory_free(mMemory); } in ~Memory() 77 Memory(const Memory&) = delete; 78 Memory& operator=(const Memory&) = delete; 83 Memory(Memory&& other) { *this = std::move(other); } in Memory() function 84 Memory& operator=(Memory&& other) { 196 void setOperandValueFromMemory(uint32_t index, const Memory* memory, uint32_t offset, in setOperandValueFromMemory() [all …]
|
D | SupportLibraryTestUtils.h | 35 sl_wrapper::Memory memory) in TestAshmem() 59 sl_wrapper::Memory memory(nnapi, length, PROT_READ | PROT_WRITE, fd, 0); in createFrom() 68 sl_wrapper::Memory* get() { return &mMemory; } in get() 78 sl_wrapper::Memory mMemory;
|
D | TestUtils.h | 38 test_wrapper::Memory memory) in TestAshmem() 66 test_wrapper::Memory memory(length, PROT_READ | PROT_WRITE, fd, 0); in createFrom() 75 test_wrapper::Memory* get() { return &mMemory; } in get() 85 test_wrapper::Memory mMemory;
|
D | GeneratedTestUtils.h | 76 void setConstantReferenceMemory(std::unique_ptr<test_wrapper::Memory> memory) { in setConstantReferenceMemory() 82 std::unique_ptr<test_wrapper::Memory> mConstantReferenceMemory;
|
D | GeneratedTestUtils.cpp | 59 class MemoryWithPointer : public Memory { 97 : Memory(nnapi, size, protect, fd, offset), mMapping(std::move(mapping)) {} in create() 101 : Memory(size, protect, fd, offset), mMapping(std::move(mapping)) {} in create()
|
D | TestGenerated.cpp | 183 std::vector<Memory>* inputMemories, in createRequestWithDeviceMemories() 184 std::vector<Memory>* outputMemories) { in createRequestWithDeviceMemories() 223 const std::vector<Memory>& outputMemories, in copyResultsFromDeviceMemories() 255 std::vector<Memory> inputMemories, outputMemories; in executeInternal()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | XAttrUtils.java | 93 Memory.pokeLong(bytes, offset, fileAccessAttributes.getId(), byteOrder); in serializeFileAccessAttributes() 97 Memory.pokeInt(bytes, offset, fileAccessAttributes.getMediaType(), byteOrder); in serializeFileAccessAttributes() 103 Memory.pokeInt(bytes, offset, fileAccessAttributes.getOwnerId(), byteOrder); in serializeFileAccessAttributes() 122 long id = Memory.peekLong(data, offset, byteOrder); in deserializeFileAccessAttributes() 125 int mediaType = Memory.peekInt(data, offset, byteOrder); in deserializeFileAccessAttributes() 131 int ownerId = Memory.peekInt(data, offset, byteOrder); in deserializeFileAccessAttributes()
|
D | Memory.java | 21 public class Memory { class 23 private Memory() { in Memory() method in Memory
|
D | IsoInterface.java | 115 Memory.pokeInt(buf, 0, type, ByteOrder.BIG_ENDIAN); in typeToString() 123 return Memory.peekInt(buf, 0, ByteOrder.BIG_ENDIAN); in readInt()
|
/packages/modules/NeuralNetworks/runtime/include/ |
D | NeuralNetworksWrapper.h | 184 class Memory { 188 Memory(const NnApiSupportLibrary* nnapi, ANeuralNetworksMemory* memory) in Memory() function 191 Memory(const NnApiSupportLibrary* nnapi, size_t size, int protect, int fd, size_t offset) function 194 Memory(size_t size, int protect, int fd, size_t offset) { 202 Memory(const NnApiSupportLibrary* nnapi, AHardwareBuffer* buffer) : mNnApi(nnapi) { function 204 Memory(AHardwareBuffer* buffer) { 211 ~Memory() { 220 Memory(const Memory&) = delete; 221 Memory& operator=(const Memory&) = delete; 226 Memory(Memory&& other) { *this = std::move(other); } function [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | MemoryTest.java | 35 Memory.pokeInt(buf, 0, expected, ByteOrder.BIG_ENDIAN); in testBigEndian() 36 final int actual = Memory.peekInt(buf, 0, ByteOrder.BIG_ENDIAN); in testBigEndian() 43 Memory.pokeInt(buf, 0, expected, ByteOrder.LITTLE_ENDIAN); in testLittleEndian() 44 final int actual = Memory.peekInt(buf, 0, ByteOrder.LITTLE_ENDIAN); in testLittleEndian()
|
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | SupportLibraryWrapper.h | 48 class Memory { 51 Memory(const NnApiSupportLibrary* nnapi, ANeuralNetworksMemory* memory) in Memory() function 55 Memory(const NnApiSupportLibrary* nnapi, size_t size, int protect, int fd, size_t offset, 63 Memory(const NnApiSupportLibrary* nnapi, AHardwareBuffer* buffer, bool ownAHWB, size_t size) in Memory() function 70 Memory(const NnApiSupportLibrary* nnapi, ANeuralNetworksMemoryDesc* desc, size_t size) in Memory() function 76 virtual ~Memory() { in ~Memory() 91 Memory(const Memory&) = delete; 92 Memory& operator=(const Memory&) = delete; 97 Memory(Memory&& other) { *this = std::move(other); } in Memory() function 98 Memory& operator=(Memory&& other) { [all …]
|
D | ShimConverter.h | 33 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memory; 55 std::unique_ptr<::android::nn::sl_wrapper::Memory> convertFromHAL( 56 const NnApiSupportLibrary* nnapi, const neuralnetworks::Memory& pool);
|
D | ShimBufferTracker.h | 69 std::unique_ptr<Token> add(std::shared_ptr<::android::nn::sl_wrapper::Memory> buffer); 70 std::shared_ptr<::android::nn::sl_wrapper::Memory> get(uint32_t token) const; 81 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> mTokenToBuffers
|
D | ShimPreparedModel.h | 38 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memoryPools, in ShimPreparedModel() 80 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools, 101 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> mMemoryPools;
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimConverter.cpp | 48 const std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>>& memoryPools, in convertSubgraphFromHAL() 386 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memoryPools; in convertFromHAL() 389 std::unique_ptr<::android::nn::sl_wrapper::Memory> memory = convertFromHAL(nnapi, pool); in convertFromHAL() 428 std::unique_ptr<::android::nn::sl_wrapper::Memory> convertFromHAL( in convertFromHAL() 429 const NnApiSupportLibrary* nnapi, const neuralnetworks::Memory& pool) { in convertFromHAL() 430 using Tag = neuralnetworks::Memory::Tag; in convertFromHAL() 437 auto memory = std::make_unique<::android::nn::sl_wrapper::Memory>( in convertFromHAL() 451 auto memory = std::make_unique<::android::nn::sl_wrapper::Memory>( in convertFromHAL() 498 std::make_unique<::android::nn::sl_wrapper::Memory>(nnapi, ahwb, in convertFromHAL()
|
D | ShimPreparedModel.cpp | 50 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools, in parseInputs() 57 std::shared_ptr<::android::nn::sl_wrapper::Memory> mem = in parseInputs() 197 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> memoryPools, in ShimFencedExecutionCallback() 250 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> mMemoryPools; 259 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> requestMemoryPools, in executeFencedInternal() 316 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> requestMemoryPools; in executeFencedCommon() 413 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> requestMemoryPools; in executeSynchronouslyCommon() 544 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> requestMemoryPools, 557 const std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> kRequestMemoryPools; 567 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> requestMemoryPools; in createReusableExecution() [all …]
|
D | ShimBufferTracker.cpp | 35 std::shared_ptr<::android::nn::sl_wrapper::Memory> buffer) { in add() 52 std::shared_ptr<::android::nn::sl_wrapper::Memory> ShimBufferTracker::get(uint32_t token) const { in get()
|
D | ShimDevice.cpp | 198 std::shared_ptr<::android::nn::sl_wrapper::Memory> memory, in ShimBuffer() 251 ndk::ScopedAStatus copyFrom(const aidl::android::hardware::neuralnetworks::Memory& src, in copyFrom() 286 ndk::ScopedAStatus copyTo(const Memory& dst) override { in copyTo() 315 std::shared_ptr<::android::nn::sl_wrapper::Memory> mMemory; 439 std::make_shared<::android::nn::sl_wrapper::Memory>(mNnapi.get(), slDesc, *typeSize); in allocate()
|
/packages/modules/NeuralNetworks/common/types/include/nnapi/ |
D | Types.h | 52 struct Memory; 85 using SharedMemory = std::shared_ptr<const Memory>; 640 struct Memory { struct
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverAidl.h | 45 ndk::ScopedAStatus copyFrom(const aidl_hal::Memory& src, 47 ndk::ScopedAStatus copyTo(const aidl_hal::Memory& dst) override;
|
/packages/modules/NeuralNetworks/tools/api/ |
D | Types.t | 54 struct Memory; 78 using SharedMemory = std::shared_ptr<const Memory>; 166 struct Memory {
|
/packages/modules/Virtualization/microdroid/ |
D | microdroid_event-log-tags | 35 75003 sqlite_mem_released (Memory released|1|2)
|