Home
last modified time | relevance | path

Searched refs:AllocateBuffer (Results 1 - 25 of 38) sorted by relevance

12

/foundation/multimedia/media_foundation/test/unittest/
H A DTestBufferPool.cpp53 auto buffPtr = pool->AllocateBuffer(); in HWTEST_F()
65 buffers.emplace_back(pool->AllocateBuffer()); in HWTEST_F()
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dhdi_device_v1_0.cpp161 hdiRet = m_iDevice->AllocateBuffer(tensorSize, tensorBuffer); in GetSupportedOperation()
252 hdiRet = m_iDevice->AllocateBuffer(tensorSize, tensorBuffer); in PrepareModel()
338 void* HDIDeviceV1_0::AllocateBuffer(size_t length) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV1_0
346 auto ret = m_iDevice->AllocateBuffer(length, buffer); in AllocateBuffer()
361 OH_NN_ReturnCode HDIDeviceV1_0::AllocateBuffer(size_t length, int& fd) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV1_0
369 auto ret = m_iDevice->AllocateBuffer(length, buffer); in AllocateBuffer()
393 return AllocateBuffer(length); in AllocateTensorBuffer()
398 return AllocateBuffer(length); in AllocateTensorBuffer()
H A Dhdi_device_v2_1.cpp207 ret = m_iDevice->AllocateBuffer(tensorSize, tensorBuffer); in GetSupportedOperation()
291 ret = m_iDevice->AllocateBuffer(tensorSize, tensorBuffer); in PrepareModel()
374 void* HDIDeviceV2_1::AllocateBuffer(size_t length) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_1
382 auto ret = m_iDevice->AllocateBuffer(length, buffer); in AllocateBuffer()
396 OH_NN_ReturnCode HDIDeviceV2_1::AllocateBuffer(size_t length, int& fd) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_1
404 auto ret = m_iDevice->AllocateBuffer(length, buffer); in AllocateBuffer()
425 return AllocateBuffer(length); in AllocateTensorBuffer()
430 return AllocateBuffer(length); in AllocateTensorBuffer()
511 void* newModelBuffer = AllocateBuffer(offlineModelSize); in AllocateDeviceBufferForOfflineModel()
H A Dhdi_device_v2_0.cpp212 ret = m_iDevice->AllocateBuffer(tensorSize, tensorBuffer); in GetSupportedOperation()
296 ret = m_iDevice->AllocateBuffer(tensorSize, tensorBuffer); in PrepareModel()
379 void* HDIDeviceV2_0::AllocateBuffer(size_t length) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0
387 auto ret = m_iDevice->AllocateBuffer(length, buffer); in AllocateBuffer()
401 OH_NN_ReturnCode HDIDeviceV2_0::AllocateBuffer(size_t length, int& fd) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0
409 auto ret = m_iDevice->AllocateBuffer(length, buffer); in AllocateBuffer()
430 return AllocateBuffer(length); in AllocateTensorBuffer()
435 return AllocateBuffer(length); in AllocateTensorBuffer()
516 void* newModelBuffer = AllocateBuffer(offlineModelSize); in AllocateDeviceBufferForOfflineModel()
H A Dhdi_device_v1_0.h61 void* AllocateBuffer(size_t length) override;
66 OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) override;
H A Ddevice.h65 virtual void* AllocateBuffer(size_t length) = 0;
70 virtual OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) = 0;
H A Dhdi_device_v2_0.h61 void* AllocateBuffer(size_t length) override;
66 OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) override;
H A Dhdi_device_v2_1.h61 void* AllocateBuffer(size_t length) override;
66 OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) override;
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/device_registrar/
H A Ddevice_registrar_test.cpp70 virtual int32_t AllocateBuffer(uint32_t length, V2_0::SharedBuffer& buffer) = 0;
153 void *AllocateBuffer(size_t length) override
179 MOCK_METHOD2(AllocateBuffer, int32_t(uint32_t, V2_0::SharedBuffer&));
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/device_registrar/
H A Ddevice_registrar_test.cpp70 virtual int32_t AllocateBuffer(uint32_t length, V1_0::SharedBuffer& buffer) = 0;
153 void *AllocateBuffer(size_t length) override
179 MOCK_METHOD2(AllocateBuffer, int32_t(uint32_t, V1_0::SharedBuffer&));
/foundation/ai/neural_network_runtime/test/unittest/common/v1_0/
H A Dexecutor_mock_device.cpp25 void* HDIDeviceV1_0::AllocateBuffer(size_t length) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV1_0
H A Dmock_idevice.h44 MOCK_METHOD2(AllocateBuffer, int32_t(uint32_t, SharedBuffer&));
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/hdi_device/
H A Dhdi_device_test.cpp104 EXPECT_CALL(*sp, AllocateBuffer(::testing::_, ::testing::_)) in PrepareModel()
483 EXPECT_CALL(*((V1_0::MockIDevice *)device.GetRefPtr()), AllocateBuffer(::testing::_, ::testing::_)) in HWTEST_F()
513 EXPECT_CALL(*((V1_0::MockIDevice *)device.GetRefPtr()), AllocateBuffer(::testing::_, ::testing::_)) in HWTEST_F()
551 EXPECT_CALL(*((V1_0::MockIDevice *)device.GetRefPtr()), AllocateBuffer(::testing::_, ::testing::_)) in HWTEST_F()
1078 * @tc.desc: Verify the AllocateBuffer function return nullptr.
1088 EXPECT_CALL(*((V1_0::MockIDevice *)device.GetRefPtr()), AllocateBuffer(::testing::_, ::testing::_)) in HWTEST_F()
1092 void *result = hdiDevice->AllocateBuffer(length); in HWTEST_F()
1099 * @tc.desc: Verify the AllocateBuffer function return nullptr and HDF_FAILURE.
1109 void *result = hdiDevice->AllocateBuffer(length); in HWTEST_F()
1116 * @tc.desc: Verify the AllocateBuffer functio
[all...]
/foundation/ai/neural_network_runtime/test/unittest/components/nn_compiled_cache/
H A Dnn_compiled_cache_test.cpp66 MOCK_METHOD1(AllocateBuffer, void*(size_t));
70 MOCK_METHOD2(AllocateBuffer, OH_NN_ReturnCode(size_t, int&));
138 EXPECT_CALL(*((MockIDevice *) device.get()), AllocateBuffer(::testing::_, ::testing::_)) in Creator()
202 EXPECT_CALL(*((MockIDevice *) device.get()), AllocateBuffer(::testing::_, ::testing::_)) in Creator2()
206 EXPECT_CALL(*((MockIDevice *) device.get()), AllocateBuffer(::testing::_)) in Creator2()
/foundation/ai/neural_network_runtime/test/unittest/common/v2_0/
H A Dexecutor_mock_device.cpp25 void* HDIDeviceV2_0::AllocateBuffer(size_t length) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0
H A Dmock_idevice.h46 MOCK_METHOD2(AllocateBuffer, int32_t(uint32_t, SharedBuffer&));
H A Dcompilation_mock_idevice.cpp193 void* HDIDeviceV2_0::AllocateBuffer(size_t length) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0
196 LOGE("HDIDeviceV2_0 mock AllocateBuffer failed, the length param is invalid"); in AllocateBuffer()
207 LOGE("HDIDeviceV2_0 mock AllocateBuffer failed, the buffer is nullptr"); in AllocateBuffer()
/foundation/ai/neural_network_runtime/test/fuzztest/
H A Dnnrt_device_impl.h110 int32_t AllocateBuffer(uint32_t length, SharedBuffer& buffer) in AllocateBuffer() function in OHOS::HDI::Nnrt::V2_0::NnrtDeviceImpl
/foundation/ai/neural_network_runtime/test/unittest/common/v2_1/
H A Dmock_idevice.h46 MOCK_METHOD2(AllocateBuffer, int32_t(uint32_t, SharedBuffer&));
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/hdi_device/
H A Dhdi_device_test.cpp71 MOCK_METHOD2(AllocateBuffer, int32_t(uint32_t, SharedBuffer&));
193 EXPECT_CALL(*sp, AllocateBuffer(::testing::_, ::testing::_)) in PrepareModel()
219 EXPECT_CALL(*sp, AllocateBuffer(::testing::_, ::testing::_)) in PrepareModelv2()
619 EXPECT_CALL(*((V2_0::MockIDevice *)device.GetRefPtr()), AllocateBuffer(::testing::_, ::testing::_)) in HWTEST_F()
652 EXPECT_CALL(*((V2_0::MockIDevice *)device.GetRefPtr()), AllocateBuffer(::testing::_, ::testing::_)) in HWTEST_F()
693 EXPECT_CALL(*((V2_0::MockIDevice *)device.GetRefPtr()), AllocateBuffer(::testing::_, ::testing::_)) in HWTEST_F()
1220 * @tc.desc: Verify the AllocateBuffer function return nullptr.
1230 EXPECT_CALL(*((V2_0::MockIDevice *)device.GetRefPtr()), AllocateBuffer(::testing::_, ::testing::_)) in HWTEST_F()
1234 void *result = hdiDevice->AllocateBuffer(length); in HWTEST_F()
1241 * @tc.desc: Verify the AllocateBuffer functio
[all...]
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/include/
H A Dnnrt_device_service.h61 int32_t AllocateBuffer(uint32_t length, SharedBuffer& buffer) override;
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/include/
H A Dnnrt_device_service.h64 int32_t AllocateBuffer(uint32_t length, SharedBuffer& buffer) override;
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/
H A Dasync_mode.cpp245 auto newOutBuffer = outBufPool_->AllocateBuffer(); in DecodeFrame()
353 auto buf = outBufPool_->AllocateBuffer(); in QueueAllBufferInPoolToPluginLocked()
/foundation/ai/neural_network_runtime/test/unittest/components/nn_tensor/
H A Dnn_tensor_test.cpp72 MOCK_METHOD1(AllocateBuffer, void*(size_t));
76 MOCK_METHOD2(AllocateBuffer, OH_NN_ReturnCode(size_t, int&));
110 EXPECT_CALL(*((MockIDevice *) device.get()), AllocateBuffer(::testing::_, ::testing::_)) in GetDevice()
263 EXPECT_CALL(*((MockIDevice *) device.get()), AllocateBuffer(::testing::_, ::testing::_)) in Creator()
430 EXPECT_CALL(*((MockIDevice *) device.get()), AllocateBuffer(::testing::_, ::testing::_)) in Creator3()
495 EXPECT_CALL(*((MockIDevice *) device.get()), AllocateBuffer(::testing::_, ::testing::_)) in Creator4()
/foundation/multimedia/media_foundation/engine/include/foundation/utils/
H A Dbuffer_pool.h100 std::shared_ptr<T> AllocateBuffer() in AllocateBuffer() function in OHOS::Media::BufferPool

Completed in 17 milliseconds

12