fd230,fd272,关闭FD230_650宏 2597/1 2597/head 2598/target/1 2599/target/1
authorluozheng <1732036298@qq.com>
Fri, 24 Oct 2025 02:52:04 +0000 (10:52 +0800)
committerluozheng <1732036298@qq.com>
Fri, 24 Oct 2025 02:52:04 +0000 (10:52 +0800)
19 files changed:
code/sdk/application/wearable/fd230/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/CallingView.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/CallLogItem.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/MainPhoneView.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp
code/sdk/application/wearable/fd230/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp
code/sdk/application/wearable/fd230/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/CallingView.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/CallLogItem.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/MainPhoneView.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp
code/sdk/application/wearable/fd272/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp
code/sdk/application/wearable/n9/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp

index 32801d0..55b5429 100644 (file)
@@ -25,9 +25,7 @@
 
 // #include "PhoneAGService.h"
 
-#ifdef FD230_650
 #include "dial_sos_c.h"
-#endif
 
 #ifdef SUPPORT_CAT1_SERVICE
 #include "cat1_ctl.h"
@@ -169,16 +167,14 @@ void StatusReset(void)
     set_call_hungup_flag(0);
     #endif
 
-    #ifdef FD230_650
+    
     set_TransCallToMobilePhone_falg(0);
-    #endif
 
     OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); 
 
     // If the call is handling in the notification, the slice is not switched
     //if (!CallerLogModel::GetInstance()->GetNotifyFlag())
 
-    // #ifdef FD230_650
     if(CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourceCat1)
     {
         #ifdef SUPPORT_CAT1_HFP_AG_SERV
@@ -674,7 +670,6 @@ static void NonWatchFinishHandle(int laststatus)
         }
     }
 
-    #ifdef FD230_650
     
     if (GetCurrCallNum() == 0) {
         g_phoneStatus = PHONE_SINGLE_STATUS;
@@ -689,7 +684,6 @@ static void NonWatchFinishHandle(int laststatus)
         sos_falg_add();
     }
 
-    #endif
 }
 
 static void WatchFinishHandle(void)
@@ -718,9 +712,7 @@ static void WatchFinishHandle(void)
     }
     g_phoneStatus = PHONE_SINGLE_STATUS;
 
-    #ifdef FD230_650
     sos_falg_clean();
-    #endif
     }
 
 void CAT1_ChangeStatusScreendisplay(int lastStatus)
@@ -773,7 +765,6 @@ void UsingPhoneChangeStatusCallback(const PhoneCallInfo *phoneCall)
 
     DisshakeTimer();
 
-    #ifdef FD230_650
      if(phoneCall->operate==OPERATE_INCOMING)
     {
         uapi_SetSpeaker_Mute(true);
@@ -783,7 +774,6 @@ void UsingPhoneChangeStatusCallback(const PhoneCallInfo *phoneCall)
         uapi_SetSpeaker_Mute(false);
         //OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); 
     }
-    #endif
     
     if (phoneCall->operate == OPERATE_WATCH_FINISH && GetCurrCallNum() == 0) {
         g_callOperate = OPERATE_WATCH_FINISH;
@@ -867,15 +857,11 @@ static void ScoConnectHandle(void)
 
     if(g_isCall==HFP_HF_CALL_STATE_INCOMING)
     {
-        #ifdef FD230_650
         uapi_SetSpeaker_Mute(true);
-        #endif
     }
     else
     {
-        #ifdef FD230_650
         uapi_SetSpeaker_Mute(false);
-        #endif
         OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); 
     }
 
@@ -1115,9 +1101,7 @@ void CallerLogModel::SetCallStatus(bool status)
 {
     callStatus = status;
     if(status){
-    #ifdef FD230_650
     sos_falg_clean();
-    #endif
     }
 }
 
index 844b1af..a55e4e3 100644 (file)
@@ -375,14 +375,12 @@ void CallingView::showdial(bool flag)
 
 void CallingView::text_updata_buf(const char *buf)
 {
-    #ifdef FD230_650
     if (CallerLogModel::GetInstance()->GetCallSource() == CallerLogModel::CallSourceCat1){
     SendDtfmStrNumberToCat1(buf[0]);
     }
     else{
     uapi_hfp_send_DTMF_CODE(buf[0]);
     }
-    #endif
     
     char new_buf[16]={0};
     const char*text_buf=label_number->GetText();
index b75fa2a..9a4ca9f 100644 (file)
@@ -34,9 +34,7 @@
 
 #include "NativeAbility.h"
 
-// #ifdef FD230_650
 #include "dial_sos_c.h"
-// #endif
 
 #include "soundandvibration/include/SoundAndVibrationVolumeSettingC.h"
 namespace OHOS {
@@ -193,7 +191,6 @@ bool MainCallingPresenter::HintsHandupClick()
 
 bool MainCallingPresenter::OnClick(UIView& view, const ClickEvent& event)
 {
-    // #ifdef FD230_650
     UNUSED(event);
      WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s",view.GetViewId());
     if (!InitPointerValue()) {
index 0544c44..6bae63a 100644 (file)
@@ -190,9 +190,7 @@ namespace OHOS
             button_calllog_status.SetTextId(STR_DIALED_CALLS);
             button_calllog_status.SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff));
         }
-        #ifdef FD230_650
         call_log_type.SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE);
-        #endif
     }
 
     void CallLOGListitemView::SetUpChild()
index ef0a1fa..5a26a48 100644 (file)
@@ -51,7 +51,6 @@ namespace OHOS
 
     bool DialingMethodPresenter::OnClick(UIView &view, const ClickEvent &event)
     {
-// #ifdef FD230_650
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DialingMethodPresenter::OnClick");
         std::string curViewId = view.GetViewId();
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s OnClick", curViewId.c_str());
index 86a3c8d..05c51fb 100644 (file)
@@ -337,9 +337,7 @@ namespace OHOS
             button_calllog_status[i]->SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff));
         }
 
-        #ifdef FD230_650
         call_log_type[i]->SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE);
-        #endif
     }
 
 
index a6112dc..7426a10 100644 (file)
@@ -141,9 +141,7 @@ namespace OHOS
             if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGWATCHSIM)\r
             {\r
                 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DIALINGMETHOD_USINGWATCHSIM");\r
-                // #ifdef FD230_650\r
                 cat1_UI_call_dial((char *)phoneNumber.c_str());\r
-                // #endif\r
 \r
             }\r
             else if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGPHONE)\r
index a6b37cd..f92836a 100644 (file)
@@ -14,9 +14,7 @@
 #include "rebootandshutdown/include/RebootAndShutdownView.h"
 #include "rebootandshutdown/include/RebootAndShutdownModel.h"
 
-#ifdef FD230_650
 #include "dial_sos_c.h"
-#endif
 
 
 #include "vibrator_service.h"
@@ -121,9 +119,7 @@ namespace OHOS
         }
         else if (strcmp(view.GetViewId(), SOS_BUTTON_VIEWID) == 0)
         {
-            #ifdef FD230_650
             start_SOS_phone_dail();
-            #endif
         }
 
         return true;
index 83e3c24..758bead 100644 (file)
@@ -41,9 +41,7 @@
 #include "system/include/SystemLogModel.h"
 #include "sleep/include/SleepModel.h"
 
-// #ifdef FD230_650
 #include "heartrate/include/HeartModel.h"
-// #endif
 #include "health/health_service/health_service.h"
 #include "displaybrightness/include/DisplayBrightnessModel.h"
 #include "bluetooth/include/BluetoothModel.h"
index 32801d0..4c6b0c3 100644 (file)
@@ -25,9 +25,7 @@
 
 // #include "PhoneAGService.h"
 
-#ifdef FD230_650
 #include "dial_sos_c.h"
-#endif
 
 #ifdef SUPPORT_CAT1_SERVICE
 #include "cat1_ctl.h"
@@ -169,16 +167,13 @@ void StatusReset(void)
     set_call_hungup_flag(0);
     #endif
 
-    #ifdef FD230_650
     set_TransCallToMobilePhone_falg(0);
-    #endif
 
     OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); 
 
     // If the call is handling in the notification, the slice is not switched
     //if (!CallerLogModel::GetInstance()->GetNotifyFlag())
 
-    // #ifdef FD230_650
     if(CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourceCat1)
     {
         #ifdef SUPPORT_CAT1_HFP_AG_SERV
@@ -674,7 +669,7 @@ static void NonWatchFinishHandle(int laststatus)
         }
     }
 
-    #ifdef FD230_650
+    
     
     if (GetCurrCallNum() == 0) {
         g_phoneStatus = PHONE_SINGLE_STATUS;
@@ -689,7 +684,7 @@ static void NonWatchFinishHandle(int laststatus)
         sos_falg_add();
     }
 
-    #endif
+    
 }
 
 static void WatchFinishHandle(void)
@@ -718,9 +713,7 @@ static void WatchFinishHandle(void)
     }
     g_phoneStatus = PHONE_SINGLE_STATUS;
 
-    #ifdef FD230_650
     sos_falg_clean();
-    #endif
     }
 
 void CAT1_ChangeStatusScreendisplay(int lastStatus)
@@ -773,7 +766,6 @@ void UsingPhoneChangeStatusCallback(const PhoneCallInfo *phoneCall)
 
     DisshakeTimer();
 
-    #ifdef FD230_650
      if(phoneCall->operate==OPERATE_INCOMING)
     {
         uapi_SetSpeaker_Mute(true);
@@ -783,7 +775,6 @@ void UsingPhoneChangeStatusCallback(const PhoneCallInfo *phoneCall)
         uapi_SetSpeaker_Mute(false);
         //OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); 
     }
-    #endif
     
     if (phoneCall->operate == OPERATE_WATCH_FINISH && GetCurrCallNum() == 0) {
         g_callOperate = OPERATE_WATCH_FINISH;
@@ -867,15 +858,11 @@ static void ScoConnectHandle(void)
 
     if(g_isCall==HFP_HF_CALL_STATE_INCOMING)
     {
-        #ifdef FD230_650
         uapi_SetSpeaker_Mute(true);
-        #endif
     }
     else
     {
-        #ifdef FD230_650
         uapi_SetSpeaker_Mute(false);
-        #endif
         OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); 
     }
 
@@ -1115,9 +1102,7 @@ void CallerLogModel::SetCallStatus(bool status)
 {
     callStatus = status;
     if(status){
-    #ifdef FD230_650
     sos_falg_clean();
-    #endif
     }
 }
 
index 844b1af..a55e4e3 100644 (file)
@@ -375,14 +375,12 @@ void CallingView::showdial(bool flag)
 
 void CallingView::text_updata_buf(const char *buf)
 {
-    #ifdef FD230_650
     if (CallerLogModel::GetInstance()->GetCallSource() == CallerLogModel::CallSourceCat1){
     SendDtfmStrNumberToCat1(buf[0]);
     }
     else{
     uapi_hfp_send_DTMF_CODE(buf[0]);
     }
-    #endif
     
     char new_buf[16]={0};
     const char*text_buf=label_number->GetText();
index b75fa2a..9a4ca9f 100644 (file)
@@ -34,9 +34,7 @@
 
 #include "NativeAbility.h"
 
-// #ifdef FD230_650
 #include "dial_sos_c.h"
-// #endif
 
 #include "soundandvibration/include/SoundAndVibrationVolumeSettingC.h"
 namespace OHOS {
@@ -193,7 +191,6 @@ bool MainCallingPresenter::HintsHandupClick()
 
 bool MainCallingPresenter::OnClick(UIView& view, const ClickEvent& event)
 {
-    // #ifdef FD230_650
     UNUSED(event);
      WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s",view.GetViewId());
     if (!InitPointerValue()) {
index 0544c44..6bae63a 100644 (file)
@@ -190,9 +190,7 @@ namespace OHOS
             button_calllog_status.SetTextId(STR_DIALED_CALLS);
             button_calllog_status.SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff));
         }
-        #ifdef FD230_650
         call_log_type.SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE);
-        #endif
     }
 
     void CallLOGListitemView::SetUpChild()
index ef0a1fa..5a26a48 100644 (file)
@@ -51,7 +51,6 @@ namespace OHOS
 
     bool DialingMethodPresenter::OnClick(UIView &view, const ClickEvent &event)
     {
-// #ifdef FD230_650
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DialingMethodPresenter::OnClick");
         std::string curViewId = view.GetViewId();
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s OnClick", curViewId.c_str());
index 5e05cd1..29dd1f1 100644 (file)
@@ -337,9 +337,7 @@ namespace OHOS
             button_calllog_status[i]->SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff));
         }
 
-        #ifdef FD230_650
         call_log_type[i]->SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE);
-        #endif
     }
 
 
index a6112dc..7426a10 100644 (file)
@@ -141,9 +141,7 @@ namespace OHOS
             if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGWATCHSIM)\r
             {\r
                 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DIALINGMETHOD_USINGWATCHSIM");\r
-                // #ifdef FD230_650\r
                 cat1_UI_call_dial((char *)phoneNumber.c_str());\r
-                // #endif\r
 \r
             }\r
             else if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGPHONE)\r
index a6b37cd..f92836a 100644 (file)
@@ -14,9 +14,7 @@
 #include "rebootandshutdown/include/RebootAndShutdownView.h"
 #include "rebootandshutdown/include/RebootAndShutdownModel.h"
 
-#ifdef FD230_650
 #include "dial_sos_c.h"
-#endif
 
 
 #include "vibrator_service.h"
@@ -121,9 +119,7 @@ namespace OHOS
         }
         else if (strcmp(view.GetViewId(), SOS_BUTTON_VIEWID) == 0)
         {
-            #ifdef FD230_650
             start_SOS_phone_dail();
-            #endif
         }
 
         return true;
index 83e3c24..6185732 100644 (file)
@@ -41,9 +41,7 @@
 #include "system/include/SystemLogModel.h"
 #include "sleep/include/SleepModel.h"
 
-// #ifdef FD230_650
 #include "heartrate/include/HeartModel.h"
-// #endif
 #include "health/health_service/health_service.h"
 #include "displaybrightness/include/DisplayBrightnessModel.h"
 #include "bluetooth/include/BluetoothModel.h"
@@ -716,11 +714,9 @@ namespace OHOS
         // 2. 获取模型里的数据(当前值与时间)
         uint32_t checkTime = 0;
         uint16_t currentHeartRate = 0;
-#ifdef FD230_650
         auto heartModel = HeartModel::GetInstance();
         checkTime = heartModel->GetCheckTime();
         currentHeartRate = heartModel->GetHeartdata();
-#endif
 
         std::string timestr = formatTime(checkTime);
 
index 83e3c24..6185732 100644 (file)
@@ -41,9 +41,7 @@
 #include "system/include/SystemLogModel.h"
 #include "sleep/include/SleepModel.h"
 
-// #ifdef FD230_650
 #include "heartrate/include/HeartModel.h"
-// #endif
 #include "health/health_service/health_service.h"
 #include "displaybrightness/include/DisplayBrightnessModel.h"
 #include "bluetooth/include/BluetoothModel.h"
@@ -716,11 +714,9 @@ namespace OHOS
         // 2. 获取模型里的数据(当前值与时间)
         uint32_t checkTime = 0;
         uint16_t currentHeartRate = 0;
-#ifdef FD230_650
         auto heartModel = HeartModel::GetInstance();
         checkTime = heartModel->GetCheckTime();
         currentHeartRate = heartModel->GetHeartdata();
-#endif
 
         std::string timestr = formatTime(checkTime);