Searched refs:EventCategory (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/recorder/ |
H A D | event_config.cpp | 65 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 D | event_recorder.cpp | 253 …EventCategory::CATEGORY_PAGE, static_cast<int32_t>(EventType::PAGE_SHOW), std::move(builder.build(… in OnPageShow() 263 …EventCategory::CATEGORY_PAGE, static_cast<int32_t>(EventType::PAGE_HIDE), std::move(builder.build(… in OnPageHide() 280 … EventCategory::CATEGORY_COMPONENT, static_cast<int32_t>(EventType::CLICK), std::move(params)); in OnClick() 291 … EventCategory::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() 312 … EventCategory::CATEGORY_PAGE, static_cast<int32_t>(EventType::PAGE_SHOW), std::move(params)); in OnNavDstShow() 329 … EventCategory::CATEGORY_PAGE, static_cast<int32_t>(EventType::PAGE_HIDE), std::move(params)); in OnNavDstHide() 336 … EventCategory::CATEGORY_EXPOSURE, static_cast<int32_t>(EventType::EXPOSURE), std::move(params)); in OnExposure()
|
H A D | event_config.h | 27 enum class EventCategory { enum 58 using Switch = std::unordered_map<EventCategory, bool>; 67 bool IsCategoryEnable(EventCategory category) const;
|
H A D | event_controller.cpp | 70 …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 D | event_controller.h | 41 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 D | event_recorder_test.cpp | 1114 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));
|