Esempio n. 1
0
static void i51ExitSreen (void)
{

	//	author : Miki
	//	since : 2011.8.30
	// 	(C) PKIG Tech. Co., Ltd.
	
    i51AdeOsLog( i51_LOG_SC, "PORT : ExitSreen S, Front app run = %d", l_InI51 );
    if(l_InI51)//comforn no by call after release front end
        i51KernelSendEvent(i51_MSG_PAUSE, 0);

    gui_start_timer( 1, i51CheckPlatQuit );  
    
    #ifdef __MTK_TARGET__
    #ifdef __MMI_AUDIO_PLAYER__
    mdi_audio_resume_background_play();
    #endif
    #endif  

#ifdef __MMI_TOUCH_SCREEN__
    mmi_pen_config_sampling_period(MMI_PEN_SAMPLING_PERIOD_1, MMI_PEN_SAMPLING_PERIOD_2);
#endif

    i51AdeOsLog( i51_LOG_SC, "PORT : ExitSreen , E");
}
mmi_ret DeInitSpecialMode(mmi_event_struct *p)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (gCurrentMode == ENGINEERING_MODE)
    {
        gCurrentMode = NORMAL_MODE;
        mdi_audio_resume_background_play();
        srv_gpio_play_pattern((srv_gpio_pattern_id_enum)srv_led_pattern_get_bg_pattern(), SRV_GPIO_PATN_PLAY_START);
    }
    
    return MMI_RET_OK;
}
Esempio n. 3
0
void SFApp_Leave(void)
{
	ISFApplication*pApp=SFGetApp();
	if(!g_kernal.bAppRunning)
	{
		//destroy
		pApp->pfnEvtHandler(pApp,EVT_APP_DESTROY,0,0);
		SFApp_SetFirstTime(SFTrue);

		SFSystem_Finalize();
	}
	else
	{
		//pause
		pApp->pfnEvtHandler(pApp,EVT_APP_PAUSE,0,0);
		//gdi_layer_blt_previous(0, 0, UI_device_width-1, UI_device_height-1);
	}

	SFApp_FreeGDI();
		
	/* resume background audio */
	mdi_audio_resume_background_play();
}
Esempio n. 4
0
/*****************************************************************************
 * FUNCTION
 *  mmi_sample_3dgame_exit_app_screen
 * DESCRIPTION
 *  exit dev3dgame screen, restore to normal mmi environment
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_sample_3dgame_exit_app_screen(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    /* restore timer to default accuracy */
    UI_enable_alignment_timers();

#ifndef WIN32
    /* disable faster key handling */
    mmi_frm_set_key_handle_in_high_frequency(MMI_FALSE);
#endif /* WIN32 */ 

    /* re-enable the keypad tone */
    mmi_frm_kbd_set_tone_state(MMI_KEY_TONE_ENABLED);

    /* stop all playing audio and vibration */
    mdi_audio_stop_string();
    VibratorOff();

    /* resume background play */
    mdi_audio_resume_background_play();

#ifdef __MMI_SUBLCD__
    /* resume sublcd */
    GoBackSubLCDHistory();
#endif /* __MMI_SUBLCD__ */ 

    /* let MMI can sleep */
    TurnOffBacklight();

}