Home
last modified time | relevance | path

Searched refs:MemoryPool (Results 1 – 25 of 31) sorted by relevance

12

/aosp12/system/chre/util/include/chre/util/
H A Dmemory_pool_impl.h27 MemoryPool<ElementType, kSize>::MemoryPool() { in MemoryPool() function
39 ElementType *MemoryPool<ElementType, kSize>::allocate(Args &&... args) { in allocate()
53 void MemoryPool<ElementType, kSize>::deallocate(ElementType *element) { in deallocate()
65 size_t MemoryPool<ElementType, kSize>::getFreeBlockCount() const { in getFreeBlockCount()
70 typename MemoryPool<ElementType, kSize>::MemoryPoolBlock *
71 MemoryPool<ElementType, kSize>::blocks() { in blocks()
H A Dmemory_pool.h49 class MemoryPool : public NonCopyable {
55 MemoryPool();
H A Dsynchronized_memory_pool.h65 MemoryPool<ElementType, kSize> mMemoryPool;
/aosp12/system/chre/util/tests/
H A Dmemory_pool_test.cc8 using chre::MemoryPool;
10 TEST(MemoryPool, ExhaustPool) { in TEST() argument
11 MemoryPool<int, 3> memoryPool; in TEST()
23 TEST(MemoryPool, ExhaustPoolThenDeallocateOneAndAllocateOne) { in TEST() argument
24 MemoryPool<int, 3> memoryPool; in TEST()
66 TEST(MemoryPool, ExhaustPoolThenRandomDeallocate) { in TEST() argument
72 MemoryPool<size_t, kMemoryPoolSize> memoryPool; in TEST()
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DMemoryDomainTests.cpp849 Request::MemoryPool createSharedMemoryPool(uint32_t size) { in createSharedMemoryPool()
851 Request::MemoryPool pool; in createSharedMemoryPool()
856 Request::MemoryPool createDeviceMemoryPool(uint32_t token) { in createDeviceMemoryPool()
857 Request::MemoryPool pool; in createDeviceMemoryPool()
962 Request::MemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P()
999 Request::MemoryPool deviceMemory = createDeviceMemoryPool(token); in TEST_P()
1026 Request::MemoryPool deviceMemory = createDeviceMemoryPool(token); in TEST_P()
1058 Request::MemoryPool deviceMemory = createDeviceMemoryPool(inputToken); in TEST_P()
1086 Request::MemoryPool deviceMemory = createDeviceMemoryPool(token); in TEST_P()
1120 Request::MemoryPool deviceMemory = createDeviceMemoryPool(token); in TEST_P()
[all …]
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
H A DConversions.h43 GeneralResult<Request::MemoryPool> unvalidatedConvert(
44 const hal::V1_3::Request::MemoryPool& memoryPool);
83 nn::GeneralResult<Request::MemoryPool> unvalidatedConvert(
84 const nn::Request::MemoryPool& memoryPool);
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/src/
H A DConversions.cpp237 GeneralResult<Request::MemoryPool> unvalidatedConvert( in unvalidatedConvert()
238 const hal::V1_3::Request::MemoryPool& memoryPool) { in unvalidatedConvert()
239 using Discriminator = hal::V1_3::Request::MemoryPool::hidl_discriminator; in unvalidatedConvert()
419 nn::GeneralResult<Request::MemoryPool> makeMemoryPool(const nn::SharedMemory& memory) { in makeMemoryPool()
420 Request::MemoryPool ret; in makeMemoryPool()
425 nn::GeneralResult<Request::MemoryPool> makeMemoryPool(const nn::Request::MemoryDomainToken& token) { in makeMemoryPool()
426 Request::MemoryPool ret; in makeMemoryPool()
431 nn::GeneralResult<Request::MemoryPool> makeMemoryPool(const nn::SharedBuffer& /*buffer*/) { in makeMemoryPool()
586 nn::GeneralResult<Request::MemoryPool> unvalidatedConvert( in unvalidatedConvert()
587 const nn::Request::MemoryPool& memoryPool) { in unvalidatedConvert()
/aosp12/packages/modules/NeuralNetworks/common/include/
H A DLegacyHalUtils.h359 Request::MemoryPool uncheckedConvert(const V1_3::Request::MemoryPool& memoryPool);
368 std::vector<Request::MemoryPool> uncheckedConvert(
369 const hardware::hidl_vec<V1_3::Request::MemoryPool>& memoryPools);
400 V1_3::Request::MemoryPool convertToV1_3(const Request::MemoryPool& memoryPool);
H A DValidateHal.h75 bool validatePool(const V1_3::Request::MemoryPool& pool, HalVersion ver = HalVersion::LATEST);
H A DCpuExecutor.h127 const std::vector<Request::MemoryPool>& pools);
/aosp12/packages/modules/NeuralNetworks/common/
H A DLegacyHalUtils.cpp1447 static hardware::hidl_memory convertToV1_0(const V1_3::Request::MemoryPool& pool) { in convertToV1_0()
1449 case V1_3::Request::MemoryPool::hidl_discriminator::hidlMemory: in convertToV1_0()
1451 case V1_3::Request::MemoryPool::hidl_discriminator::token: in convertToV1_0()
1456 static V1_3::Request::MemoryPool convertToV1_3(const hardware::hidl_memory& pool) { in convertToV1_3()
1457 V1_3::Request::MemoryPool ret; in convertToV1_3()
1490 hardware::hidl_vec<V1_3::Request::MemoryPool> pools(request.pools.size()); in convertToV1_3()
1577 Request::MemoryPool uncheckedConvert(const V1_3::Request::MemoryPool& memoryPool) { in uncheckedConvert()
1732 V1_3::Request::MemoryPool convertToV1_3(const Request::MemoryPool& memoryPool) { in convertToV1_3()
1736 std::vector<Request::MemoryPool> uncheckedConvert( in uncheckedConvert()
1737 const hardware::hidl_vec<V1_3::Request::MemoryPool>& memoryPools) { in uncheckedConvert()
[all …]
H A DValidateHal.cpp64 MemoryAccessVerifier(const hardware::hidl_vec<V1_3::Request::MemoryPool>& pools) in MemoryAccessVerifier()
68 case V1_3::Request::MemoryPool::hidl_discriminator::hidlMemory: in MemoryAccessVerifier()
71 case V1_3::Request::MemoryPool::hidl_discriminator::token: in MemoryAccessVerifier()
538 bool validatePool(const V1_3::Request::MemoryPool& pool, HalVersion ver) { in validatePool()
540 case V1_3::Request::MemoryPool::hidl_discriminator::hidlMemory: in validatePool()
542 case V1_3::Request::MemoryPool::hidl_discriminator::token: in validatePool()
H A DUtilsTest.cpp135 V1_3::Request::MemoryPool pool; in TEST()
177 V1_3::Request::MemoryPool pool; in TEST()
/aosp12/packages/modules/NeuralNetworks/driver/sample/
H A DSampleDriver.cpp391 case V1_3::Request::MemoryPool::hidl_discriminator::hidlMemory: { in createRunTimePoolInfos()
401 case V1_3::Request::MemoryPool::hidl_discriminator::token: { in createRunTimePoolInfos()
427 if (pool.getDiscriminator() == V1_3::Request::MemoryPool::hidl_discriminator::token) { in updateDeviceMemories()
436 if (pool.getDiscriminator() == V1_3::Request::MemoryPool::hidl_discriminator::token) { in updateDeviceMemories()
447 if (pool.getDiscriminator() == V1_3::Request::MemoryPool::hidl_discriminator::token) { in updateDeviceMemories()
748 if (pool.getDiscriminator() == V1_3::Request::MemoryPool::hidl_discriminator::token) { in executeFenced()
811 hardware::hidl_vec<V1_3::Request::MemoryPool> pools(slots.size()); in execute()
813 V1_3::Request::MemoryPool pool; in execute()
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestCompliance.cpp174 V1_3::Request::MemoryPool sharedMemoryPool, in TEST_F()
197 V1_3::Request::MemoryPool sharedMemoryPool, deviceMemoryPool; in TEST_F()
/aosp12/packages/modules/NeuralNetworks/common/include/nnapi/
H A DTypes.h898 using MemoryPool = std::variant<SharedMemory, MemoryDomainToken, SharedBuffer>; member
922 std::vector<MemoryPool> pools;
H A DTypeUtils.h129 std::ostream& operator<<(std::ostream& os, const Request::MemoryPool& memoryPool);
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
H A DConversions.h90 GeneralResult<Request::MemoryPool> unvalidatedConvert(
157 nn::GeneralResult<RequestMemoryPool> unvalidatedConvert(const nn::Request::MemoryPool& memoryPool);
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
H A DConversions.h71 nn::GeneralResult<hidl_memory> unvalidatedConvert(const nn::Request::MemoryPool& memoryPool);
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/src/
H A DConversions.cpp194 std::vector<Request::MemoryPool> pools; in unvalidatedConvert()
379 nn::GeneralResult<hidl_memory> unvalidatedConvert(const nn::Request::MemoryPool& memoryPool) { in unvalidatedConvert()
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
H A DTestUtils.cpp190 std::vector<Request::MemoryPool> pools = {std::move(inputMemory), std::move(outputMemory)}; in createRequest()
/aosp12/packages/modules/NeuralNetworks/runtime/
H A DMemory.h175 Request::MemoryPool getMemoryPool() const;
H A DMemory.cpp195 Request::MemoryPool RuntimeMemory::getMemoryPool() const { in getMemoryPool()
/aosp12/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
H A DDriverFuzzTest.cpp227 hidl_vec<V1_3::Request::MemoryPool> pools(2); in createRequest()
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/src/
H A DConversions.cpp465 GeneralResult<Request::MemoryPool> unvalidatedConvert( in unvalidatedConvert()
943 nn::GeneralResult<RequestMemoryPool> unvalidatedConvert(const nn::Request::MemoryPool& memoryPool) { in unvalidatedConvert()

12