Home
last modified time | relevance | path

Searched refs:EventCategory (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/recorder/
H A Devent_config.cpp65 switches_->emplace(EventCategory::CATEGORY_PAGE, switchVal->GetBool("page", false)); in ParseSwitch()
66 … switches_->emplace(EventCategory::CATEGORY_COMPONENT, switchVal->GetBool("component", false)); in ParseSwitch()
67 switches_->emplace(EventCategory::CATEGORY_EXPOSURE, switchVal->GetBool("exposure", false)); in ParseSwitch()
68 … switches_->emplace(EventCategory::CATEGORY_PAGE_PARAM, switchVal->GetBool("pageParam", false)); in ParseSwitch()
117 bool EventConfig::IsCategoryEnable(EventCategory category) const in IsCategoryEnable()
H A Devent_recorder.cpp253EventCategory::CATEGORY_PAGE, static_cast<int32_t>(EventType::PAGE_SHOW), std::move(builder.build(… in OnPageShow()
263EventCategory::CATEGORY_PAGE, static_cast<int32_t>(EventType::PAGE_HIDE), std::move(builder.build(… in OnPageHide()
280EventCategory::CATEGORY_COMPONENT, static_cast<int32_t>(EventType::CLICK), std::move(params)); in OnClick()
291EventCategory::CATEGORY_COMPONENT, static_cast<int32_t>(EventType::CHANGE), std::move(params)); in OnChange()
301 EventCategory::CATEGORY_COMPONENT, static_cast<int32_t>(eventType), std::move(params)); in OnEvent()
312EventCategory::CATEGORY_PAGE, static_cast<int32_t>(EventType::PAGE_SHOW), std::move(params)); in OnNavDstShow()
329EventCategory::CATEGORY_PAGE, static_cast<int32_t>(EventType::PAGE_HIDE), std::move(params)); in OnNavDstHide()
336EventCategory::CATEGORY_EXPOSURE, static_cast<int32_t>(EventType::EXPOSURE), std::move(params)); in OnExposure()
H A Devent_config.h27 enum class EventCategory { enum
58 using Switch = std::unordered_map<EventCategory, bool>;
67 bool IsCategoryEnable(EventCategory category) const;
H A Devent_controller.cpp70 …pageEnable = eventSwitch.pageEnable || client.config.IsCategoryEnable(EventCategory::CATEGORY_PAGE… in NotifyConfigChange()
72 … eventSwitch.exposureEnable || client.config.IsCategoryEnable(EventCategory::CATEGORY_EXPOSURE); in NotifyConfigChange()
74 … eventSwitch.componentEnable || client.config.IsCategoryEnable(EventCategory::CATEGORY_COMPONENT); in NotifyConfigChange()
76 … eventSwitch.pageParamEnable || client.config.IsCategoryEnable(EventCategory::CATEGORY_PAGE_PARAM); in NotifyConfigChange()
208 void EventController::NotifyEvent(EventCategory category, int32_t eventType, in NotifyEvent()
222 void EventController::NotifyEventSync(EventCategory category, int32_t eventType, in NotifyEventSync()
H A Devent_controller.h41 void NotifyEvent(EventCategory category, int32_t eventType,
44 void NotifyEventSync(EventCategory category, int32_t eventType,
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/common/recorder/
H A Devent_recorder_test.cpp1114 config->switches_->emplace(Recorder::EventCategory::CATEGORY_COMPONENT, false);
1115 bool result = config->IsCategoryEnable(Recorder::EventCategory::CATEGORY_PAGE);
1148 … Recorder::EventCategory::CATEGORY_COMPONENT, Recorder::EventType::CHANGE, std::move(params));