/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestBufferPool.cpp | 53 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 D | hdi_device_v1_0.cpp | 161 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 D | hdi_device_v2_1.cpp | 207 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 D | hdi_device_v2_0.cpp | 212 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 D | hdi_device_v1_0.h | 61 void* AllocateBuffer(size_t length) override; 66 OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) override;
|
H A D | device.h | 65 virtual void* AllocateBuffer(size_t length) = 0; 70 virtual OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) = 0;
|
H A D | hdi_device_v2_0.h | 61 void* AllocateBuffer(size_t length) override; 66 OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) override;
|
H A D | hdi_device_v2_1.h | 61 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 D | device_registrar_test.cpp | 70 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 D | device_registrar_test.cpp | 70 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 D | executor_mock_device.cpp | 25 void* HDIDeviceV1_0::AllocateBuffer(size_t length) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV1_0
|
H A D | mock_idevice.h | 44 MOCK_METHOD2(AllocateBuffer, int32_t(uint32_t, SharedBuffer&));
|
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/hdi_device/ |
H A D | hdi_device_test.cpp | 104 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 D | nn_compiled_cache_test.cpp | 66 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 D | executor_mock_device.cpp | 25 void* HDIDeviceV2_0::AllocateBuffer(size_t length) in AllocateBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0
|
H A D | mock_idevice.h | 46 MOCK_METHOD2(AllocateBuffer, int32_t(uint32_t, SharedBuffer&));
|
H A D | compilation_mock_idevice.cpp | 193 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 D | nnrt_device_impl.h | 110 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 D | mock_idevice.h | 46 MOCK_METHOD2(AllocateBuffer, int32_t(uint32_t, SharedBuffer&));
|
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/hdi_device/ |
H A D | hdi_device_test.cpp | 71 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 D | nnrt_device_service.h | 61 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 D | nnrt_device_service.h | 64 int32_t AllocateBuffer(uint32_t length, SharedBuffer& buffer) override;
|
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/ |
H A D | async_mode.cpp | 245 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 D | nn_tensor_test.cpp | 72 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 D | buffer_pool.h | 100 std::shared_ptr<T> AllocateBuffer() in AllocateBuffer() function in OHOS::Media::BufferPool
|