From 81dae4222e0d9f894f1e76136ff5eeb52b7717a6 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 18 Jan 2025 12:35:21 +0800 Subject: [PATCH] =?utf8?q?1.=E4=BC=98=E5=8C=96=E4=B8=8B=E6=8B=89=E8=8F=9C?= =?utf8?q?=E5=8D=95=E8=80=B3=E6=9C=BA=E7=8A=B6=E6=80=81=E8=8E=B7=E5=8F=96?= =?utf8?q?=202.=E5=85=B3=E9=97=AD=E5=BD=95=E9=9F=B3=E7=95=8C=E9=9D=A2?= =?utf8?q?=E5=A4=9A=E4=BD=99=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/record/src/RecordingModel.cpp | 12 ++++++------ .../fd230app/nativeui/settings/src/SettingModel.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp index 9b578e267..c3ef58a08 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp @@ -259,7 +259,7 @@ namespace OHOS WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Resource new fail"); return OHOS_FAILURE; } - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Player uri %s.", Uri.c_str()); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Player uri %s.", Uri.c_str()); ret = PlayerCtr->SetSource(*Resource); if (ret != 0) { @@ -681,7 +681,7 @@ namespace OHOS SearchFiles(directory, Recordings, RecordingMp3FileCount); if (RecordingMp3FileCount != 0) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Total .mp3 Files Count:%d", RecordingMp3FileCount); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Total .mp3 Files Count:%d", RecordingMp3FileCount); MaxRecordingNumber = atoi(info[0].recordingFileName); for (int i = 1; i < RecordingMp3FileCount; i++) { @@ -690,7 +690,7 @@ namespace OHOS MaxRecordingNumber = atoi(info[i].recordingFileName); } } - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MaxRecordingNumber:%d", MaxRecordingNumber); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MaxRecordingNumber:%d", MaxRecordingNumber); // 对 Recordings 数组进行操作 for (int i = 0; i < RecordingMp3FileCount; i++) { @@ -748,7 +748,7 @@ namespace OHOS yyyymmhhh_date.erase(yyyymmhhh_date.length() - 1); } RecordingTimeAndDuration = (yyyymmhhh_date + "-" + TotalRecordDuration); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "recordTime = %s recordTotalTime = %s", yyyymmhhh_date.c_str(), TotalRecordDuration.c_str()); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "recordTime = %s recordTotalTime = %s", yyyymmhhh_date.c_str(), TotalRecordDuration.c_str()); return RecordingTimeAndDuration; } @@ -757,14 +757,14 @@ namespace OHOS */ int RecordingModel::GetRecordingListNum(void) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingModel::GetRecordingListNum %d", RecordingMp3FileCount); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingModel::GetRecordingListNum %d", RecordingMp3FileCount); return RecordingMp3FileCount; } // 设置录音数量 void RecordingModel::SetRecordingListNum(int value) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingModel::GetRecordingListNum %d", value); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingModel::GetRecordingListNum %d", value); if (value > MAX_RECORDING_NUM) { RecordingMp3FileCount = MAX_RECORDING_NUM; diff --git a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp index ad9532990..302a00313 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-02-18 09:09:13 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2025-01-18 12:04:56 + * @LastEditTime: 2025-01-18 12:26:57 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp */ #include "settings/include/SettingModel.h" @@ -90,7 +90,7 @@ namespace OHOS // 获取蓝牙耳机连接状态 bool SettingModel::GetEarPhoneConnectStatus(void) { - return earphoneConnectStatus; + return uapi_dev_runtime_get_earphone_connect_stat(); } // 获取蓝牙连接状态 -- 2.17.1