From: penglei <1624952103@qq.com> Date: Fri, 26 Sep 2025 02:06:07 +0000 (+0800) Subject: 优化雷鸟LCD测试 X-Git-Tag: V1.0.9_20251128_194606_LN~250^2~47 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2404%2Fhead;p=mirrors%2FFD230.git 优化雷鸟LCD测试 --- diff --git a/code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp b/code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp index 47f96e23f..51e1ccb6d 100644 --- a/code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp +++ b/code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp @@ -50,7 +50,7 @@ namespace OHOS void LcdTestModel::Init() { isTestActive_ = false; - currentColor_ = LcdTestColor::White; + currentColor_ = LcdTestColor::Black; } void LcdTestModel::SetTestStatus(bool isActive) @@ -103,6 +103,6 @@ namespace OHOS void LcdTestModel::ResetColorIndex() { - currentColor_ = LcdTestColor::White; + currentColor_ = LcdTestColor::Black; } } diff --git a/code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp b/code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp index e1cc87a25..baea3f8b4 100644 --- a/code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp +++ b/code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp @@ -79,19 +79,19 @@ namespace OHOS } isTestRunning_ = true; - currentColorIndex_ = 4; // 从白色开始 + currentColorIndex_ = 5; // 从黑色开始 // 更新Model状态 if (LcdTestModel::GetInstance()) { LcdTestModel::GetInstance()->SetTestStatus(true); - LcdTestModel::GetInstance()->SetCurrentColor(LcdTestColor::White); + LcdTestModel::GetInstance()->SetCurrentColor(LcdTestColor::Black); } // 通知View启动测试 if (view_) { view_->StartLcdTest(); - // 立即设置白色 - view_->SetLcdTestColor(LcdTestColor::White); + // 立即设置黑色 + view_->SetLcdTestColor(LcdTestColor::Black); } } diff --git a/code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp b/code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp index b003737f4..f2045d128 100644 --- a/code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp +++ b/code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp @@ -10,7 +10,7 @@ namespace OHOS { - static const uint32_t BACK_GROUND_COLOR = 0xfff6f6f6; + static const uint32_t BACK_GROUND_COLOR = 0xff000000; static LcdTestView *g_pLcdTestView = nullptr; LcdTestView::LcdTestView() @@ -140,10 +140,10 @@ namespace OHOS } } - // 设置全屏显示,默认白色 + // 设置全屏显示,默认黑色 testView_->SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION); testView_->SetStyle(STYLE_BACKGROUND_OPA, 0xff); - testView_->SetStyle(STYLE_BACKGROUND_COLOR, 0xffffffff); // 白色 + testView_->SetStyle(STYLE_BACKGROUND_COLOR, 0xff000000); // 黑色 testView_->SetTouchable(true); testView_->SetDraggable(true); testView_->SetVisible(true); @@ -155,7 +155,7 @@ namespace OHOS rootView->Invalidate(); isTestActive_ = true; - printf("LCD test started - WHITE background\n"); + printf("LCD test started - BLACK background\n"); } void LcdTestView::StopLcdTest()