void LcdTestModel::Init()
{
isTestActive_ = false;
- currentColor_ = LcdTestColor::White;
+ currentColor_ = LcdTestColor::Black;
}
void LcdTestModel::SetTestStatus(bool isActive)
void LcdTestModel::ResetColorIndex()
{
- currentColor_ = LcdTestColor::White;
+ currentColor_ = LcdTestColor::Black;
}
}
}
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);
}
}
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()
}
}
- // 设置全屏显示,默认白色
+ // 设置全屏显示,默认黑色
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);
rootView->Invalidate();
isTestActive_ = true;
- printf("LCD test started - WHITE background\n");
+ printf("LCD test started - BLACK background\n");
}
void LcdTestView::StopLcdTest()