Home
last modified time | relevance | path

Searched refs:DeviceStatusEventListener (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/msdp/device_status/frameworks/js/napi/include/
H A Ddevicestatus_event.h30 struct DeviceStatusEventListener { struct
47 std::shared_ptr<DeviceStatusEventListener> &typeHandler);
52 std::map<int32_t, std::list<std::shared_ptr<DeviceStatusEventListener>>> events);
53 bool IsNoExistCallback(std::list<std::shared_ptr<DeviceStatusEventListener>>,
60 std::map<int32_t, std::list<std::shared_ptr<DeviceStatusEventListener>>> events_;
61 std::map<int32_t, std::list<std::shared_ptr<DeviceStatusEventListener>>> eventOnces_;
/ohos5.0/base/msdp/device_status/frameworks/js/napi/src/
H A Ddevicestatus_event.cpp76 std::map<int32_t, std::list<std::shared_ptr<DeviceStatusEventListener>>> events) in SaveCallbackByEvent()
88 events[eventType] = std::list<std::shared_ptr<DeviceStatusEventListener>>(); in SaveCallbackByEvent()
103 bool DeviceStatusEvent::IsNoExistCallback(std::list<std::shared_ptr<DeviceStatusEventListener>>, in IsNoExistCallback() argument
130 auto listener = std::make_shared<DeviceStatusEventListener>(); in SaveCallback()
188 std::shared_ptr<DeviceStatusEventListener> &typeHandler) in CheckRet()
244 std::map<int32_t, std::list<std::shared_ptr<DeviceStatusEventListener>>>::iterator typeHandler; in OnEvent()