添加维测日志

Signed-off-by: yujiadong <yujiadong3@huawei.com>
Change-Id: I794de6a61e257a2ba8d753db7e4e8491f542c34e
This commit is contained in:
yujiadong 2024-10-15 13:11:49 +00:00
parent 6cd795c22d
commit 9e4e3d5da4
3 changed files with 7 additions and 2 deletions

View File

@ -375,6 +375,8 @@ bool ClipboardImpl::ProcessPasteDataRecord(const std::shared_ptr<MiscServices::P
TAG_LOGI(AceLogTag::ACE_CLIPBOARD, "mimeType:%{public}s", pasteDataRecord->GetMimeType().c_str());
if (pasteDataRecord->GetHtmlText() != nullptr) {
auto htmlText = pasteDataRecord->GetHtmlText();
TAG_LOGI(AceLogTag::ACE_CLIPBOARD, "htmlText:%{private}s, length=%{public}zu", htmlText->c_str(),
htmlText->length());
HtmlToSpan toSpan;
auto spanStr = toSpan.ToSpanString(*htmlText);
if (spanStr) {
@ -394,6 +396,8 @@ bool ClipboardImpl::ProcessPasteDataRecord(const std::shared_ptr<MiscServices::P
}
if (pasteDataRecord->GetPlainText() != nullptr) {
auto textData = pasteDataRecord->GetPlainText();
TAG_LOGI(AceLogTag::ACE_CLIPBOARD, "textData:%{private}s, length:%{public}zu", textData->c_str(),
textData->length());
resText.append(*textData);
}
return false;

View File

@ -218,12 +218,12 @@ void InputMethodManager::HideKeyboardAcrossProcesses()
{
#if defined(ENABLE_STANDARD_INPUT)
// If Nav, close it
TAG_LOGI(AceLogTag::ACE_KEYBOARD, "Nav CloseKeyboard FrameNode notNeedSoftKeyboard.");
TAG_LOGI(AceLogTag::ACE_KEYBOARD, "across processes CloseKeyboard FrameNode notNeedSoftKeyboard.");
auto inputMethod = MiscServices::InputMethodController::GetInstance();
if (inputMethod) {
inputMethod->RequestHideInput();
inputMethod->Close();
TAG_LOGI(AceLogTag::ACE_KEYBOARD, "Nav CloseKeyboard SoftKeyboard Closes Successfully.");
TAG_LOGI(AceLogTag::ACE_KEYBOARD, "across processes CloseKeyboard SoftKeyboard Closes Successfully.");
}
#endif
}

View File

@ -119,6 +119,7 @@ void TextFieldSelectOverlay::OnCloseOverlay(OptionMenuType menuType, CloseReason
if (CloseReason::CLOSE_REASON_BACK_PRESSED == reason) {
OnResetTextSelection();
if (info && info->isSingleHandle) {
TAG_LOGI(AceLogTag::ACE_TEXT_FIELD, "SingleHandle OnCloseOverlayv");
pattern->OnBackPressed();
}
}