From: Caisking Date: Mon, 9 Mar 2026 09:08:34 +0000 (+0800) Subject: 关闭goal多余的UI打印 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=232b6e6b2f1ade86a209771e49e484df6d42d6e8;p=mirrors%2FFD230.git 关闭goal多余的UI打印 --- diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/Maingoalpresenter.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/Maingoalpresenter.cpp index 73a3f3300..509187730 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/Maingoalpresenter.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/Maingoalpresenter.cpp @@ -32,7 +32,7 @@ namespace OHOS MaingoalPresenter::~MaingoalPresenter() { g_pMainWeatherPresenter = nullptr; - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MaingoalPresenter::~MaingoalPresenter"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MaingoalPresenter::~MaingoalPresenter"); #ifdef MEM_CHECK MemCheck::GetInstance()->EnableLeakCheck(false); #endif diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/Maingoalview.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/Maingoalview.cpp index 0dbcb6fc4..5cd57b362 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/Maingoalview.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/Maingoalview.cpp @@ -19,7 +19,7 @@ namespace OHOS MaingoalrView::~MaingoalrView() { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MaingoalrView::~MaingoalrView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MaingoalrView::~MaingoalrView"); ClearAll(); g_pgoalView = nullptr; } @@ -63,11 +63,11 @@ namespace OHOS */ UISwipeView *MaingoalrView::MaingoalViewInit(void) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MaingoalrView::MaingoalViewInit"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MaingoalrView::MaingoalViewInit"); goalSwipeViewList = new UISwipeView(UISwipeView::VERTICAL); if (nullptr == goalSwipeViewList) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "goalSwipeViewList new fail!!"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "goalSwipeViewList new fail!!"); return nullptr; } @@ -82,13 +82,13 @@ namespace OHOS recordCard[i] = CreatePage(i); if (nullptr == recordCard[i]) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "recordCard[%d] is nullptr!!", i); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "recordCard[%d] is nullptr!!", i); return nullptr; } recordCard[i]->InitView(this); goalSwipeViewList->Add(recordCard[i]); } - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MaingoalrView InitPage over!!"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MaingoalrView InitPage over!!"); return goalSwipeViewList; } @@ -109,21 +109,21 @@ namespace OHOS UIView::OnClickListener *goalOnClickListener = (UIView::OnClickListener *)OHOS::MaingoalPresenter::GetInstance(); if (goalOnClickListener == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "goalOnClickListener new fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "goalOnClickListener new fail"); return; } UIView::OnDragListener *goalOnDragListener = (UIView::OnDragListener *)OHOS::MaingoalPresenter::GetInstance(); if (goalOnDragListener == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "weatherOnDragListener new fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "weatherOnDragListener new fail"); return; } UISwipeView::OnSwipeListener *goalOnSwipeListener = (UISwipeView::OnSwipeListener *)OHOS::MaingoalPresenter::GetInstance(); if (goalOnSwipeListener == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "weatherOnSwipeListener new fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "weatherOnSwipeListener new fail"); return; } goalSwipeViewList->SetOnClickListener(goalOnClickListener); @@ -158,7 +158,7 @@ namespace OHOS goalView = new GoalView(); if (goalView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MaingoalrView::new goalView fail!"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MaingoalrView::new goalView fail!"); return nullptr; } return goalView; @@ -169,7 +169,7 @@ namespace OHOS goalotherView = new GoalotherView(); if (goalotherView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MaingoalrView::new goalView fail!"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MaingoalrView::new goalView fail!"); return nullptr; } @@ -181,7 +181,7 @@ namespace OHOS goalhintView = new GoalhintView(); if (goalhintView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MaingoalrView::new goalView fail!"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MaingoalrView::new goalView fail!"); return nullptr; } return goalhintView; @@ -220,7 +220,7 @@ namespace OHOS if (g_pageMapper[i].viewId == WeatherPageId) { // 正确使用 WeatherPageId 来匹配视图ID view = (this->*(g_pageMapper[i].func))(); // 如果找到匹配项,则调用相应的函数创建视图 - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CreatePage view:%p", view); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CreatePage view:%p", view); return view; // 返回创建的视图 } } diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalControlView.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalControlView.cpp index 561250473..51a5465b8 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalControlView.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalControlView.cpp @@ -48,7 +48,7 @@ namespace OHOS bool goalControlView::InitView(void) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "goalControlView::InitView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "goalControlView::InitView"); maingoalView = new MaingoalrView(); if (maingoalView == nullptr) { @@ -67,7 +67,7 @@ namespace OHOS goalOnSwipeListener = static_cast(new GoalControlViewOnSwipeListener()); if (goalOnSwipeListener == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "weatherOnSwipeListener new fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "weatherOnSwipeListener new fail"); return false; } goalSwipView->SetOnSwipeListener(goalOnSwipeListener); @@ -78,7 +78,7 @@ namespace OHOS void goalControlView::PreLoad(void) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "goalControlView::PreLoad"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "goalControlView::PreLoad"); if (!viewiInitStatus) { InitView(); @@ -89,7 +89,7 @@ namespace OHOS void goalControlView::UnLoad(void) { // Weather's usage scenes is complicated, so we do not release it's resources inner slice. - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "goalControlView::UnLoad"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "goalControlView::UnLoad"); } UISwipeView *goalControlView::GetGoalControlSwipView(void) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalother.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalother.cpp index 65416fe1f..cba9c059c 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalother.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalother.cpp @@ -30,7 +30,7 @@ namespace OHOS static GoalotherView *g_pgoalView{nullptr}; GoalotherView::GoalotherView() { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GoalotherView::GoalotherView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GoalotherView::GoalotherView"); SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION); SetViewIndex(0); // 视图索引 @@ -39,7 +39,7 @@ namespace OHOS GoalotherView::~GoalotherView() { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " GoalotherView::~GoalotherView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, " GoalotherView::~GoalotherView"); ClearAll(); g_pgoalView = nullptr; } @@ -64,7 +64,7 @@ namespace OHOS caloriegoaldataLabel->SetText(GoalModel::GetInstance().getcaloriesGoal().c_str()); Invalidate(); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GoalViewrefresh Invalidat "); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GoalViewrefresh Invalidat "); } void GoalotherView::ClearAll() @@ -416,7 +416,7 @@ namespace OHOS PullUpAnimatorView = new UIImageAnimatorView(); if (PullUpAnimatorView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpAnimatorView new fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpAnimatorView new fail"); return false; } if(GoalView::GetInstance()) @@ -467,10 +467,10 @@ namespace OHOS bool GoalotherView::InitView(void *caller) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GoalotherView InitView %p", caller); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GoalotherView InitView %p", caller); if (InitPage() == false) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GoalotherView::InitPage fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GoalotherView::InitPage fail"); return false; } SetDraggable(true); diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalview.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalview.cpp index 4de01b2c1..4a4c64c3b 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalview.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalview.cpp @@ -27,7 +27,7 @@ namespace OHOS static GoalView *g_pgoalView{nullptr}; GoalView::GoalView() { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GoalView::GoalView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GoalView::GoalView"); SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION); SetViewIndex(0); // 视图索引 GoalModel::GetInstance().GoalModelInitdata(); @@ -36,7 +36,7 @@ namespace OHOS GoalView::~GoalView() { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " GoalView::~GoalView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, " GoalView::~GoalView"); ClearAll(); g_pgoalView = nullptr; } @@ -241,7 +241,7 @@ namespace OHOS stepAnimatorView = new UIImageAnimatorView(); if (stepAnimatorView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpAnimatorView new fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpAnimatorView new fail"); return false; } for (uint8_t i = 0; i < 20; i++) @@ -280,7 +280,7 @@ namespace OHOS PullUpAnimatorView = new UIImageAnimatorView(); if (PullUpAnimatorView == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpAnimatorView new fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpAnimatorView new fail"); return false; } for (uint8_t i = 0; i < PULLUP_ANIMATOR_VIEW_NUM_FRAMES; i++) @@ -320,10 +320,10 @@ namespace OHOS bool GoalView::InitView(void *caller) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GoalView InitView %p", caller); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GoalView InitView %p", caller); if (InitPage() == false) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GoalView::InitPage fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GoalView::InitPage fail"); return false; } SetDraggable(true);