Home
last modified time | relevance | path

Searched refs:IMsdp (Results 1 - 11 of 11) sorted by relevance

/base/msdp/device_status/libs/interface/
H A Ddevicestatus_msdp_interface.h28 class IMsdp { class
30 IMsdp() = default;
31 virtual ~IMsdp() = default;
39 virtual ErrCode RegisterCallback(std::shared_ptr<IMsdp::MsdpAlgoCallback> callback) = 0;
48 IMsdp* (*create)();
49 void* (*destroy)(IMsdp*);
50 IMsdp* pAlgorithm;
/base/msdp/device_status/services/native/include/
H A Ddevicestatus_msdp_client_impl.h29 class DeviceStatusMsdpClientImpl : public IMsdp::MsdpAlgoCallback,
33 using LoadMockLibraryFunc = IMsdp* (*)();
34 using LoadMockLibraryPtr = void *(*)(IMsdp*);
65 IMsdp* GetAlgoInst(Type type);
66 IMsdp* GetMockInst(Type type);
77 IMsdp* iAlgo_ { nullptr };
78 IMsdp* iMock_ { nullptr };
/base/msdp/device_status/libs/include/algorithm/
H A Dalgo_base.h40 void RegisterCallback(const std::shared_ptr<IMsdp::MsdpAlgoCallback> callback);
74 std::shared_ptr<IMsdp::MsdpAlgoCallback> callback_ { nullptr };
/base/msdp/device_status/libs/include/
H A Ddevicestatus_msdp_mock.h33 class DeviceStatusMsdpMock final : public IMsdp {
55 ErrCode RegisterCallback(std::shared_ptr<IMsdp::MsdpAlgoCallback> callback) override;
H A Ddevicestatus_algorithm_manager.h38 class AlgoMgr final : public IMsdp {
/base/msdp/device_status/libs/src/algorithm/
H A Dalgo_base.cpp58 void AlgoBase::RegisterCallback(const std::shared_ptr<IMsdp::MsdpAlgoCallback> callback) in RegisterCallback()
/base/msdp/device_status/libs/src/
H A Ddevicestatus_algorithm_manager.cpp251 extern "C" IMsdp *Create(void) in Create()
257 extern "C" void Destroy(const IMsdp* algorithm) in Destroy()
H A Ddevicestatus_msdp_mock.cpp263 extern "C" IMsdp *Create(void) in Create()
271 extern "C" void Destroy(const IMsdp* algorithm) in Destroy()
/base/msdp/device_status/services/native/src/
H A Ddevicestatus_msdp_client_impl.cpp269 std::shared_ptr<IMsdp::MsdpAlgoCallback> callback = shared_from_this(); in RegisterMock()
287 std::shared_ptr<IMsdp::MsdpAlgoCallback> callback_ = shared_from_this(); in RegisterAlgo()
398 IMsdp* DeviceStatusMsdpClientImpl::GetMockInst(Type type) in GetMockInst()
461 IMsdp* DeviceStatusMsdpClientImpl::GetAlgoInst(Type type) in GetAlgoInst()
/base/msdp/device_status/test/unittest/libs/src/
H A Ddevice_status_algorithm_test.cpp54 class DeviceStatusMock : public IMsdp::MsdpAlgoCallback {
103 algoHandler->create = reinterpret_cast<IMsdp* (*)()>(dlsym(algoHandler->handle, "Create")); in LoadAlgoLibrary()
104 algoHandler->destroy = reinterpret_cast<void *(*)(IMsdp*)>(dlsym(algoHandler->handle, "Destroy")); in LoadAlgoLibrary()
H A Ddevice_status_mock_test.cpp106 mockHandler->create = reinterpret_cast<IMsdp* (*)()>(dlsym(mockHandler->handle, "Create")); in LoadMockLibrary()
107 mockHandler->destroy = reinterpret_cast<void *(*)(IMsdp*)>(dlsym(mockHandler->handle, "Destroy")); in LoadMockLibrary()

Completed in 5 milliseconds