// #include "PhoneAGService.h"
-#ifdef FD230_650
#include "dial_sos_c.h"
-#endif
#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
set_call_hungup_flag(0);
#endif
- #ifdef FD230_650
set_TransCallToMobilePhone_falg(0);
- #endif
OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop();
// If the call is handling in the notification, the slice is not switched
//if (!CallerLogModel::GetInstance()->GetNotifyFlag())
- // #ifdef FD230_650
if(CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourceCat1)
{
#ifdef SUPPORT_CAT1_HFP_AG_SERV
}
}
- #ifdef FD230_650
if (GetCurrCallNum() == 0) {
g_phoneStatus = PHONE_SINGLE_STATUS;
sos_falg_add();
}
- #endif
}
static void WatchFinishHandle(void)
}
g_phoneStatus = PHONE_SINGLE_STATUS;
- #ifdef FD230_650
sos_falg_clean();
- #endif
}
void CAT1_ChangeStatusScreendisplay(int lastStatus)
DisshakeTimer();
- #ifdef FD230_650
if(phoneCall->operate==OPERATE_INCOMING)
{
uapi_SetSpeaker_Mute(true);
uapi_SetSpeaker_Mute(false);
//OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop();
}
- #endif
if (phoneCall->operate == OPERATE_WATCH_FINISH && GetCurrCallNum() == 0) {
g_callOperate = OPERATE_WATCH_FINISH;
if(g_isCall==HFP_HF_CALL_STATE_INCOMING)
{
- #ifdef FD230_650
uapi_SetSpeaker_Mute(true);
- #endif
}
else
{
- #ifdef FD230_650
uapi_SetSpeaker_Mute(false);
- #endif
OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop();
}
{
callStatus = status;
if(status){
- #ifdef FD230_650
sos_falg_clean();
- #endif
}
}
void CallingView::text_updata_buf(const char *buf)
{
- #ifdef FD230_650
if (CallerLogModel::GetInstance()->GetCallSource() == CallerLogModel::CallSourceCat1){
SendDtfmStrNumberToCat1(buf[0]);
}
else{
uapi_hfp_send_DTMF_CODE(buf[0]);
}
- #endif
char new_buf[16]={0};
const char*text_buf=label_number->GetText();
#include "NativeAbility.h"
-// #ifdef FD230_650
#include "dial_sos_c.h"
-// #endif
#include "soundandvibration/include/SoundAndVibrationVolumeSettingC.h"
namespace OHOS {
bool MainCallingPresenter::OnClick(UIView& view, const ClickEvent& event)
{
- // #ifdef FD230_650
UNUSED(event);
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s",view.GetViewId());
if (!InitPointerValue()) {
button_calllog_status.SetTextId(STR_DIALED_CALLS);
button_calllog_status.SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff));
}
- #ifdef FD230_650
call_log_type.SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE);
- #endif
}
void CallLOGListitemView::SetUpChild()
bool DialingMethodPresenter::OnClick(UIView &view, const ClickEvent &event)
{
-// #ifdef FD230_650
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DialingMethodPresenter::OnClick");
std::string curViewId = view.GetViewId();
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s OnClick", curViewId.c_str());
button_calllog_status[i]->SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff));
}
- #ifdef FD230_650
call_log_type[i]->SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE);
- #endif
}
if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGWATCHSIM)\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DIALINGMETHOD_USINGWATCHSIM");\r
- // #ifdef FD230_650\r
cat1_UI_call_dial((char *)phoneNumber.c_str());\r
- // #endif\r
\r
}\r
else if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGPHONE)\r
#include "rebootandshutdown/include/RebootAndShutdownView.h"
#include "rebootandshutdown/include/RebootAndShutdownModel.h"
-#ifdef FD230_650
#include "dial_sos_c.h"
-#endif
#include "vibrator_service.h"
}
else if (strcmp(view.GetViewId(), SOS_BUTTON_VIEWID) == 0)
{
- #ifdef FD230_650
start_SOS_phone_dail();
- #endif
}
return true;
#include "kv_store.h"
#include "kvstore_env.h"
-#ifdef FD230_650
#include "player/include/PlayersModelC.h"
+#ifdef FD230_650
#include "message/include/MessageModel.h"
#include "../../../../../application/wearable/fd230/nativeapp/nativeui/sleepmode/include/SleepModeModel.h"
#endif
// stop play music
void mmi_stop_music_play(void)
{
- #ifdef FD230_650
stopPlayingMusic();
- #endif
}