Home
last modified time | relevance | path

Searched defs:memory (Results 1 – 25 of 44) sorted by relevance

12

/packages/modules/NeuralNetworks/common/types/src/
DSharedMemoryAndroid.cpp81 GeneralResult<Mapping> map(const Memory::Ashmem& memory) { in map()
104 const CompatibilityLayerMemory& memory = loadCompatibilityLayerMemory(); in allocateSharedMemory() local
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()
154 GeneralResult<Mapping> map(const Memory::Fd& memory) { in map()
174 GeneralResult<Mapping> map(const Memory::HardwareBuffer& memory) { in map()
252 size_t getSize(const SharedMemory& memory) { in getSize()
257 bool isAhwbBlob(const Memory::HardwareBuffer& memory) { in isAhwbBlob()
[all …]
DSharedMemory.cpp125 auto memory = NN_TRY(mBuilder.finish()); in finish() local
170 auto memory = NN_TRY(memoryBuilder.finish()); in flushDataFromPointerToShared() local
233 auto memory = NN_TRY(inputBuilder.finish()); in convertRequestFromPointerToShared() local
257 auto memory = NN_TRY(outputBuilder.finish()); in convertRequestFromPointerToShared() local
DTypeUtils.cpp270 [](const SharedMemory& memory) { return getSize(memory); }); in getMemorySizes()
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 <<()
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 <<()
641 std::ostream& operator<<(std::ostream& os, const SharedMemory& memory) { in operator <<()
DValidation.cpp715 Result<Version> validateMemory(const Memory::Ashmem& memory) { in validateMemory()
721 Result<Version> validateMemory(const Memory::Fd& memory) { in validateMemory()
733 Result<Version> validateMemory(const Memory::HardwareBuffer& memory) { in validateMemory()
738 Result<Version> validateMemory(const Memory::Unknown& memory) { in validateMemory()
743 Result<Version> validateSharedMemory(const SharedMemory& memory) { in validateSharedMemory()
1087 const auto* memory = std::get_if<SharedMemory>(&memoryPool); in validateRequest() local
1878 Result<Version> validate(const SharedMemory& memory) { in validate()
/packages/modules/NeuralNetworks/runtime/
DMemory.cpp187 RuntimeMemory::RuntimeMemory(SharedMemory memory) : kMemory(std::move(memory)) { in RuntimeMemory()
192 RuntimeMemory::RuntimeMemory(SharedMemory memory, std::unique_ptr<MemoryValidatorBase> validator) in RuntimeMemory()
266 const SharedMemory& memory = runtimeMemory->getMemory(); in copyIBuffers() local
491 std::unique_ptr<RuntimeMemory> memory; in allocate() local
521 auto memory = createSharedMemory(size); in create() local
539 MemoryAshmem::MemoryAshmem(SharedMemory memory, Mapping mapping) in MemoryAshmem()
544 auto memory = createSharedMemoryFromFd(size, prot, fd, offset); in create() local
552 MemoryFd::MemoryFd(SharedMemory memory) : RuntimeMemory(std::move(memory)) {} in MemoryFd()
556 auto memory = createSharedMemoryFromAHWB(const_cast<AHardwareBuffer*>(&ahwb), in create() local
598 auto memory = createSharedMemoryFromAHWB(ahwb, /*takeOWnership=*/true); in create() local
[all …]
DExecutionBuilder.cpp213 const RuntimeMemory* memory, size_t offset, in setInputFromMemory()
294 const RuntimeMemory* memory, size_t offset, in setOutputFromMemory()
1071 const RuntimeMemory* memory = mMemories[p.locationAndLength().poolIndex]; in compute() local
1191 const RuntimeMemory* memory = mMemories[output.locationAndLength().poolIndex]; in updateMemories() local
1206 const RuntimeMemory* memory = mMemories[output.locationAndLength().poolIndex]; in finishComputation() local
1414 const RuntimeMemory* memory = mExecutionBuilder->mMemories[builderPoolIndex]; in mapInputOrOutput() local
1423 const RuntimeMemory* memory, uint32_t offset, in setInputOrOutputFromMemory()
1622 const RuntimeMemory* memory = mMemories[i]; in computeOnCpuFallback() local
1652 const RuntimeMemory* memory = mMemories[i]; in computeOnCpuFallback() local
DNeuralNetworks.cpp1009 ANeuralNetworksMemory** memory) { in ANeuralNetworksMemory_createFromDesc()
1039 ANeuralNetworksMemory** memory) { in ANeuralNetworksMemory_createFromFd()
1059 ANeuralNetworksMemory** memory) { in ANeuralNetworksMemory_createFromAHardwareBuffer()
1078 void ANeuralNetworksMemory_free(ANeuralNetworksMemory* memory) { in ANeuralNetworksMemory_free()
1141 const ANeuralNetworksMemory* memory, in ANeuralNetworksModel_setOperandValueFromMemory()
1357 const ANeuralNetworksMemory* memory, size_t offset, in ANeuralNetworksExecution_setInputFromMemory()
1384 const ANeuralNetworksMemory* memory, size_t offset, in ANeuralNetworksExecution_setOutputFromMemory()
/packages/services/Car/car-lib/src/com/android/car/internal/
DLargeParcelableBase.java106 SharedMemory memory = SharedMemory.CREATOR.createFromParcel(in); in LargeParcelableBase() local
176 private void writeSharedMemoryCompatibleToParcel(Parcel dest, SharedMemory memory, int flags) { in writeSharedMemoryCompatibleToParcel()
218 SharedMemory memory = null; in serializeParcelToSharedMemory() local
262 protected static Parcel copyFromSharedMemory(SharedMemory memory) { in copyFromSharedMemory()
309 private void deserializeSharedMemoryAndClose(SharedMemory memory) { in deserializeSharedMemoryAndClose()
DLargeParcelable.java207 SharedMemory memory = LargeParcelableBase.serializeParcelToSharedMemory(dataParcel); in toLargeParcelable() local
283 SharedMemory memory = SharedMemory.fromFileDescriptor(sharedMemoryFd.dup()); in reconstructStableAIDLParcelable() local
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DHandlerUtilsTest.kt49 var memory = StringBuilder() in <lambda>() variable
/packages/modules/NeuralNetworks/shim_and_sl/
DShimConverter.cpp381 std::unique_ptr<::android::nn::sl_wrapper::Memory> memory = convertFromHAL(nnapi, pool); in convertFromHAL() local
429 auto memory = std::make_unique<::android::nn::sl_wrapper::Memory>( in convertFromHAL() local
443 auto memory = std::make_unique<::android::nn::sl_wrapper::Memory>( in convertFromHAL() local
489 auto memory = in convertFromHAL() local
DShimDevice.cpp198 std::shared_ptr<::android::nn::sl_wrapper::Memory> memory, in ShimBuffer()
253 auto memory = convertFromHAL(mNnApi, src); in copyFrom() local
287 auto memory = convertFromHAL(mNnApi, dst); in copyTo() local
438 auto memory = in allocate() local
/packages/modules/NeuralNetworks/runtime/test/
DTestMemoryDomain.cpp243 ANeuralNetworksMemory* memory; in allocateDeviceMemory() local
318 const auto& memory = m->getMemory(); in TEST_P() local
356 const auto& memory = m->getMemory(); in TEST_P() local
380 const auto& memory = m->getMemory(); in TEST_P() local
403 const auto& memory = m->getMemory(); in TEST_P() local
DGeneratedTestUtils.cpp137 const std::unique_ptr<MemoryWithPointer>& memory,
197 std::unique_ptr<MemoryWithPointer> memory = createConstantReferenceMemory(nnapi, testModel); local
199 std::unique_ptr<MemoryWithPointer> memory = createConstantReferenceMemory(testModel); local
DTestValidation.cpp252 for (auto* memory : mMemories) ANeuralNetworksMemory_free(memory); in TearDown() local
368 ANeuralNetworksMemory* memory, int expectedResult) { in executeWithMemoryAsInput()
382 ANeuralNetworksMemory* memory, int expectedResult) { in executeWithMemoryAsOutput()
634 ANeuralNetworksMemory* memory; in TEST_F() local
697 ANeuralNetworksMemory* memory; in TEST_F() local
728 ANeuralNetworksMemory* memory; in TEST_F() local
1341 ANeuralNetworksMemory* memory; in TEST_F() local
1711 ANeuralNetworksMemory* memory; in TEST_F() local
1782 ANeuralNetworksMemory* memory; in TEST_F() local
1818 ANeuralNetworksMemory* memory; in TEST_F() local
[all …]
DTestUtils.h38 test_wrapper::Memory memory) in TestAshmem()
DGeneratedTestUtils.h76 void setConstantReferenceMemory(std::unique_ptr<test_wrapper::Memory> memory) { in setConstantReferenceMemory()
DSupportLibraryTestUtils.h35 sl_wrapper::Memory memory) in TestAshmem()
DTestGenerated.cpp162 ANeuralNetworksMemory* memory = nullptr; in createDeviceMemoryForInput() local
175 ANeuralNetworksMemory* memory = nullptr; in createDeviceMemoryForOutput() local
200 ANeuralNetworksMemory* memory = createDeviceMemoryForInput(compilation, i); in createRequestWithDeviceMemories() local
215 ANeuralNetworksMemory* memory = createDeviceMemoryForOutput(compilation, i); in createRequestWithDeviceMemories() local
DSupportLibraryTestGenerated.cpp266 ANeuralNetworksMemory* memory = nullptr; in createDeviceMemoryForInput() local
280 ANeuralNetworksMemory* memory = nullptr; in createDeviceMemoryForOutput() local
310 ANeuralNetworksMemory* memory = createDeviceMemoryForInput(compilation, i); in computeWithDeviceMemories() local
325 ANeuralNetworksMemory* memory = createDeviceMemoryForOutput(compilation, i); in computeWithDeviceMemories() local
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/
DSharedMemoryHelper.java42 public static ParcelFileDescriptor createParcelFileDescriptor( in createParcelFileDescriptor()
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimConverter.h33 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memory; member
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DSharedMemory.h147 std::vector<RelocationInfoType> relocationInfos, SharedMemory memory) { in create()
153 RelocationTracker(std::vector<RelocationInfoType> relocationInfos, SharedMemory memory, in RelocationTracker()
/packages/services/Car/car-lib/src/android/car/telemetry/
Dtelemetry.proto189 MemoryPublisher memory = 5; field
/packages/modules/NeuralNetworks/common/
DExecutionBurstController.cpp413 [](const hardware::hidl_memory& memory) { return memory.valid(); })) { in getMemories()
453 const hardware::hidl_memory& memory, intptr_t key) { in getSlotLocked()

12