Home
last modified time | relevance | path

Searched refs:pAlgorithm (Results 1 – 4 of 4) sorted by relevance

/base/msdp/device_status/libs/interface/
Ddevicestatus_msdp_interface.h50 IMsdp* pAlgorithm; member
51 MsdpAlgoHandle() : handle(nullptr), create(nullptr), destroy(nullptr), pAlgorithm(nullptr) {} in MsdpAlgoHandle()
58 pAlgorithm = nullptr; in Clear()
/base/msdp/device_status/services/native/src/
Ddevicestatus_msdp_client_impl.cpp373 if (mock_.pAlgorithm != nullptr) { in UnloadMockLibrary()
374 mock_.destroy(mock_.pAlgorithm); in UnloadMockLibrary()
375 mock_.pAlgorithm = nullptr; in UnloadMockLibrary()
386 if (mock_.pAlgorithm == nullptr) { in GetMockInst()
388 mock_.pAlgorithm = mock_.create(); in GetMockInst()
391 return mock_.pAlgorithm; in GetMockInst()
434 if (algo_.pAlgorithm != nullptr) { in UnloadAlgoLibrary()
435 algo_.destroy(algo_.pAlgorithm); in UnloadAlgoLibrary()
436 algo_.pAlgorithm = nullptr; in UnloadAlgoLibrary()
447 if (algo_.pAlgorithm == nullptr) { in GetAlgoInst()
[all …]
/base/msdp/device_status/libs/test/unittest/src/
Ddevice_status_mock_test.cpp118 if (mockHandler->pAlgorithm != nullptr) { in UnloadMockLibrary()
119 mockHandler->destroy(mockHandler->pAlgorithm); in UnloadMockLibrary()
120 mockHandler->pAlgorithm = nullptr; in UnloadMockLibrary()
399 mock->pAlgorithm = mock->create();
402 EXPECT_TRUE(mock->pAlgorithm->RegisterCallback(callback) == ERR_OK);
403 EXPECT_TRUE(mock->pAlgorithm->UnregisterCallback() == ERR_OK);
Ddevice_status_algorithm_test.cpp123 if (algoHandler->pAlgorithm != nullptr) { in UnloadAlgoLibrary()
124 algoHandler->destroy(algoHandler->pAlgorithm); in UnloadAlgoLibrary()
125 algoHandler->pAlgorithm = nullptr; in UnloadAlgoLibrary()
621 algo->pAlgorithm = algo->create();
623 ret = algo->pAlgorithm->Enable(Type::TYPE_LID_OPEN);