/frameworks/ml/nn/runtime/test/ |
D | TestMemoryDomain.cpp | 304 const auto& hidlMemory = m->getHidlMemory(); in TEST_P() local 305 EXPECT_TRUE(hidlMemory.valid()); in TEST_P() 307 EXPECT_EQ(hidlMemory.name(), "ashmem"); in TEST_P() 309 EXPECT_EQ(hidlMemory.name(), "hardware_buffer_blob"); in TEST_P() 342 const auto& hidlMemory = m->getHidlMemory(); in TEST_P() local 343 EXPECT_TRUE(hidlMemory.valid()); in TEST_P() 345 EXPECT_EQ(hidlMemory.name(), "ashmem"); in TEST_P() 347 EXPECT_EQ(hidlMemory.name(), "hardware_buffer_blob"); in TEST_P() 366 const auto& hidlMemory = m->getHidlMemory(); in TEST_P() local 367 EXPECT_TRUE(hidlMemory.valid()); in TEST_P() [all …]
|
D | TestCompliance.cpp | 171 sharedMemoryPool.hidlMemory(allocateSharedMemory(1024)); in TEST_F() 172 ASSERT_TRUE(sharedMemoryPool.hidlMemory().valid()); in TEST_F() 173 ASSERT_TRUE(ahwbMemoryPool.hidlMemory().valid()); in TEST_F() 192 sharedMemoryPool.hidlMemory(allocateSharedMemory(1024)); in TEST_F() 193 ASSERT_TRUE(sharedMemoryPool.hidlMemory().valid()); in TEST_F()
|
/frameworks/ml/nn/runtime/ |
D | Memory.cpp | 209 pool.hidlMemory(kHidlMemory); in getMemoryPool() 272 const hidl_memory& hidlMemory = memory->getHidlMemory(); in copyIBuffers() local 273 if (!hidlMemory.valid()) return ANEURALNETWORKS_OUT_OF_MEMORY; in copyIBuffers() 274 NN_RETURN_IF_ERROR(copyIBufferToHidlMemory(src, hidlMemory)); in copyIBuffers() 275 NN_RETURN_IF_ERROR(copyHidlMemoryToIBuffer(hidlMemory, dst, srcMetadata.dimensions)); in copyIBuffers() 524 hidl_memory hidlMemory = allocateSharedMemory(size); in create() local 525 sp<IMemory> mapped = mapMemory(hidlMemory); in create() 531 std::make_unique<MemoryAshmem>(std::move(mapped), std::move(hidlMemory))}; in create() 578 hidl_memory hidlMemory = hidl_memory("mmap_fd", std::move(hidlHandle), size); in create() local 580 return {ANEURALNETWORKS_NO_ERROR, std::make_unique<MemoryFd>(std::move(hidlMemory))}; in create() [all …]
|
/frameworks/av/media/libstagefright/ |
D | CodecBase.cpp | 36 sp<hardware::HidlMemory> hidlMemory; in IMemoryToSharedBuffer() local 37 hidlMemory = hardware::fromHeap(memory->getMemory(&offset, &size)); in IMemoryToSharedBuffer()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | CryptoPlugin.cpp | 37 sp<IMemory> hidlMemory = mapMemory(base); in setSharedBufferBase() local 38 ALOGE_IF(hidlMemory == nullptr, "mapMemory returns nullptr"); in setSharedBufferBase() 41 mSharedBufferMap[bufferId] = hidlMemory; in setSharedBufferBase()
|
/frameworks/av/media/libmedia/ |
D | OMXBuffer.cpp | 64 OMXBuffer::OMXBuffer(const hidl_memory &hidlMemory) in OMXBuffer() argument 66 mHidlMemory(hidlMemory) { in OMXBuffer()
|
/frameworks/ml/nn/common/ |
D | CpuExecutor.cpp | 274 RunTimePoolInfoImpl(const hidl_memory& hidlMemory, uint8_t* buffer, const sp<IMemory>& memory, 300 RunTimePoolInfo::RunTimePoolInfoImpl::RunTimePoolInfoImpl(const hidl_memory& hidlMemory, in RunTimePoolInfoImpl() argument 305 : mHidlMemory(hidlMemory), in RunTimePoolInfoImpl() 354 const hidl_memory& hidlMemory) { in createFromHidlMemory() argument 359 const auto& memType = hidlMemory.name(); in createFromHidlMemory() 361 memory = mapMemory(hidlMemory); in createFromHidlMemory() 372 size_t size = hidlMemory.size(); in createFromHidlMemory() 373 int fd = hidlMemory.handle()->data[0]; in createFromHidlMemory() 374 int prot = hidlMemory.handle()->data[1]; in createFromHidlMemory() 375 size_t offset = getSizeFromInts(hidlMemory.handle()->data[2], hidlMemory.handle()->data[3]); in createFromHidlMemory() [all …]
|
D | ValidateHal.cpp | 69 case Request::MemoryPool::hidl_discriminator::hidlMemory: in MemoryAccessVerifier() 70 mPoolSizes[i] = pools[i].hidlMemory().size(); in MemoryAccessVerifier() 536 case Request::MemoryPool::hidl_discriminator::hidlMemory: in validatePool() 537 return validatePool(pool.hidlMemory(), ver); in validatePool()
|
D | Utils.cpp | 3142 if (pool.getDiscriminator() != V1_3::Request::MemoryPool::hidl_discriminator::hidlMemory) { in compliantWithV1_0() 3145 const auto& name = pool.hidlMemory().name(); in compliantWithV1_0() 3152 if (pool.getDiscriminator() != V1_3::Request::MemoryPool::hidl_discriminator::hidlMemory) { in compliantWithV1_2() 3155 const auto& name = pool.hidlMemory().name(); in compliantWithV1_2() 3163 case V1_3::Request::MemoryPool::hidl_discriminator::hidlMemory: in convertToV1_0() 3164 return pool.hidlMemory(); in convertToV1_0() 3172 ret.hidlMemory(pool); in convertToV1_3()
|
/frameworks/av/media/libmedia/include/media/ |
D | OMXBuffer.h | 84 OMXBuffer(const hidl_memory &hidlMemory);
|
/frameworks/ml/nn/common/include/ |
D | CpuExecutor.h | 108 static std::optional<RunTimePoolInfo> createFromHidlMemory(const hal::hidl_memory& hidlMemory);
|
/frameworks/ml/nn/driver/sample/ |
D | SampleDriver.cpp | 382 case Request::MemoryPool::hidl_discriminator::hidlMemory: { in createRunTimePoolInfos() 383 auto buffer = RunTimePoolInfo::createFromHidlMemory(pool.hidlMemory()); in createRunTimePoolInfos() 793 pool.hidlMemory(mMemoryCache[slot]->getHidlMemory()); in execute()
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXNodeInstance.cpp | 107 const sp<IMemory> &mem, const sp<IHidlMemory> &hidlMemory, in BufferMeta() 110 mHidlMemory(hidlMemory), in BufferMeta() 1223 sp<IHidlMemory> hidlMemory = mapMemory(omxBuffer.mHidlMemory); in useBuffer() local 1224 if (hidlMemory == nullptr) { in useBuffer() 1228 return useBuffer_l(portIndex, NULL, hidlMemory, buffer); in useBuffer()
|