From 6e09cafffd893179f24ea95de135a063e152364e Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Wed, 13 Aug 2025 15:03:42 +0800 Subject: [PATCH] =?utf8?q?=E5=85=B3=E9=97=AD=E4=B8=80=E4=BA=9BFD230=5F650?= =?utf8?q?=E7=9A=84=E5=AE=8F=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/record/src/RecordingModel.cpp | 5 --- .../src/SoundAndVibrationModel.cpp | 2 -- ...oundAndVibrationVolumeSettingPresenter.cpp | 4 --- .../nativeui/weather/src/WeatherModel.cpp | 6 +--- .../msg_center/include/notify/dial_sos_c.h | 33 +++++++++++++++++++ code/sdk/zhihui/utils/custom_utils_at_cmd.c | 9 ++--- 6 files changed, 36 insertions(+), 23 deletions(-) create mode 100644 code/sdk/application/wearable/fd230/service/msg_center/include/notify/dial_sos_c.h diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/record/src/RecordingModel.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/record/src/RecordingModel.cpp index 5482c79ee..2247daafe 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/record/src/RecordingModel.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/record/src/RecordingModel.cpp @@ -20,10 +20,7 @@ #include "custom_runtime.h" #include "vibrator_service.h" #include - -#ifdef FD230_650 #include "system/include/SystemLogModel.h" -#endif namespace OHOS { @@ -1004,7 +1001,6 @@ namespace OHOS // 检查录音空间是否满了 void RecordingModel::CheckRecordingSpaceOut(void) { - #ifdef FD230_650 long long size = SystemLogModel::GetInstance()->getFolderSize(TOTAL_RECORDING_SPACE_PATH); if (size >= TOTAL_RECORDING_SPACE) { @@ -1014,7 +1010,6 @@ namespace OHOS { RecordingSpaceIsOut = false; } - #endif WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingModel::CheckRecordingSpaceOut:%d", RecordingSpaceIsOut); } diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/soundandvibration/src/SoundAndVibrationModel.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/soundandvibration/src/SoundAndVibrationModel.cpp index fca259d3a..d7e65e490 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/soundandvibration/src/SoundAndVibrationModel.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/soundandvibration/src/SoundAndVibrationModel.cpp @@ -38,9 +38,7 @@ namespace OHOS //同步显示音乐的声音进度条 if(PlayersView::GetInstance()) { - #ifdef FD230_650 PlayersView::GetInstance()->UpdateVolumeValue(); - #endif } return true; } diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/soundandvibration/src/SoundAndVibrationVolumeSettingPresenter.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/soundandvibration/src/SoundAndVibrationVolumeSettingPresenter.cpp index e22b33309..03aa7e417 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/soundandvibration/src/SoundAndVibrationVolumeSettingPresenter.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/soundandvibration/src/SoundAndVibrationVolumeSettingPresenter.cpp @@ -238,12 +238,8 @@ extern "C" void CallVolumeSet(int32_t sounding) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeSet %d", sounding); - // Audio::AudioManager::GetInstance().SetVolume(AUDIO_STREAM_VOICE_CALL_BT_SCO, sounding); // 通话音量设置 - // Audio::AudioManager::GetInstance().SetVolume(AUDIO_STREAM_VOICE_CALL_VOLTE, sounding); // 通话音量设置 - #ifdef FD230_650 set_speaker_volume(sounding,AUDIO_STREAM_VOICE_CALL_BT_SCO); set_speaker_volume(sounding,AUDIO_STREAM_VOICE_CALL_VOLTE); - #endif } int CallVolumeGet(void) diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp index 69592a5fa..cdf7a353f 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp @@ -12,10 +12,8 @@ #include "ConfigModel.h" #include "custom_runtime.h" -#ifdef FD230_650 #include "main/include/dial/DialModelWeather.h" -#include "DialModelWeatherStr.h" -#endif +#include "main/include/dial/DialModelWeatherStr.h" namespace OHOS { @@ -360,7 +358,6 @@ namespace OHOS WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "p_WeatherControlView"); p_WeatherControlView->UpdateWeatherControlViewVisibility(); } - #ifdef FD230_650 if (DialModelWeather::GetInstance()) { int index; @@ -379,7 +376,6 @@ namespace OHOS const std::string str = GetWeatherTemperature(); DialModelWeatherStr::GetInstance()->UpdateWeatherStr(str); } - #endif } /*更新天气界面的时间显示*/ diff --git a/code/sdk/application/wearable/fd230/service/msg_center/include/notify/dial_sos_c.h b/code/sdk/application/wearable/fd230/service/msg_center/include/notify/dial_sos_c.h new file mode 100644 index 000000000..60adec1ff --- /dev/null +++ b/code/sdk/application/wearable/fd230/service/msg_center/include/notify/dial_sos_c.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) CompanyNameMagicTag 2023-2023. All rights reserved. + * Description: makephone notification api + * Author: CompanyName + * Create: 2023-08-11 + */ + +#ifndef MAKEPHONE_SOS_NOTIFICATION_H +#define MAKEPHONE_SOS_NOTIFICATION_H + +#ifdef __cplusplus +#if __cplusplus +extern "C" { +#endif /* __cplusplus */ +#endif /* __cplusplus */ + + +void start_SOS_phone_dail(void); + +void sos_falg_add(void); + +void sos_falg_clean(void); + +uint8_t get_falg_SOS(void); + + +#ifdef __cplusplus +#if __cplusplus +} +#endif /* __cplusplus */ +#endif /* __cplusplus */ + +#endif /* MAKEPHONE_NOTIFICATION_H */ diff --git a/code/sdk/zhihui/utils/custom_utils_at_cmd.c b/code/sdk/zhihui/utils/custom_utils_at_cmd.c index a41573d3b..67ff68920 100644 --- a/code/sdk/zhihui/utils/custom_utils_at_cmd.c +++ b/code/sdk/zhihui/utils/custom_utils_at_cmd.c @@ -23,14 +23,9 @@ #endif -#ifdef FD230_650 -#include "PhoneServiceC.h" - -#include "Bluetooyhpabpserver.h" - +#include "phoneservice/include/PhoneServiceC.h" +#include "bluetooth/include/Bluetooyhpabpserver.h" #include "dial_sos_c.h" - -#endif // #include "msg_center_customerC.h" #ifdef SUPPORT_A5133_SERVICE #include "service/a5133_service.h" -- 2.17.1