#define APP_LIST_PATH "/user/res/applist_icon"
#define APP_HEARET_ICON_PATH "/user/res/heart_chart/hearticon"//心率动画
+#ifdef SINGLE_USER_PARTITION
+ #define RING_MUSIC "/user/music/ring/ring.mp3"
+#else
+ #define RING_MUSIC "/music/ring/ring.mp3"
+#endif
+
#define MIN_BRIGHTNESS 51 /*最低亮度*/
#define MAX_BRIGHTNESS 255 /*最高亮度*/
#define MAX_BRIGHTNESS_HALF 127 /*最高亮度的一半*/
printf("receive %d bytes(%s)\n", len, data);
if(strstr((char*)data,"vcard-listing.dtd"))
{
- char * name_str=strstr((char*)data,"name");
- char *name_=strtok(name_str,"\"");
- name_=strtok(NULL,"\"");
- OHOS:: CallerLogModel::GetInstance()->Setphonebname(name_,strlen(name_));
+ if(strstr((char*)data,"name"))
+ {
+ char * name_str=strstr((char*)data,"name");
+ char *name_=strtok(name_str,"\"");
+ name_=strtok(NULL,"\"");
+ OHOS:: CallerLogModel::GetInstance()->Setphonebname(name_,strlen(name_));
+ }
+
}
return;
CallerLogModel::GetInstance()->Setphonebname("0",0);
CallerLogModel::GetInstance()->SetCallDial(CallerLogModel::HFP_PHONE_DIAL);
CallerLogModel::GetInstance()->set_RejectIncomingCall_falg(0);
- CallerLogModel::GetInstance()->SetCallSource(CallerLogModel::callleisure);
NotificationManager::GetInstance()->SetWatchCallStatus(false);
CallerLogModel::GetInstance()->SetCallSource(CallerLogModel::CallSource::CallSourcePhone);
DisshakeTimer();
}
if (GetCurrCallNum() == 0) {
g_phoneStatus = PHONE_SINGLE_STATUS;
-
+ StatusReset();
set_TransCallToMobilePhone_falg(0);
}
+
+
if(get_falg_SOS())
{
sos_falg_add();
#include "gfx_utils/mem_api.h"
#include "ConfigModelC.h"
#include "cat1_ctl.h"
+#include "UiConfig.h"
#ifdef __cplusplus
extern "C" {
#endif
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[PlayWatchRing] start");
if(true != OHOS::ConfigModel::GetInstance()->GetDnotdisturb() && (!uapi_sleep_mode_flag_get()) && true != OHOS::ConfigModel::GetInstance()->GetSilentMode())
{
- #ifdef SINGLE_USER_PARTITION
- OHOS::AlarmClockModel::GetInstance()->testPlayerStart("/user/music/ring/ring.mp3");
- #else
- OHOS::AlarmClockModel::GetInstance()->testPlayerStart("/music/ring/ring.mp3");
- g_audioState = AUDIO_ACT_INTERRUPT_WATCH_RING;
- #endif
+
+ OHOS::AlarmClockModel::GetInstance()->testPlayerStart(RING_MUSIC);
+ g_audioState = AUDIO_ACT_INTERRUPT_WATCH_RING;
}
}
#include "system/include/SystemLogModelC.h"
#include "cat1_ctl.h"
#include "ui_service.h"
+
+#include "UiConfig.h"
+
#define DIALDATASET 1
//#include "Systemupgrade.h"
namespace OHOS {
if(true != ConfigModel::GetInstance()->GetDnotdisturb() && (!uapi_sleep_mode_flag_get()) && true != ConfigModel::GetInstance()->GetSilentMode())
{
-#ifdef SINGLE_USER_PARTITION
- AlarmClockModel::GetInstance()->testPlayerStart("/user/music/ring/ring.mp3");
-#else
- AlarmClockModel::GetInstance()->testPlayerStart("/music/ring/ring.mp3");
-#endif
+ AlarmClockModel::GetInstance()->testPlayerStart(RING_MUSIC);
}
CallerLogModel::GetInstance()->SetoperateNumber(call_data,strlen(call_data));