修改健康服务的配置 1971/1 1971/head 1972/target/1
authorCaisking <Casiking@zhihuishixun.com>
Wed, 16 Jul 2025 02:27:44 +0000 (10:27 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Wed, 16 Jul 2025 02:27:44 +0000 (10:27 +0800)
29 files changed:
code/sdk/application/wearable/fd230/nativeapp/CMakeLists.txt
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/BloodCardView.cpp [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/BloodCardView.cpp with 96% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/BloodCardView.h [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/BloodCardView.h with 93% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/CheckAbnormalPresenter.cpp [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/CheckAbnormalPresenter.cpp with 92% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/CheckAbnormalPresenter.h [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/CheckAbnormalPresenter.h with 93% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/CheckAbnormalView.cpp [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/CheckAbnormalView.cpp with 98% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/CheckAbnormalView.h [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/CheckAbnormalView.h with 96% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/CheckInvalidPresenter.cpp [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/CheckInvalidPresenter.cpp with 94% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/CheckInvalidPresenter.h [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/CheckInvalidPresenter.h with 93% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/CheckInvalidView.cpp [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/CheckInvalidView.cpp with 97% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/CheckInvalidView.h [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/CheckInvalidView.h with 95% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/health_service/defult_health.json [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/health_service/defult_health.json with 100% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/health_service/health_service.cpp [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/health_service/health_service.cpp with 100% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/health_service/health_service.h [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/health_service/health_service.h with 98% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/set_heart/SetHeartModel.cpp [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/set_heart/SetHeartModel.cpp with 100% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/set_heart/SetHeartModel.h [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/set_heart/SetHeartModel.h with 100% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/set_heart/SetHeartPresenter.cpp [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/set_heart/SetHeartPresenter.cpp with 100% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/set_heart/SetHeartPresenter.h [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/set_heart/SetHeartPresenter.h with 100% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/set_heart/SetHeartView.cpp [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/set_heart/SetHeartView.cpp with 100% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/health/set_heart/SetHeartView.h [moved from code/sdk/application/wearable/fd230/nativeapp/nativeui/heart_blood/set_heart/SetHeartView.h with 100% similarity]
code/sdk/application/wearable/fd230/nativeapp/nativeui/heartrate/src/HeartChartView.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/heartrate/src/HeartModel.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/heartrate/src/HeartRateView.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/heartrate/src/HeartResultPresenter.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/main/include/MainViewSample.h
code/sdk/application/wearable/fd230/nativeapp/nativeui/main/src/MainPresenterSample.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/sleep/src/SleepModel.cpp
code/sdk/application/wearable/fd230/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp
code/sdk/zhihui/services/ble_service/blemoder/CMakeLists.txt

index caf3b33..d6452ad 100644 (file)
@@ -47,7 +47,7 @@ set(PRIVATE_HEADER
     ${NativeApp}/nativeui/uisample/include
     ${NativeApp}/nativeui/uisample/uitest/framework/include
     ${NativeApp}/nativeui/aod_view/include
-    ${NativeApp}/nativeui/heart_blood/
+    ${NativeApp}/nativeui/health/
 
     ${NativeApp}/nativeui/alipay/include
     ${NativeApp}/nativeui/alipay/include/AlipayList
@@ -2,13 +2,13 @@
  * @Date: 2024-06-28 16:08:09\r
  * @LastEditors: Caisking 3449750381@qq.com\r
  * @LastEditTime: 2024-07-29 11:48:50\r
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/heart_blood/BloodCardView.h\r
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/health/BloodCardView.h\r
  */\r
 /***\r
  * @Date: 2024-06-26 16:13:19\r
  * @LastEditors: Caisking 3449750381@qq.com\r
  * @LastEditTime: 2024-06-26 16:52:01\r
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/heart_blood/BloodCardView.h\r
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/health/BloodCardView.h\r
  */\r
 \r
 #ifndef _Blood_CARD_VIEW_H\r
@@ -2,7 +2,7 @@
  * @Date: 2024-07-30 11:22:00
  * @LastEditors: Caisking 3449750381@qq.com
  * @LastEditTime: 2024-08-16 15:59:09
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckAbnormalPresenter.cpp
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/health/CheckAbnormalPresenter.cpp
  */
 /*
  * Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
  * Create: 2021-08-01
  */
 
-#include "heart_blood/CheckAbnormalPresenter.h"
+#include "health/CheckAbnormalPresenter.h"
 #include "common/task_manager.h"
 #include "BloodOxygenModel.h"
 
 #include "bloodoxygen/include/BloodDetectionView.h"
-#include "heart_blood/CheckAbnormalView.h"
+#include "health/CheckAbnormalView.h"
 
 #include "components/ui_label.h"
 #include "components/ui_label_ext.h"
@@ -51,7 +51,7 @@
 #endif
 
 #include "MainModel.h"
-#include "heart_blood/health_service/health_service.h"
+#include "health/health_service/health_service.h"
 
 // #include "battery_hal.h"
 
@@ -60,7 +60,7 @@
 namespace OHOS
 {
 
-    REGIST_SLICE(VIEW_CODED_LOCK, CheckAbnormalView, CheckAbnormalPresenter);
+    REGIST_SLICE(VIEW_CHECK_ABNORMAL, CheckAbnormalView, CheckAbnormalPresenter);
 
 
     static CheckAbnormalPresenter *g_pCheckAbnormalPresenter;
@@ -2,7 +2,7 @@
  * @Date: 2024-07-30 11:22:09
  * @LastEditors: Caisking 3449750381@qq.com
  * @LastEditTime: 2024-07-30 16:39:17
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckAbnormalPresenter.h
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/health/CheckAbnormalPresenter.h
  */
 
 #ifndef CHECK_ABNORMAL_PRESENTER_H
@@ -14,7 +14,7 @@
 #include "ohos_types.h"
 #include "KeyInputListener.h"
 #include "common/key_code.h"
-#include "heart_blood/CheckAbnormalView.h"
+#include "health/CheckAbnormalView.h"
 
 namespace OHOS
 {
@@ -19,8 +19,8 @@
 #include "uicomponents/UIComponents.h"
 #include "MainPresenterSample.h"
 
-#include "heart_blood/CheckAbnormalPresenter.h"
-#include "heart_blood/CheckAbnormalView.h"
+#include "health/CheckAbnormalPresenter.h"
+#include "health/CheckAbnormalView.h"
 
 #include "vibrator_service.h"
 #include "custom_runtime.h"
@@ -31,7 +31,7 @@
 #include "components/ui_image_animator.h"
 #include "components/ui_circle_progress.h"
 #include "components/ui_view_group.h"
-#include "heart_blood/CheckAbnormalPresenter.h"
+#include "health/CheckAbnormalPresenter.h"
 
 #include "components/ui_scroll_view.h"
 #include "components/ui_label_button_ext.h"
@@ -2,7 +2,7 @@
  * @Date: 2024-07-30 11:22:44
  * @LastEditors: Caisking 3449750381@qq.com
  * @LastEditTime: 2024-07-31 15:22:17
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckInvalidPresenter.cpp
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/health/CheckInvalidPresenter.cpp
  */
 /*
  * Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
  * Create: 2021-08-01
  */
 
-#include "heart_blood/CheckInvalidPresenter.h"
+#include "health/CheckInvalidPresenter.h"
 #include "common/task_manager.h"
 #include "BloodOxygenModel.h"
 
 #include "bloodoxygen/include/BloodDetectionView.h"
-#include "heart_blood/CheckInvalidView.h"
+#include "health/CheckInvalidView.h"
 
 #include "components/ui_label.h"
 #include "components/ui_label_ext.h"
@@ -2,7 +2,7 @@
  * @Date: 2024-07-30 11:22:09
  * @LastEditors: Caisking 3449750381@qq.com
  * @LastEditTime: 2024-07-30 16:39:17
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckInvalidPresenter.h
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/health/CheckInvalidPresenter.h
  */
 
 #ifndef CHECK_Invalid_PRESENTER_H
@@ -14,7 +14,7 @@
 #include "ohos_types.h"
 #include "KeyInputListener.h"
 #include "common/key_code.h"
-#include "heart_blood/CheckInvalidView.h"
+#include "health/CheckInvalidView.h"
 
 namespace OHOS
 {
@@ -2,7 +2,7 @@
  * @Date: 2024-07-30 11:20:16
  * @LastEditors: Caisking 3449750381@qq.com
  * @LastEditTime: 2024-07-31 15:16:05
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckInvalidView.cpp
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/health/CheckInvalidView.cpp
  */
 /***
  * @Date: 2024-04-15 10:55:58
 #include "uicomponents/UIComponents.h"
 #include "MainPresenterSample.h"
 
-#include "heart_blood/CheckInvalidPresenter.h"
-#include "heart_blood/CheckInvalidView.h"
+#include "health/CheckInvalidPresenter.h"
+#include "health/CheckInvalidView.h"
 
-#include "heart_blood/health_service/health_service.h"
+#include "health/health_service/health_service.h"
 
 #include "vibrator_service.h"
 #include "custom_runtime.h"
@@ -2,7 +2,7 @@
  * @Date: 2024-07-30 11:22:29
  * @LastEditors: Caisking 3449750381@qq.com
  * @LastEditTime: 2024-07-30 17:39:46
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckInvalidView.h
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/health/CheckInvalidView.h
  */
 /***
  * @Date: 2024-04-15 10:55:58
@@ -40,7 +40,7 @@
 #include "components/ui_image_animator.h"
 #include "components/ui_circle_progress.h"
 #include "components/ui_view_group.h"
-#include "heart_blood/CheckInvalidPresenter.h"
+#include "health/CheckInvalidPresenter.h"
 
 #include "components/ui_scroll_view.h"
 #include "components/ui_label_button_ext.h"
@@ -2,7 +2,7 @@
  * @Date: 2024-06-14 11:34:19
  * @LastEditors: Caisking 3449750381@qq.com
  * @LastEditTime: 2024-07-30 17:45:59
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/heart_blood/health_service/health_service.h
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/health/health_service/health_service.h
  */
 
 #ifndef HEART_SERVICE_H
index 9401531..7bbd2eb 100644 (file)
@@ -15,7 +15,7 @@
 #include "HeartChartView.h"
 #include "HeartModel.h"
 #include "UiConfig.h"
-#include "heart_blood/health_service/health_service.h"
+#include "health/health_service/health_service.h"
 #include "power_display_service.h"
 #include "ui_image_animator.h"
 #include "ui_resource_string.h"
index 7672ae9..b40370b 100644 (file)
 #include "custom_runtime.h"\r
 #include "custom_utils.h"\r
 \r
-#include "heart_blood/health_service/health_service.h"\r
+#include "health/health_service/health_service.h"\r
 #include <cstdint>\r
 \r
 #ifdef SUPPORT_PPG_SERVICE\r
 #include "ppg_hal.h"\r
 #include "ppg_service.h"\r
-\r
 #endif\r
 \r
 #include "settings/include/SettingModel.h"\r
@@ -1038,8 +1037,8 @@ static void heart_data_callbackProc(int data) {
   uint8_t wear = 1;\r
 #ifdef SUPPORT_PPG_SERVICE\r
   wear = ppg_get_wear_status();\r
+  printf("heart_data_callbackProc::wear = %d\n", wear);\r
   wear = 1; //暂时屏蔽\r
-  // printf("heart_data_callbackProc::wear = %d\n", wear);\r
 #endif\r
   if (wear == 0) {\r
     OHOS::HeartModel::GetInstance()->SetWearStatus();\r
@@ -1057,14 +1056,12 @@ static void heart_data_timer_callback(int data) {
       std::bind(heart_data_callbackProc, data));\r
 }\r
 void HeartModel::heart_data_timer(uint32_t interval) {\r
-  WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,\r
-                "HeartModel::heart_start_screen60s_timer");\r
+  WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,  "HeartModel::heart_start_screen60s_timer");\r
   if (g_data_timer != nullptr) {\r
     WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Timer already exists!!");\r
     return;\r
   }\r
-  g_data_timer = osTimerNew((osTimerFunc_t)heart_data_timer_callback,\r
-                            osTimerPeriodic, nullptr, nullptr);\r
+  g_data_timer = osTimerNew((osTimerFunc_t)heart_data_timer_callback,  osTimerPeriodic, nullptr, nullptr);\r
   if (g_data_timer == nullptr) {\r
     WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Timer create failed!!");\r
     return;\r
@@ -1072,8 +1069,7 @@ void HeartModel::heart_data_timer(uint32_t interval) {
   int tick = osMs2Tick(interval);\r
   osStatus_t ret = osTimerStart(g_data_timer, tick);\r
   if (ret != osOK) {\r
-    WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "osTimerDelete failed, ret = %lx!!",\r
-                  ret);\r
+    WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "osTimerDelete failed, ret = %lx!!",  ret);\r
     if (g_data_timer != nullptr) {\r
       ret = osTimerDelete(g_data_timer);\r
     }\r
index 0c8d3fc..2932eb5 100644 (file)
@@ -12,7 +12,7 @@
 #include "ScreenModels.h"\r
 #include "ui_resource_image.h"\r
 #include "common/image_cache_manager.h"\r
-#include "heart_blood/health_service/health_service.h"\r
+#include "health/health_service/health_service.h"\r
 #include "string.h"\r
 #define HEART_DATA_TEST 0\r
 namespace OHOS\r
index d5c9169..78a32f0 100644 (file)
@@ -45,7 +45,7 @@
 
 // #include "battery_hal.h"
 
-#include "heart_blood/health_service/health_service.h"
+#include "health/health_service/health_service.h"
 #include "NativeRegisterManager.h"
 
 #define BLOODKEYABLE 1
index 6043be7..a254648 100644 (file)
@@ -31,7 +31,7 @@
 #include "uicomponents/UIComponents.h"
 
 #include "SetCardModel.h"
-#include "heart_blood/BloodCardView.h"
+#include "health/BloodCardView.h"
 #include "traing/training_card/include/Training_CardView.h"
 // #include "ApplistCardView.h"
 #include "weather/include/WeatherControlView.h"
index 7a36adf..e0466d5 100644 (file)
@@ -30,7 +30,7 @@
 // #include "traing/training_card/include/Training_CardView.h"
 // #include "dnotdisturb/include/DnotDisturbModel.h"
 #include "weather/include/WeatherModel.h"
-#include "heart_blood/health_service/health_service.h"
+#include "health/health_service/health_service.h"
 #include "sleep/include/SleepControlView.h"
 #include "sleep/include/SleepCardView.h"
 #include "sleep/include/SleepModel.h"
index 954c9b7..5ab70e5 100644 (file)
@@ -14,7 +14,7 @@
 #include "ConfigModel.h"
 #include "UiConfig.h"
 #include "custom_utils.h"
-#include "heart_blood/health_service/health_service.h"
+#include "health/health_service/health_service.h"
 #include "kv_store.h"
 #include "samgr_lite.h"
 #include "securec.h"
index ddf2f18..5588afc 100644 (file)
@@ -44,7 +44,7 @@
 // #ifdef FD230_650
 #include "heartrate/include/HeartModel.h"
 // #endif
-#include "heart_blood/health_service/health_service.h"
+#include "health/health_service/health_service.h"
 #include "displaybrightness/include/DisplayBrightnessModel.h"
 #include "bluetooth/include/BluetoothModel.h"
 #ifdef SUPPORT_CYWEE_SERVICE
index 18af463..f86dee0 100644 (file)
@@ -15,7 +15,7 @@ set(PRIVATE_HEADER
     ${ROOT_DIR}/application/wearable/nativeapp/nativeui/heartrate/include
     ${ROOT_DIR}/application/wearable/fd230/service/app_store/
     ${ROOT_DIR}/application/wearable/fd230/nativeapp/nativeui/weather/include
-    ${ROOT_DIR}/application/wearable/fd230/nativeapp/nativeui/heart_blood/health_service
+    ${ROOT_DIR}/application/wearable/fd230/nativeapp/nativeui/health/health_service
     ${ROOT_DIR}/application/wearable/fd230/nativeapp/nativeui/sleep/include/
     ${ROOT_DIR}/application/wearable/fd230/nativeapp/nativeui/phone/include
     ${ROOT_DIR}/application/wearable/fd230/nativeapp/nativeui/languagecode/