mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
!3907 焦点切换打点事件新增bundleName信息
Merge pull request !3907 from moonGcy/master
This commit is contained in:
commit
8b61ffe3ba
@ -113,6 +113,7 @@ FOCUS_WINDOW:
|
||||
__BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: Window focus changed}
|
||||
PID: {type: INT32, desc: app pid}
|
||||
UID: {type: INT32, desc: app uid}
|
||||
BUNDLE_NAME: {type: STRING, desc: bundle name}
|
||||
|
||||
APPLICATION_BLOCK_INPUT:
|
||||
__BASE: {type: FAULT, level: CRITICAL, desc: The event is not consumed}
|
||||
|
@ -2903,7 +2903,8 @@ void WindowImpl::UpdateFocusStatus(bool focused)
|
||||
"FOCUS_WINDOW",
|
||||
OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR,
|
||||
"PID", getpid(),
|
||||
"UID", getuid());
|
||||
"UID", getuid(),
|
||||
"BUNDLE_NAME", property_->GetAbilityInfo().bundleName_);
|
||||
NotifyAfterFocused();
|
||||
} else {
|
||||
NotifyAfterUnfocused();
|
||||
|
@ -94,7 +94,9 @@ WindowSessionImpl::WindowSessionImpl(const sptr<WindowOption>& option)
|
||||
WLOGFE("Property is null");
|
||||
return;
|
||||
}
|
||||
|
||||
SessionInfo sessionInfo;
|
||||
sessionInfo.bundleName_ = option->GetBundleName();
|
||||
property_->SetSessionInfo(sessionInfo);
|
||||
property_->SetWindowName(option->GetWindowName());
|
||||
property_->SetRequestRect(option->GetWindowRect());
|
||||
property_->SetWindowType(option->GetWindowType());
|
||||
@ -465,7 +467,8 @@ WSError WindowSessionImpl::UpdateFocus(bool isFocused)
|
||||
"FOCUS_WINDOW",
|
||||
OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR,
|
||||
"PID", getpid(),
|
||||
"UID", getuid());
|
||||
"UID", getuid(),
|
||||
"BUNDLE_NAME", property_->GetSessionInfo().bundleName_);
|
||||
NotifyAfterFocused();
|
||||
} else {
|
||||
NotifyAfterUnfocused();
|
||||
|
Loading…
Reference in New Issue
Block a user