Home
last modified time | relevance | path

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

123

/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 <<()
/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.cpp1032 ANeuralNetworksMemory** memory) { in ANeuralNetworksMemory_createFromDesc()
1062 ANeuralNetworksMemory** memory) { in ANeuralNetworksMemory_createFromFd()
1082 ANeuralNetworksMemory** memory) { in ANeuralNetworksMemory_createFromAHardwareBuffer()
1101 void ANeuralNetworksMemory_free(ANeuralNetworksMemory* memory) { in ANeuralNetworksMemory_free()
1164 const ANeuralNetworksMemory* memory, in ANeuralNetworksModel_setOperandValueFromMemory()
1380 const ANeuralNetworksMemory* memory, size_t offset, in ANeuralNetworksExecution_setInputFromMemory()
1407 const ANeuralNetworksMemory* memory, size_t offset, in ANeuralNetworksExecution_setOutputFromMemory()
/packages/services/Car/car-lib/src/com/android/car/internal/
DLargeParcelableBase.java107 SharedMemory memory = SharedMemory.CREATOR.createFromParcel(in); in LargeParcelableBase() local
183 private void writeSharedMemoryCompatibleToParcel(Parcel dest, SharedMemory memory, int flags) { in writeSharedMemoryCompatibleToParcel()
225 SharedMemory memory = null; in serializeParcelToSharedMemory() local
269 protected static Parcel copyFromSharedMemory(SharedMemory memory) { in copyFromSharedMemory()
316 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/NeuralNetworks/shim_and_sl/
DShimConverter.cpp389 std::unique_ptr<::android::nn::sl_wrapper::Memory> memory = convertFromHAL(nnapi, pool); in convertFromHAL() local
437 auto memory = std::make_unique<::android::nn::sl_wrapper::Memory>( in convertFromHAL() local
451 auto memory = std::make_unique<::android::nn::sl_wrapper::Memory>( in convertFromHAL() local
497 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.cpp253 for (auto* memory : mMemories) ANeuralNetworksMemory_free(memory); in TearDown() local
369 ANeuralNetworksMemory* memory, int expectedResult) { in executeWithMemoryAsInput()
383 ANeuralNetworksMemory* memory, int expectedResult) { in executeWithMemoryAsOutput()
635 ANeuralNetworksMemory* memory; in TEST_F() local
698 ANeuralNetworksMemory* memory; in TEST_F() local
729 ANeuralNetworksMemory* memory; in TEST_F() local
1342 ANeuralNetworksMemory* memory; in TEST_F() local
1712 ANeuralNetworksMemory* memory; in TEST_F() local
1783 ANeuralNetworksMemory* memory; in TEST_F() local
1819 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.cpp271 ANeuralNetworksMemory* memory = nullptr; in createDeviceMemoryForInput() local
285 ANeuralNetworksMemory* memory = nullptr; in createDeviceMemoryForOutput() local
314 ANeuralNetworksMemory* memory = createDeviceMemoryForInput(compilation, i); in computeWithDeviceMemories() local
331 ANeuralNetworksMemory* memory = createDeviceMemoryForOutput(compilation, i); in computeWithDeviceMemories() local
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimConverter.h33 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memory; member
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/
DSharedMemoryHelper.java39 public static ParcelFileDescriptor createParcelFileDescriptor( in createParcelFileDescriptor()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DHandlerUtilsTest.kt52 var memory = StringBuilder() in <lambda>() variable
/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/modules/Virtualization/libs/libfdt/tests/
Dapi_test.rs40 let mut memory = fdt.memory().unwrap(); in retrieving_memory_from_fdt_with_one_memory_range_succeeds() localVariable
53 let mut memory = fdt.memory().unwrap(); in retrieving_memory_from_fdt_with_multiple_memory_ranges_succeeds() localVariable
65 let mut memory = fdt.memory().unwrap(); in retrieving_first_memory_from_fdt_with_empty_memory_range_fails() localVariable
346 let mut memory = fdt.node_mut(cstr!("/memory")).unwrap().unwrap(); in node_mut_as_node() localVariable
348 let memory = memory.as_node(); in node_mut_as_node() localVariable
/packages/modules/Virtualization/vmbase/src/
Dlib.rs33 pub mod memory; module
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/
DParcelUtils.java45 try (SharedMemory memory = SharedMemory.CREATOR.createFromParcel(in)) { in getParcelForSharedMemoryIfRequired()

123