From: Caisking Date: Tue, 27 Jan 2026 08:03:03 +0000 (+0800) Subject: 关闭睡眠页面的打印 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=c0446e37ec6673bbfb63f594849e7993e6d9a47c;p=mirrors%2FFD230.git 关闭睡眠页面的打印 --- diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/src/SleepView.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/src/SleepView.cpp index b46aff780..8c7276fef 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/src/SleepView.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/src/SleepView.cpp @@ -11,7 +11,7 @@ static constexpr const char *prossimagePath = "/user/res/step/step_b.bin"; static SleepView *g_pSleepView{nullptr}; SleepView::SleepView() { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SleepView::SleepView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepView::SleepView"); SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION); SetViewIndex(0); // 视图索引 @@ -19,7 +19,7 @@ SleepView::SleepView() { } SleepView::~SleepView() { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " SleepView::~SleepView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, " SleepView::~SleepView"); ClearAll(); g_pSleepView = nullptr; @@ -41,11 +41,11 @@ void SleepView::SleepDataRefresh() { #endif // 检查是否超过24小时 if (sleep_hour >= 24) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "异常:睡眠时长超过24小时"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "异常:睡眠时长超过24小时"); return; } - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepDataRefresh %d %d sleep_goal:%d total_sleep:%d", sleep_hour, sleep_min, sleep_goal * 60, total_sleep); @@ -73,7 +73,7 @@ void SleepView::SleepDataRefresh() { } // 日志输出进度百分比 - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Progress value: %.2f%%", + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Progress value: %.2f%%", progress_value * 100); // 显示为百分比 // 更新进度条 @@ -205,7 +205,7 @@ bool SleepView::InitPage(void) { * --------------------------------- */ circleProgress_ = new UICircleProgress(); if (circleProgress_ == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "circleProgress new fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "circleProgress new fail"); return false; } circleProgress_->SetPosition(0, 0); @@ -243,9 +243,9 @@ bool SleepView::InitPage(void) { } bool SleepView::InitView(void *caller) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SleepView InitView %p", caller); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepView InitView %p", caller); if (InitPage() == false) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SleepView::InitPage fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepView::InitPage fail"); return false; } SleepDataRefresh(); // 刷新数据