From 90fbac829c20fdcb183a73ecddffc6ff1f5e7a16 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 16 Jul 2024 17:18:21 +0800 Subject: [PATCH] =?utf8?q?=E4=BA=A7=E6=B5=8B=E5=A2=9E=E5=8A=A0cywee=20acti?= =?utf8?q?ve=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../producttest/include/testSEChipTest.h | 4 +- .../producttest/src/testSEChipTest.cpp | 39 +++++++++++++++++-- 2 files changed, 39 insertions(+), 4 deletions(-) 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); -- 2.17.1