手机设置>>模式设置 默认单卡
时间:10-02
整理:3721RD
点击:
MMI_task()
{
case MSG_ID_MMI_EQ_power_ON_IND:
{
switch (p->poweron_mode)
{
case POWER_ON_keypad:
goto code;
break;
}
break;
}
}
code:
if (p->flightmode_state == 1)
{
g_pwr_context.PowerOnNWStatus |= MMI_NW_STATUS_NETWORK_FLAG;
g_pwr_context_2.PowerOnNWStatus |= MMI_NW_STATUS_NETWORK_FLAG;
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_FLIGHT);
}
else if (p->dual_SIM_mode_setting == 0)
{
g_pwr_context_2.PowerOnNWStatus |= MMI_NW_STATUS_NETWORK_FLAG;
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_CARD1);
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SIGNAL_STRENGTH, IMG_SI_MASTER_SIGNAL_STRENGTH);
}
else if (p->dual_sim_mode_setting == 1)
{
g_pwr_context.PowerOnNWStatus |= MMI_NW_STATUS_NETWORK_FLAG;
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_CARD2);
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SLAVE_SIGNAL_STRENGTH, IMG_SI_SLAVE_SIGNAL_STRENGTH);
#ifdef __MMI_SUBLCD__
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SUBLCD_SLAVE_SIGNAL_STRENGTH, IMG_SLSI_SIGNAL_STRENGTH);
#endif
}
else
{
// 设置开机默认手机模式
#ifdef __CTA_DETECT__
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_CARD1);
#else // __CTA_DETECT__
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_DUALCARD);
#endif // __CTA_DETECT__
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SIGNAL_STRENGTH, IMG_SI_MASTER_SIGNAL_STRENGTH);
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SLAVE_SIGNAL_STRENGTH, IMG_SI_SLAVE_SIGNAL_STRENGTH);
#ifdef __MMI_SUBLCD__
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SUBLCD_SLAVE_SIGNAL_STRENGTH, IMG_SLSI_SIGNAL_STRENGTH);
#endif
}
{
case MSG_ID_MMI_EQ_power_ON_IND:
{
switch (p->poweron_mode)
{
case POWER_ON_keypad:
goto code;
break;
}
break;
}
}
code:
if (p->flightmode_state == 1)
{
g_pwr_context.PowerOnNWStatus |= MMI_NW_STATUS_NETWORK_FLAG;
g_pwr_context_2.PowerOnNWStatus |= MMI_NW_STATUS_NETWORK_FLAG;
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_FLIGHT);
}
else if (p->dual_SIM_mode_setting == 0)
{
g_pwr_context_2.PowerOnNWStatus |= MMI_NW_STATUS_NETWORK_FLAG;
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_CARD1);
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SIGNAL_STRENGTH, IMG_SI_MASTER_SIGNAL_STRENGTH);
}
else if (p->dual_sim_mode_setting == 1)
{
g_pwr_context.PowerOnNWStatus |= MMI_NW_STATUS_NETWORK_FLAG;
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_CARD2);
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SLAVE_SIGNAL_STRENGTH, IMG_SI_SLAVE_SIGNAL_STRENGTH);
#ifdef __MMI_SUBLCD__
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SUBLCD_SLAVE_SIGNAL_STRENGTH, IMG_SLSI_SIGNAL_STRENGTH);
#endif
}
else
{
// 设置开机默认手机模式
#ifdef __CTA_DETECT__
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_CARD1);
#else // __CTA_DETECT__
MTPNP_AD_Set_Startup_Mode(MTPNP_AD_NVRAM_DUALCARD);
#endif // __CTA_DETECT__
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SIGNAL_STRENGTH, IMG_SI_MASTER_SIGNAL_STRENGTH);
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SLAVE_SIGNAL_STRENGTH, IMG_SI_SLAVE_SIGNAL_STRENGTH);
#ifdef __MMI_SUBLCD__
MTPNP_PFAL_Replace_StatusICON(STATUS_ICON_SUBLCD_SLAVE_SIGNAL_STRENGTH, IMG_SLSI_SIGNAL_STRENGTH);
#endif
}