优化雷鸟LCD测试 2404/1 2404/head 2405/target/1
authorpenglei <1624952103@qq.com>
Fri, 26 Sep 2025 02:06:07 +0000 (10:06 +0800)
committerpenglei <1624952103@qq.com>
Fri, 26 Sep 2025 02:06:07 +0000 (10:06 +0800)
code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp
code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp
code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp

index 47f96e2..51e1ccb 100644 (file)
@@ -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;
     }
 }
index e1cc87a..baea3f8 100644 (file)
@@ -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);
         }
     }
 
index b003737..f2045d1 100644 (file)
@@ -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()