From: hcj <1224667075@qq.com> Date: Tue, 16 Jul 2024 09:18:21 +0000 (+0800) Subject: 产测增加cywee active测试 X-Git-Tag: release_V1.2.70_20241020_135402~792^2~9 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F531%2Fhead;p=mirrors%2FFD230.git 产测增加cywee active测试 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/producttest/include/testSEChipTest.h b/code/sdk/application/wearable/fd230app/nativeui/producttest/include/testSEChipTest.h index e3a946dbe..58b16732d 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/producttest/include/testSEChipTest.h +++ b/code/sdk/application/wearable/fd230app/nativeui/producttest/include/testSEChipTest.h @@ -42,7 +42,9 @@ namespace OHOS UILabel *chipinfo_label{nullptr}; - UILabel *IIC_label{nullptr}; + UILabel *IIC_label{nullptr}; + + UILabel *efuse_label{nullptr}; UILabelButtonExt* labelButton_next = nullptr; UILabel *Title{nullptr}; // 标题 diff --git a/code/sdk/application/wearable/fd230app/nativeui/producttest/src/testSEChipTest.cpp b/code/sdk/application/wearable/fd230app/nativeui/producttest/src/testSEChipTest.cpp index c5ea95b8b..86de1211c 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/producttest/src/testSEChipTest.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/producttest/src/testSEChipTest.cpp @@ -71,7 +71,11 @@ namespace OHOS delete IIC_label; IIC_label=nullptr; } - + if(efuse_label) + { + delete efuse_label; + efuse_label=nullptr; + } uint8_t cnt = pm_veto_get_id_cnt(PM_ID_P_TEST); if (cnt == 1) { @@ -175,7 +179,7 @@ namespace OHOS Config = { .left = 33, - .top = 250, + .top = 240, .width = 380, .height = 44, .fontSize = 30, @@ -191,7 +195,36 @@ namespace OHOS } testSEChipScrollView->Add(IIC_label); - + //"efuse key active : 0" + //uint8_t ret= uapi_get_cywee_active_state(); + if(uapi_get_cywee_active_state()) + { + sprintf_s(buf,128,"efuse key active :1\n"); + } + else + { + sprintf_s(buf,128,"efuse key active :0\n"); + } + + Config = { + .left = 33, + .top = 280, + .width = 380, + .height = 44, + .fontSize = 30, + .lineHeigh = 0, + .text = buf, + .lineBreakMode = UILabel::LINE_BREAK_WRAP, + }; + efuse_label = InitLabel(Config); + if (efuse_label == nullptr) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemAboutTheWatchView::IMELTitle new fail!"); + return nullptr; + } + testSEChipScrollView->Add(efuse_label); + + labelButton_next= testAboutView::GetInstance()->init_button_next(267,300,"xxxx"); testSEChipScrollView->Add(labelButton_next);