AiModelsPresenter *aiModelsPresenter = AiModelsPresenter::GetInstance();
if (aiModelsPresenter == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsModel::ChangeAiModel - AiModelsPresenter instance is nullptr");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsModel::ChangeAiModel - AiModelsPresenter instance is nullptr");
return false;
}
aiModelsPresenter->ChangeAiModel();
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-07-15 11:58:45
+ * @LastEditTime: 2024-11-05 11:08:16
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiModels/src/AiModelsView.cpp
*/
#include "aimodels/include/AiModelsPresenter.h"
static AiModelsView *g_pAiModelsView{nullptr};
AiModelsView::AiModelsView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsView::AiModelsView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsView::AiModelsView");
g_pAiModelsView = this;
}
AiModelsView::~AiModelsView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsView::~AiModelsView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsView::~AiModelsView");
g_pAiModelsView = nullptr;
}
{
if (!g_pAiModelsView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsView::GetInstance - Instance not initialized!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsView::GetInstance - Instance not initialized!");
}
return g_pAiModelsView;
}
AiModelsTitle = AiModelsViewLabelInit(labelConfig);
if (AiModelsTitle == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsTitle new fail!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsTitle new fail!");
return false;
}
AiModelsBackGroundImage = AiModelsViewImageViewInit(imagecinfig);
if (AiModelsBackGroundImage == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsView::AiModelsBackGroundImage is nullptr!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsView::AiModelsBackGroundImage is nullptr!!");
return false;
}
/* -------------------------------------------------------------------------- */
AiModelsTitleBackGroundImage = AiModelsViewImageViewInit(imagecinfig);
if (AiModelsTitleBackGroundImage == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsView::AiModelsTitleBackGroundImage is nullptr!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsView::AiModelsTitleBackGroundImage is nullptr!!");
return false;
}
/* -------------------------------------------------------------------------- */
AiModelsImages[i] = AiModelsViewImageViewInit(imagecinfig);
if (AiModelsImages[i] == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsImages[%d] new fail!", i);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsImages[%d] new fail!", i);
return false;
}
}
AiModelsButtons[i] = AiModelsViewButtonInit(buttonconfig);
if (AiModelsButtons[i] == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsButtons[%d] new fail!", i);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsButtons[%d] new fail!", i);
return false;
}
AiModelsButtons[i]->SetImageSrc(AiModelsImagePath[i], AiModelsImagePath[i]);
AiModelsScrollView = new UIScrollView();
if (AiModelsScrollView == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsView::CreateAiModelsScrollView new fail!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsView::CreateAiModelsScrollView new fail!");
return false;
}
AiModelsScrollView->SetPosition(0, 0, 466, 466);
if (!CreateAiModelsScrollView() || !CreateAiModelsViewLabel() ||
!CreateAiModelsViewImageView() || !CreateAiModelsViewButton())
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiModelsView::CreateAiModelsView fail!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiModelsView::CreateAiModelsView fail!");
return;
}
SetContainerView(new UIViewGroup());
if (GetContainer() == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SetContainerView fail!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SetContainerView fail!!");
return;
}
container_->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-02 15:43:57
+ * @LastEditTime: 2024-11-05 11:08:30
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiVoice/src/AiVoiceBluetoothFailedStartView.cpp
*/
#include "aivoice/include/AiVoicePresenter.h"
AiVoiceBluetoothFailedStartView::AiVoiceBluetoothFailedStartView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceBluetoothFailedStartView::AiVoiceBluetoothFailedStartView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceBluetoothFailedStartView::AiVoiceBluetoothFailedStartView");
g_pAiVoiceBluetoothFailedStartView = this;
}
AiVoiceBluetoothFailedStartView::~AiVoiceBluetoothFailedStartView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceBluetoothFailedStartView::~AiVoiceBluetoothFailedStartView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceBluetoothFailedStartView::~AiVoiceBluetoothFailedStartView");
ClearAll();
g_pAiVoiceBluetoothFailedStartView = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-08-03 11:10:08
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-11-01 15:46:19
+ * @LastEditTime: 2024-11-05 11:08:54
* @FilePath: /xts_origin/FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceConnectingView.cpp
*/
#include "aivoice/include/AiVoiceConnectingView.h"
static AiVoiceConnectingView *g_pAiVoiceConnecting{nullptr};
AiVoiceConnectingView::AiVoiceConnectingView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceConnectingView::AiVoiceConnectingView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceConnectingView::AiVoiceConnectingView");
g_pAiVoiceConnecting = this;
}
AiVoiceConnectingView::~AiVoiceConnectingView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceConnectingView::~AiVoiceConnectingView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceConnectingView::~AiVoiceConnectingView");
ClearAll();
g_pAiVoiceConnecting = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-20 15:14:50
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-28 11:02:51
+ * @LastEditTime: 2024-11-05 11:16:39
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp
*/
#include "aivoice/include/AiVoiceModel.h"
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Directory %s not exist, creating directory\n", path);
if (mkdir(path, 0777) != 0)
{ // 尝试创建目录,如果创建失败
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Create directory %s failed\n", path);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Create directory %s failed\n", path);
return false;
}
}
// 如果列表只有一项,直接清空
adapter->GetChatContentItem().clear();
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "listSize = %d", listSize);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "listSize = %d", listSize);
ChatContentListCount -= (listSize < 2 ? listSize : 2);
}
}
{
AIResponseType = type;
errnote = str;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AIResponseType = %d,errnote = %s\n", AIResponseType, errnote.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AIResponseType = %d,errnote = %s\n", AIResponseType, errnote.c_str());
//如果是:AI录音解析错误或AI 回应错误 ,或者重传多次录音数据->跳转AI回应错误界面
if (AIResponseType == AiVoiceModel::AI_RECORDING_PARSING_ERROR || AIResponseType == AiVoiceModel::AI_RESPONSE_ERROR
|| AIResponseType == AiVoiceModel::AI_BLE_ERROR)
FILE *file = fopen(filePath.c_str(), "r");
if (file != nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "File already exists: %s", filePath.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "File already exists: %s", filePath.c_str());
fseek(file, 0, SEEK_END);
long size = ftell(file);
static void AIVoice_TimerCallbackProc(int data)
{
// 等待AI思考完成的定时器
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AIVoice_TimerCallbackProc,Time = %d", Time);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AIVoice_TimerCallbackProc,Time = %d", Time);
if (Time == 30) // 等待一秒,确保录音停止,发送录音准备就绪指令
{
AiVoiceModel::GetInstance().CheckFileAndSendAIIsReady();
*/
void AiVoiceModel::AIVoice_StartTimer(uint32_t interval)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::AIVoice_StartTimer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::AIVoice_StartTimer");
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_timer != nullptr)
{
static void ai_start_screen60s_timer_callbackProc(int data)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::ai_start_screen60s_timer_callbackProc,time = %d", SCREEN_60S_TIME);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::ai_start_screen60s_timer_callbackProc,time = %d", SCREEN_60S_TIME);
SCREEN_60S_TIME -= 30;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::ai_start_screen60s_timer_callbackProc,time = %d", SCREEN_60S_TIME);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::ai_start_screen60s_timer_callbackProc,time = %d", SCREEN_60S_TIME);
if (SCREEN_60S_TIME <= 0)
{
// 60s后息屏停止定时
}
void AiVoiceModel::ai_start_screen60s_timer(uint32_t interval)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::ai_start_screen60s_timer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::ai_start_screen60s_timer");
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_screen60s_timer != nullptr)
{
// 开启一个AI录音的定时器
void AiVoiceModel::start_listening_timer(uint32_t interval)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::start_listening_timer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::start_listening_timer");
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_listeningEndHandle != nullptr)
{
// 开启一个查询AI是否准备就绪的定时器
void AiVoiceModel::start_ai_isready_timer(uint32_t interval)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::start_ai_isready_timer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::start_ai_isready_timer");
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_ai_is_ready_Handle != nullptr)
{
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-20 15:11:17
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-24 18:35:43
+ * @LastEditTime: 2024-11-05 11:17:28
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoicePresenter.cpp
*/
#include "AppViewIDs.h"
{
if (it->first == AIVOICERETURNRESULTTEXT_CONTINUECHAT_BUTTON_VIEW_ID) // 点击继续对话按钮要发取消当前对话指令,避免AI回应中途按继续对话按钮没有取消上一次对话问题
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CancelCurAIChat");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CancelCurAIChat");
AiVoiceModel::GetInstance().CancelCurAIChat();
PlayersModel::GetInstance()->HandPausePhoneMusic(); // 暂停手机音乐
PlayersModel::GetInstance()->PlayerPause(); // 暂停手机音乐
}
else if (model->GetAiModelTextId() == STR_AIMODES_CHATGPT && event.GetDragDirection() == DragEvent::DIRECTION_BOTTOM_TO_TOP) /*上滑*/
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DIRECTION_BOTTOM_TO_TOP");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DIRECTION_BOTTOM_TO_TOP");
if (model->IsExistOpenAIAPIKeys() == true)
{
ChangeViewAndLogicOperator(AIVOICE_STARTCHAT_VIEWID, AIVOICE_SETAPIKEYS); /*开始对话界面->API Keys set界面*/
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-28 11:14:56
+ * @LastEditTime: 2024-11-05 11:18:37
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiVoice/src/AiVoiceView.cpp
*/
#include "aivoice/include/AiVoicePresenter.h"
AiVoiceView::AiVoiceView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::AiVoiceView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::AiVoiceView");
g_pAiVoiceView = this;
}
AiVoiceView::~AiVoiceView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::~AiVoiceView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::~AiVoiceView");
g_pAiVoiceView = nullptr;
}
/*切换到开始对话Ai界面*/
bool AiVoiceView::ChangeAiVoiceStartChatView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoiceStartChatView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoiceStartChatView");
if (AiVoiceScrollView[thisView] == nullptr)
{
container_->Add(AiVoiceScrollView[thisView]);
/*切换到APP蓝牙或4G网络未连接界面界面*/
bool AiVoiceView::ChangeAiVoiceBluetoothFailedStartView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoiceBluetoothFailedStartView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoiceBluetoothFailedStartView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_AiVoiceBluetoothFailedStartView = new AiVoiceBluetoothFailedStartView();
/*切换到模型连接失败界面*/
bool AiVoiceView::ChangeAiVoiceMobileDataFailedStartView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoiceMobileDataFailedStartView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoiceMobileDataFailedStartView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_AivoiceMobileDataFailedStartView = new AivoiceMobileDataFailedStartView();
/*切换到连接超时界面*/
bool AiVoiceView::ChangeAiVoicConnectTimeoutView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicConnectTimeoutView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicConnectTimeoutView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_AivoiceConnectTimeoutView = new AivoiceConnectTimeoutView();
/*切换到聆听中界面*/
bool AiVoiceView::ChangeAiVoicListeningView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicListeningView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicListeningView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_AivoiceListeningView = new AivoiceListeningView();
/*切换到思考中界面*/
bool AiVoiceView::ChangeAiVoicThinkingView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicThinkingView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicThinkingView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_AivoiceThinkingView = new AivoiceThinkingView();
/*切换到返回结果文本界面*/
bool AiVoiceView::ChangeAiVoicReturnResultTextView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicReturnResultTextView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicReturnResultTextView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_AivoiceReturnResultTextView = new AivoiceReturnResultTextView();
/*切换到setapikeys界面*/
bool AiVoiceView::ChangeAiVoicSetApiKeysView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicSetApiKeysView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicSetApiKeysView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_SetApiKeysView = new SetApiKeysView();
/*切换到notsetapikeys界面*/
bool AiVoiceView::ChangeAiVoicNotSetApiKeysView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicNotSetApiKeysView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicNotSetApiKeysView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_NotSetApiKeysView = new NotSetApiKeysView();
/*切换到apikeys删除界面*/
bool AiVoiceView::ChangeAiVoicApiKeysDeleteView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicApiKeysDeleteView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicApiKeysDeleteView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_ApiKeysDeleteView = new ApiKeysDeleteView();
/*切换到AI正在连接中视图*/
bool AiVoiceView::ChangeAiVoicConnectingView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicConnectingView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceView::ChangeAiVoicConnectingView");
if (AiVoiceScrollView[thisView] == nullptr)
{
p_AiVoiceConnectingView = new AiVoiceConnectingView();
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-16 11:37:43
+ * @LastEditTime: 2024-11-05 11:09:24
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiVoice/src/AivoiceConnectTimeoutView.cpp
*/
#include "aivoice/include/AiVoicePresenter.h"
AivoiceConnectTimeoutView::AivoiceConnectTimeoutView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceConnectTimeoutView::AivoiceConnectTimeoutView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceConnectTimeoutView::AivoiceConnectTimeoutView");
g_pAivoiceConnectTimeoutView = this;
}
AivoiceConnectTimeoutView::~AivoiceConnectTimeoutView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceConnectTimeoutView::~AivoiceConnectTimeoutView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceConnectTimeoutView::~AivoiceConnectTimeoutView");
ClearAll();
g_pAivoiceConnectTimeoutView = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-05 10:21:11
+ * @LastEditTime: 2024-11-05 11:09:40
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiVoice/src/AivoiceListeningView.cpp
*/
#include "aivoice/include/AiVoicePresenter.h"
AivoiceListeningView::AivoiceListeningView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceListeningView::AivoiceListeningView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceListeningView::AivoiceListeningView");
g_pAivoiceListeningView = this;
}
AivoiceListeningView::~AivoiceListeningView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceListeningView::~AivoiceListeningView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceListeningView::~AivoiceListeningView");
ClearAll();
g_pAivoiceListeningView = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-02 15:44:58
+ * @LastEditTime: 2024-11-05 11:10:02
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiVoice/src/AivoiceMobileDataFailedStartView.cpp
*/
#include "aivoice/include/AiVoicePresenter.h"
AivoiceMobileDataFailedStartView::AivoiceMobileDataFailedStartView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceMobileDataFailedStartView::AivoiceMobileDataFailedStartView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceMobileDataFailedStartView::AivoiceMobileDataFailedStartView");
g_pAivoiceMobileDataFailedStartView = this;
}
AivoiceMobileDataFailedStartView::~AivoiceMobileDataFailedStartView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceMobileDataFailedStartView::~AivoiceMobileDataFailedStartView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceMobileDataFailedStartView::~AivoiceMobileDataFailedStartView");
ClearAll();
g_pAivoiceMobileDataFailedStartView = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-23 14:58:03
+ * @LastEditTime: 2024-11-05 11:17:57
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiVoice/src/AivoiceReturnResultTextView.cpp
*/
#include "aivoice/include/AiVoicePresenter.h"
AivoiceReturnResultTextView::AivoiceReturnResultTextView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceReturnResultTextView::AivoiceReturnResultTextView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceReturnResultTextView::AivoiceReturnResultTextView");
g_pAivoiceReturnResultTextView = this;
}
AivoiceReturnResultTextView::~AivoiceReturnResultTextView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceReturnResultTextView::~AivoiceReturnResultTextView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceReturnResultTextView::~AivoiceReturnResultTextView");
ClearAll();
g_pAivoiceReturnResultTextView = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-28 11:12:52
+ * @LastEditTime: 2024-11-05 11:18:14
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiVoice/src/AivoiceThinkingView.cpp
*/
#include "aivoice/include/AiVoicePresenter.h"
AivoiceThinkingView::AivoiceThinkingView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceThinkingView::AivoiceThinkingView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceThinkingView::AivoiceThinkingView");
g_pAivoiceThinkingView = this;
}
AivoiceThinkingView::~AivoiceThinkingView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceThinkingView::~AivoiceThinkingView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceThinkingView::~AivoiceThinkingView");
ClearAll();
g_pAivoiceThinkingView = nullptr;
}
{
ApiKeysDeleteView::ApiKeysDeleteView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ApiKeysDeleteView::ApiKeysDeleteView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ApiKeysDeleteView::ApiKeysDeleteView");
}
ApiKeysDeleteView::~ApiKeysDeleteView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ApiKeysDeleteView::~ApiKeysDeleteView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ApiKeysDeleteView::~ApiKeysDeleteView");
ClearAll();
}
}
else if (event.GetDragDirection() == DragEvent::DIRECTION_TOP_TO_BOTTOM) /*下滑*/
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DIRECTION_TOP_TO_BOTTOM");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DIRECTION_TOP_TO_BOTTOM");
if (viewId == SETAPIKEYS_SCROLLVIEW_VIEWID)
{
p_AiVoiceView->ChangeView(AIVOICE_SETAPIKEYS, AIVOICE_STARTCHAT_VIEWID); /*API Keys set界面->开始对话界面*/
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-07-29 16:04:23
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-07-30 18:34:01
+ * @LastEditTime: 2024-11-05 11:20:24
* @FilePath: /xts_origin/FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/apikeys/NotSetApiKeysView.cpp
*/
{
NotSetApiKeysView::NotSetApiKeysView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "NotSetApiKeysView::NotSetApiKeysView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NotSetApiKeysView::NotSetApiKeysView");
}
NotSetApiKeysView::~NotSetApiKeysView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "NotSetApiKeysView::~NotSetApiKeysView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NotSetApiKeysView::~NotSetApiKeysView");
ClearAll();
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-07-29 16:04:23
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-07-30 16:22:06
+ * @LastEditTime: 2024-11-05 11:20:35
* @FilePath: /xts_origin/FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/apikeys/SetApiKeysView.cpp
*/
{
SetApiKeysView::SetApiKeysView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SetApiKeysView::SetApiKeysView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SetApiKeysView::SetApiKeysView");
}
SetApiKeysView::~SetApiKeysView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SetApiKeysView::~SetApiKeysView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SetApiKeysView::~SetApiKeysView");
ClearAll();
}
"AlarmClockModel::DeleteAlarmClock = %d, currentAlarm[alarmListener] = %p, id = %u!", status, currentAlarm[num],
currentAlarm[num]->alarmClockId);
DeleteAlarmId(clockId);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmClockModel::DeleteClockModel alarmSerial = %u!", alarmSerial);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmClockModel::DeleteClockModel alarmSerial = %u!", alarmSerial);
for (; num < alarmSerial - 1; num ++) {
if (currentAlarm[num + 1] == nullptr || currentAlarm[num + 1]->alarmType == TYPE_INVALID_ALARM_CLOCK) {
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmClockModel::SetAlarmInfo copy alarmname error!");
return;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmClockModel::NewAlarmTime clock name = %s, id = %u",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmClockModel::NewAlarmTime clock name = %s, id = %u",
currentAlarm[alarmListener]->alarmClockName, currentAlarm[alarmListener]->alarmClockId);
if (setListener == NEW_TIME_LISTENER) { //表示新建闹钟
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmClockModel::SetAlarmWeek new time!");
{
// 本地播放文件路径和状态
sliceId = str; // 播放音乐的文件名
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayerInit start!");
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayerInit, url:%s ", sliceId);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayerInit start!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayerInit, url:%s ", sliceId);
std::string strName = sliceId;
uri =strName;
// 创建 AM
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "playerCallback new fail");
return OHOS_FAILURE;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayerInit end!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayerInit end!");
return OHOS_SUCCESS;
}
\r
UIScrollView * AlarmJudgeView::InitDeleteScreen()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
if(nullptr == DeleteGroup_)\r
{\r
DeleteGroup_ = new UIScrollView();\r
\r
AlarmNewTimeView::AlarmNewTimeView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmNewTimeView::AlarmNewTimeView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmNewTimeView::AlarmNewTimeView");\r
g_pAlarmNewTimeView = this;\r
}\r
\r
group = nullptr;\r
}\r
g_pAlarmNewTimeView = nullptr;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmNewTimeView::~AlarmNewTimeView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmNewTimeView::~AlarmNewTimeView");\r
}\r
\r
AlarmNewTimeView *AlarmNewTimeView::GetInstance(void)\r
\r
UIScrollView *AlarmNewTimeView::InitNewTimeView(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmNewTimeView::InitNewTimeView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmNewTimeView::InitNewTimeView");\r
if (group == nullptr)\r
{\r
group = new UIScrollView();\r
\r
void AlarmNewTimeView::RefreshNewTime(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmNewTimeView::RefreshNewTime");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmNewTimeView::RefreshNewTime");\r
struct tm local_time;\r
time_t seconds = time(nullptr);\r
if (localtime_r(&seconds, &local_time) == nullptr)\r
\r
void AlarmPresenter::OnStop(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmPresenter OnStop");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmPresenter OnStop");\r
}\r
\r
AlarmPresenter *AlarmPresenter::GetInstance()\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmPresenter::ClickJudgeTrue new MainAlarmView::GetInstance() error");\r
return;\r
}\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "clockQty = %d", clockQty);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "clockQty = %d", clockQty);\r
clockQty--;\r
AlarmClockModel::GetInstance()->SetSerialRdc();\r
MainAlarmView::GetInstance()->RefreshAlarm();\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ClickAlarmWeekOk new time!");\r
alarmListener = clockQty;\r
clockQty++;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "******************ClickAlarmWeekOk alarmListener = %d***************", alarmListener);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "******************ClickAlarmWeekOk alarmListener = %d***************", alarmListener);\r
AlarmClockModel::GetInstance()->SetSerialAdd();\r
AlarmClockModel::GetInstance()->SetAlarmInfo(timeHour, timeMin, clockWeek, alarmListener, setListener);\r
if (!(AlarmClockModel::GetInstance()->GetClockTime(alarmListener, &clockTime))) {\r
return;\r
}\r
clockQty = AlarmClockModel::GetInstance()->GetAlarmNum();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmPresenter alarmNumbel = %u", clockQty);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmPresenter alarmNumbel = %u", clockQty);\r
UNUSED(num);\r
if (clockQty >= ALARM_MAX_NUM) {\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmPresenter new alarm max");\r
\r
bool AlarmPresenter::ClickFuncView(UIView &view)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ClickFuncView view = %s", view.GetViewId());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ClickFuncView view = %s", view.GetViewId());\r
for (int num = 0; num < WEEK_BUTTON_MAX_NUM; num++) {\r
if (strcmp(view.GetViewId(), WEEK_BUTTON_VIEWID[num]) == 0) {\r
alarmWeek[num] = alarmWeek[num] ? CANCEL_DATA: SELECT_DATA;\r
{\r
UNUSED(view);\r
\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmPresenter::OnSwipe ");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmPresenter::OnSwipe ");\r
view.SetIntercept((0 == view.GetCurrentPage()) ? false : true);\r
}\r
\r
\r
AlarmSetWeekView::AlarmSetWeekView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmSetWeekView::AlarmSetWeekView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmSetWeekView::AlarmSetWeekView");\r
g_pAlarmSetWeekView = this;\r
}\r
\r
group = nullptr;\r
}\r
g_pAlarmSetWeekView = nullptr;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmSetWeekView::~AlarmSetWeekView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmSetWeekView::~AlarmSetWeekView");\r
}\r
\r
AlarmSetWeekView *AlarmSetWeekView::GetInstance(void)\r
//该函数用于设置AlarmSetWeekView中周一到周日按钮的背景颜色\r
void AlarmSetWeekView::RefreshSetWeek1(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmSetWeekView::RefreshStep1");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmSetWeekView::RefreshStep1");\r
if (buttonWeek[WEEK_MON] == nullptr) {\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmSetWeekView::RefreshStep1 buttonMon nullptr error!");\r
return;\r
return;\r
}\r
}\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmSetWeekView:: week = %u", week);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmSetWeekView:: week = %u", week);\r
if ((week & 0x01) == 1) { // 判断星期天的位数是否为1\r
// buttonWeek[WEEK_SUN]->SetStyle(STYLE_BACKGROUND_COLOR, Color::GetColorFromRGB(0x6c, 0xB8, 0xFD).full); buttonWeek[WEEK_SUN]->SetStyle(STYLE_BACKGROUND_COLOR, Color::GetColorFromRGB(0x6c, 0xB8, 0xFD).full);\r
buttonWeek[WEEK_SUN]->SetStyle(STYLE_BACKGROUND_COLOR, SELECTED_BG_COLOR.full);\r
void MainAlarmView::LabelGetWeek(uint8_t week, int16_t alarmNum)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainAlarmView::week = %u!", week);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainAlarmView::week = %u!", week);
std::string weekStr;
std::string weekStr_en;
if ((week & 0x7f) == 0x7f) { // 判断0~6位是否都为1,如若都为1,则一周7天闹钟都响应
void MainAlarmView::OnStart()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainAlarmView::OnStart");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainAlarmView::OnStart");
View<AlarmPresenter>::OnStart();
BaseView::RootView(Color::Black().full);
// 增加按键监听
void MainAlarmView::OnSetUpView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainAlarmView::OnSetUpView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainAlarmView::OnSetUpView");
View<AlarmPresenter>::OnSetUpView();
AlarmTitleCreate();
RefreshAlarmStatus(alarmEnable, i);
dClock[i]->SetTime24Hour(refreshHour, refreshMin, 0);
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]: dClockNum = %d", __LINE__, dClockNum);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]: dClockNum = %d", __LINE__, dClockNum);
// group->ScrollBy(0, ADD_BUTTON_Y - addButton->GetY());
if (dClockNum > (i - 1))
{
}
dClockNum = i - 1;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]: dClockNum=%d", __LINE__, dClockNum);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]: dClockNum=%d", __LINE__, dClockNum);
AlarmAddButtonUpdate(i);
}
std::list< AlarmClockInfoToday>::iterator node;
std::list< AlarmClockInfoToday>::iterator tempNode;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SetFirstAlarmToday !!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SetFirstAlarmToday !!");
if (AlarmGetCurrentTimeInfo(&curTime) != 0) {
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SetFirstAlarmToday AlarmGetCurrentTimeInfo failed!!");
return STATUS_TIME_FUN_ERROR;
continue;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "alarmTime : %lx!!", node->alarmTime);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "curTime: hour %ld, min %ld!!", curTime.tm_hour, curTime.tm_min);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "alarmTime : %lx!!", node->alarmTime);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "curTime: hour %ld, min %ld!!", curTime.tm_hour, curTime.tm_min);
if (((node->alarmTime >> TWO_BYTES_BITS == (uint32)curTime.tm_hour) &&
((node->alarmTime & AND_FOR_LOW_TWO_BYTES) > (uint32)curTime.tm_min)) ||
wake_time_min = wake_up_time & 0x0000FFFF;\r
clean_sleep_monitoring_flag();\r
// 解析结束时间\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "sleep_time_hour:%d sleep_time_min:%d wake_time_hour:%d wake_time_min:%d", sleep_time_hour, sleep_time_min, wake_time_hour, wake_time_min);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "sleep_time_hour:%d sleep_time_min:%d wake_time_hour:%d wake_time_min:%d", sleep_time_hour, sleep_time_min, wake_time_hour, wake_time_min);\r
}\r
\r
void set_sedentary_data(void)\r
sedentary_start_min = (sedentary_time & 0X0000FF00) >> 8;\r
sedentary_start_hour = sedentary_time & 0X000000FF;\r
clean_sedentary_flag();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "set_sedentary_data:%d:%d~%d:%d", sedentary_start_hour, sedentary_start_min, sedentary_stop_hour, sedentary_stop_min);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "set_sedentary_data:%d:%d~%d:%d", sedentary_start_hour, sedentary_start_min, sedentary_stop_hour, sedentary_stop_min);\r
}\r
\r
void set_drinkreminder_data(void)\r
// 解析开始时间\r
drinkreminder_start_hour = (drinkreminder_start_time & 0XFFFF0000) >> 16; // 前16位是小时\r
drinkreminder_start_min = drinkreminder_start_time & 0X0000FFFF; // 后16位是分钟\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d:%d", drinkreminder_start_hour, drinkreminder_start_min);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%d:%d", drinkreminder_start_hour, drinkreminder_start_min);\r
\r
// 解析结束时间\r
drinkreminder_end_hour = (drinkreminder_end_time & 0XFFFF0000) >> 16; // 前16位是小时\r
drinkreminder_end_min = drinkreminder_end_time & 0x0000FFFF; // 后16位是分钟\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d:%d", drinkreminder_end_hour, drinkreminder_end_min);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%d:%d", drinkreminder_end_hour, drinkreminder_end_min);\r
\r
if (drinkreminder_switch == 2)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d:%d~%d:%d", drinkreminder_start_hour, drinkreminder_start_min, drinkreminder_end_hour, drinkreminder_end_min);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%d:%d~%d:%d", drinkreminder_start_hour, drinkreminder_start_min, drinkreminder_end_hour, drinkreminder_end_min);\r
}\r
}\r
\r
{\r
int goal_hour = (sleep_time & 0XFFFF0000) >> 16;\r
int goal_min = (sleep_time & 0X0000FFFF);\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "goal_hour:%d goal_min:%d", goal_hour, goal_min);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "goal_hour:%d goal_min:%d", goal_hour, goal_min);\r
\r
sleep_notify_time_min = (goal_min >= SLEPPNOTIFY) ? goal_min - SLEPPNOTIFY : ((goal_min + 60) - SLEPPNOTIFY); // 避免分钟数为负\r
sleep_notify_time_hour = goal_hour;\r
sleep_notify_time_hour = (sleep_notify_time_hour < 0) ? 23 : sleep_notify_time_hour; // 处理从0点前20分钟的情况,变为前一天的23点40分\r
\r
sleep_notify_time = (sleep_notify_time_hour << 16) | sleep_notify_time_min;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "sleep_notify_time_hour:%d sleep_notify_time_min:%d sleep_notify_time:%d", sleep_notify_time_hour, sleep_notify_time_min, sleep_notify_time);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "sleep_notify_time_hour:%d sleep_notify_time_min:%d sleep_notify_time:%d", sleep_notify_time_hour, sleep_notify_time_min, sleep_notify_time);\r
}\r
void AlarmEventPublish(uint16_t topic, uint8_t *data, uint32_t size)\r
{\r
static void on_time_CallBackProc(void)\r
{\r
AlarmClockEventData unuse;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "on_time_CallBackProc invoked");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "on_time_CallBackProc invoked");\r
AlarmTimerEventPublish(TOPIC_EVENT_ON_TIME, unuse);\r
// GraphicService::GetInstance()->PostGraphicEvent(\r
// std::bind(AlarmTimerEventPublish, TOPIC_EVENT_ON_TIME, unuse));\r
if ((curTime->tm_hour == sleep_notify_time_hour) && (curTime->tm_min == sleep_notify_time_min) && (curTime->tm_sec == 0))\r
{\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "It's bedtime in 20 minutes");\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "20分钟后要睡觉啦!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "20分钟后要睡觉啦!");\r
// 设置状态为睡眠提醒\r
OHOS::SleepModel::GetInstance().set_sleep_state(OHOS::SLEEPSTATE::SLEEPNOTIFY);\r
AlarmEventPublish(TOPIC_EVENT_SLEEPNOTE, NULL, 0); \r
{\r
if (curTime->tm_hour == wake_time_hour && curTime->tm_min == wake_time_min && curTime->tm_sec == 0)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "闹铃!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "闹铃!");\r
//退出睡眠模式\r
OHOS::SleepModeModel::GetInstance().SetSleepModeDisabled();\r
OHOS::SleepModel::GetInstance().set_sleep_state(OHOS::SLEEPSTATE::WAKE);\r
do_cywee_service_check_msg(CYWEE_SERVICE_CMD_GET_SLEEP_DATA, &cmd); // 强制获取小睡数据,结束小睡\r
\r
// 睡眠弹窗\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "要睡觉啦!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "要睡觉啦!");\r
// 设置状态为睡眠\r
OHOS::SleepModel::GetInstance().set_sleep_state(OHOS::SLEEPSTATE::SLEPP);\r
\r
{\r
//进入睡眠模式\r
OHOS::SleepModeModel::GetInstance().SetSleepModeEnabled();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "要睡觉啦!!!! 开始");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "要睡觉啦!!!! 开始");\r
AlarmEventPublish(TOPIC_EVENT_SLEEPNOTE, NULL, 0); \r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "要睡觉啦!!!! 结束");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "要睡觉啦!!!! 结束");\r
}\r
\r
do_cywee_service_check_msg(CYWEE_SERVICE_CMD_SLEEPING_MODE, NULL); // 算法底层切换睡眠监测模式\r
if (curTime->tm_hour == drinkreminder_start_hour && \r
curTime->tm_min == drinkreminder_start_min && \r
curTime->tm_sec == 0) { \r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "该喝水了!!该喝水了!!"); \r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "该喝水了!!该喝水了!!"); \r
AlarmEventPublish(TOPIC_EVENT_DRINKREMINDER, NULL, 0); \r
} \r
} else if (drinkreminder_switch == 2) { // 间隔提醒 \r
drinkremind_expectedTime = current_seconds + interval_time_seconds; \r
drinkremind_expectedTime %= hour_24_seconds; // 同时处理24小时循环 \r
} else if (current_seconds == drinkremind_expectedTime && curTime->tm_sec == 0) { \r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "该喝水了!!该喝水了!!"); \r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "该喝水了!!该喝水了!!"); \r
drinkremind_expectedTime += interval_time_seconds; \r
drinkremind_expectedTime %= hour_24_seconds; // 处理24小时循环 \r
AlarmEventPublish(TOPIC_EVENT_DRINKREMINDER, NULL, 0); \r
if (heartRateDetectionInterval) {\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Heart rate detection cycle detection is enabled %d",curTime->tm_min % heartRateDetectionInterval);\r
if (curTime->tm_min % heartRateDetectionInterval == 0 && curTime->tm_sec == 0) { \r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Automatic heart rate detection starts"); \r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Automatic heart rate detection starts"); \r
// 开启心率检测 \r
OHOS::HeartModel::GetInstance()->Heart_Control(OHOS::HeartState::Start, OHOS::HeartCheck::PASSIVITY); \r
} \r
viewId = itemView->GetViewId();
uid = (char *)itemView->GetAppUid();
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ApplistPresenter::OnClick viewid = %d type = %d", viewId, type);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ApplistPresenter::OnClick viewid = %d type = %d", viewId, type);
if (viewId < VIEW_MAX_INTER_APP)
{
/*心率Slice需要增加特殊配置*/
void ApplistView::ArcScaleListStyleOnStart(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ApplistView::ArcScaleListStyleOnStart [%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ApplistView::ArcScaleListStyleOnStart [%d]", __LINE__);
if(nullptr == ArcScaleListGroup_)
{
ArcScaleListGroup_ = new UIViewGroup();
void ApplistView::OnSetUpView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ApplistView::OnSetUpView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ApplistView::OnSetUpView");
View<ApplistPresenter>::OnSetUpView();
AppListStyle style = presenter_->GetCurrentStyle();
if (style == AppListStyle::FOOTBALL_STYLE) {
headY = presenter_->GetArcListHeadItemY();
}
if (headY == 0) {
- headY = VERTICAL_RESOLUTION / NUM_2;
+ // headY = VERTICAL_RESOLUTION / NUM_2;
+ headY = -42;
}
}
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d],startIndex = %d,headY = %d", __LINE__,startIndex,headY);
// 判断是否正在连接
bd_addr_t *lastAddr = BluetoothModel::GetInstance()->GetLastConnedAddr();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Disconnect LastDevice retVal = %02X %02X %02X * * *",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Disconnect LastDevice retVal = %02X %02X %02X * * *",
lastAddr->addr[0],lastAddr->addr[1],lastAddr->addr[2]);
bool ret = bt_is_acl_connected(lastAddr);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Disconnect LastDevice retVal = ret %d %02X %02X %02X * * *",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Disconnect LastDevice retVal = ret %d %02X %02X %02X * * *",
ret, lastAddr->addr[0],lastAddr->addr[1],lastAddr->addr[2]);
&& lastAddr->addr[3] == 0 && lastAddr->addr[4] == 0 && lastAddr->addr[5] == 0 ) && ret) {
BluetoothModel::GetInstance()->SetTagConnectNew(true);
errcode_t retVal = gap_disconnect_remote_device(lastAddr);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Disconnect LastDevice retVal = %d %02X %02X %02X * * *", retVal,
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Disconnect LastDevice retVal = %d %02X %02X %02X * * *", retVal,
lastAddr->addr[0],lastAddr->addr[1],lastAddr->addr[2]);
}
else
{
mainBluetoothView->ChangeView(BluetoothModel::GetInstance()->GetCurView(), BLUETOOTHRECONNECTVIEW);
errcode_t retVal = BluetoothModel::GetInstance()->ConnectRemoteDevice(&addr);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ConnectRemoteDevice ret = %d", retVal);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ConnectRemoteDevice ret = %d", retVal);
}
// 跳转可选页
return true;
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BluetoothDeviceOnClickListListener");
UNUSED(event);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BluetoothDeviceOnClickListListener addr: %02x%02x%02x%02x%02x%02x",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BluetoothDeviceOnClickListListener addr: %02x%02x%02x%02x%02x%02x",
bluetoothInfo_.addr[5], bluetoothInfo_.addr[4], bluetoothInfo_.addr[3], /* mac下标 0 1 2 3 4 5 */
bluetoothInfo_.addr[2], bluetoothInfo_.addr[1], bluetoothInfo_.addr[0]); /* mac下标 0 1 2 3 4 5 */
BluetoothModel::GetInstance()->SetTempMacValue(&bluetoothInfo_);
}
if(view.GetViewType() == UIViewType::UI_BUTTON)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UIViewType::UI_BUTTON,%s",reinterpret_cast<const char *>(bluetoothInfo_.deviceName));
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "UIViewType::UI_BUTTON,%s",reinterpret_cast<const char *>(bluetoothInfo_.deviceName));
bd_addr_t *lastAddr = BluetoothModel::GetInstance()->GetLastConnedAddr();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "lastAddr:%02X %02X %02X * * *",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "lastAddr:%02X %02X %02X * * *",
lastAddr->addr[0],lastAddr->addr[1],lastAddr->addr[2]);
bool ret = bt_is_acl_connected(lastAddr);
lastAddr->addr[3] == 0 && lastAddr->addr[4] == 0 && lastAddr->addr[5] == 0 ) && ret) {
BluetoothModel::GetInstance()->SetTagConnectNew(false);
errcode_t retVal = gap_disconnect_remote_device(lastAddr);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[gap_disconnect_remote_device] retVal = %d", retVal);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[gap_disconnect_remote_device] retVal = %d", retVal);
} else {
mainBluetoothView->ChangeView(BluetoothModel::GetInstance()->GetCurView(), BLUETOOTHRECONNECTVIEW);
errcode_t retVal = BluetoothModel::GetInstance()->ConnectRemoteDevice(&addr);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[ConnectRemoteDevice] retVal = %d", retVal);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[ConnectRemoteDevice] retVal = %d", retVal);
}
}
else if(view.GetViewType() == UIViewType::UI_IMAGE_VIEW) /*点击的是图片*/
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UIViewType::UI_IMAGE_VIEW");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "UIViewType::UI_IMAGE_VIEW");
mainBluetoothView->ChangeView(BluetoothModel::GetInstance()->GetCurView(), BLUETOOTHEOPTIONSVIEW);
BluetoothOptionsView *bluetoothOptionsView = BluetoothOptionsView::GetInstance();
if (bluetoothOptionsView == nullptr) {
ScreenAlwaysOnCtr(CANCEL_SCREEN_ALWAYS_ON);\r
/* -------------------------------------------------------------------------- */\r
bool results = gap_br_cancel_discovery();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CancelBtDiscovery results %d", results);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CancelBtDiscovery results %d", results);\r
}\r
\r
// 结束扫描处理\r
return;\r
}\r
\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ct notification cbk event_id:0x%x\n", event_id);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ct notification cbk event_id:0x%x\n", event_id);\r
bool notify_flag = true;\r
switch (event_id) {\r
case AVRCP_NOTIFY_EVENT_PLAYBACK_STATUS_CHANGED: //播放状态变更事件,从播放变为暂停、停止等状态,会触发这个事件\r
SetTouchable(true);\r
}\r
}\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "index = %d", GetViewIndex());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "index = %d", GetViewIndex());\r
if(!isCaseList)\r
{\r
//已连接的耳机界面\r
return;\r
} else {\r
btScansDevicesList_.push_back(caseInfo);\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "btScansDevicesList_ num = %d",btScansDevicesList_.size());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "btScansDevicesList_ num = %d",btScansDevicesList_.size());\r
if(BluetoothEarListView::GetInstance()) //动态计算扫描出来的设备列表ui高度\r
GraphicService::GetInstance()->PostGraphicEvent( \r
std::bind(&BluetoothEarListView::RefreshBluetoothEarListView, BluetoothEarListView::GetInstance()));\r
return;\r
}\r
BluetoothCaseInfo *bluetoothInfo_= BluetoothModel::GetInstance()->GetTempMacValue();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "device name = %s",bluetoothInfo_->deviceName);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "device name = %s",bluetoothInfo_->deviceName);\r
bd_addr_t addr;\r
(void)memcpy_s(addr.addr, BD_ADDR_LEN, bluetoothInfo_->addr, BD_ADDR_LEN);\r
tipsConnFailMessageView->RefreshNameLabel(addr);\r
BluetoothServiceOptionsView::BluetoothServiceOptionsView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BluetoothServiceOptionsView::BluetoothServiceOptionsView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BluetoothServiceOptionsView::BluetoothServiceOptionsView");
g_pBluetoothServiceOptionsView = this;
}
BluetoothServiceOptionsView::~BluetoothServiceOptionsView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "~BluetoothServiceOptionsView::BluetoothServiceOptionsView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "~BluetoothServiceOptionsView::BluetoothServiceOptionsView");
ClearAll();
g_pBluetoothServiceOptionsView = nullptr;
}
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-04-25 11:50:57\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-07-23 10:18:06\r
+ * @LastEditTime: 2024-11-05 11:47:17\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/ClassicBlueToothPresenter.cpp\r
*/\r
#include "classicbluetooth/include/ClassicBlueToothPresenter.h"\r
switch (state)\r
{\r
case UICheckBox::SELECTED:\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BlueTooth Capability Is Enabled");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BlueTooth Capability Is Enabled");\r
start_custom_ble_service(); // 主动开启蓝牙\r
//开启完增加回连\r
\r
ConfigModel::GetInstance()->SetClassicBlueToothState(true);\r
break;\r
case UICheckBox::UNSELECTED:\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BlueTooth Capability Is Disabled");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BlueTooth Capability Is Disabled");\r
\r
stop_custom_ble_service();\r
\r
\r
ClassicBlueToothView::ClassicBlueToothView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ClassicBlueToothView::ClassicBlueToothView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ClassicBlueToothView::ClassicBlueToothView");\r
g_pClassicBlueToothView = this;\r
}\r
\r
ClassicBlueToothView::~ClassicBlueToothView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "~ClassicBlueToothView::ClassicBlueToothView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "~ClassicBlueToothView::ClassicBlueToothView");\r
g_pClassicBlueToothView = nullptr;\r
}\r
\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-12 11:44:23
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-06-27 10:48:45
+ * @LastEditTime: 2024-11-05 11:48:01
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/compass/src/CompassControlView.cpp
*/
#include "compass/include/CompassControlView.h"
void CompassControlView::PreLoad(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CompassControlView::PreLoad");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CompassControlView::PreLoad");
if (!viewiInitStatus) {
InitView();
viewiInitStatus = true;
void CompassControlView::UnLoad(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CompassControlView::UnLoad");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CompassControlView::UnLoad");
if( compassView != nullptr)
{
compassView->UnLoadCompassImageRes();
/*预加载指南针图片资源*/
void CompassView::PreLoadCompassImageRes(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CompassView::PreLoadCompassImageRes");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CompassView::PreLoadCompassImageRes");
if(!GetResLoadStatus()){
if (LoadCompassImage(backGround, COMPASS_COMPASS0) == false) {
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d], triangulation load fail", __LINE__);
/*卸载指南针图片资源*/
void CompassView::UnLoadCompassImageRes(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CompassView::UnLoadCompassImageRes");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CompassView::UnLoadCompassImageRes");
if(GetResLoadStatus())
{
ImageInfo* image = nullptr;
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-04-07 18:15:53\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-10-25 17:47:51\r
+ * @LastEditTime: 2024-11-05 11:49:33\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/countdown/src/CountDownModel.cpp\r
*/\r
#include "countdown/include/CountDownModel.h"\r
{\r
// 解析成功,现在转换为总秒数\r
g_CountDownTimes = hours * NUM_TIME_HOUR + minutes * NUM_TIME_MIN + seconds;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "g_CountDownTimes = %d", g_CountDownTimes);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "g_CountDownTimes = %d", g_CountDownTimes);\r
}\r
else\r
{\r
*/\r
int CountDownModel::CountDownRingPlayerInit(const char *RingMusicName)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CountDownModel::CountDownRingPlayerInit");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CountDownModel::CountDownRingPlayerInit");\r
/* ------------------------------- 1.播放文件路径设置 ------------------------------- */\r
uri = RingMusicName;\r
/* -------------------------------- 2.播放器对象创建 ------------------------------- */\r
*/\r
int CountDownModel::InitializeAndPlayRingtone(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CountDownModel::InitializeAndPlayRingtone");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CountDownModel::InitializeAndPlayRingtone");\r
/* -------------------------------- 1.检查播放器实例 ------------------------------- */\r
int32_t ret;\r
int32_t state;\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CountDownModel] source.get() == fail");\r
return OHOS_FAILURE;\r
}\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CountDownModel] Player url:%s", uri.c_str());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CountDownModel] Player url:%s", uri.c_str());\r
playerCtr->SetSource(*source);\r
/* --------------------------------- 4.配置播放器 -------------------------------- */\r
playerCtr->SetAudioStreamType(AUDIO_STREAM_NOTIFICATION_SYSTEM); // 设置播放器的音频流类型\r
*/\r
int CountDownModel::StartRingtonePlayback(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CountDownModel::StartRingtonePlayback");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CountDownModel::StartRingtonePlayback");\r
if (CountDownRingPlayerInit(RingMusicPath) != OHOS_SUCCESS)\r
{\r
// 错误处理,例如记录日志或者返回错误状态码\r
\r
int CountDownModel::ResetRingtonePlayback(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CountDownModel::ResetRingtonePlayback");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CountDownModel::ResetRingtonePlayback");\r
int32_t ret = 0;\r
int32_t state = 0;\r
if (playerCtr.get() == nullptr)\r
/*开始计时器铃声播放*/\r
void CountDownRingPlayerListener::StartCountDownRing(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CountDownRingPlayerListener::StartCountDownRing] start");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CountDownRingPlayerListener::StartCountDownRing] start");\r
GraphicService::GetInstance()->PostGraphicEvent(Start);\r
}\r
\r
/*停止计时器铃声播放*/\r
void CountDownRingPlayerListener::StopCountDownRing(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CountDownRingPlayerListener::StopCountDownRing] start");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CountDownRingPlayerListener::StopCountDownRing] start");\r
GraphicService::GetInstance()->PostGraphicEvent(Stop);\r
}\r
\r
/*响应外部的音频中断事件*/\r
void CountDownRingPlayerListener::OnInterrupt(int32_t type, int32_t hint)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnInterrupt go in, type %d, hint %d.", type, hint);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnInterrupt go in, type %d, hint %d.", type, hint);\r
if (type == INTERRUPT_TYPE_BEGIN && hint == INTERRUPT_HINT_PAUSE)\r
{\r
isDelayed_ = true;\r
/* --------------------- CountDownRingPlayerCallbackImpl -------------------- */\r
void CountDownRingPlayerCallbackImpl::OnPlaybackComplete(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnPlaybackComplete");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnPlaybackComplete");\r
// CountDownModel::GetInstance()->RequestStopRingtone();\r
// CountDownModel::GetInstance()->RequestStartRingtone();\r
}\r
/*四个快速开始倒计时按钮*/\r
if (strcmp(view.GetViewId(), COUNTDOWN_ONE_MINUTE_BUTTON_VIEWID) == 0)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "COUNTDOWN_ONE_MINUTE_BUTTON_VIEWID");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "COUNTDOWN_ONE_MINUTE_BUTTON_VIEWID");\r
return SetCountDownAndChangeView(p_MainCountDownView, OneMinuteTime);\r
}\r
else if (strcmp(view.GetViewId(), COUNTDOWN_FIVE_MINUTE_BUTTON_VIEWID) == 0)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "COUNTDOWN_FIVE_MINUTE_BUTTON_VIEWID");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "COUNTDOWN_FIVE_MINUTE_BUTTON_VIEWID");\r
return SetCountDownAndChangeView(p_MainCountDownView, FiveMinuteTime);\r
}\r
else if (strcmp(view.GetViewId(), COUNTDOWN_TEN_MINUTE_BUTTON_VIEWID) == 0)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "COUNTDOWN_TEN_MINUTE_BUTTON_VIEWID");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "COUNTDOWN_TEN_MINUTE_BUTTON_VIEWID");\r
return SetCountDownAndChangeView(p_MainCountDownView, TenMinuteTime);\r
}\r
else if (strcmp(view.GetViewId(), COUNTDOWN_THIRTY_MINUTE_BUTTON_VIEWID) == 0)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "COUNTDOWN_THIRTY_MINUTE_BUTTON_VIEWID");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "COUNTDOWN_THIRTY_MINUTE_BUTTON_VIEWID");\r
return SetCountDownAndChangeView(p_MainCountDownView, ThirtyMinuteTime);\r
}\r
\r
\r
void MainCountDownPresenter::OnTimePickerStoped(UITimePicker &picker)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "picker.GetSelectValue = %s", picker.GetSelectValue());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "picker.GetSelectValue = %s", picker.GetSelectValue());\r
CountDownModel::GetInstance()->SetCountDownTime(picker.GetSelectValue()); // 设置倒计时时间\r
CountDownModel::GetInstance()->SetRingTime(picker.GetSelectValue()); // 设置响铃时间\r
}\r
\r
StartCountDownView::StartCountDownView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "StartCountDownView::StartCountDownView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "StartCountDownView::StartCountDownView");\r
g_pStartCountDownView = this;\r
}\r
\r
StartCountDownView::~StartCountDownView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "StartCountDownView::~StartCountDownView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "StartCountDownView::~StartCountDownView");\r
ClearAll();\r
g_pStartCountDownView = nullptr;\r
}\r
/// @param value 滑块的当前值。\r
void BrightnessSliderEventListener::OnChange(int32_t value)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnChange %d", value);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnChange %d", value);\r
ChangeBrightness(BRIGHTNESSDRAG, value);\r
ConfigModel::GetInstance()->SetBrightness(value);\r
}\r
/// @param value 滑块的当前值。\r
void BrightnessSliderEventListener::OnRelease(int32_t value)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnRelease %d", value);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnRelease %d", value);\r
ChangeBrightness(BRIGHTNESSDRAG, value);\r
ConfigModel::GetInstance()->SetBrightness(value);\r
}\r
\r
DisplayBrightnessView::DisplayBrightnessView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DisplayBrightnessView::DisplayBrightnessView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DisplayBrightnessView::DisplayBrightnessView");\r
g_pDisplayBrightnessView = this;\r
}\r
\r
DisplayBrightnessView::~DisplayBrightnessView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DisplayBrightnessView::~DisplayBrightnessView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DisplayBrightnessView::~DisplayBrightnessView");\r
g_pDisplayBrightnessView = nullptr;\r
}\r
\r
\r
ScreenDurationView::ScreenDurationView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::ScreenDurationView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::ScreenDurationView");\r
g_pScreenDurationView = this;\r
}\r
\r
ScreenDurationView::~ScreenDurationView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::~ScreenDurationView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::~ScreenDurationView");\r
ClearAll();\r
g_pScreenDurationView = nullptr;\r
}\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-04-10 11:58:21
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-29 21:19:46
+ * @LastEditTime: 2024-11-05 11:54:11
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/dnotdisturb/src/DnotDisturbView.cpp
*/
#include "dnotdisturb/include/DnotDisturbView.h"
DnotDisturbView::DnotDisturbView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DnotDisturbView::DnotDisturbView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DnotDisturbView::DnotDisturbView");
g_pDnotDisturbView = this;
}
DnotDisturbView::~DnotDisturbView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DnotDisturbView::~DnotDisturbView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DnotDisturbView::~DnotDisturbView");
g_pDnotDisturbView = nullptr;
}
}
else
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "start_or_stop_find_phone not connected");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "start_or_stop_find_phone not connected");
}
}
}
\ No newline at end of file
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-03-27 10:47:46
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-12 17:13:01
+ * @LastEditTime: 2024-11-05 11:55:53
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/findphone/src/FindPhoneView.cpp
*/
#include "findphone/include/FindPhoneView.h"
FindPhoneView::FindPhoneView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FindPhoneView::FindPhoneView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FindPhoneView::FindPhoneView");
g_pFindPhoneView = this;
}
FindPhoneView::~FindPhoneView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FindPhoneView::~FindPhoneView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FindPhoneView::~FindPhoneView");
g_pFindPhoneView = nullptr;
}
}
delete FindPhoneGroupView;
FindPhoneGroupView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FindPhoneView::ClearAll over!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FindPhoneView::ClearAll over!!");
}
}
/*蓝牙如果是未连接状态*/
void FindPhoneView::FindPhoneViewInit_BlueToothDisConnected(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FindPhoneView::FindPhoneViewInit_BlueToothConnected");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FindPhoneView::FindPhoneViewInit_BlueToothConnected");
if (FindPhoneGroupView == nullptr)
{
/* --------------------------- FindPhoneGroupView --------------------------- */
FindPhoneGroupView = new UIViewGroup();
if (FindPhoneGroupView == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneGroupView new fail!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneGroupView new fail!!");
return;
}
FindPhoneGroupView->SetPosition(0, 0, 466, 466);
FindPhoneTitleLabel = new UILabelExt();
if (FindPhoneTitleLabel == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneTitleLabel new fail!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneTitleLabel new fail!!");
return;
}
FindPhoneTitleLabel->SetPosition(83, 50, 300, 35);
FindPhoneImageView = new UIImageView();
if (FindPhoneImageView == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneTitleLabel new fail!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneTitleLabel new fail!!");
return;
}
FindPhoneImageView->SetPosition(193, 140, 80, 80);
FindPhoneLabel = new UILabelExt();
if (FindPhoneLabel == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneLabel new fail");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneLabel new fail");
return;
}
FindPhoneLabel->SetPosition(83, 270, 300, 35);
FindPhoneLabelButton = new UILabelButtonExt();
if (FindPhoneLabelButton == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneLabelButton new fail");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneLabelButton new fail");
return;
}
FindPhoneLabelButton->SetPosition(0, 366, 466, 100);
/*蓝牙如果是已连接状态将初始化这个视图*/
void FindPhoneView::FindPhoneViewInit_BlueToothConnected(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FindPhoneView::FindPhoneViewInit_BlueToothConnected");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FindPhoneView::FindPhoneViewInit_BlueToothConnected");
if (FindPhoneGroupView == nullptr)
{
/* --------------------------- FindPhoneGroupView --------------------------- */
FindPhoneGroupView = new UIViewGroup();
if (FindPhoneGroupView == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneGroupView new fail!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneGroupView new fail!!");
return;
}
FindPhoneGroupView->SetPosition(0, 0, 466, 466);
FindPhoneTitleLabel = new UILabelExt();
if (FindPhoneTitleLabel == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneTitleLabel new fail!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[FindPhoneViewInit_BlueToothConnected] FindPhoneTitleLabel new fail!!");
return;
}
FindPhoneTitleLabel->SetPosition(83, 50, 300, 35);
FindPhoneImageAnimator = new UIImageAnimatorView();
if (FindPhoneImageAnimator == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneImageAnimator new fail");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneImageAnimator new fail");
return;
}
for (uint8_t i = 0; i < FINDPHONE_IMAGE_ANIMATOR_VIEW_NUM_FRAMES; i++)
FindPhoneLabel = new UILabelExt();
if (FindPhoneLabel == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneLabel new fail");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneLabel new fail");
return;
}
FindPhoneLabel->SetPosition(83, 270, 300, 35);
FindPhoneLabelButton = new UILabelButtonExt();
if (FindPhoneLabelButton == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneLabelButton new fail");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] FindPhoneLabelButton new fail");
return;
}
FindPhoneLabelButton->SetPosition(0, 366, 466, 100);
SetContainerView(new UIViewGroup());
if (GetContainer() == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "container_ new fail!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "container_ new fail!!");
return;
}
container_->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());
FlashlightModel::FlashlightModel()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]:", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]:", __LINE__);
OHOS::ConfigModel::GetInstance()->GetFlashLightConfigData(&ColorIndex_, &ColorValue_, &FlashingLevel_);
}
*/
void FlashlightModel::FlashlightStartTimer(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]:%d", __LINE__, FlashingLevel_);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]:%d", __LINE__, FlashingLevel_);
uint32_t interval = 0;
switch (FlashingLevel_)
{
default:
break;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]:%d", __LINE__, interval);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]:%d", __LINE__, interval);
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_timer != NULL)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightModel::FlashlightStartTimer Timer already exists!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightModel::FlashlightStartTimer Timer already exists!!");
return;
}
// 检查定时器创建是否成功
if (g_timer == NULL)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightModel::FlashlightStartTimer Timer create failed!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightModel::FlashlightStartTimer Timer create failed!!");
return;
}
/* -------------------- 5.检查定时器启动是否成功,如果启动失败,删除定时器并置为 NULL -------------------- */
if (ret != osOK)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FlashlightStartTimer] osTimerDelete failed, ret = %lx!!", ret);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[FlashlightStartTimer] osTimerDelete failed, ret = %lx!!", ret);
if (g_timer != NULL)
{
ret = osTimerDelete(g_timer);
if (ret != osOK)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScanTimerCallback osTimerDelete failed, ret = %lx!!", ret);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScanTimerCallback osTimerDelete failed, ret = %lx!!", ret);
}
g_timer = NULL;
}
{
if (g_timer != NULL)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightModel::FlashlightStopTimer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightModel::FlashlightStopTimer");
osStatus_t ret = osOK;
ret = osTimerStop(g_timer);
if (ret != osOK)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightPauseTimer osTimerStop failed, ret = %lx!!", ret);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightPauseTimer osTimerStop failed, ret = %lx!!", ret);
return;
}
// 删除定时器并置为 NULL
ret = osTimerDelete(g_timer);
if (ret != osOK)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScanTimerCallback osTimerDelete failed, ret = %lx!!", ret);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScanTimerCallback osTimerDelete failed, ret = %lx!!", ret);
return;
}
g_timer = NULL;
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-04-10 17:32:38
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-11-03 15:58:20
+ * @LastEditTime: 2024-11-05 14:19:14
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/flashligh/src/FlashlightPresenter.cpp
*/
void FlashlightPresenter::OnSwipe(UISwipeView &view)
{
UNUSED(view);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightPresenter::OnSwipe");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightPresenter::OnSwipe");
if(0 == view.GetCurrentPage())
{
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-04-10 17:32:08
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-11-03 15:50:47
+ * @LastEditTime: 2024-11-05 11:56:57
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/flashligh/src/FlashlightView.cpp
*/
#include "flashlight/include/FlashlightView.h"
FlashlightView::FlashlightView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightView::FlashlightView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightView::FlashlightView");
g_pFlashlightView = this;
}
FlashlightView::~FlashlightView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightView::~FlashlightView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightView::~FlashlightView");
g_pFlashlightView = nullptr;
}
SetContainerView(new UIViewGroup());
if (nullptr == GetContainer())
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);
return;
}
container_->SetPosition(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
SwipeView_ = new UISwipeView(UISwipeView::VERTICAL);
if(nullptr == SwipeView_)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
return nullptr;
}
SwipeView_->SetPosition(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
SwipeView_->SetLoopState(false);
container_->Add(SwipeView_);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightView::InitSwipeData");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightView::InitSwipeData");
}
return dynamic_cast<UIViewGroup *>(SwipeView_);
}
GroupMain_->Add(ImageArrow_);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightView::InitViewMainData");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightView::InitViewMainData");
}
return GroupMain_;
void FlashlightView::UpdateViewMainScreenFlashing(bool flag)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
if(nullptr == GroupMain_)
return;
if(false == GroupMain_->IsVisible())
return;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]:%d", __LINE__, flag);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]:%d", __LINE__, flag);
if(true == flag)
{
// GroupMain_->SetStyle(STYLE_BACKGROUND_COLOR, Color::Black().full);
GroupSetting_->Add(ImageFlashingSetting_);
GroupSetting_->Add(LabelColorSetting_);
GroupSetting_->Add(LabelFlashingSetting_);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FlashlightView::InitViewSettingData");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FlashlightView::InitViewSettingData");
}
return GroupSetting_;
if(nullptr == ImageColorCustomSelected_)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
return ;
}
if(nullptr == ImageColorCustomBackground_)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
return ;
}
const ImageInfo * info = ImageColorCustomBackground_->GetImageInfo();
if(nullptr == info)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
return ;
}
//
if(nullptr == ImageColorCustomSelected_)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
return ;
}
if(nullptr == ImageColorCustomBackground_)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
return ;
}
const ImageInfo * info = ImageColorCustomBackground_->GetImageInfo();
if(nullptr == info)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[@CHENG][%d]", __LINE__);
return ;
}
//
void KeyInputListener::OnKeyPress()
{
pressFlag = 1; // 短按标志
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnKeyPress: pressFlag = %d", pressFlag);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnKeyPress: pressFlag = %d", pressFlag);
}
void KeyInputListener::OnKeyLongPress(const KeyEvent &event)
{
longPressFlag = 1; // 长按标志
uint16 keyID = event.GetKeyId();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnKeyLongPress: keyID = %d, longPressFlag = %d", keyID, longPressFlag);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnKeyLongPress: keyID = %d, longPressFlag = %d", keyID, longPressFlag);
}
void KeyInputListener::CallVolumeDipSwitchControl(VolumeChangeStatus status)
auto *mainPresenter = MainCallingPresenter::GetInstance();
auto *callerLogModel = CallerLogModel::GetInstance();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeDipSwitchControl: status = %d", status);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CallVolumeDipSwitchControl: status = %d", status);
if (mainPresenter != nullptr && callerLogModel->GetCallStatus())
{
uint16_t currentViewId = NativeAbility::GetInstance().GetCurSliceId();
uint16 keyID = event.GetKeyId();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnKeyRelease: keyID = %d, currentViewId = %d, longPressFlag = %d, pressFlag = %d", keyID, currentViewId, longPressFlag, pressFlag);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnKeyRelease: keyID = %d, currentViewId = %d, longPressFlag = %d, pressFlag = %d", keyID, currentViewId, longPressFlag, pressFlag);
if (keyID == static_cast<uint16_t>(ZliteKeyCode::ZLITE_KEY_POWER))
{
void KeyInputListener::HandlePowerKeyPress(uint16_t currentViewId)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandlePowerKeyPress: currentViewId = %d", currentViewId);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "HandlePowerKeyPress: currentViewId = %d", currentViewId);
if (currentViewId != VIEW_MAIN)
{
void KeyInputListener::HandleFuncKeyPress(uint16_t currentViewId)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandleFuncKeyPress: currentViewId = %d", currentViewId);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "HandleFuncKeyPress: currentViewId = %d", currentViewId);
if (currentViewId != VIEW_MAIN)
{
UNUSED(view);
uint8 state = event.GetState();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnKeyAct: state = %d", state);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnKeyAct: state = %d", state);
switch (state)
{
/*
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-03-30 09:14:38
- * @LastEditors: SnickerSun snickersun@163.com
- * @LastEditTime: 2024-08-30 20:45:36
+ * @LastEditors: luozheng 1732036298@qq.com
+ * @LastEditTime: 2024-11-05 14:18:49
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/languagecode/LanguageInit.cpp
*/
#include <fstream>
language::language()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "language::language");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "language::language");
///g_planguage = this;
}
language::~language()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "language::~language");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "language::~language");
//g_planguage = nullptr;
}
bool language::InitLangues()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "InitLangues");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "InitLangues");
// 获取json里面的语言
#ifdef A5133_DEMO_CLIENT
NativeAbility::GetInstance().SetDefaultSliceId(VIEW_MAIN);
ConfigModel::GetInstance()->SetLanguageCode(languages[currentLanguageId].code);
ConfigModel::GetInstance()->SetLanguage(currentLanguageId);
int ret = set_current_global_font_name(languages[currentLanguageId].fontname);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "resFiles [%d]:%s fontname:%s , ret = %d", currentLanguageId,resFiles[currentLanguageId],languages[currentLanguageId].fontname,ret);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "resFiles [%d]:%s fontname:%s , ret = %d", currentLanguageId,resFiles[currentLanguageId],languages[currentLanguageId].fontname,ret);
return true;
}
// 获取语言Code对应的语言Id
LanguageId currentLanguageId = LanguageManager::GetInstance().GetLanguageIdByCode(language_code);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d %s", currentLanguageId, language_code.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%d %s", currentLanguageId, language_code.c_str());
FontGlobalManager::GetInstance()->RegisterLanguageInfo(resFiles, MAX_LANGUAGE, currentLanguageId);
UIFont::GetInstance()->SetCurrentLangId(currentLanguageId);
ConfigModel::GetInstance()->SetLanguageCode(language_code.c_str());
ConfigModel::GetInstance()->SetLanguage(currentLanguageId);
int ret = set_current_global_font_name(languages[currentLanguageId].fontname);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "resFiles[%d]:%s fontname %s , ret = %d", currentLanguageId, resFiles[currentLanguageId], languages[currentLanguageId].fontname, ret );
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "resFiles[%d]:%s fontname %s , ret = %d", currentLanguageId, resFiles[currentLanguageId], languages[currentLanguageId].fontname, ret );
return true;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-03-28 16:36:46
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-29 19:42:28
+ * @LastEditTime: 2024-11-05 14:19:02
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/languagecode/src/LanguageSwitchModel.cpp
*/
#include "languagecode/include/LanguageSwitchModel.h"
void LanguageSwitchModel::LanguageSwitchViewupdata(uint32_t id)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "LanguageSwitchViewupdata:%d",id);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "LanguageSwitchViewupdata:%d",id);
if(is_load_languages(id))
{
if(LanguageSwitchView::GetInstance())
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-03-28 14:17:43
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-29 19:45:03
+ * @LastEditTime: 2024-11-05 14:19:24
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/languagecode/src/LanguageSwitchPresenter.cpp
*/
#include "AppViewIDs.h"
bool LanguageSwitchPresenter::OnClick(UIView &view, const ClickEvent &event)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "LanguageSwitchPresenter::OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "LanguageSwitchPresenter::OnClick");
UNUSED(event);
const char *lastLanguageCode = p_LanguageSwitchModel->GetLastLanguageCode();
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "p_UILabelButtonExt is nullptr !!");
return false;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "lastLanguageCode = %s , CurrLanguageCode = %s", p_LanguageSwitchModel->GetLastLanguageCode(), p_LanguageSwitchModel->GetCurLanguageCode());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "lastLanguageCode = %s , CurrLanguageCode = %s", p_LanguageSwitchModel->GetLastLanguageCode(), p_LanguageSwitchModel->GetCurLanguageCode());
// 检查当前语言ID是否已经是点击的语言ID,否则重复点击同一语言不响应切换
if (strcmp(p_LanguageSwitchModel->GetCurLanguageCode(), lastLanguageCode) == 0)
{
void LanguageSwitchPresenter::OnItemSelected(int16 index, UIView *view)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "LanguageSwitchPresenter::OnItemSelected:%d",index);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "LanguageSwitchPresenter::OnItemSelected:%d",index);
}
void LanguageSwitchPresenter::SetLabelExt(UILabelExt *labelext)
static LanguageSwitchView *g_pLanguageSwitchView{nullptr};
LanguageSwitchView::LanguageSwitchView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "LanguageSwitchView::LanguageSwitchView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "LanguageSwitchView::LanguageSwitchView");
g_pLanguageSwitchView = this;
}
LanguageSwitchView::~LanguageSwitchView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "LanguageSwitchView::~LanguageSwitchView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "LanguageSwitchView::~LanguageSwitchView");
g_pLanguageSwitchView = nullptr;
}
MainPresenterSample::~MainPresenterSample()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "~MainPresenterSample");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "~MainPresenterSample");
g_pMainPresenterSample = nullptr;
/*从主界面退出,关闭心率检测*/
HeartModel::GetInstance()->Heart_Control(HeartState::End,
/*打印日志*/
void MainPresenterSample::LogCardTransition(CardId previous, CardId current)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[MainCard slide]previousCardId:%d cardId:%d", previous, current);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[MainCard slide]previousCardId:%d cardId:%d", previous, current);
}
/*睡眠卡片*/
void MainPresenterSample::ResetSleepCardView()
}
if (SleepModel::GetInstance().CheckSleepTime()) {
//通知睡眠更新
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "睡眠数据更新");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "睡眠数据更新");
GraphicService::GetInstance()->PostGraphicEvent(
std::bind(&OHOS::SleepModel::UpdateSleepView, &OHOS::SleepModel::GetInstance()));
}
float voltage = 0.0F;
uint8_t value = 0;
value = battery_get_voltage(&voltage);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "battery_get_voltage = %d", value);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "battery_get_voltage = %d", value);
std::string dateAndweek = std::string(dateStr) + " " + std::string(weekStr);
if (PullUpDownView::GetInstance() != nullptr)
{
*/
void MainPresenterSample::PullUpDown_StartTimer(uint32_t interval)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainPresenterSample::PullUpDown_StartTimer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainPresenterSample::PullUpDown_StartTimer");
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_timer != NULL)
{
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-26 18:14:24
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-30 18:32:51
+ * @LastEditTime: 2024-11-05 14:22:07
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/main/src/PullUpDownView.cpp
*/
void PullUpDownView::OnSwipe(UISwipeView &view)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::OnSwipe,current tab index = %d", view.GetCurrentPage());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::OnSwipe,current tab index = %d", view.GetCurrentPage());
if (view.GetCurrentPage() == 0)
{
UpdateSwipviewSelect(true);
delete showBluetoothConnectedStatus;
showBluetoothConnectedStatus = nullptr;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ClearAllConnectedStatusComponentsView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ClearAllConnectedStatusComponentsView");
}
/* -------------------------------------------------------------------------- */
/***
delete showDateAndWeekLabel;
showDateAndWeekLabel = nullptr;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ClearAll_2 over!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ClearAll_2 over!!");
}
// 获取信号强度
int signal = uapi_dev_runtime_get_cat1_signal();
int network_on = uapi_dev_runtime_get_cat1_networkstat();
int cat1_network_type = uapi_dev_runtime_get_cat1_networtype();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "sim = %d", sim);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "cat1_powerOn = %d", cat1_powerOn);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "signal = %d", signal);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "network_on = %d", network_on);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "cat1_network_type = %d", cat1_network_type);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "sim = %d", sim);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "cat1_powerOn = %d", cat1_powerOn);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "signal = %d", signal);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "network_on = %d", network_on);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "cat1_network_type = %d", cat1_network_type);
const int SIGNAL_NO_SIGNAL = 99;
const int NETWORK_TYPE_NO_NETWORK = 0;
{
recordCard[i] = nullptr;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ClearAll_3 over!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ClearAll_3 over!!");
}
// 创建与滑动列表相关组件
void PullUpDownView::CreateDropDownswipeViewListView(void)
delete line;
line = nullptr;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ClearAll_4 over!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ClearAll_4 over!!");
}
/* -------------------------------------------------------------------------- */
void PullUpDownView::PreLoad(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::PreLoad");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::PreLoad");
if (!viewiInitStatus)
{
PullUpDownViewInit();
void PullUpDownView::UnLoad(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::UnLoad");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::UnLoad");
}
/*更新勿扰模式状态*/
{
if (group[thisView] == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ChangeConnectedStatusView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ChangeConnectedStatusView");
connectedStatusView = new ConnectedStatusView();
if (connectedStatusView == nullptr)
{
void PullUpDownView::ChangeView(int16_t hideView, int16_t showView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ChangeView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::ChangeView");
if (hideView > MAX_DROPDOWNVIEWID)
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView:: SystemViewId Overstep ones bounds");
// 处理按键事件回到下拉主页面
void PullUpDownView::HandOnKeyEventSwitchMainPullDownView(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PullUpDownView::HandOnKeyEventSwitchMainPullDownView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PullUpDownView::HandOnKeyEventSwitchMainPullDownView");
if (curView == CONNECTEDSTATUSVIEW) /*当前是连接状态视图*/
{
ChangeView(curView, DROPDOWNVIEW); /*切换到下拉主页面*/
if (g_avrcp_srv_inf.avrcp_srv_conn_stat == PROFILE_STATE_CONNECTED) {
// uint8_t volume = sounding * AVRCP_ABSOLUTE_VOLUME_PERCENTAGE_100 / 100; // 100:本地音量最大值
uint8_t volume = mapVolume(sounding);
- WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "avrcp volume = %d", volume);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "手表音量设置同步远端BT音量 %d", volume);
(void)avrcp_ct_set_absolute_volume(&(g_avrcp_srv_inf.bd_addr), volume); // 手表音量设置同步远端BT音量
}
/* -------------------------- 若ct或tg端是已连接状态且当前为手机音乐 ------------------------- */
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-08-21 11:54:00
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-11 15:29:18
+ * @LastEditTime: 2024-11-05 15:09:04
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/main/src/dropdown/DropDownCardPage1.cpp
*/
#include "main/include/dropdown/DropDownCardPage1.h"
static DropDownCardPage1 *g_pDropDownCardPage1{nullptr};
DropDownCardPage1::DropDownCardPage1()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::DropDownCardPage1");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::DropDownCardPage1");
SetPosition(0, 0, 430, 210);
g_pDropDownCardPage1 = this;
}
DropDownCardPage1::~DropDownCardPage1()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::~DropDownCardPage1");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::~DropDownCardPage1");
ClearAll();
g_pDropDownCardPage1 = nullptr;
}
{
std::string viewId = view.GetViewId();
bool state;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::OnClick %s ", view.GetViewId());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::OnClick %s ", view.GetViewId());
if (viewId == DROPDOWN_BT_TOGGLEBUTTON_VIEWID) // 蓝牙开关
{
NativeAbility::GetInstance().EnterSlice(VIEW_CLASSIC_BLUETOOTH);
bool DropDownCardPage1::InitPage(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::InitPage");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::InitPage");
bool state_bt = ConfigModel::GetInstance()->GetClassicBlueToothState(); // 传统蓝牙开关
bool state_4g = uapi_cat1_get_power_stat();
bool DropDownCardPage1::InitView(void *caller)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::InitView %p", caller);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::InitView %p", caller);
if (InitPage() == false)
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DropDownCardPage1::InitPage fail");
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-08-21 11:54:00
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-22 19:01:37
+ * @LastEditTime: 2024-11-05 15:09:26
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/main/src/dropdown/DropDownCardPage2.cpp
*/
#include "main/include/dropdown/DropDownCardPage2.h"
static DropDownCardPage2 *g_pDropDownCardPage2{nullptr};
DropDownCardPage2::DropDownCardPage2()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DropDownCardPage2::DropDownCardPage2");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DropDownCardPage2::DropDownCardPage2");
SetPosition(0, 0, 430, 210);
g_pDropDownCardPage2 = this;
}
DropDownCardPage2::~DropDownCardPage2()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DropDownCardPage2::~DropDownCardPage2");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DropDownCardPage2::~DropDownCardPage2");
ClearAll();
g_pDropDownCardPage2 = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-04-23 17:28:52
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-12 11:17:45
+ * @LastEditTime: 2024-11-05 14:24:02
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/motionrecognition/src/MotionRecognitionView.cpp
*/
#include "motionrecognition/include/MotionRecognitionPresenter.h"
MotionRecognitionView::MotionRecognitionView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MotionRecognitionView::MotionRecognitionView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MotionRecognitionView::MotionRecognitionView");
g_pMotionRecognitionView = this;
}
MotionRecognitionView::~MotionRecognitionView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MotionRecognitionView::~MotionRecognitionView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MotionRecognitionView::~MotionRecognitionView");
g_pMotionRecognitionView = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-29 18:03:54
+ * @LastEditTime: 2024-11-05 14:23:38
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/MusicPlayer/src/MusicPlayerView.cpp
*/
#include "musicplayer/include/MusicPlayerPresenter.h"
static MusicPlayerView *g_pMusicPlayerView{nullptr};
MusicPlayerView::MusicPlayerView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerView::MusicPlayerView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerView::MusicPlayerView");
g_pMusicPlayerView = this;
}
MusicPlayerView::~MusicPlayerView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerView::~MusicPlayerView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerView::~MusicPlayerView");
g_pMusicPlayerView = nullptr;
}
static MobileDataOptionsView *g_pMobileDataOptionsView{nullptr};
MobileDataOptionsView::MobileDataOptionsView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MobileDataOptionsView::MobileDataOptionsView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MobileDataOptionsView::MobileDataOptionsView");
g_pMobileDataOptionsView = this;
}
MobileDataOptionsView::~MobileDataOptionsView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MobileDataOptionsView::~MobileDataOptionsView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MobileDataOptionsView::~MobileDataOptionsView");
ClearAll();
g_pMobileDataOptionsView = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-04-23 09:59:32
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-26 19:31:45
+ * @LastEditTime: 2024-11-05 14:25:03
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/networkandcall/src/NetworkAndCallPresenter.cpp
*/
#include "AppViewIDs.h"
{
if (toggleButton->GetState() == true)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s is enable!", it->second.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%s is enable!", it->second.c_str());
if (it->second == "VoLTE" && p_NetworkAndCallView->GetMobileDataToggleButton()->GetState() == true)
{
ConfigModel::GetInstance()->SetVoLTE_Call(true);
}
else
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s is disable!", it->second.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%s is disable!", it->second.c_str());
if (it->second == "VoLTE" && p_NetworkAndCallView->GetMobileDataToggleButton()->GetState() == true)
{
ConfigModel::GetInstance()->SetVoLTE_Call(false);
NetworkAndCallView::NetworkAndCallView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "NetworkAndCallView::NetworkAndCallView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NetworkAndCallView::NetworkAndCallView");
g_pNetworkAndCallView = this;
}
NetworkAndCallView::~NetworkAndCallView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "NetworkAndCallView::~NetworkAndCallView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NetworkAndCallView::~NetworkAndCallView");
g_pNetworkAndCallView = nullptr;
}
{
if (NetworkAndCallScrollView[thisView] == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DisplayBrightnessView::ChangeScreenDurationView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "DisplayBrightnessView::ChangeScreenDurationView");
mobileDataOptionsView = new MobileDataOptionsView();
if (mobileDataOptionsView == nullptr)
{
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-08-12 11:31:43
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-19 11:51:53
+ * @LastEditTime: 2024-11-05 14:28:21
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/player/src/MusicPlayerBTConnectFailedView.cpp
*/
#include "player/include/MusicPlayerBTConnectFailedView.h"
static constexpr const char *CLOSEBUTTON_VIEWID = "CLOSEButton";
MusicPlayerBTConnectFailedView::MusicPlayerBTConnectFailedView(/* args */)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerBTConnectFailedView::MusicPlayerBTConnectFailedView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerBTConnectFailedView::MusicPlayerBTConnectFailedView");
}
MusicPlayerBTConnectFailedView::~MusicPlayerBTConnectFailedView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerBTConnectFailedView::~MusicPlayerBTConnectFailedView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerBTConnectFailedView::~MusicPlayerBTConnectFailedView");
ClearAll();
}
bool MusicPlayerBTConnectFailedView::CreateMusicPlayerBTConnectFailedViewLabel()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerBTConnectFailedView::CreateMusicPlayerBTConnectFailedViewLabel");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerBTConnectFailedView::CreateMusicPlayerBTConnectFailedViewLabel");
/* ------------------------------- titleLabel ------------------------------- */
if (titleLabel == nullptr)
{
bool MusicPlayerBTConnectFailedView::CreateMusicPlayerBTConnectFailedViewButton()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerBTConnectFailedView::CreateMusicPlayerBTConnectFailedViewButton");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerBTConnectFailedView::CreateMusicPlayerBTConnectFailedViewButton");
if (CloseButton == nullptr)
{
CloseButton = new UIButton();
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-08-10 16:23:46
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-19 11:52:00
+ * @LastEditTime: 2024-11-05 14:28:09
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/player/src/MusicPlayerBluetoothDisConView.cpp
*/
#include "player/include/MusicPlayerBluetoothDisConView.h"
static constexpr const char *OKBUTTON_VIEWID = "OkButton";
MusicPlayerBluetoothDisConView::MusicPlayerBluetoothDisConView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerBluetoothDisConView::MusicPlayerBluetoothDisConView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerBluetoothDisConView::MusicPlayerBluetoothDisConView");
}
MusicPlayerBluetoothDisConView::~MusicPlayerBluetoothDisConView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerBluetoothDisConView::~MusicPlayerBluetoothDisConView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerBluetoothDisConView::~MusicPlayerBluetoothDisConView");
ClearAll();
}
static MusicPlayerSourceView *g_bluetoothView{nullptr};\r
MusicPlayerSourceView::MusicPlayerSourceView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerSourceView::MusicPlayerSourceView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerSourceView::MusicPlayerSourceView");\r
g_bluetoothView = this;\r
}\r
\r
MusicPlayerSourceView::~MusicPlayerSourceView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerSourceView::~MusicPlayerSourceView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerSourceView::~MusicPlayerSourceView");\r
ClearAll();\r
g_bluetoothView = nullptr;\r
}\r
bool a2dp = uapi_a2dp_snk_get_device_connect_state(); // 获取a2dp连接状态\r
if (button == phoneLableButton) // 若点击的是手机音乐按钮\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnClick phoneLableButton");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnClick phoneLableButton");\r
if (!PlayersModel::GetInstance()->GetMusicSource()) // 切换到手机音乐\r
{\r
PlayersModel::GetInstance()->SetMusicSource(true);\r
}\r
else if (button == watchLableButton) // 若点击的是手表音乐按钮\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnClick watchLableButton");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnClick watchLableButton");\r
if (PlayersModel::GetInstance()->GetMusicSource()) // 切换到手表音乐\r
{\r
PlayersModel::GetInstance()->SetMusicSource(false);\r
}\r
else if (button == bluetoothHeadsetLableButton)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnClick bluetoothHeadsetLableButton");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnClick bluetoothHeadsetLableButton");\r
NativeAbility::GetInstance().EnterSlice(VIEW_BLUETOOTH_EARPHONE);\r
// 配置主界面回退界面\r
MainModel::GetInstance().SetFromSetCardView(true);\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-10-19 11:27:19
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-19 15:35:34
+ * @LastEditTime: 2024-11-05 14:29:01
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/player/src/MusicPlayerTipView.cpp
*/
#include "player/include/MusicPlayerTipView.h"
static MusicPlayerTipView *g_pMusicPlayerTipView = nullptr;
MusicPlayerTipView::MusicPlayerTipView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerTipView::MusicPlayerTipView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerTipView::MusicPlayerTipView");
g_pMusicPlayerTipView = this;
}
MusicPlayerTipView::~MusicPlayerTipView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "~MusicPlayerTipView::MusicPlayerTipView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "~MusicPlayerTipView::MusicPlayerTipView");
ClearAll();
g_pMusicPlayerTipView = nullptr;
}
void MusicPlayerTipView::ClearAll(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerTipView::ClearAll");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerTipView::ClearAll");
if (group)
{
group->RemoveAll();
bool MusicPlayerTipView::OnClick(UIView &view, const ClickEvent &event)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MusicPlayerTipView::OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MusicPlayerTipView::OnClick");
PlayersView *playersView = PlayersView::GetInstance();
if (!playersView)
{
// 删除歌曲文件
void PlayerListDelSongView::DeleteSongNameFile(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " whill Deleted file:%s", delSongName.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, " whill Deleted file:%s", delSongName.c_str());
std::string path = PlayersModel::GetInstance()->GetMusicPlayPath() + "/" + delSongName;
if (uapi_delete_files(path.c_str()))
\r
bool BtnOnClickListListener::OnClick(UIView &view, const ClickEvent &event)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BtnOnClickListListener OnClick:");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BtnOnClickListListener OnClick:");\r
\r
UNUSED(event);\r
int ret;\r
/*更新音乐列表*/
void PlayersModel::UpdateMusicPlayerList(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersModel::UpdateMusicPlayerList");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersModel::UpdateMusicPlayerList");
PlayersListGroup::GetInstance()->SetUpListCase();
PlayersView *playersView = PlayersView::GetInstance();
if (playersView == nullptr) {
static void PlayerMusic_TimerCallbackProc(int data)
{
g_PlayerTimes--;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "g_PlayerTimes = %d",g_PlayerTimes);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "g_PlayerTimes = %d",g_PlayerTimes);
PlayersView *playersView = PlayersView::GetInstance();
if (playersView == nullptr) {
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "playersView nullptr err");
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BtAndLocalVolumeSet addr: %02x%02x%02x%02x%02x%02x ",
bdAddr.addr[5], bdAddr.addr[4], bdAddr.addr[3], /* 5 4 3 idx */
bdAddr.addr[2], bdAddr.addr[1], bdAddr.addr[0]); /* 2 1 0 idx */
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "connCtState:%x", connCtState);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "connTgState:%x", connTgState);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "connCtState:%x", connCtState);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "connTgState:%x", connTgState);
if (connCtState == PROFILE_STATE_CONNECTED || connTgState == PROFILE_STATE_CONNECTED)
{
return true;
bd_addr_t active_bd_addr = a2dp_snk_get_active_device();
int state = a2dp_snk_get_playing_state(&active_bd_addr);
if (state == A2DP_IS_PLAYING) {
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "A2DP_IS_PLAYING");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "A2DP_IS_PLAYING");
return true;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "A2DP_NOT_PLAYING");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "A2DP_NOT_PLAYING");
return false;
}
{
if (get_avrcp_ct_or_tg_is_connected() && get_a2dp_sink_playing_state())
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AVRCP_KEY_PAUSE");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AVRCP_KEY_PAUSE");
set_phone_music_play_state(AVRCP_KEY_PAUSE); // 控制手机音乐暂停
}
}
{
if (get_avrcp_ct_or_tg_is_connected() && get_a2dp_sink_playing_state())
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AVRCP_KEY_PLAY");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AVRCP_KEY_PLAY");
set_phone_music_play_state(AVRCP_KEY_PLAY); // 控制手机音乐暂停
}
}
{
for (const auto &entry : idToMusicNameMap)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "id = %d name.first = %s name.second = %s", entry.first,entry.second.first.c_str(),entry.second.second.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "id = %d name.first = %s name.second = %s", entry.first,entry.second.first.c_str(),entry.second.second.c_str());
}
}
}
}\r
playerCaseInfo.index = i;\r
i++;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "musicName = %s,index = %d",playerCaseInfo.sliceId,playerCaseInfo.index);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "musicName = %s,index = %d",playerCaseInfo.sliceId,playerCaseInfo.index);\r
playersCaseList_->PushBack(playerCaseInfo);\r
}\r
PlayersModel::GetInstance()->showIdToMusicNameMapData();\r
}\r
// 关闭目录\r
closedir(dirp);\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::GetAllFiles end!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::GetAllFiles end!");\r
return OHOS_SUCCESS;\r
}\r
\r
// 将十六进制字符串转换为字符 \r
result.push_back(static_cast<char>(strtol(byteString.c_str(), nullptr, 16))); \r
} \r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "hex_to_string:%s",result.c_str());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "hex_to_string:%s",result.c_str());\r
return result; // 返回结果字符串 \r
} \r
ButtonOnClickListener::~ButtonOnClickListener()\r
{\r
if(PlayersListGroup::GetInstance()->GetCase().IsEmpty()) //若当前歌曲列表为空且为本地音乐他跳转到音乐列表进行提示\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "current playersCaseList_ is empty!!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "current playersCaseList_ is empty!!");\r
playersView->SetPlayerButtonState(UICheckBox::UICheckBoxState::UNSELECTED);\r
playersView->ChangeView(PlayersView::MAIN_MUSICPLAYER_VIEW,PlayersView::MUSIC_LIST_VIEW);\r
return;\r
{\r
group[i] = nullptr;\r
}\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::ClearAll end");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::ClearAll end");\r
}\r
\r
UIButton *PlayersView::PlayerViewButtonInit(ButtonConfig &buttonconfig)\r
PlayersListGroup::GetInstance()->SetUpListCase();\r
if (musicAdapter && musicListIsEmptyImage && musicListIsEmptyLabel && musicList)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "musicNum = %d", musicAdapter->GetCount());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "musicNum = %d", musicAdapter->GetCount());\r
if (0 == musicAdapter->GetCount()) /*歌曲为空*/\r
{\r
musicListIsEmptyImage->SetVisible(true);\r
/*点击返回键回到音乐主视图*/\r
void PlayersView::OnClickBackKeyToMainMusicPlayerView(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::OnClickBackKeyToMainMusicPlayerView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::OnClickBackKeyToMainMusicPlayerView");\r
int index = 0;\r
for (int i = MAIN_MUSICPLAYER_VIEW; i < MUSICPLAYERJUMPVIEWID_MAX; i++)\r
{\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "UpdatePlayerView");\r
bool phoneMusicConnectStatus = uapi_a2dp_snk_get_device_connect_state();// 获取a2dp连接状态\r
bool musicSourceType = PlayersModel::GetInstance()->GetMusicSource();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phoneMusicConnectStatus %d,musicSourceType %d",phoneMusicConnectStatus,musicSourceType);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "phoneMusicConnectStatus %d,musicSourceType %d",phoneMusicConnectStatus,musicSourceType);\r
ImageInfo *image;\r
if (musicSourceType)\r
{\r
{\r
musicPlayerSourceView->UpdateBluetoothHeadSetViewIsVisible();\r
}\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdatePlayerView over!!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "UpdatePlayerView over!!");\r
}\r
\r
// 初始化音乐播放器主视图\r
\r
void PlayersView::PreLoad(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::PreLoad");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::PreLoad");\r
if (!viewiInitStatus)\r
{\r
if (InitView())\r
\r
void PlayersView::UnLoad(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::UnLoad");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::UnLoad");\r
UnLoadPlayerImageRes();\r
}\r
\r
/*预加载音乐播放器资源*/\r
void PlayersView::PreLoadPlayerImageRes(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::playerResPreLoad");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::playerResPreLoad");\r
if (!resLoadStatus)\r
{\r
if (LoadPlayerImage(musicPlayerBackGround, PLAYER_BACKGROUND) == false)\r
/*卸载音乐播放器资源*/\r
void PlayersView::UnLoadPlayerImageRes(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::playerResUnLoad");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::playerResUnLoad");\r
if (resLoadStatus)\r
{\r
ImageInfo *image = nullptr;\r
/*切换到音乐来源视图*/\r
bool PlayersView::ChangeToMusicSourceView(int16_t thisView)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicSourceView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicSourceView");\r
if (group[thisView] == nullptr)\r
{\r
musicPlayerSourceView = new MusicPlayerSourceView();\r
/*切换到声音调节视图*/\r
bool PlayersView::ChangeToVolumeControlView(int16_t thisView)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToVolumeControlView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToVolumeControlView");\r
if (group[thisView] == nullptr)\r
{\r
volumeSettingView = new VolumeSettingView();\r
/*切换到音乐列表视图*/\r
bool PlayersView::ChangeToMusicListView(int16_t thisView)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicListView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicListView");\r
if (group[thisView] == nullptr)\r
{\r
UIViewGroup *groupview = CreateMusicListGroupView();\r
/*切换到音乐删除视图*/\r
bool PlayersView::ChangeToMusicDeleteView(int16_t thisView)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicDeleteView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicDeleteView");\r
if (group[thisView] == nullptr)\r
{\r
playerListDelSongView = new PlayerListDelSongView();\r
/*切换到蓝牙未连接视图*/\r
bool PlayersView::ChangeToMusicBluetoothDisConnectView(int16_t thisView)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicBluetoothDisConnectView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicBluetoothDisConnectView");\r
if (group[thisView] == nullptr)\r
{\r
musicPlayerBluetoothDisConView = new MusicPlayerBluetoothDisConView();\r
/*切换到蓝牙未连接视图*/\r
bool PlayersView::ChangeToMusicBluetoothConnectFailedView(int16_t thisView)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicBluetoothConnectFailedView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicBluetoothConnectFailedView");\r
if (group[thisView] == nullptr)\r
{\r
musicPlayerBTConnectFailedView = new MusicPlayerBTConnectFailedView();\r
/*切换到连接动画视图*/\r
bool PlayersView::ChangeToMusicConnectingView(int16_t thisView)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicConnectingView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicConnectingView");\r
if (group[thisView] == nullptr)\r
{\r
musicPlayerConnectingView = new AiVoiceConnectingView();\r
\r
bool PlayersView::ChangeToMusicPlayerTipView(int16_t thisView)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicPlayerTipView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PlayersView::ChangeToMusicPlayerTipView");\r
if (group[thisView] == nullptr)\r
{\r
musicPlayerTipView = new MusicPlayerTipView();\r
\r
RecordDeleteView::RecordDeleteView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordDeleteView::RecordDeleteView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordDeleteView::RecordDeleteView");\r
g_pRecordDeleteView = this;\r
}\r
\r
RecordDeleteView::~RecordDeleteView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordDeleteView::~RecordDeleteView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordDeleteView::~RecordDeleteView");\r
ClearAll();\r
g_pRecordDeleteView = nullptr;\r
}\r
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-02-27 09:16:50\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-10-21 10:15:26\r
+ * @LastEditTime: 2024-11-05 14:39:41\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordListView.cpp\r
*/\r
\r
// 每次录音完将数据刷新显示到list\r
void RecordListView::RefreshRecordingListData(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordListView::RefreshRecordingListData");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordListView::RefreshRecordingListData");\r
RecordingModel::GetInstance()->InitRecordingListItem();\r
int num = RecordingModel::GetInstance()->GetRecordingListNum();\r
if (p_RecordingListAdapter != nullptr && recordList != nullptr)\r
recordList->RefreshList();\r
recordList->Invalidate();\r
}\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordListView::RefreshRecordingListData over!!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordListView::RefreshRecordingListData over!!");\r
}\r
return;\r
}\r
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());
PlayerCtr->SetSource(*Resource);
PlayerCtr->Prepare();
ret = PlayerCtr->GetDuration(DurationTime);
ConvertMillisecondToTime(DurationTime);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%s,%d] GetDuration:%lld,%s, ret:%d", __func__, __LINE__, DurationTime, TotalRecordDuration.c_str(), ret);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%s,%d] GetDuration:%lld,%s, ret:%d", __func__, __LINE__, DurationTime, TotalRecordDuration.c_str(), ret);
/* -------------------------------------------------------------------------- */
if (!IsActivateAudioInterrupt)
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "session invalid");
return OHOS_FAILURE;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MakeSessionId %d", SessionId);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MakeSessionId %d", SessionId);
p_RecordingPlayerInterruptListener = std::make_shared<RecordingPlayerInterruptListener>();
if (p_RecordingPlayerInterruptListener.get() == nullptr)
{
int RecordingModel::RecordingPlayerReset(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingModel::RecordingPlayerReset");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingModel::RecordingPlayerReset");
int ret = PlayerCtr->Stop();
if (ret != 0)
{
return;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "NextPlayout before index %d,filename %s", GetClickRecordingIndex(), GetCurrentPlayRecordingName().c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NextPlayout before index %d,filename %s", GetClickRecordingIndex(), GetCurrentPlayRecordingName().c_str());
if ((index > num - 1) || (index < 0))
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "currentIndex err");
return;
}
SetClickRecordingIndex(--index < 0 ? num - 1 : index); // 如果从第一首录音设置上一首,那就跳到最后一首
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "NextPlayout after index %d,filename %s", GetClickRecordingIndex(), GetCurrentPlayRecordingName().c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NextPlayout after index %d,filename %s", GetClickRecordingIndex(), GetCurrentPlayRecordingName().c_str());
SetRecordingPlayerUri(directory + GetCurrentPlayRecordingName() + ".mp3");
SetCircleProgress(0);
int32_t ret;
int32_t playerState;
PlayerCtr->GetPlayerState(playerState);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "playerState Value %d.", playerState);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "playerState Value %d.", playerState);
if ((playerState == PlayerStates::PLAYER_STARTED) || (playerState == PlayerStates::PLAYER_PLAYBACK_COMPLETE))
{
/* start play */
return;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "NextPlayout before index %d,filename %s", GetClickRecordingIndex(), GetCurrentPlayRecordingName().c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NextPlayout before index %d,filename %s", GetClickRecordingIndex(), GetCurrentPlayRecordingName().c_str());
if ((index > num - 1) || (index < 0))
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "currentIndex err");
return;
}
SetClickRecordingIndex(++index > num - 1 ? 0 : index); // 如果从最后一首录音设置下一首,那就跳到第一首
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "NextPlayout after index %d,filename %s", GetClickRecordingIndex(), GetCurrentPlayRecordingName().c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NextPlayout after index %d,filename %s", GetClickRecordingIndex(), GetCurrentPlayRecordingName().c_str());
SetRecordingPlayerUri(directory + GetCurrentPlayRecordingName() + ".mp3");
SetCircleProgress(0);
int32_t ret;
int32_t playerState;
PlayerCtr->GetPlayerState(playerState);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "playerState Value %d.", playerState);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "playerState Value %d.", playerState);
if ((playerState == PlayerStates::PLAYER_STARTED) || (playerState == PlayerStates::PLAYER_PLAYBACK_COMPLETE))
{
/* start play */
Recordings.push_back({i, GetCurrentPlayRecordingName(info[i].recordingFileName), info[i].recordingDuration, info[i].recordingTime});
}
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingModel::InitRecordingListItem over!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingModel::InitRecordingListItem over!!");
}
/*
return OHOS_FAILURE;
}
name = directory + name.append(".txt");
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:RecordDataWriteToFile %s", __LINE__, name.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:RecordDataWriteToFile %s", __LINE__, name.c_str());
FILE *fp = fopen(name.c_str(), "wb+");
if (nullptr == fp)
{
size_t ret = fwrite((void *)&recordingInfo, sizeof(RecordingInfo), 1, fp);
fclose(fp);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:RecordDataWriteToFile success", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:RecordDataWriteToFile success", __LINE__);
return OHOS_SUCCESS;
}
return OHOS_FAILURE;
}
name = directory + name.append(".txt");
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:RecordDataReadToFile %s", __LINE__, name.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:RecordDataReadToFile %s", __LINE__, name.c_str());
FILE *fp = fopen(name.c_str(), "rb");
if (fp == nullptr)
{
fread((void *)&recordingInfo, sizeof(RecordingInfo), 1, fp);
printfRecordData();
fclose(fp);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:RecordDataReadToFile success", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:RecordDataReadToFile success", __LINE__);
return OHOS_SUCCESS;
}
void RecordingModel::printfRecordData()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "recordingFileName %s", recordingInfo.recordingFileName);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "recordingDuration %s", recordingInfo.recordingDuration);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "recordingTime %s", recordingInfo.recordingTime);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "recordingFileName %s", recordingInfo.recordingFileName);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "recordingDuration %s", recordingInfo.recordingDuration);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "recordingTime %s", recordingInfo.recordingTime);
}
/*设置当前哪个子视图是可见的*/
{
RecordingSpaceIsOut = false;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingModel::CheckRecordingSpaceOut:%d", RecordingSpaceIsOut);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingModel::CheckRecordingSpaceOut:%d", RecordingSpaceIsOut);
}
bool RecordingModel::GetCheckRecordingSpaceOut(void)
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "g_RecordingTimes + g_TotalUsedTime = %d", g_RecordingTimes + g_TotalUsedTime);
if (RecordingModel::GetInstance()->CheckRecordingTimeOut(g_RecordingTimes + g_TotalUsedTime))
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Recording_TimerCallback g_TotalUsedSpace >= TOTAL_RECORDING_TIME");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Recording_TimerCallback g_TotalUsedSpace >= TOTAL_RECORDING_TIME");
// 录取时长不足,停止录制并弹出警告
if (RecordingPresenter::GetInstance())
{
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-03-30 09:14:38\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-10-21 17:01:15\r
+ * @LastEditTime: 2024-11-05 14:38:39\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingPresenter.cpp\r
*/\r
\r
if (strcmp(view.GetViewId(), RECORD_BUTTON) == 0)\r
{\r
int g_TotalUsedTime = RecordingModel::GetInstance()->GetUsedRecordingTime(); // 已用时间\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "g_TotalUsedTime:%d", g_TotalUsedTime);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "g_TotalUsedTime:%d", g_TotalUsedTime);\r
if (p_RecordingModel->CheckRecordingTimeOut(g_TotalUsedTime) || p_RecordingModel->GetRecordingListNum() >= MAX_RECORDING_NUM ||\r
p_RecordingModel->GetCheckRecordingSpaceOut())\r
{\r
\r
void RecordingPresenter::SetCircleProgress()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPresenter::SetCircleProgress");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPresenter::SetCircleProgress");\r
RecordingPlayerView *p_RecordingPlayerView = RecordingPlayerView::GetInstance();\r
if (p_RecordingPlayerView == nullptr)\r
{\r
UNUSED(event);\r
RecordingListitemView *p_RecordingListitemView = static_cast<RecordingListitemView *>(&view);\r
int index = p_RecordingListitemView->GetRecordingListIndex();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordListViewListener::OnClick index:%d", index);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordListViewListener::OnClick index:%d", index);\r
if (index >= RecordingModel::GetInstance()->GetRecordingListNum())\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordListViewListener::OnClick is no index");\r
\r
state = p_RecordingPlayerView->GetPlayerButtonState();\r
playerState = p_RecordingModel->GetRecordingPlayerState();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "buttonState = %d playerState = %d", state, playerState);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "buttonState = %d playerState = %d", state, playerState);\r
\r
if (state == UICheckBox::UICheckBoxState::SELECTED)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "state == SELECTED");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "state == SELECTED");\r
\r
if (playerState == PlayerStates::PLAYER_PAUSED)\r
{\r
ret = p_RecordingModel->GetPlayerCtr()->Play();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Play, ret:%d", ret);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Play, ret:%d", ret);\r
}\r
else\r
{\r
}\r
else\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "state == UNSELECTED");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "state == UNSELECTED");\r
ret = p_RecordingModel->GetPlayerCtr()->Pause(); // 本地暂停\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Pause, ret:%d", ret);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Pause, ret:%d", ret);\r
}\r
}\r
\r
*/\r
RecordingPlayerInterruptListener::RecordingPlayerInterruptListener()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::RecordingPlayerInterruptListener");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::RecordingPlayerInterruptListener");\r
}\r
\r
RecordingPlayerInterruptListener::~RecordingPlayerInterruptListener()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::~RecordingPlayerInterruptListener");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::~RecordingPlayerInterruptListener");\r
}\r
/*\r
* 函数的调用通常发生在音频播放器或者任何使用音频资源的应用程序遇到外部中断事件时。\r
*/\r
void RecordingPlayerInterruptListener::OnInterrupt(int32_t type, int32_t hint)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::OnInterrupt");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::OnInterrupt");\r
if (type == INTERRUPT_TYPE_BEGIN && hint == INTERRUPT_HINT_PAUSE) // 这表明当某个中断事件开始时,如果接收到暂停的提示,应当暂停播放器的播放。\r
{\r
PausePlayer();\r
*/\r
std::shared_ptr<Player> RecordingPlayerInterruptListener::GetPlayer()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::GetPlayer");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::GetPlayer");\r
\r
return player_;\r
}\r
*/\r
void RecordingPlayerInterruptListener::SetOwner(std::shared_ptr<Player> player)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::SetOwner");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::SetOwner");\r
\r
player_ = player;\r
}\r
*/\r
void RecordingPlayerInterruptListener::SetPaused(bool value)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::SetPaused");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::SetPaused");\r
\r
isPaused_ = value;\r
}\r
*/\r
void RecordingPlayerInterruptListener::SetResumed(bool value)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::SetResumed");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::SetResumed");\r
isResumed_ = value;\r
}\r
\r
*/\r
void RecordingPlayerInterruptListener::ResetFlag(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::RestFlag");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::RestFlag");\r
\r
isPaused_ = false;\r
isDelayed_ = false;\r
*/\r
bool RecordingPlayerInterruptListener::IsPaused()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsPaused");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsPaused");\r
\r
return isPaused_;\r
}\r
*/\r
bool RecordingPlayerInterruptListener::IsDelayed()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsDelayed");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsDelayed");\r
\r
return isDelayed_;\r
}\r
*/\r
bool RecordingPlayerInterruptListener::IsResumed()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsDelayed");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsDelayed");\r
\r
return isResumed_;\r
}\r
*/\r
bool RecordingPlayerInterruptListener::IsBeginStopped()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsBeginStopped");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsBeginStopped");\r
\r
return isBeginStopped_;\r
}\r
*/\r
bool RecordingPlayerInterruptListener::IsEndStopped()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsEndStopped");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::IsEndStopped");\r
\r
return isEndStopped_;\r
}\r
\r
static void Pause(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[RecordingPlayerInterruptListener::PausePlayer] start");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[RecordingPlayerInterruptListener::PausePlayer] start");\r
int32_t state;\r
int32_t ret;\r
std::shared_ptr<RecordingPlayerInterruptListener> PlayerIntrptListener =\r
}\r
PlayerIntrptListener->ResetFlag();\r
PlayerIntrptListener->SetPaused(true);\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[RecordingPlayerInterruptListener::PausePlayer]");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[RecordingPlayerInterruptListener::PausePlayer]");\r
}\r
}\r
}\r
\r
static void Resume(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[RecordingPlayerInterruptListener::ResumePlayer] start");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[RecordingPlayerInterruptListener::ResumePlayer] start");\r
int32_t state;\r
int32_t ret;\r
/* ----------------------------- 1.获取播放器中断监听器实例 ----------------------------- */\r
/* ------------------------------- 6.重置中断监听器状态 ------------------------------ */\r
PlayerIntrptListener->ResetFlag();\r
PlayerIntrptListener->SetResumed(true);\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[RecordingPlayerInterruptListener::ResumePlayer]");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[RecordingPlayerInterruptListener::ResumePlayer]");\r
}\r
}\r
}\r
*/\r
void RecordingPlayerInterruptListener::PausePlayer(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::PausePlayer");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::PausePlayer");\r
\r
PlayerPostGraphicEvent(Pause);\r
}\r
*/\r
void RecordingPlayerInterruptListener::ResumePlayer(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::ResumePlayer");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::ResumePlayer");\r
\r
PlayerPostGraphicEvent(Resume);\r
}\r
*/\r
void RecordingPlayerInterruptListener::StopPlayer(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::StopPlayer");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerInterruptListener::StopPlayer");\r
\r
PlayerPostGraphicEvent(Stop);\r
}\r
/* ---------------------------------- 播放器回调 --------------------------------- */\r
RecordingPlayerCallbackImpl::RecordingPlayerCallbackImpl()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::RecordingPlayerCallbackImpl");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::RecordingPlayerCallbackImpl");\r
}\r
\r
RecordingPlayerCallbackImpl::~RecordingPlayerCallbackImpl()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::~RecordingPlayerCallbackImpl");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::~RecordingPlayerCallbackImpl");\r
}\r
\r
void RecordingPlayerCallbackImpl::OnPlaybackComplete()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::OnPlaybackComplete");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::OnPlaybackComplete");\r
/* --------------------------- 处实现代码用于处理文件播放完成的事件 --------------------------- */\r
/* ----------------------- 用户在回调函数中不能有阻塞操作,也不能调用播放器接口 ----------------------- */\r
// 此处实现代码用于处理文件播放完成的事件\r
\r
void RecordingPlayerCallbackImpl::OnError(int32_t errorType, int32_t errorCode)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::OnError");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::OnError");\r
/* ------------------------------ 此处实现代码用于处理错误事件 ------------------------------ */\r
}\r
\r
void RecordingPlayerCallbackImpl::OnInfo(int type, int extra)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::OnInfo");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::OnInfo");\r
/* ------------------------------- 此处实现代码用于处理普通事件 ------------------------------ */\r
}\r
\r
void RecordingPlayerCallbackImpl::OnRewindToComplete()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::OnRewindToComplete");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingPlayerCallbackImpl::OnRewindToComplete");\r
/* ---------------------------- 此处实现代码用于处理进度控制完成的事件 ---------------------------- */\r
}\r
}
\ No newline at end of file
{\r
if (RecordingViewScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordListView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordListView");\r
p_RecordListView = new RecordListView();\r
if (p_RecordListView == nullptr)\r
{\r
{\r
if (RecordingViewScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordGoingView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordGoingView");\r
p_RecordGoingView = new RecordGoingView();\r
if (p_RecordGoingView == nullptr)\r
{\r
{\r
if (RecordingViewScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordingPlayerView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordingPlayerView");\r
p_RecordingPlayerView = new RecordingPlayerView();\r
if (p_RecordingPlayerView == nullptr)\r
{\r
{\r
if (RecordingViewScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordDeleteView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordDeleteView");\r
p_RecordDeleteView = new RecordDeleteView();\r
if (p_RecordDeleteView == nullptr)\r
{\r
{\r
if (RecordingViewScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordVolumeSettingView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordVolumeSettingView");\r
p_RecordingVolumeSettingView = new RecordingVolumeSettingView();\r
if (p_RecordingVolumeSettingView == nullptr)\r
{\r
{\r
if (RecordingViewScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordNumLimitView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RecordingView::ChangeRecordNumLimitView");\r
p_RecordingNumLimitView = new RecordingNumLimitView();\r
if (p_RecordingNumLimitView == nullptr)\r
{\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-09-29 15:57:59
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-05 12:34:35
+ * @LastEditTime: 2024-11-05 14:40:12
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/respiratorytraining/src/RespiratoryTrainingDurationSelectionView.cpp
*/
#include "respiratorytraining/include/RespiratoryTrainingDurationSelectionView.h"
static RespiratoryTrainingDurationSelectionView *g_pRespiratoryTrainingDurationSelectionView{nullptr};
RespiratoryTrainingDurationSelectionView::RespiratoryTrainingDurationSelectionView(/* args */)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingDurationSelectionView::RespiratoryTrainingDurationSelectionView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingDurationSelectionView::RespiratoryTrainingDurationSelectionView");
g_pRespiratoryTrainingDurationSelectionView = this;
}
RespiratoryTrainingDurationSelectionView::~RespiratoryTrainingDurationSelectionView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingDurationSelectionView::~RespiratoryTrainingDurationSelectionView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingDurationSelectionView::~RespiratoryTrainingDurationSelectionView");
ClearAll();
g_pRespiratoryTrainingDurationSelectionView = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-11 16:26:20
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-09 15:09:06
+ * @LastEditTime: 2024-11-05 14:40:25
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/respiratorytraining/src/RespiratoryTrainingModel.cpp
*/
#include "respiratorytraining/include/RespiratoryTrainingModel.h"
*/
void RespiratoryTrainingModel::RT_StartTimer(uint64_t interval)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingModel::RT_StartTimer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingModel::RT_StartTimer");
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_timer != NULL)
{
*/
void RespiratoryTrainingModel::RT_StopTimer(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingModel::RT_StopTimer");
// 检查定时器是否存在
if (g_timer != NULL)
{
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingModel::RT_StopTimer");
osTimerStop(g_timer);
// 删除定时器并置为 NULL
osStatus_t ret = osTimerDelete(g_timer);
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:26:06
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-09 15:08:31
+ * @LastEditTime: 2024-11-05 14:52:23
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/RespiratoryTraining/src/RespiratoryTrainingPresenter.cpp
*/
{
if (viewId == it->first)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "select time = %d", it->second);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "select time = %d", it->second);
RespiratoryTrainingModel::GetInstance().SetRespiratoryTrainingSelectTime(it->second);
if (RespiratoryTrainingDurationSelectionView::GetInstance())
{
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-09 15:07:50
+ * @LastEditTime: 2024-11-05 14:40:57
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/RespiratoryTraining/src/RespiratoryTrainingView.cpp
*/
bool RespiratoryTrainingView::ChangeRespiratoryTrainingView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingView::ChangeRespiratoryTrainingView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingView::ChangeRespiratoryTrainingView");
if (RespiratoryTrainingScrollView[thisView] == nullptr)
{
container_->Add(RespiratoryTrainingScrollView[thisView]);
bool RespiratoryTrainingView::ChangeRespiratoryTrainingCompletedView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingView::ChangeRespiratoryTrainingCompletedView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingView::ChangeRespiratoryTrainingCompletedView");
if (RespiratoryTrainingScrollView[thisView] == nullptr)
{
p_RespiratoryTrainingCompletedView = new RespiratoryTrainingCompletedView();
bool RespiratoryTrainingView::ChangeRespiratoryTrainingDurationSelectionView(int16_t thisView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingView::ChangeRespiratoryTrainingCompletedView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingView::ChangeRespiratoryTrainingCompletedView");
if (RespiratoryTrainingScrollView[thisView] == nullptr)
{
p_RespiratoryTrainingDurationSelectionView = new RespiratoryTrainingDurationSelectionView();
void RespiratoryTrainingView::RespiratoryTrainingViewInit(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingView::RespiratoryTrainingViewInit");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingView::RespiratoryTrainingViewInit");
if (!InitRespiratoryTrainingScrollView() || !InitRespiratoryTrainingElements() ||
!InitRespiratoryTrainingElements2() || !InitRespiratoryTrainingCallBackAndAnimator())
{
-
-
#include "schedule/include/ScheduleListAdapter.h"
#include "wearable_log.h"
UIView * ScheduleListAdapter::GetView(UIView * inView, int16_t index)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:GetView,%d", __LINE__, index);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:GetView,%d", __LINE__, index);
if(nodeList_.IsEmpty() || nodeList_.Size() <= index || 0 > index)
{
return nullptr;
if (nullptr == inView)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:GetView", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:GetView", __LINE__);
item = new ScheduleListItem();
if (nullptr == item)
return nullptr;
}
else
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:GetView", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:GetView", __LINE__);
item = static_cast<ScheduleListItem *>(inView);
}
void ScheduleListAdapter::AddListItem(const ScheduleListItemInfo &item)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:AddListItem", __LINE__);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:AddListItem", __LINE__);
nodeList_.PushBack(item);
}
void ScheduleListItem::ResetItemStyle(const ScheduleListItemInfo &itemInfo)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:ResetItemStyle,%d,%d",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:ResetItemStyle,%d,%d",
__LINE__, itemInfo.IsDateItem, itemInfo.ChildIndex);
if(true == itemInfo.IsDateItem)
\r
void ScheduleModel::ScheduleOriginalDataSetByApp(ScheduleRevData * data, uint8_t index, bool is_finish)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleOriginalDataSetByApp,%d,%d", index, is_finish);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleOriginalDataSetByApp,%d,%d", index, is_finish);\r
uint8_t len = 0;\r
if(index>=SCHEDULE_DATA_COUNT_MAX)\r
{\r
\r
void ScheduleModel::ScheduleOriginalDataSetByUI(uint8_t index)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleModel::ScheduleOriginalDataSetByUI,%d", index);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleModel::ScheduleOriginalDataSetByUI,%d", index);\r
\r
uint8_t DataCount = ScheduleOriginalDataCountGet();\r
uint8_t i = 0;\r
\r
void ScheduleModel::ScheduleOriginalDataToItemData(uint8_t DataCount)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleModel::ScheduleOriginalDataToItemData,%d", DataCount);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleModel::ScheduleOriginalDataToItemData,%d", DataCount);\r
uint8_t i = 0;\r
uint8_t j = 0;\r
\r
ScheduleItemDataCountSet(ItemCount);\r
}\r
\r
- // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleModel::ScheduleOriginalDataToItemData,%d,%s", j, ScheduleItemData_[0].DateStr.c_str());\r
+ // WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleModel::ScheduleOriginalDataToItemData,%d,%s", j, ScheduleItemData_[0].DateStr.c_str());\r
}\r
\r
void ScheduleModel::DataStringToCharArray(void)\r
{\r
uint8_t DataCount = ScheduleOriginalDataCountGet();\r
- // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:DataStringToCharArray,%d", __LINE__, DataCount);\r
+ // WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:DataStringToCharArray,%d", __LINE__, DataCount);\r
\r
memset(C_ScheduleOriginalData_, 0x0, sizeof(C_ScheduleRevData) * SCHEDULE_DATA_COUNT_MAX);\r
\r
\r
void ScheduleModel::DataCharArrayToString(uint8_t DataCount)\r
{\r
- // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:DataCharArrayToString,%d", __LINE__, DataCount);\r
+ // WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:DataCharArrayToString,%d", __LINE__, DataCount);\r
\r
uint8_t i = 0;\r
for(i = 0; i < DataCount; i++)\r
FILE *fp = fopen(SCHEDULE_DATA_FILE, "rb");\r
if (fp == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:C_ScheduleDataReadFromFile", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:C_ScheduleDataReadFromFile", __LINE__);\r
return OHOS_FAILURE;\r
}\r
\r
int len = ftell(fp);\r
fseek(fp, 0, SEEK_SET);\r
uint8_t DataCount = len / sizeof(C_ScheduleRevData);\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:%d,%d", __LINE__, DataCount, len);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:%d,%d", __LINE__, DataCount, len);\r
fread((char *)C_ScheduleOriginalData_, sizeof(C_ScheduleRevData), DataCount, fp);\r
fclose(fp);\r
\r
int ScheduleModel::ScheduleDataWriteToFile(void)\r
{\r
uint8_t DataCount = ScheduleOriginalDataCountGet();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:ScheduleDataWriteToFile,%d", __LINE__, DataCount);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:ScheduleDataWriteToFile,%d", __LINE__, DataCount);\r
if(0 == DataCount)\r
{\r
return OHOS_FAILURE;\r
FILE *fp = fopen(SCHEDULE_DATA_FILE, "wb+");\r
if (nullptr == fp)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:ScheduleDataWriteToFile fail", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:ScheduleDataWriteToFile fail", __LINE__);\r
return OHOS_FAILURE;\r
}\r
\r
size_t ret = fwrite(C_ScheduleOriginalData_, sizeof(C_ScheduleRevData), DataCount, fp);\r
if (DataCount != ret)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:ScheduleDataWriteToFile fail", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:ScheduleDataWriteToFile fail", __LINE__);\r
}\r
fclose(fp);\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:ScheduleDataWriteToFile success", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:ScheduleDataWriteToFile success", __LINE__);\r
\r
return OHOS_SUCCESS;\r
}\r
\r
int C_ScheduleDataReadFromFile(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:C_ScheduleDataReadFromFile", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:C_ScheduleDataReadFromFile", __LINE__);\r
return OHOS::ScheduleModel::GetInstance().ScheduleDataReadFromFile();\r
}\r
\r
int C_ScheduleDataWriteToFile(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:C_ScheduleDataWriteToFile", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:C_ScheduleDataWriteToFile", __LINE__);\r
return OHOS::ScheduleModel::GetInstance().ScheduleDataWriteToFile();\r
}\r
// 启动时执行的逻辑\r
void SchedulePresenter::OnStart()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SchedulePresenter::OnStart");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SchedulePresenter::OnStart");\r
Presenter<ScheduleView>::OnStart();\r
}\r
\r
// 页面已经展示后的调用逻辑\r
void SchedulePresenter::OnResume(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SchedulePresenter::OnResume");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SchedulePresenter::OnResume");\r
Presenter<ScheduleView>::OnResume();\r
if (nullptr == view_)\r
{\r
bool SchedulePresenter::OnClick(UIView &view, const ClickEvent &event)\r
{\r
UNUSED(event);\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:OnClick", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:OnClick", __LINE__);\r
\r
if (nullptr == &view) \r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:OnClick", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:OnClick", __LINE__);\r
return false;\r
}\r
\r
\r
ScheduleView::ScheduleView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleView::ScheduleView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleView::ScheduleView");\r
p_ScheduleViewInstance = this;\r
}\r
\r
ScheduleView::~ScheduleView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleView::~ScheduleView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleView::~ScheduleView");\r
p_ScheduleViewInstance = nullptr;\r
}\r
\r
\r
void ScheduleView::OnStart()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleView::OnStart");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleView::OnStart");\r
View<SchedulePresenter>::OnStart();\r
\r
SetContainerView(new UIViewGroup());\r
\r
void ScheduleView::OnSetUpView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleView::OnSetUpView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleView::OnSetUpView");\r
View<SchedulePresenter>::OnSetUpView();\r
\r
DisplayDataOrNoScreen();\r
\r
void ScheduleView::OnTearDownView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleView::OnTearDownView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleView::OnTearDownView");\r
View<SchedulePresenter>::OnTearDownView();\r
}\r
\r
void ScheduleView::OnStop()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScheduleView::OnStop");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ScheduleView::OnStop");\r
View<SchedulePresenter>::OnStop();\r
RootView::GetInstance()->ClearOnKeyActListener();\r
\r
{\r
if(0 == ScheduleModel::GetInstance().ScheduleItemDataCountGet())\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:DisplayMainScreen", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:DisplayMainScreen", __LINE__);\r
DisplaySelectScreen(ENUM_SCHEDULE_SCREEN_NO_DATA);\r
}\r
else\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]:DisplayMainScreen", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]:DisplayMainScreen", __LINE__);\r
DisplaySelectScreen(ENUM_SCHEDULE_SCREEN_LIST);\r
\r
ResetScheduleList();\r
\r
UIViewGroup * ScheduleView::InitNoDataScreen()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
if(nullptr == NoDataGroup_)\r
{\r
NoDataGroup_ = new UIViewGroup();\r
\r
UIViewGroup * ScheduleView::InitDataScreen()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
if(nullptr == DataGroup_)\r
{\r
DataGroup_ = new UIViewGroup();\r
\r
UIScrollView * ScheduleView::InitContentScreen()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
if(nullptr == ContentGroup_)\r
{\r
ContentGroup_ = new UIScrollView();\r
\r
UIViewGroup * ScheduleView::InitDeleteScreen()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[%d]", __LINE__);\r
if(nullptr == DeleteGroup_)\r
{\r
DeleteGroup_ = new UIViewGroup();\r
if (state == UICheckBox::UICheckBoxState::SELECTED)\r
{\r
CheckBoxSelectCount += 1;\r
- printf("CheckBoxSelectCount:%d\n", CheckBoxSelectCount);\r
}\r
else\r
{\r
CheckBoxSelectCount -= 1;\r
- printf("CheckBoxSelectCount:%d\n", CheckBoxSelectCount);\r
}\r
if (CheckBoxSelectCount > 3)\r
{\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-07-12 09:55:29
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-25 14:53:50
+ * @LastEditTime: 2024-11-05 14:41:44
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingView.cpp
*/
int16_t headY = 0;
int NUM_2 = 2;
int screen_h = Screen::GetInstance().GetHeight();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetStartIndex = %d,GetListItemNum = %d", presenter_->GetStartIndex(), presenter_->GetListItemNum());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GetStartIndex = %d,GetListItemNum = %d", presenter_->GetStartIndex(), presenter_->GetListItemNum());
if (presenter_->GetStartIndex() >= presenter_->GetListItemNum())
{
startIndex = presenter_->GetListItemNum() - 1;
headY = screen_h / NUM_2;
}
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "startIndex = %d,headY = %d", startIndex, headY);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "startIndex = %d,headY = %d", startIndex, headY);
contentList->SetStartIndex(startIndex);
contentList->SetAdapter(listAdapter);
contentList->RefreshList();
int16_t listHeadIndex = contentList->GetChildrenHead()->GetViewIndex();
presenter_->SetHeadItemY(listHeadY);
presenter_->SetStartIndex(listHeadIndex);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "listHeadY = %d,listHeadIndex = %d", listHeadY, listHeadIndex);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "listHeadY = %d,listHeadIndex = %d", listHeadY, listHeadIndex);
}
}
\r
CallVolumeView::CallVolumeView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeView::CallVolumeView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CallVolumeView::CallVolumeView");\r
g_pCallVolumeView = this;\r
}\r
\r
CallVolumeView::~CallVolumeView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeView::~CallVolumeView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CallVolumeView::~CallVolumeView");\r
g_pCallVolumeView = nullptr;\r
}\r
\r
}\r
delete p_SoundAndVibrationVolumeSettingView;\r
p_SoundAndVibrationVolumeSettingView = nullptr;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeView::ClearAll end!!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CallVolumeView::ClearAll end!!");\r
}\r
}\r
\r
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-02-19 10:39:11\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-10-17 11:10:22\r
+ * @LastEditTime: 2024-11-05 14:42:21\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/soundandvibration/src/SoundAndVibrationPresenter.cpp\r
*/\r
\r
else if ((view_->GetVibrationModeView() != nullptr) && (&view == view_->GetVibrationModeView()->GetVibrationModeLabelButton()))\r
{\r
int VibrationMode = view_->GetVibrationModeView()->GetVibrationModePicker()->GetSelected();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationMode = %d", VibrationMode);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "VibrationMode = %d", VibrationMode);\r
SoundAndVibrationModel::GetInstance()->SetVibrationReminderToggleButtonStaus(VibrationMode);\r
// uapi_vibrationModeSet(VibrationMode);\r
ui_api_vibrate_once_func();\r
switch (state)\r
{\r
case UICheckBox::SELECTED:\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SilentMode is enable!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SilentMode is enable!");\r
p_SoundAndVibrationModel->SetSilentModeToggleButtonStatus(true);\r
break;\r
case UICheckBox::UNSELECTED:\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SilentMode is disable!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SilentMode is disable!");\r
p_SoundAndVibrationModel->SetSilentModeToggleButtonStatus(false);\r
break;\r
default:\r
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-02-19 10:39:14\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-09-27 18:30:07\r
+ * @LastEditTime: 2024-11-05 14:42:29\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/soundandvibration/src/SoundAndVibrationView.cpp\r
*/\r
#include "soundandvibration/include/SoundAndVibrationView.h"\r
\r
SoundAndVibrationView::SoundAndVibrationView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::SoundAndVibrationView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::SoundAndVibrationView");\r
g_pSoundAndVibrationView = this;\r
}\r
\r
SoundAndVibrationView::~SoundAndVibrationView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::~SoundAndVibrationView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::~SoundAndVibrationView");\r
g_pSoundAndVibrationView = nullptr;\r
}\r
\r
}\r
delete SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW];\r
SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] = nullptr;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::ClearAll end!!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::ClearAll end!!");\r
}\r
delete container_;\r
container_ = nullptr;\r
{\r
if (SoundAndVibrationScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::ChangeVibrationModeView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::ChangeVibrationModeView");\r
if (vibrationModeView == nullptr)\r
{\r
vibrationModeView = new VibrationModeView();\r
// 更新静音模式开关状态\r
bool SoundAndVibrationView::UpdateSilentModeSwitchStatus(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::UpdateSilentModeSwitchStatus");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::UpdateSilentModeSwitchStatus");\r
if (SilentModeToggleButton == nullptr)\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::SilentModeToggleButton is nullptr!!");\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-04-19 10:08:31
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-27 15:08:56
+ * @LastEditTime: 2024-11-05 14:42:59
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/soundandvibration/src/SoundAndVibrationVolumeSettingPresenter.cpp
*/
#include "soundandvibration/include/SoundAndVibrationVolumeSettingPresenter.h"
}
delete ScrollView;
ScrollView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationVolumeSettingView::ClearAll end!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationVolumeSettingView::ClearAll end!!");
}
}
}
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-06-12 11:44:04\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-09-27 18:01:41\r
+ * @LastEditTime: 2024-11-05 14:43:28\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/soundandvibration/src/SystemVolumeView.cpp\r
*/\r
#include "soundandvibration/include/SystemVolumeView.h"\r
\r
SystemVolumeView::SystemVolumeView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::SystemVolumeView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::SystemVolumeView");\r
g_pSystemVolumeView = this;\r
}\r
\r
SystemVolumeView::~SystemVolumeView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::~SystemVolumeView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::~SystemVolumeView");\r
g_pSystemVolumeView = nullptr;\r
}\r
\r
}\r
delete p_SoundAndVibrationVolumeSettingView;\r
p_SoundAndVibrationVolumeSettingView = nullptr;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::ClearAll end!!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::ClearAll end!!");\r
}\r
}\r
\r
return false;\r
}\r
int SystemVolume = uapi_systemVolumeGet();\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemVolume = %d", SystemVolume);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemVolume = %d", SystemVolume);\r
p_SoundAndVibrationVolumeSettingView->GetVolumeProcess()->SetValue(SystemVolume);\r
\r
return true;\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-04-22 14:35:22
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-27 18:14:37
+ * @LastEditTime: 2024-11-05 14:43:39
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/soundandvibration/src/VibrationModeView.cpp
*/
#include "soundandvibration/include/VibrationModeView.h"
VibrationModeView::VibrationModeView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::VibrationModeView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "VibrationModeView::VibrationModeView");
g_pVibrationModeView = this;
}
VibrationModeView::~VibrationModeView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::~VibrationModeView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "VibrationModeView::~VibrationModeView");
ClearAll();
g_pVibrationModeView = nullptr;
}
delete scrollView;
scrollView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::ClearAll end!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "VibrationModeView::ClearAll end!!");
}
}
\r
if (isStartMark == false) // 第一次标记\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "isStartMark = %d", isStartMark);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "isStartMark = %d", isStartMark);\r
mainStopWatchView->SetViewIsVisible(m_stopWatchlabel, false);\r
SetShowTimeLableStyle(m_showTimelabel, 0, 60, 65, 78);\r
mainStopWatchView->SetViewIsVisible(m_list, true);\r
\r
if (isStartMark == true) // 重置标记\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "isStartMark = %d", isStartMark);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "isStartMark = %d", isStartMark);\r
mainStopWatchView->SetViewIsVisible(m_stopWatchlabel, true);\r
SetShowTimeLableStyle(m_showTimelabel, 0, 160, 84, 94);\r
mainStopWatchView->SetViewIsVisible(m_image, false);\r
\r
bool MainStopWatchPresenter::OnChange(UICheckBox::UICheckBoxState state)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainStopWatchPresenter::OnChange,state = %d",state);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainStopWatchPresenter::OnChange,state = %d",state);\r
if (state == UICheckBox::UICheckBoxState::SELECTED)\r
{\r
StopWatchModel::GetInstance()->StopWatch_StartTimer(STOPWATCH_TIMER_DURATION); // 开启定时器,如果定时器存在会直接返回\r
\r
StopWatchRecordTimeToLimitView::StopWatchRecordTimeToLimitView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "StopWatchRecordTimeToLimitView::StopWatchRecordTimeToLimitView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "StopWatchRecordTimeToLimitView::StopWatchRecordTimeToLimitView");\r
g_pStopWatchRecordTimeToLimitView = this;\r
}\r
\r
StopWatchRecordTimeToLimitView::~StopWatchRecordTimeToLimitView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "StopWatchRecordTimeToLimitView::~StopWatchRecordTimeToLimitView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "StopWatchRecordTimeToLimitView::~StopWatchRecordTimeToLimitView");\r
ClearAll();\r
g_pStopWatchRecordTimeToLimitView = nullptr;\r
}\r
\r
SystemAboutTheWatchView::SystemAboutTheWatchView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemAboutTheWatchView::SystemAboutTheWatchView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemAboutTheWatchView::SystemAboutTheWatchView");\r
g_pSystemAboutTheWatchView = this;\r
}\r
\r
SystemAboutTheWatchView::~SystemAboutTheWatchView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemAboutTheWatchView::~SystemAboutTheWatchView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemAboutTheWatchView::~SystemAboutTheWatchView");\r
ClearAll();\r
g_pSystemAboutTheWatchView = nullptr;\r
}\r
uint8_t ble_name[LABEL_FONTSIZE] = {0};\r
uint32_t ble_name_len = sizeof(ble_name);\r
errcode_t ret = uapi_get_nv_btname(ble_name, &ble_name_len);\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "get btname %s ,ret 0x%X\n", ble_name, ret);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "get btname %s ,ret 0x%X\n", ble_name, ret);\r
\r
Config = {\r
.left = LABEL_X,\r
ret = uapi_get_nv_btaddr((uint8_t *)btaddr, &len);\r
sprintf((char *)btaddr_str, "%02X:%02X:%02X:%02X:%02X:%02X", btaddr[0], btaddr[1], btaddr[2], btaddr[3], btaddr[4], btaddr[5]);\r
\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "get btaddr %s , ret 0x%X\n", btaddr_str, ret);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "get btaddr %s , ret 0x%X\n", btaddr_str, ret);\r
Config = {\r
.left = LABEL_X,\r
.top = WATCH_BT_ADDR_VALUE_TOP,\r
\r
SystemFactoryResetView::SystemFactoryResetView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemFactoryResetView::SystemFactoryResetView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemFactoryResetView::SystemFactoryResetView");\r
g_pSystemFactoryResetView = this;\r
}\r
\r
SystemFactoryResetView::~SystemFactoryResetView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemFactoryResetView::~SystemFactoryResetView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemFactoryResetView::~SystemFactoryResetView");\r
ClearAll();\r
g_pSystemFactoryResetView = nullptr;\r
}\r
uint32_t download_size) {
// 获取文件夹的大小
long long usedSpace = getFolderSize(path.c_str());
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "usedSpace = %lld", usedSpace);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "path_max_size = %lld", path_max_size);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "download_size = %lld", download_size);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "usedSpace = %lld", usedSpace);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "path_max_size = %lld", path_max_size);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "download_size = %lld", download_size);
return (usedSpace + download_size) <= path_max_size;
}
void SystemLogModel::clear_popup_windows_log() {
// 清空当前的日志
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "clear_popup_windows_log");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "clear_popup_windows_log");
popup_windows_log.clear();
std::ofstream outFile(SYSTEM_LOG_FILE_PATH_POPUP_WINDOWS, std::ios::trunc);
\r
SystemPresenter::SystemPresenter()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemPresenter::SystemPresenter");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemPresenter::SystemPresenter");\r
g_pSystemPresenter = this;\r
systemModel = SystemModel::GetInstance();\r
}\r
\r
SystemPresenter::~SystemPresenter()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemPresenter::~SystemPresenter");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemPresenter::~SystemPresenter");\r
g_pSystemPresenter = nullptr;\r
}\r
\r
\r
if (strcmp(view.GetViewId(), SYSTEMABOUTTHEWATCHVIEWID) == 0) // 连续点击进入产测模式\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemAboutTheWatchTitle");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemAboutTheWatchTitle");\r
if (time == 0)\r
{\r
time = event.GetTimeStamp();\r
OnClick_num = 1;\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "222 %d", time);\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "222 %d", time);\r
}\r
else\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "111 %d", event.GetTimeStamp());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "111 %d", event.GetTimeStamp());\r
if (event.GetTimeStamp() - time < 2000)\r
{\r
OnClick_num++;\r
\r
SystemSuperviseView::SystemSuperviseView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemSuperviseView::SystemSuperviseView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemSuperviseView::SystemSuperviseView");\r
g_pSystemSuperviseView = this;\r
}\r
\r
SystemSuperviseView::~SystemSuperviseView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemSuperviseView::~SystemSuperviseView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemSuperviseView::~SystemSuperviseView");\r
ClearAll();\r
g_pSystemSuperviseView = nullptr;\r
}\r
\r
SystemView::SystemView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::SystemView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::SystemView");\r
g_pSystemView = this;\r
}\r
\r
SystemView::~SystemView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::~SystemView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::~SystemView");\r
g_pSystemView = nullptr;\r
}\r
\r
{\r
SystemScrollView[i] = nullptr;\r
}\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ClearAll end!!");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::ClearAll end!!");\r
}\r
\r
UILabelButtonExt *SystemView::SystemViewLabelButtonInit(ButtonConfig &buttonconfig)\r
\r
bool SystemView::CreateSystemViewLabel(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::CreateSystemViewLabel");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::CreateSystemViewLabel");\r
LabelConfig labelConfig = {\r
.left = 83,\r
.top = 50,\r
\r
bool SystemView::CreateSystemViewLabelButton(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::CreateSystemViewLabelButton");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::CreateSystemViewLabelButton");\r
struct ButtonSetup\r
{\r
int y;\r
\r
bool SystemView::CreateSystemScrollView(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::CreateSystemScrollView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::CreateSystemScrollView");\r
SystemScrollView[SYSTEMVIEW] = new UIScrollView();\r
if (SystemScrollView[SYSTEMVIEW] == nullptr)\r
{\r
\r
void SystemView::CreateSystemView(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::CreateSystemView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::CreateSystemView");\r
if (!CreateSystemScrollView() || !CreateSystemViewLabelButton() || !CreateSystemViewLabel())\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::CreateSystemView fail!!");\r
{\r
if (SystemScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemAboutView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemAboutView");\r
p_SystemAboutTheWatchView = new SystemAboutTheWatchView();\r
if (p_SystemAboutTheWatchView == nullptr)\r
{\r
{\r
if (SystemScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemFactoryResetView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemFactoryResetView");\r
p_SystemFactoryResetView = new SystemFactoryResetView();\r
if (p_SystemFactoryResetView == nullptr)\r
{\r
{\r
if (SystemScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemRestartView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemRestartView");\r
p_SystemRestart = new SystemRestart();\r
if (p_SystemRestart == nullptr)\r
{\r
{\r
if (SystemScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemShutdownView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemShutdownView");\r
p_SystemShutdown = new SystemShutdown();\r
if (p_SystemShutdown == nullptr)\r
{\r
{\r
if (SystemScrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemShutdownAnimatorView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemView::ChangeToSystemShutdownAnimatorView");\r
p_ShutDownImageAnimatorView = new ShutDownImageAnimatorView();\r
if (p_ShutDownImageAnimatorView == nullptr)\r
{\r
/*
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:26:25
- * @LastEditors: penglei 1624952103@qq.com
- * @LastEditTime: 2024-07-06 14:25:30
+ * @LastEditors: luozheng 1732036298@qq.com
+ * @LastEditTime: 2024-11-05 14:47:26
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/systemupdate/src/SystemUpdateModel.cpp
*/
#include "systemupdate/include/SystemUpdateModel.h"
falg=false;
}
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"UPDATAREPORT IS OK!\r\n");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"UPDATAREPORT IS OK!\r\n");
}
int start_report_timer(void)
return false;
}
fclose(fp);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "file open success fwpkg_is_ready");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "file open success fwpkg_is_ready");
return true;
}
return false;
char *buf=(char *)malloc(1024);
memset((void*)buf,0,1024);
int ret =fread(buf,1,1024,fp);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s\r\n",buf);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%s\r\n",buf);
if(ret==0)
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "fread %d",ret);
if(code==IOT_CODE_SUCCESS)
{
cJSON *data=cJSON_GetObjectItem(root, "data");
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "");
if(data!=NULL)
{
{
char *uri = cJSON_GetObjectItem(downloadFileVo, "url")->valuestring;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uri %s",uri);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "uri %s",uri);
memset(uri_ota_package,0,UPDATAFWPKGPATHURL);
sprintf((char *)uri_ota_package,"%s",uri);
char* targetVersion=cJSON_GetObjectItem(data,"targetVersion")->valuestring;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "fwpkg_size %d",fwpkg_size);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "fwpkg_size %d",fwpkg_size);
memset(NEW_VISON,0,MSG_LEN);
sprintf((char *)NEW_VISON,"%s",targetVersion);
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "code!=IOT_CODE_SUCCESS");
return false;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s",msg);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "httpc_download_result_ui");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%s",msg);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "httpc_download_result_ui");
cJSON_Delete(root);
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:26:06
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-05-07 17:14:36
+ * @LastEditTime: 2024-11-05 14:48:04
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/systemupdate/src/SystemUpdatePresenter.cpp
*/
if (&view == systemUpdateView->GetUpdateNowButtton()) // 如果点击的是立即更新按钮
{
systemUpdateView->UpdateNowbutton_back();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetUpdateNowButtton");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GetUpdateNowButtton");
}
else if (&view == systemUpdateView->GetTryAgainLaterButton()) // 如果点击的是稍后再说按钮
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetTryAgainLaterButton");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GetTryAgainLaterButton");
NativeAbility::GetInstance().Back();
}
/*
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-05-07 11:25:58
- * @LastEditors: penglei 1624952103@qq.com
- * @LastEditTime: 2024-07-06 14:25:05
+ * @LastEditors: luozheng 1732036298@qq.com
+ * @LastEditTime: 2024-11-05 14:48:11
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/systemupdate/src/SystemUpdateView.cpp
*/
static err_t httpc_download_headers_done_ui(httpc_state_t *connection, void *arg, struct pbuf *hdr, u16_t hdr_len, u32_t content_len)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "httpc_download_headers_done_ui hdrlen %d, file len %d\r\n",hdr_len,content_len);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "httpc_download_headers_done_ui hdrlen %d, file len %d\r\n",hdr_len,content_len);
file_total_len = content_len;
return 0;
}
static err_t httpc_download_file_recv_ui(httpc_state_t *connection, u32_t rx_len,u32_t rx_total_len)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "httpc_download_file_recv_ui recv %d bytes total received %d filelen %d\r\n",rx_len,rx_total_len,file_total_len);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "httpc_download_file_recv_ui recv %d bytes total received %d filelen %d\r\n",rx_len,rx_total_len,file_total_len);
SystemUpdateModel ::GetInstance().download_schedule_value= ((float)rx_total_len /(float)file_total_len) *100;
if(SystemUpdateView::GetInstance())
static void httpc_download_result_ui(void *arg, httpc_result_t httpc_result, u32_t rx_content_len, u32_t srv_res, err_t err)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "httpc_download_result_ui");
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"httpc_download_result , httpc_result_t %d, rx_content_len %d , srv_res %d, err %d\n",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "httpc_download_result_ui");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"httpc_download_result , httpc_result_t %d, rx_content_len %d , srv_res %d, err %d\n",
httpc_result,rx_content_len,srv_res,err);
LCD_auto_timeout(true);
SystemUpdateModel ::GetInstance().OTA_Update_msg_back(OTA_UPDATA_MSG_NEW_VER);
static void httpc_download_FWPKG_result_ui(void *arg, httpc_result_t httpc_result, u32_t rx_content_len, u32_t srv_res, err_t err)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "httpc_download_result_ui");
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"httpc_download_result , httpc_result_t %d, rx_content_len %d , srv_res %d, err %d\n",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "httpc_download_result_ui");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"httpc_download_result , httpc_result_t %d, rx_content_len %d , srv_res %d, err %d\n",
httpc_result,rx_content_len,srv_res,err);
LCD_auto_timeout(true);
static void httpc_download_result_report_data(void *arg, httpc_result_t httpc_result, u32_t rx_content_len, u32_t srv_res, err_t err)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "httpc_download_result_ui");
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"httpc_download_result , httpc_result_t %d, rx_content_len %d , srv_res %d, err %d\n",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "httpc_download_result_ui");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"httpc_download_result , httpc_result_t %d, rx_content_len %d , srv_res %d, err %d\n",
httpc_result,rx_content_len,srv_res,err);
return ;
}
void upgrade_reported_data(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "");
FILE * fp = fopen(UPDATAREPORT,"rb+");
if(fp==NULL)
{
buf = cJSON_PrintUnformatted(dataJSON);
cJSON_Delete(dataJSON);
cJSON_free(buf);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s",buf);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%s",buf);
u16_t buf_len=strlen(buf);
report_data_by_get_file(buf,buf_len);
uint8_t *otadatapath = (uint8_t*)Path;
err_t rett;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"custom_start_ota_download %s to %s\r\n",uri_str,otadatapath);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"custom_start_ota_download %s to %s\r\n",uri_str,otadatapath);
LCD_auto_timeout(false);
FILE * fp= fopen((char *)Path,"rb");
{
fclose(fp);
int ret= remove((char *)Path);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "file remove!!!!!!!!!!!!! %d ",ret);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "file remove!!!!!!!!!!!!! %d ",ret);
}
if(falg==OTA_BUTTON_GET_VISON)
SystemUpdateView::SystemUpdateView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemUpdateView::SystemUpdateView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemUpdateView::SystemUpdateView");
g_pSystemUpdateView = this;
}
SystemUpdateView::~SystemUpdateView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemUpdateView::~SystemUpdateView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemUpdateView::~SystemUpdateView");
ClearAll();
g_pSystemUpdateView = nullptr;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-07 09:21:47
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-02 09:55:52
+ * @LastEditTime: 2024-11-05 14:49:01
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/set_desktop/src/ThemeStyleModel.cpp
*/
if (ThemeStyleMap.find(style) != ThemeStyleMap.end())
{
const char *value = ThemeStyleMap.at(style).c_str();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "value:%s", value);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "value:%s", value);
// 根据映射设置显示样式值
OHOS::ConfigModel::GetInstance()->set_condigData_String(OHOS::ConfigModel::CONFIGMODEL_ITEM_APPLIST_STYLE, value);
}
WatchQRCodeView::WatchQRCodeView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::WatchQRCodeView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::WatchQRCodeView");
g_pWatchQRCodePresenter = this;
}
WatchQRCodeView::~WatchQRCodeView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::~WatchQRCodeView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::~WatchQRCodeView");
g_pWatchQRCodePresenter = nullptr;
}
uint8_t ble_name[30] = {0};
uint32_t ble_name_len = sizeof(ble_name);
errcode_t ret = uapi_get_nv_btname(ble_name, &ble_name_len);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "get btname %s ,ret 0x%X\n", ble_name, ret);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "get btname %s ,ret 0x%X\n", ble_name, ret);
TitleLabel->SetText((char *)ble_name);
TitleLabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME_EN, 30);
TitleLabel->SetRollSpeed(70);
void WatchQRCodeView::OnStart()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::OnStart");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::OnStart");
View<WatchQRCodePresenter>::OnStart();
start_refresh_timer();
WatchQRCodeViewInit();
void WatchQRCodeView::OnSetUpView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::OnSetUpView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::OnSetUpView");
View<WatchQRCodePresenter>::OnSetUpView();
if (WatchQRCodeGroupView == nullptr)
{
void WatchQRCodeView::OnTearDownView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::OnTearDownView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::OnTearDownView");
View<WatchQRCodePresenter>::OnTearDownView();
return;
}
void WatchQRCodeView::OnStop()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::OnStop");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WatchQRCodeView::OnStop");
View<WatchQRCodePresenter>::OnStop();
stop_refresh_timer();
RootView::GetInstance()->RemoveAll();
float voltage = 0.0F;
uint8_t value = 0;
value = battery_get_voltage(&voltage);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "battery_get_voltage = %d", value);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "battery_get_voltage = %d", value);
// 版本号:
std::string temp = get_version_string();
{
if (uapi_get_screen_state() == 0) // 如果在亮屏状态
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uapi_get_screen_state() == 0");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "uapi_get_screen_state() == 0");
if (WatchQRCodeView::GetInstance())
{
WatchQRCodeView::GetInstance()->update_label();
}
else
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uapi_get_screen_state() == 1");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "uapi_get_screen_state() == 1");
WatchQRCodeView::refresh_time -= 2;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d", WatchQRCodeView::refresh_time);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%d", WatchQRCodeView::refresh_time);
if (WatchQRCodeView::refresh_time <= 0) // 息屏状态下超时删除定时器
{
if (WatchQRCodeView::GetInstance())
*/
void WatchQRCodeView::start_refresh_timer(uint32_t interval)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "start_refresh_timer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "start_refresh_timer");
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_timer != nullptr)
{
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-01-29 15:37:44\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-10-12 11:26:06\r
+ * @LastEditTime: 2024-11-05 14:50:42\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/weather/src/FutureWeatherView.cpp\r
*/\r
#include "weather/include/FutureWeatherView.h"\r
\r
FutureWeatherView::FutureWeatherView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FutureWeatherView::FutureWeatherView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FutureWeatherView::FutureWeatherView");\r
SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);\r
SetViewIndex(2); // 视图索引\r
g_pFutureWeatherView = this;\r
\r
FutureWeatherView::~FutureWeatherView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FutureWeatherView::~FutureWeatherView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FutureWeatherView::~FutureWeatherView");\r
ClearAll();\r
g_pFutureWeatherView = nullptr;\r
}\r
\r
bool FutureWeatherView::InitPage(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FutureWeatherView::InitPage");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FutureWeatherView::InitPage");\r
/* -------------------------------------------------------------------------- */\r
Title = new UILabelExt();\r
if (Title == nullptr)\r
// 更新未来七天数据\r
bool FutureWeatherView::UpdateFutureWeatherListData(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FutureWeatherView::UpdateFutureWeatherListData");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FutureWeatherView::UpdateFutureWeatherListData");\r
if (futureWeatherListAdapter != nullptr)\r
{\r
delete futureWeatherListAdapter;\r
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-01-29 15:37:44\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-09-27 20:49:01\r
+ * @LastEditTime: 2024-11-05 14:50:56\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/weather/src/GetWeatherDataErrorView.cpp\r
*/\r
#include "weather/include/GetWeatherDataErrorView.h"\r
\r
GetWeatherDataErrorView::GetWeatherDataErrorView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetWeatherDataErrorView::GetWeatherDataErrorView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GetWeatherDataErrorView::GetWeatherDataErrorView");\r
g_pGetWeatherDataErrorView = this;\r
}\r
\r
GetWeatherDataErrorView::~GetWeatherDataErrorView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetWeatherDataErrorView::~GetWeatherDataErrorView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GetWeatherDataErrorView::~GetWeatherDataErrorView");\r
ClearAll();\r
g_pGetWeatherDataErrorView = nullptr;\r
}\r
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-01-29 15:37:44\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-10-11 18:12:42\r
+ * @LastEditTime: 2024-11-05 14:51:07\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/weather/src/MainWeatherView.cpp\r
*/\r
#include "weather/include/MainWeatherView.h"\r
static MainWeatherView *g_pMainWeatherView{nullptr};\r
MainWeatherView::MainWeatherView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainWeatherView::MainWeatherView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainWeatherView::MainWeatherView");\r
g_pMainWeatherView = this;\r
}\r
\r
MainWeatherView::~MainWeatherView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainWeatherView::~MainWeatherView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainWeatherView::~MainWeatherView");\r
ClearAll();\r
g_pMainWeatherView = nullptr;\r
}\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-01-29 15:37:44
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-11 18:10:13
+ * @LastEditTime: 2024-11-05 14:51:13
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/weather/src/WeatherControlView.cpp
*/
#include "weather/include/WeatherControlView.h"
delete mainWeatherView;
mainWeatherView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherControlView::ClearAll success!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherControlView::ClearAll success!!");
}
}
bool WeatherControlView::CreateMainWeatherView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherControlView::InitView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherControlView::InitView");
if (mainWeatherView == nullptr)
{
mainWeatherView = new MainWeatherView();
\r
WeatherReportView::WeatherReportView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " WeatherReportView::WeatherReportView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, " WeatherReportView::WeatherReportView");\r
SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);\r
SetViewIndex(1);\r
WeatherModel *p_WeatherModel = &WeatherModel::GetInstance();\r
\r
WeatherReportView::~WeatherReportView()\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " WeatherReportView::~WeatherReportView");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, " WeatherReportView::~WeatherReportView");\r
ClearAll();\r
g_pWeatherReportView = nullptr;\r
}\r
\r
void WeatherReportView::DumpWeatherInfo(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherView::DumpWeatherInfo");\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UVData:%s", UVData.c_str());\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WindSpeedData:%s", WindSpeedData.c_str());\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HumidityData:%s", HumidityData.c_str());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherView::DumpWeatherInfo");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "UVData:%s", UVData.c_str());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WindSpeedData:%s", WindSpeedData.c_str());\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "HumidityData:%s", HumidityData.c_str());\r
}\r
\r
// 更新紫外线数据\r
// 更新气象报告数据\r
bool WeatherReportView::UpdateWeatherReportViewData(void)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherView::UpdateWeatherReportViewData");\r
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherView::UpdateWeatherReportViewData");\r
bool success = true;\r
success &= UpdateUVData();\r
success &= UpdateWindSpeedData();\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-12 11:44:04
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-05 10:54:02
+ * @LastEditTime: 2024-11-05 14:51:56
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/weather/src/WeatherView.cpp
*/
#include "weather/include/WeatherView.h"
static WeatherView *g_pWeatherView{nullptr};
WeatherView::WeatherView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherView::WeatherView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherView::WeatherView");
SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);
SetViewIndex(0); // 视图索引
WeatherView::~WeatherView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " WeatherView::~WeatherView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, " WeatherView::~WeatherView");
ClearAll();
g_pWeatherView = nullptr;
}
void WeatherView::DumpWeatherInfo()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherView::DumpWeatherInfo");
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherTime:%s", WeatherTime.c_str());
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherImag:%s", WeatherImag.c_str());
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Temperature:%s", Temperature.c_str());
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherDescription:%s", WeatherDescription.c_str());
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherArea:%s", WeatherArea.c_str());
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MaxandMinTemperature:%s\n", MaxandMinTemperature.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherView::DumpWeatherInfo");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherTime:%s", WeatherTime.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherImag:%s", WeatherImag.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Temperature:%s", Temperature.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherDescription:%s", WeatherDescription.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherArea:%s", WeatherArea.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MaxandMinTemperature:%s\n", MaxandMinTemperature.c_str());
}
// 更新天气界面的当前时间
// 更新天气视图数据
bool WeatherView::UpdateWeatherViewData(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "WeatherView::UpdateWeatherViewData");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherView::UpdateWeatherViewData");
bool success = true;
success &= UpdateWeatherTime();
success &= UpdateWeatherImag();
void StopNotifyCallback()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "StopNotifyCallback");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "StopNotifyCallback");
NotificationManager::GetInstance()->StopNotify();
}
UIViewGroup *CreateAlarmCloseView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CreateAlarmCloseView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CreateAlarmCloseView");
g_closeView = new UIViewGroup();
if (g_closeView == nullptr)
{
{
if (g_closeView != nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FreeAlarmCloseView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FreeAlarmCloseView");
DisableAlarmTimer(AlarmTimerType::NOTIFY_ALARM_CLOSE);
g_closeView->RemoveAll();
delete g_imageClose;
/*创建一个响铃闹钟视图*/
UIViewGroup *CreateAlarmRingView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CreateAlarmRingView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CreateAlarmRingView");
if (g_ringView == nullptr)
{
g_ringView = new UIViewGroup();
RootView::GetInstance()->Remove(g_ringView);
delete g_ringView;
g_ringView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FreeAlarmRingView over!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FreeAlarmRingView over!!");
}
}
// 创建一个闹钟弹窗视图
UIViewGroup *CreateAlarmView(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CreateAlarmView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CreateAlarmView");
AlarmClockModel::GetInstance()->AlarmGetClockNum();
if (g_alarmView == nullptr)
{
RootView::GetInstance()->Remove(g_alarmView);
delete g_alarmView;
g_alarmView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FreeAlarmView over!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FreeAlarmView over!!");
}
}
// return true;
UNUSED(event);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlamNotify ClickListener %s", view.GetViewId());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlamNotify ClickListener %s", view.GetViewId());
if (strcmp(view.GetViewId(), ALARM_IMAGE_STOP) == 0) // 点击停止闹钟响铃
{
// AlarmPopUpPresenter::GetInstance()->CancelAlarmRing();
ScreenTurnOn(10 * 1000); // 亮屏操作 10秒关闭
/* -------------------------------------------------------------------------- */
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Create DrinkReminderView succeed!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Create DrinkReminderView succeed!!");
}
NotificationManager::GetInstance()->RegisterNotifyCleanupFunction(FreeDrinkReminderView);
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-03-25 17:33:47
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-22 10:23:38
+ * @LastEditTime: 2024-11-05 14:55:10
* @FilePath: /FD230/code/sdk/application/wearable/service/msg_center/src/notify/findwatch_notification.cpp
* @details:实现查找手表的功能一般需要手表和智能手机之间的配合,通常是通过手机上的应用(App)或其他设备发送指令给手表,触发手表的查找功能。
* 以下是基本的实现步骤:
int FindWatchViewEventListener::FindWatchRingPlayerInit(const char *path)
{
// 本地播放文件路径和状态
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RingPlayerInit start!,%s", path);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RingPlayerInit start!,%s", path);
uri = path;
// 创建 AM
playerCtr = std::make_shared<Player>();
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "playerCallback new fail");
return OHOS_FAILURE;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RingPlayerInit end!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RingPlayerInit end!");
return OHOS_SUCCESS;
}
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "source new fail");
return OHOS_FAILURE;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FindWatchRing Player url:%s", uri.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FindWatchRing Player url:%s", uri.c_str());
playerCtr->SetSource(*source);
/* --------------------------------- 4.配置播放器 -------------------------------- */
playerCtr->SetAudioStreamType(AUDIO_STREAM_NOTIFICATION_SYSTEM); // 设置播放器的音频流类型,支持混音
/*开启定时器*/
void FindWatchViewEventListener::FindWatch_StartTimer(int interval)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "FindWatchViewEventListener::FindWatch_StartTimer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FindWatchViewEventListener::FindWatch_StartTimer");
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_timer != nullptr)
{
/* --------------------- FindWatchRingPlayerCallbackImpl -------------------- */
void FindWatchRingPlayerCallbackImpl::OnPlaybackComplete(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnPlaybackComplete");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnPlaybackComplete");
// FindWatchViewEventListener::GetInstance().PopInterCancelMusic();
// const char *path = FindWatchViewEventListener::GetInstance().GetPath();
// FindWatchViewEventListener::GetInstance().PopInterPlayMusic((path != nullptr) ? path : nullptr);
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-08-17 16:44:20
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-11-02 14:26:15
+ * @LastEditTime: 2024-11-05 14:55:35
* @FilePath: /FD230/code/sdk/application/wearable/service/msg_center/src/notify/motion_recognition_notification.cpp
*/
#include "notification_manager.h"
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MotionRecognitionViewEventListener::OnRelease");
UNUSED(event);
std::string viewId = view.GetViewId();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s onclick", viewId.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "%s onclick", viewId.c_str());
if (viewId == MOTION_RECOGNITION_IGNORE_BUTTONVIEWID)
{
NotificationManager::GetInstance()->StopNotify();
labelext->SetTextId(id);
std::string text = labelext->GetText();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdateLabel:%s->%s\r\n", text.c_str(), newText.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "UpdateLabel:%s->%s\r\n", text.c_str(), newText.c_str());
// 找到标志"XX"在字符串中的位置
size_t pos = text.find("XX");
{
// 替换标志"XX"为更新字符串
text.replace(pos, 2, newText); // 2 是标志"XX"的长度
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "newText:%s\r\n", text.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "newText:%s\r\n", text.c_str());
label->SetText(text.c_str());
}
else
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "找不到变量标志位XX,请注意是否已经被修改!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "找不到变量标志位XX,请注意是否已经被修改!");
}
delete labelext;
RootView::GetInstance()->Remove(MotionRecognitionGroupView);
delete MotionRecognitionGroupView;
MotionRecognitionGroupView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Free MotionRecognitionView succeed!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Free MotionRecognitionView succeed!!");
ScreenTurnOff();
}
return;
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-03-22 10:04:36
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-12 11:31:08
+ * @LastEditTime: 2024-11-05 14:57:06
* @FilePath: /FD230/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp
*/
#include "notification_manager.h"
PairingViewEventListener::PairingViewEventListener()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::PairingViewEventListener");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::PairingViewEventListener");
}
PairingViewEventListener::~PairingViewEventListener()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::~PairingViewEventListener");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::~PairingViewEventListener");
}
PairingViewEventListener &PairingViewEventListener::GetInstance(void)
bool PairingViewEventListener::OnClick(OHOS::UIView &view, const OHOS::ClickEvent &event)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::OnClick");
UNUSED(event);
if (&view == DeviceBindingButtonCancel) // 设备绑定取消按钮
{
PairingViewEventListener::GetInstance().Pairing_StopTimer();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceBindingButtonCancel OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceBindingButtonCancel OnClick");
// 终止当前的绑定流程并关闭相关的通知界面。
#ifdef SUPPORT_BLE_SERVICE
comfirmPaire(0);
}
else if (&view == DeviceBindingButtonOK) // 设备绑定确认按钮
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceBindingButtonOK OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceBindingButtonOK OnClick");
/*
* 可能会执行的绑定流程:
* 1.启动绑定过程.
}
else if (&view == DeviceUnBindingButtonCancel) // 设备解绑取消按钮
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceUnBindingButtonCancel OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceUnBindingButtonCancel OnClick");
// 不想执行解绑动作,并关闭解绑的通知界面。
#ifdef SUPPORT_BLE_SERVICE
cleanUnbindInfor(0);
}
else if (&view == DeviceUnBindingButtonOK) // 设备解绑确认按钮
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceUnBindingButtonOK OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceUnBindingButtonOK OnClick");
// 切换到再次确认解绑弹窗
if (DeviceUnbindingRequestGroupView == nullptr)
{
}
else if (&view == DeviceUnbindingRequestButtonOK) // 设备解除绑定请求(与新设备连接)确认
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceUnbindingRequestButtonOK OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceUnbindingRequestButtonOK OnClick");
if (p_ShutDownImageAnimatorView == nullptr)
{
p_ShutDownImageAnimatorView = new ShutDownImageAnimatorView();
}
else if (&view == DeviceUnbindingRequestButtonCancel) // 设备解除绑定请求(与新设备连接)取消
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceUnbindingRequestButtonCancel OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener:: DeviceUnbindingRequestButtonCancel OnClick");
DeviceUnBindingViewIsVisible(true);
}
return true;
*/
UIViewGroup *CreateDeviceBindingView(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceBindingView]");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceBindingView]");
/* ---------------------------- DeviceBindingView --------------------------- */
if (DeviceBindingView == nullptr)
{
*/
UIViewGroup *CreateDeviceUnBindingView(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView]");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView]");
/* ---------------------------- DeviceUnBindingView --------------------------- */
if (DeviceUnBindingView == nullptr)
{
DeviceUnBindingName->SetTextId(STR_EQUIPMENT_UNTYING_NOTE); // XX想要与你进行解绑
char *devanme = PairingViewEventListener::GetInstance().GetDeviceName();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] DeviceUnBindingName devanme :%s", devanme);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] DeviceUnBindingName devanme :%s", devanme);
if (strlen(devanme))
{
DeviceUnBindingScrollView->Add(DeviceUnBindingButtonOK);
DeviceUnBindingView->Add(DeviceUnBindingScrollView);
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] DeviceUnBindingView new success!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView] DeviceUnBindingView new success!!");
/* -------------------------------------------------------------------------- */
if (true != OHOS::ConfigModel::GetInstance()->GetDnotdisturb() && (!uapi_sleep_mode_flag_get()))
*/
UIViewGroup *CreateDeviceUnbindingRequestGroupView(void)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView]");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[CreateDeviceUnBindingView]");
if (nullptr == DeviceUnbindingRequestGroupView)
{
RootView::GetInstance()->Remove(DeviceBindingView);
delete DeviceBindingView;
DeviceBindingView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FreeDeviceBindingView] success");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[FreeDeviceBindingView] success");
ScreenTurnOff();
}
}
delete DeviceUnBindingView;
DeviceUnBindingView = nullptr;
FreeDeviceUnbindingRequestGroupView();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FreeDeviceUnBindingView] success");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[FreeDeviceUnBindingView] success");
ScreenTurnOff();
}
}
RootView::GetInstance()->Remove(DeviceUnbindingRequestGroupView);
delete DeviceUnbindingRequestGroupView;
DeviceUnbindingRequestGroupView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FreeDeviceUnbindingRequestGroupView] success");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[FreeDeviceUnbindingRequestGroupView] success");
}
if (p_ShutDownImageAnimatorView != nullptr)
{
/*定时器到期时的处理*/
static void Pairing_TimerCallbackProc(int data)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Pairing_TimerCallbackProc");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Pairing_TimerCallbackProc");
NotificationManager::GetInstance()->StopNotify();
}
*/
void PairingViewEventListener::Pairing_StartTimer(uint32_t interval)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::Pairing_StartTimer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::Pairing_StartTimer");
/* -------------------------- 1.检查定时器是否已经存在,如果存在则返回 ------------------------- */
if (g_timer != NULL)
{
// 检查定时器是否存在
if (g_timer != NULL)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::Pairing_StopTimer");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "PairingViewEventListener::Pairing_StopTimer");
osTimerStop(g_timer);
// 删除定时器并置为 NULL
osStatus_t ret = osTimerDelete(g_timer);
SedentaryReminderViewEventListener::SedentaryReminderViewEventListener()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SedentaryReminderViewEventListener::SedentaryReminderViewEventListener");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SedentaryReminderViewEventListener::SedentaryReminderViewEventListener");
}
SedentaryReminderViewEventListener::~SedentaryReminderViewEventListener()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SedentaryReminderViewEventListener::~SedentaryReminderViewEventListener");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SedentaryReminderViewEventListener::~SedentaryReminderViewEventListener");
}
SedentaryReminderViewEventListener &SedentaryReminderViewEventListener::GetInstance()
labelext->SetTextId(id);
std::string text = labelext->GetText();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdateLabel:%s->%s\r\n", text.c_str(), newText.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "UpdateLabel:%s->%s\r\n", text.c_str(), newText.c_str());
// 找到标志"XX"在字符串中的位置
size_t pos = text.find("XX");
{
// 替换标志"XX"为更新字符串
text.replace(pos, 2, newText); // 2 是标志"XX"的长度
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "newText:%s\r\n", text.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "newText:%s\r\n", text.c_str());
label->SetText(text.c_str());
}
else
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "找不到变量标志位XX,请注意是否已经被修改!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "找不到变量标志位XX,请注意是否已经被修改!");
}
delete labelext;
RootView::GetInstance()->Remove(SedentaryReminderGroupView);
delete SedentaryReminderGroupView;
SedentaryReminderGroupView = nullptr;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Free SedentaryReminderView succeed!!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Free SedentaryReminderView succeed!!");
ScreenTurnOff();
}
return;