Merge #761 into sdk602patch0626 from refs/changes/761/head 763/target/1 764/target/1
author彭磊 <1624952103@qq.com>
Thu, 22 Aug 2024 09:34:56 +0000 (09:34 +0000)
committersnickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
Thu, 22 Aug 2024 09:34:56 +0000 (09:34 +0000)
Code review from 彭磊

* refs/changes/761/head: (2 commits squashed)

  - 优化蓝牙产测lcd tp button 测试

  - Merge branch &#39;sdk602patch0626&#39; of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk602patch0626

Signed-off-by: aliyun6865282430 <1624952103@qq.com>
Reviewed-by: snickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
Merged-by: snickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/761
code/sdk/application/wearable/fd230app/nativeui/producttest/src/testModel.cpp
code/sdk/drivers/peripheral/utils/custom_cmd_service.c

index 66cb476..b85dd33 100644 (file)
@@ -1,6 +1,17 @@
+/*
+ * @Author: penglei 1624952103@qq.com
+ * @Date: 2024-08-22 16:59:44
+ * @LastEditors: penglei 1624952103@qq.com
+ * @LastEditTime: 2024-08-22 17:22:33
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/producttest/src/testModel.cpp
+* @Description: 
+ * 
+ * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
+ */
 #include "producttest/include/testModel.h"
 #include "producttest/include/testPresenter.h"
 #include "producttest/include/testLCDC.h"
+#include "producttest/include/testTPC.h"
 
 namespace OHOS
 {
@@ -15,26 +26,34 @@ namespace OHOS
     {
         switch (type)
         {
-        case 1:
-            /* code */
-            break;
-        
-        default:
-            break;
-        }
-        if( testView::GetInstance())
-        {
-            testView::GetInstance()->ChangeView(TESTVIEW,LCD);
-           
-            factorytest_hide_test_lcd_button();
+            case 1:
+                if( testView::GetInstance())
+                {
+                    testView::GetInstance()->ChangeView(TESTVIEW,LCD);
+                    factorytest_hide_test_lcd_button();
+                }
+                break;
+
+            case 2:
+                if( testView::GetInstance())
+                {
+                    testView::GetInstance()->ChangeView(TESTVIEW,TP);
+                    factorytest_hide_test_tp_button(); 
+                }
+                break;
             
+            case 3:
+                if( testView::GetInstance())
+                {
+                    testView::GetInstance()->ChangeView(TESTVIEW,BUTTON);
+                    factorytest_hide_test_lcd_button();
+                }
+                break;
+
+            default:
+                break;
         }
-        else
-        printf("xxxxxxxxxxxxxxxxxxxxx\r\n");
-
-
 
-       return ;
     }
 
 
index f5c8a48..8e57eef 100644 (file)
@@ -142,7 +142,6 @@ static void custom_cmd_service_check_task(void const *arg)
             {
                 uapi_set_screen_on_api();
                 uapi_setScreenBrightness(255);
-                printf("111\n");
                 uapi_factorytest_enter_test_view(1);
                 HandleUpdatelcdMode(1);
                 // printf("222\n");
@@ -184,8 +183,9 @@ static void custom_cmd_service_check_task(void const *arg)
             {
                 //uapi_set_screen_on_api();
                 //uapi_factorytest_enter_test_view(1);
-                uapi_factorytest_enter_test_tp_view();
-                uapi_factorytest_hide_test_tp_button();
+                //uapi_factorytest_enter_test_tp_view();
+                HandleUpdatelcdMode(2);
+                //uapi_factorytest_hide_test_tp_button();
             }
             else
             {
@@ -197,7 +197,8 @@ static void custom_cmd_service_check_task(void const *arg)
             {
                 //uapi_set_screen_on_api();
                 //uapi_factorytest_enter_test_view(1);
-                uapi_factorytest_enter_test_button_view();
+                //uapi_factorytest_enter_test_button_view();
+                HandleUpdatelcdMode(3);
             }
             else
             {