EventColumn增加维测日志

Signed-off-by: wangzhihao <wangzhihao42@huawei.com>
This commit is contained in:
wangzhihao 2024-07-20 22:16:12 +08:00
parent 5f670c919c
commit 626fe2bd50
2 changed files with 14 additions and 4 deletions

View File

@ -1252,7 +1252,7 @@ void DragEventActuator::ApplyNewestOptionExecutedFromModifierToNode(
void DragEventActuator::SetEventColumn(const RefPtr<DragEventActuator>& actuator)
{
TAG_LOGD(AceLogTag::ACE_DRAG, "DragEvent start set eventColumn.");
TAG_LOGI(AceLogTag::ACE_DRAG, "DragEvent start set eventColumn.");
auto pipelineContext = PipelineContext::GetCurrentContext();
CHECK_NULL_VOID(pipelineContext);
auto manager = pipelineContext->GetOverlayManager();
@ -1285,7 +1285,8 @@ void DragEventActuator::SetEventColumn(const RefPtr<DragEventActuator>& actuator
} else {
manager->MountEventToRootNode(columnNode);
}
TAG_LOGD(AceLogTag::ACE_DRAG, "DragEvent set eventColumn success.");
TAG_LOGI(AceLogTag::ACE_DRAG, "DragEvent set eventColumn success. depth %{public}d, id %{public}d.",
columnNode->GetDepth(), columnNode->GetId());
}
void DragEventActuator::HideFilter()
@ -1364,6 +1365,7 @@ void DragEventActuator::HideEventColumn()
void DragEventActuator::BindClickEvent(const RefPtr<FrameNode>& columnNode)
{
auto callback = [weak = WeakClaim(this)](GestureEvent& /* info */) {
TAG_LOGI(AceLogTag::ACE_DRAG, "start click event callback");
auto actuator = weak.Upgrade();
CHECK_NULL_VOID(actuator);
auto gestureHub = actuator->gestureEventHub_.Upgrade();

View File

@ -5268,14 +5268,22 @@ void OverlayManager::RemoveFilter()
void OverlayManager::RemoveEventColumn()
{
if (!hasEvent_) {
TAG_LOGI(AceLogTag::ACE_DRAG, "remove eventColumn, hasEvent is false.");
return;
}
auto columnNode = eventColumnNodeWeak_.Upgrade();
CHECK_NULL_VOID(columnNode);
if (!columnNode) {
TAG_LOGI(AceLogTag::ACE_DRAG, "remove eventColumn, columnNode is null.");
return;
}
auto rootNode = columnNode->GetParent();
CHECK_NULL_VOID(rootNode);
if (!rootNode) {
TAG_LOGI(AceLogTag::ACE_DRAG, "remove eventColumn, cannot find rootNode.");
return;
}
rootNode->RemoveChild(columnNode);
hasEvent_ = false;
TAG_LOGI(AceLogTag::ACE_DRAG, "remove eventColumn success, id %{public}d.", columnNode->GetId());
}
void OverlayManager::ResetRootNode(int32_t sessionId)