Home
last modified time | relevance | path

Searched refs:EventId (Results 1 - 25 of 38) sorted by relevance

12

/base/update/updateservice/interfaces/inner_api/feature/update/model/task/
H A Dtask_body_member_mask.h34 const std::map<EventId, uint32_t> g_taskBodyTemplateMap = {
35 { EventId::EVENT_TASK_RECEIVE, VERSION_DIGEST_INFO },
36 { EventId::EVENT_TASK_CHANGE, VERSION_DIGEST_INFO | UPGRADE_STATUS | PROGRESS },
37 { EventId::EVENT_TASK_CANCEL, VERSION_DIGEST_INFO },
38 { EventId::EVENT_VERSION_INFO_CHANGE, VERSION_DIGEST_INFO | UPGRADE_STATUS },
39 { EventId::EVENT_DOWNLOAD_WAIT, VERSION_DIGEST_INFO | UPGRADE_STATUS | INSTALL_MODE },
40 { EventId::EVENT_DOWNLOAD_START, VERSION_DIGEST_INFO | INSTALL_MODE },
41 { EventId::EVENT_DOWNLOAD_UPDATE, VERSION_DIGEST_INFO | UPGRADE_STATUS | PROGRESS | INSTALL_MODE | SUB_STATUS },
42 { EventId::EVENT_DOWNLOAD_PAUSE, VERSION_DIGEST_INFO | UPGRADE_STATUS | PROGRESS | INSTALL_MODE | ERROR_MESSAGE },
43 { EventId
[all...]
H A Dtask_body.h37 JsonBuilder GetJsonBuilder(EventId eventId);
/base/update/updateservice/services/core/ability/callback/src/
H A Dbase_callback_utils.cpp28 void BaseCallbackUtils::NotifyEvent(const std::string &versionDigestInfo, EventId eventId, UpgradeStatus status, in NotifyEvent()
44 static std::map<UpgradeStatus, EventId> statusMap = { in ProgressCallback()
45 {UpgradeStatus::DOWNLOADING, EventId::EVENT_DOWNLOAD_UPDATE}, in ProgressCallback()
46 {UpgradeStatus::DOWNLOAD_PAUSE, EventId::EVENT_DOWNLOAD_PAUSE}, in ProgressCallback()
47 {UpgradeStatus::DOWNLOAD_CANCEL, EventId::EVENT_DOWNLOAD_CANCEL}, in ProgressCallback()
48 {UpgradeStatus::DOWNLOAD_FAIL, EventId::EVENT_DOWNLOAD_FAIL}, in ProgressCallback()
49 {UpgradeStatus::VERIFY_FAIL, EventId::EVENT_DOWNLOAD_FAIL}, in ProgressCallback()
50 {UpgradeStatus::DOWNLOAD_SUCCESS, EventId::EVENT_DOWNLOAD_SUCCESS}, in ProgressCallback()
51 {UpgradeStatus::INSTALLING, EventId::EVENT_UPGRADE_UPDATE}, in ProgressCallback()
52 {UpgradeStatus::INSTALL_FAIL, EventId in ProgressCallback()
[all...]
H A Dbase_callback_utils_empty.cpp24 void BaseCallbackUtils::NotifyEvent(const std::string &versionDigestInfo, EventId eventId, UpgradeStatus status, in NotifyEvent()
/base/update/updateservice/frameworks/js/napi/update/src/
H A Ddefine_property.cpp196 DECLARE_ENUM_PROPERTY(EventId::EVENT_TASK_BASE), in DefineEventId()
197 DECLARE_ENUM_PROPERTY(EventId::EVENT_TASK_RECEIVE), in DefineEventId()
198 DECLARE_ENUM_PROPERTY(EventId::EVENT_TASK_CANCEL), in DefineEventId()
199 DECLARE_ENUM_PROPERTY(EventId::EVENT_DOWNLOAD_WAIT), in DefineEventId()
200 DECLARE_ENUM_PROPERTY(EventId::EVENT_DOWNLOAD_START), in DefineEventId()
201 DECLARE_ENUM_PROPERTY(EventId::EVENT_DOWNLOAD_UPDATE), in DefineEventId()
202 DECLARE_ENUM_PROPERTY(EventId::EVENT_DOWNLOAD_PAUSE), in DefineEventId()
203 DECLARE_ENUM_PROPERTY(EventId::EVENT_DOWNLOAD_RESUME), in DefineEventId()
204 DECLARE_ENUM_PROPERTY(EventId::EVENT_DOWNLOAD_SUCCESS), in DefineEventId()
205 DECLARE_ENUM_PROPERTY(EventId in DefineEventId()
[all...]
/base/notification/eventhandler/frameworks/cj/src/
H A Demitter.cpp34 InnerEvent::EventId eventId;
39 static std::map<InnerEvent::EventId, std::unordered_set<CallbackInfo *>> g_emitterImpls;
51 bool IsExistValidCallback(const InnerEvent::EventId &eventId) in IsExistValidCallback()
67 void EmitWithEventData(InnerEvent::EventId eventId, uint32_t priority, CEventData data) in EmitWithEventData()
83 CallbackInfo *SearchCallbackInfo(const InnerEvent::EventId &eventIdValue, const std::string &callbackName) in SearchCallbackInfo()
121 void OutPutEventIdLog(const InnerEvent::EventId &eventId) in OutPutEventIdLog()
130 int32_t OnOrOnce(InnerEvent::EventId eventId, CallbackImpl **callbackImpl, bool once) in OnOrOnce()
157 InnerEvent::EventId id = eventId; in On()
163 InnerEvent::EventId id = std::string(eventId); in On()
169 InnerEvent::EventId i in Once()
[all...]
/base/msdp/device_status/services/interaction/drag/src/
H A Devent_hub.cpp31 static std::map<std::string, EventId> g_actionMap = {
32 { EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON, EventId::EVENT_SCREEN_ON },
33 { EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF, EventId::EVENT_SCREEN_OFF },
34 { EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_LOCKED, EventId::EVENT_SCREEN_LOCK },
35 { EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED, EventId::EVENT_SCREEN_UNLOCK },
36 { EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_LOW, EventId::EVENT_BATTERY_LOW },
37 { EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY, EventId::EVENT_BATTERY_OKAY },
76 EventId eventId = g_actionMap[action]; in OnReceiveEvent()
78 if (eventId != EventId::EVENT_SCREEN_LOCK) { in OnReceiveEvent()
/base/update/updateservice/interfaces/inner_api/feature/update/model/event/
H A Devent_info.h25 EventId eventId = EventId::EVENT_TASK_BASE;
29 EventInfo(EventId id, TaskBody body) : eventId(id), taskBody(std::move(body)) {} in EventInfo()
H A Devent_id.h23 enum class EventId { class
/base/update/updater/utils/include/
H A Dupdater_event.h30 static void Subscribe(enum EventId id, EventHandler handler) in Subscribe()
35 static void Invoke(enum EventId id) in Invoke()
46 static inline std::map<enum EventId, std::vector<EventHandler>> eventMap_ {};
H A Devent_id.h19 enum EventId { enum
/base/notification/eventhandler/interfaces/inner_api/
H A Dinner_event.h82 using EventId = std::variant<uint32_t, std::string>;
113 static Pointer Get(const EventId &innerEventId, int64_t param = 0, const Caller &caller = {});
143 static inline Pointer Get(const EventId &innerEventId, const std::shared_ptr<T> &object, in Get()
179 static inline Pointer Get(const EventId &innerEventId, const std::weak_ptr<T> &object, in Get()
215 static inline Pointer Get(const EventId &innerEventId, std::unique_ptr<T, D> &&object, in Get()
251 static inline Pointer Get(const EventId &innerEventId, std::unique_ptr<T, D> &object, in Get()
287 static inline Pointer Get(const EventId &innerEventId, int64_t param, const std::shared_ptr<T> &object, in Get()
323 static inline Pointer Get(const EventId &innerEventId, int64_t param, const std::weak_ptr<T> &object, in Get()
359 static inline Pointer Get(const EventId &innerEventId, int64_t param, std::unique_ptr<T, D> &&object, in Get()
395 static inline Pointer Get(const EventId
[all...]
/base/update/updateservice/services/firmware/upgrade/mode/src/
H A Dfirmware_download_mode.cpp135 task.taskId, EventId::EVENT_DOWNLOAD_PAUSE, UpgradeStatus::DOWNLOAD_PAUSE, errorMessage); in DownloadPauseProcess()
142 task.taskId, EventId::EVENT_DOWNLOAD_FAIL, UpgradeStatus::DOWNLOAD_FAIL, errorMessage); in DownloadFailProcess()
150 task.taskId, EventId::EVENT_DOWNLOAD_CANCEL, UpgradeStatus::DOWNLOAD_CANCEL, errorMessage); in DownloadCancelProcess()
167 task.taskId, EventId::EVENT_UPGRADE_WAIT, UpgradeStatus::DOWNLOAD_SUCCESS); in DownloadSucessProcess()
H A Dfirmware_manual_check_mode.cpp88 task.taskId, EventId::EVENT_TASK_RECEIVE, UpgradeStatus::CHECK_VERSION_SUCCESS); in GetStepAfterCheck()
92 task.taskId, EventId::EVENT_DOWNLOAD_WAIT, UpgradeStatus::CHECK_VERSION_SUCCESS); in GetStepAfterCheck()
/base/notification/eventhandler/frameworks/napi/src/
H A Devents_emitter.cpp36 static map<InnerEvent::EventId, std::unordered_set<std::shared_ptr<AsyncCallbackInfo>>> emitterInstances;
94 void OutPutEventIdLog(const InnerEvent::EventId &eventId) in OutPutEventIdLog()
126 const InnerEvent::EventId &eventId) in GetAsyncCallbackInfo()
147 InnerEvent::EventId eventId = event->GetInnerEventIdEx(); in ProcessEvent()
214 void DeleteCallbackInfo(napi_env env, const InnerEvent::EventId &eventIdValue, napi_value argv) in DeleteCallbackInfo()
241 std::shared_ptr<AsyncCallbackInfo> SearchCallbackInfo(napi_env env, const InnerEvent::EventId &eventIdValue, in SearchCallbackInfo()
268 napi_env env, napi_value argv, napi_valuetype eventValueType, InnerEvent::EventId &eventId) in GetEventIdWithObjectOrString()
362 InnerEvent::EventId eventIdValue = 0u; in OnOrOnce()
402 napi_env env, napi_value argv, napi_valuetype eventValueType, InnerEvent::EventId &eventId) in GetEventIdWithNumberOrString()
453 InnerEvent::EventId eventI in JS_Off()
[all...]
/base/notification/eventhandler/frameworks/napi/include/
H A Devents_emitter.h44 std::unordered_set<std::shared_ptr<AsyncCallbackInfo>> GetAsyncCallbackInfo(const InnerEvent::EventId &eventId);
70 InnerEvent::EventId eventId;
/base/security/security_guard/test/unittest/data_collect/sa/
H A Devent_define.h23 enum EventId : int64_t {
/base/security/security_guard/interfaces/inner_api/collector/include/
H A Devent_define.h23 enum EventId : int64_t {
/base/security/security_guard/test/unittest/security_collector/include/
H A Devent_define.h23 enum EventId : int64_t {
/base/update/updateservice/services/core/ability/callback/include/
H A Dbase_callback_utils.h35 void NotifyEvent(const std::string &versionDigestInfo, EventId eventId, UpgradeStatus status,
/base/notification/eventhandler/frameworks/eventhandler/include/
H A Devent_queue_base.h44 InnerEvent::EventId innerEventId_ = 0u;
272 InnerEvent::EventId innerEventId = 0u;
304 LOCAL_API void DumpCurrentRunningEventId(const InnerEvent::EventId &innerEventId, std::string &content);
/base/msdp/device_status/services/interaction/drag/include/
H A Devent_hub.h34 enum class EventId { class
/base/update/updateservice/interfaces/inner_api/feature/update/model/task/src/
H A Dtask_body.cpp41 JsonBuilder TaskBody::GetJsonBuilder(EventId eventId) in GetJsonBuilder()
/base/update/updateservice/services/firmware/upgrade/data_processor/src/
H A Dfirmware_install_data_processor.cpp77 DelayedSingleton<FirmwareCallbackUtils>::GetInstance()->NotifyEvent(tasks_.taskId, EventId::EVENT_UPGRADE_FAIL, in SetInstallResult()
/base/update/updateservice/services/firmware/upgrade/flow/src/
H A Dfirmware_manager.cpp262 task.taskId, EventId::EVENT_DOWNLOAD_WAIT, UpgradeStatus::CHECK_VERSION_SUCCESS); in DoAutoDownloadSwitchChanged()
391 DelayedSingleton<FirmwareCallbackUtils>::GetInstance()->NotifyEvent(task.taskId, EventId::EVENT_UPGRADE_SUCCESS, in HandleBootUpdateSuccess()
425 DelayedSingleton<FirmwareCallbackUtils>::GetInstance()->NotifyEvent(task.taskId, EventId::EVENT_UPGRADE_FAIL, in HandleBootUpdateFail()
485 DelayedSingleton<FirmwareCallbackUtils>::GetInstance()->NotifyEvent("", EventId::EVENT_INITIALIZE, in NotifyInitEvent()

Completed in 9 milliseconds

12