产测增加cywee active测试 531/1 531/head 532/target/1
authorhcj <1224667075@qq.com>
Tue, 16 Jul 2024 09:18:21 +0000 (17:18 +0800)
committerhcj <1224667075@qq.com>
Tue, 16 Jul 2024 09:18:21 +0000 (17:18 +0800)
code/sdk/application/wearable/fd230app/nativeui/producttest/include/testSEChipTest.h
code/sdk/application/wearable/fd230app/nativeui/producttest/src/testSEChipTest.cpp

index e3a946d..58b1673 100644 (file)
@@ -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};           // 标题
index c5ea95b..86de121 100644 (file)
@@ -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);