Home
last modified time | relevance | path

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

/ohos5.0/base/msdp/device_status/services/native/src/
H A Ddevicestatus_msdp_client_impl.cpp390 if (mock_.pAlgorithm != nullptr) { in UnloadMockLibrary()
391 mock_.destroy(mock_.pAlgorithm); in UnloadMockLibrary()
392 mock_.pAlgorithm = nullptr; in UnloadMockLibrary()
404 if (mock_.pAlgorithm == nullptr) { in GetMockInst()
405 mock_.pAlgorithm = mock_.create(); in GetMockInst()
408 return mock_.pAlgorithm; in GetMockInst()
453 if (algo_.pAlgorithm != nullptr) { in UnloadAlgoLibrary()
454 algo_.destroy(algo_.pAlgorithm); in UnloadAlgoLibrary()
455 algo_.pAlgorithm = nullptr; in UnloadAlgoLibrary()
467 if (algo_.pAlgorithm == nullptr) { in GetAlgoInst()
[all …]
/ohos5.0/base/msdp/device_status/libs/interface/
H A Ddevicestatus_msdp_interface.h50 IMsdp* pAlgorithm; member
51 MsdpAlgoHandle() : handle(nullptr), create(nullptr), destroy(nullptr), pAlgorithm(nullptr) {} in MsdpAlgoHandle()
58 pAlgorithm = nullptr; in Clear()
/ohos5.0/base/msdp/device_status/test/unittest/libs/src/
H A Ddevice_status_mock_test.cpp129 if (mockHandler->pAlgorithm != nullptr) { in UnloadMockLibrary()
130 mockHandler->destroy(mockHandler->pAlgorithm); in UnloadMockLibrary()
131 mockHandler->pAlgorithm = nullptr; in UnloadMockLibrary()
405 mock->pAlgorithm = mock->create();
408 EXPECT_TRUE(mock->pAlgorithm->RegisterCallback(callback) == ERR_OK);
409 EXPECT_TRUE(mock->pAlgorithm->UnregisterCallback() == ERR_OK);
H A Ddevice_status_algorithm_test.cpp126 if (algoHandler->pAlgorithm != nullptr) { in UnloadAlgoLibrary()
127 algoHandler->destroy(algoHandler->pAlgorithm); in UnloadAlgoLibrary()
128 algoHandler->pAlgorithm = nullptr; in UnloadAlgoLibrary()
596 algo->pAlgorithm = algo->create();
598 ret = algo->pAlgorithm->Enable(Type::TYPE_LID_OPEN);