コード例 #1
0
ファイル: CSBframework.c プロジェクト: 12019/mtktest
/*************************************************************
**	FUNCTION NAME		: csb_frm_start_view_auto
**
** 	PURPOSE				: Enrty function for CSB Start View 
**						  in Auto Mode
**
**	INPUT PARAMETERS	: nil
**
**	OUTPUT PARAMETERS	: void
**
**	RETURNS				: void
**
**	REMARKS			: 
***************************************************************/
void csb_frm_start_view_auto(void)
{
	/* Stop the time if started */
	StopTimer(CSB_AUTO_MODE_TIMER_ID);

	if(g_CSB_struct.screen_counter < TOTAL_CATEGORY_SCREENS)
	{

		/* ASSERT if entryFunPtr is NULL -- should never happen */
		ASSERT(g_CSB_struct.pscreen_info[g_CSB_struct.screen_counter].entryFuncPtr != NULL);
		/* Call the entry function pointer */
		g_CSB_struct.pscreen_info[g_CSB_struct.screen_counter++].entryFuncPtr();
		SetKeyHandler(GoBackToMainMenu, KEY_END, KEY_EVENT_DOWN);
		SetKeyHandler(csb_show_current_screen_ID, KEY_SEND, KEY_EVENT_DOWN);
		/* Delete the history nodes added after every call */
		DeleteUptoScrID(SCR_ID_CSB_VIEW_SCR_ID);
		/* Start the timer */
		StartTimer(CSB_AUTO_MODE_TIMER_ID, g_CSB_struct.csb_settings.timer_value, csb_frm_start_view_auto);
	}
	else
	{
		g_CSB_struct.screen_counter = 0;
		DeleteUptoScrID(SCR_ID_CSB_VIEW_SCR_ID);
		GoBackHistory();
		/* Backlight was turned ON permanently while entering AUTO mode, turn ON it temporary now */
		TurnOffBacklight();

		/* Release the EMS buffer */
		ReleaseEMSEditBuffer();
	}
}
コード例 #2
0
ファイル: CSBframework.c プロジェクト: 12019/mtktest
/*****************************************************************************
 * FUNCTION
 *  csb_frm_testtool_callback
 * DESCRIPTION
 *  Callback to take snap shots one by one (non-blocking)
 * PARAMETERS
 *  void
 * RETURNS
 *  U16
 *****************************************************************************/
void csb_frm_testtool_callback(void)
{
    /*----------------------------------------------------------*/
    /* Local Variables                                          */
    /*----------------------------------------------------------*/
	BOOL error_code = TRUE;

    /*----------------------------------------------------------*/
    /* Code Body                                                */
    /*----------------------------------------------------------*/

	StopTimer(CSB_AUTO_MODE_TIMER_ID);

    /* Lock the buffer as we dont want to display the category screens */
    gdi_layer_lock_frame_buffer();

    /* ASSERT if the entryFuncPtr is NULL */
    ASSERT(g_CSB_struct.pscreen_info[g_csb_index].entryFuncPtr != NULL);
    /* Call the category as the buffer must built before calling csb_frm_save_screen_shot */
    g_CSB_struct.pscreen_info[g_csb_index].entryFuncPtr();

    /* Unlock the buffer as it is already built */
    gdi_layer_unlock_frame_buffer();

    /* API to create the file path and save the LAYER contents in JPEG format */
    error_code = (BOOL)csb_frm_save_screen_shot((U32)g_csb_index);

    if (error_code == FALSE)
    {
        /* Clear the key events */
        ClearKeyEvents();
        DisplayPopup((PU8) GetString(STR_ID_CSB_JPEG_FAIL_TEXT), IMG_GLOBAL_ERROR, 1, CSB_NOTIFY_DURATION, 0);
        DeleteUptoScrID(SCR_ID_CSB_TESTTOOL_SCR_ID);
		return;
    }

	/* Show processing screen till all the screenshots are taken */
    TestToolProcessingScr(STR_ID_CSB_PROCESSING_TEXT);

    g_csb_index++;

    /* Delete the screens from History, as all the screens are getting added in History */
    DeleteUptoScrID(SCR_ID_CSB_TESTTOOL_SCR_ID);
	DeleteScreenIfPresent(SCR_ID_CSB_DUMMY_SCR_ID);

	if(g_csb_index < TOTAL_CATEGORY_SCREENS)
	{
		EntryCSBTestToolRun();
	}
	else
	{
		g_csb_index = 0;
		/* Once all the category screenshots are taken, show the DONE pop-up */
		DisplayPopup((PU8) GetString(STR_ID_CSB_TESTTOOL_PASS), IMG_GLOBAL_ACTIVATED, 1, CSB_NOTIFY_DURATION, 0);
		DeleteUptoScrID(SCR_ID_CSB_TESTTOOL_SCR_ID);
	}
	
}
コード例 #3
0
/*****************************************************************************
 * FUNCTION
 *  mmi_vrsdscut_del_tag
 * DESCRIPTION
 *  This function is just for template.
 * PARAMETERS
 *  void
 *  a(?)        [IN/OUT]        First variable, used as returns
 *  b(?)        [IN]            Second variable
 * RETURNS
 *  the description of return value, if any.(?)
 *****************************************************************************/
void mmi_vrsdscut_del_tag(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U16 tag_id;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if ((tag_id = mmi_vrsd_util_get_tag_id(MMI_VRSD_APP_SHORTCUT, g_vrsdscut_highlight)) != 0xffff)
    {
        mmi_vrsd_del_tag_req(tag_id);
    }
    else
    {
    	//failure
		mmi_display_popup(
			(UI_string_type)GetString(STR_GLOBAL_EMPTY),
			MMI_EVENT_FAILURE);
       
    }

    DeleteUptoScrID(SCR_ID_VRSD_SHORTCUT_LIST);
}
コード例 #4
0
ファイル: SFApi.c プロジェクト: 12019/mtktest
void mmi_game_prof_save_data_acct(void)
{
#if 0 
	DeleteUptoScrID(SCR_ID_SNOWFISH_APP);
	GoBackHistory();
#endif/*remove end*/
}
コード例 #5
0
ファイル: jmms_storeutils.c プロジェクト: jprothwell/sc-fix
void jmms_GoBactToMainScreen()
{	
	MESSAGE_LIST 	*pMsglist = JC_NULL ;
	JC_UINT32		uiCount = 0 ;
	JC_RETCODE 		rCode ;
	RETRIEVE_FILTERS	retFilter ={0,};	

	rCode = jmms_SetActiveFolder (g_pstJMmsAppInfo->eCurrentFolderID) ;
	if (JC_OK == rCode)
	{
		retFilter.bIsBufRequired = E_FALSE;
		retFilter.eRetrieve = E_RETRIEVE_BY_INDEX;
		retFilter.uiStartIndex = 1;
		retFilter.uiNumMessage = 0;
		rCode = jmms_GetMsgList (g_pstJMmsAppInfo->hMsgStore, &pMsglist, &retFilter) ;
		if (JC_OK == rCode && pMsglist)
		{
			while (pMsglist)
			{			
				uiCount++ ;
				pMsglist = pMsglist->pNext ;
			}
		}
	}
	mmi_trace(TRUE,"JDD_LOG: Func: %s uiCount=%d", __FUNCTION__, uiCount);
	if (0 == uiCount)
	{
		DeleteUptoScrID(SCR_ID_MMS_MAIN_SCREEN);
	}
	else
	{
		DeleteNHistory(2);
	}
}
コード例 #6
0
ファイル: CallFixedDialList.c プロジェクト: jprothwell/sc-fix
/**************************************************************

	FUNCTION NAME		: SECSETDelFdlReq(void)
 
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void SECSETDelFdlReq()
{
	MSG_PHB_DELETE_ENTRY_REQ_STRUCT *pMsgDelEntry = NULL ;
	MYQUEUE Message;
	module_type dest_mod_id = MOD_L4C + gSecSetupMenuSimID;

	EntrySECSETFDNBDNDeleting();
	pMsgDelEntry = (MSG_PHB_DELETE_ENTRY_REQ_STRUCT*) OslConstructDataPtr(sizeof(MSG_PHB_DELETE_ENTRY_REQ_STRUCT));
	pMsgDelEntry->no_data = 1;
	pMsgDelEntry->del_all = MMI_FALSE; //No 
	pMsgDelEntry->index = gpFDLBDLContext->FDLBDLEntries[gpFDLBDLContext->HighlightedFDN].index;

	pMsgDelEntry->type = MMI_PHB_FDN ; //PHB_PHONEBOOK
	Message.oslSrcId=MOD_MMI;
	Message.oslDestId=dest_mod_id;
	Message.oslMsgId = PRT_PHB_DEL_ENTRY_REQ;
	Message.oslDataPtr = (oslParaType *)pMsgDelEntry;
	Message.oslPeerBuffPtr= NULL;

	DeleteUptoScrID(SCR_ID_SECSET_FDN_LIST);
	DeleteScreenIfPresent(SCR_ID_SECSET_FDN_LIST);
	ExitSECSETFDNListReload();	
	SetProtocolEventHandlerExt(SECSETDelFdlRsp,PRT_PHB_DEL_ENTRY_RSP,gSecSetupMenuSimID);
	
	OslMsgSendExtQueue(&Message);

}
コード例 #7
0
/*****************************************************************************
 * FUNCTION
 *  mmi_vrsdscut_train_result_callback
 * DESCRIPTION
 *  This function is just for template.
 * PARAMETERS
 *  result      [IN]            
 *  a(?)        [IN/OUT]        First variable, used as returns
 *  b(?)        [IN]            Second variable
 * RETURNS
 *  the description of return value, if any.(?)
 *****************************************************************************/
void mmi_vrsdscut_train_result_callback(U8 result)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (result == MMI_VRSD_TRN_SUCCESS)
    {
    	//success
	mmi_display_popup(
			(UI_string_type)GetString(STR_GLOBAL_DONE),
			MMI_EVENT_SUCCESS);
       
    }
    else
    {
    	//failure
		mmi_display_popup(
			(UI_string_type)GetString(STR_GLOBAL_FAILURE),
			MMI_EVENT_FAILURE);
      
    }

    DeleteUptoScrID(SCR_ID_VRSD_SHORTCUT_LIST);
}
コード例 #8
0
/*****************************************************************************
* FUNCTION
*	SpofSaveData
* DESCRIPTION
*   Save SPOF data to NVRAM
* PARAMETERS
*	None.
 * RETURNS
*	None.
* GLOBALS AFFECTED
*	External global
*****************************************************************************/
void SpofSaveData(void)
{
	U8 NewHour, NewMin;

	NewHour =  (g_spof_cntx.HourBuf[0]-'0')* 10 + (g_spof_cntx.HourBuf[ENCODING_LENGTH]-'0');
	NewMin = (g_spof_cntx.MinBuf[0]-'0')* 10 + (g_spof_cntx.MinBuf[ENCODING_LENGTH]-'0');

	if(SpofIsTimeClash(NewHour, NewMin)) 
	{
		DisplayPopup((PU8) GetString(SPOF_TIME_CONFLICT), IMG_GLOBAL_UNFINISHED, 0, UI_POPUP_NOTIFYDURATION_TIME, ERROR_TONE);
		return;
	}
	
	/* if setting changed */
	if(g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Hour !=  NewHour ||
		g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Min != NewMin ||
		g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Type != (U8)g_spof_cntx.CurrHiliteOnOff ||
		g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Status!= g_spof_cntx.CurrHiliteActivation)
	{
		/* fill the SPOFList structure depending on the selected values */
		g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Status = (U8)g_spof_cntx.CurrHiliteActivation;
		g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Type = (U8)g_spof_cntx.CurrHiliteOnOff;
		g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Hour = NewHour;
		g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Min = NewMin;

		/*save the alarm in the nvram*/
		SpofWritetoNvram();

		if(g_spof_cntx.CurrHiliteActivation == SPOF_ENABLE)
		{
			if(g_spof_cntx.CurrHiliteOnOff == SPOF_POWERON)
			{
				AlmCancelAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPOF_START));
				AlmSetAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPON_START));
			}
			else
			{
				AlmCancelAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPON_START));
				AlmSetAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPOF_START));
			}
		}
		else
		{
			AlmCancelAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPON_START));
			AlmCancelAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPOF_START));
		}
	}

	
	if(!g_spof_cntx.IsRestoreDefault)
	{
		DisplayPopup((PU8)GetString(STR_GLOBAL_DONE) ,IMG_GLOBAL_ACTIVATED, 1,UI_POPUP_NOTIFYDURATION_TIME,SUCCESS_TONE);	
		DeleteUptoScrID(SCR_ID_SPOF_APP);
	}
}
コード例 #9
0
ファイル: CSBframework.c プロジェクト: 12019/mtktest
void mmi_csb_exit_from_fmgr_empty_folder(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    DeleteUptoScrID(SCR_ID_CSB_TESTTOOL_SCR_ID);
    GoBackHistory();
}
コード例 #10
0
ファイル: BrowserRecentPages.c プロジェクト: 12019/mtktest
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_recent_page_sort_by_site
 * DESCRIPTION
 *  This func is used for sorting the recent pages in site wise order
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_recent_page_sort_by_site(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
 
    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
	if(IsScreenPresent(SCR_ID_BRW_INTERNET_SERVICES))
	{
		DeleteUptoScrID(SCR_ID_BRW_INTERNET_SERVICES);
	}
	else if(IsScreenPresent(SCR_ID_BRW_RENDERED_PAGE_OPTIONS))
	{
		DeleteUptoScrID(SCR_ID_BRW_RENDERED_PAGE_OPTIONS);
	}

	g_brw_cntx.sorting_method = WAP_BAM_RECENT_PAGE_SORT_OPTION_HOST;
	mmi_brw_recent_pages_write_sorting_method();
	mmi_brw_recent_pages_get_recent_pages_list_start_req();
}
コード例 #11
0
ファイル: CSBframework.c プロジェクト: 12019/mtktest
/*************************************************************
**	FUNCTION NAME		: csb_frm_start_view_manual
**
** 	PURPOSE				: Enrty function for CSB Start View 
						  in Manual Mode
**
**	INPUT PARAMETERS	: nil
**
**	OUTPUT PARAMETERS	: void
**
**	RETURNS				: void
**
**	REMARKS			: 
***************************************************************/
void csb_frm_start_view_manual(void)
{

	/* Manual Mode should be Interactive or Non-Interactive, ASSERT otherwise */
	ASSERT(g_CSB_struct.csb_settings.manual_mode == MANUAL_MODE_NONINTERACTIVE || g_CSB_struct.csb_settings.manual_mode == MANUAL_MODE_INTERACTIVE);

	if(g_CSB_struct.screen_counter < TOTAL_CATEGORY_SCREENS)
	{
		/* ASSERT if entryFunPtr is NULL -- should never happen */
		ASSERT(g_CSB_struct.pscreen_info[g_CSB_struct.screen_counter].entryFuncPtr != NULL);


		/* Call the entry function pointer of the categpry screen */
		g_CSB_struct.pscreen_info[g_CSB_struct.screen_counter++].entryFuncPtr();
		
		/* Set the key handlers here for Manual Mode */
		SetKeyHandler(csb_frm_start_view_manual, KEY_VOL_DOWN, KEY_EVENT_DOWN);
		SetKeyHandler(GoToPreviousScreen, KEY_VOL_UP, KEY_EVENT_DOWN);
		SetKeyHandler(GoBackToMainMenu, KEY_END, KEY_EVENT_DOWN);
		SetKeyHandler(csb_show_current_screen_ID, KEY_SEND, KEY_EVENT_DOWN);

		/* Delete the history nodes added after every call */
		DeleteUptoScrID(SCR_ID_CSB_VIEW_SCR_ID);
	}
	else
	{
		/* If all the screen counter exceeds the limit, set the global counter as ZERO 
		and delete screen from history and go back one level */
		g_CSB_struct.screen_counter = 0;
		DeleteUptoScrID(SCR_ID_CSB_VIEW_SCR_ID);
		GoBackHistory();

		/* Release the EMS buffer */
		ReleaseEMSEditBuffer();
	}
}
コード例 #12
0
ファイル: CallFixedDialList.c プロジェクト: jprothwell/sc-fix
/**************************************************************

	FUNCTION NAME		: SECSETDelFdlRsp(void)
  	PURPOSE				: Rsp handler for Delete req.
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void SECSETDelFdlRsp(void *info )
{
	MSG_PHB_DELETE_ENTRY_RSP_STRUCT* localPtr;
	
	localPtr = (MSG_PHB_DELETE_ENTRY_RSP_STRUCT *)info;

	if (localPtr->result.flag == 0 /*OK*/) 
	{
		DisplayPopup((PU8)GetString(STR_GLOBAL_DONE) ,IMG_GLOBAL_ACTIVATED, 1,ST_NOTIFYDURATION,SUCCESS_TONE);
	}
	else 
	{
		DisplayPopup((PU8)GetString(STR_GLOBAL_UNFINISHED) ,IMG_GLOBAL_UNFINISHED, 1,ST_NOTIFYDURATION,ERROR_TONE);
	}
	DeleteUptoScrID(SCR_ID_SECSET_FDN_LIST);
}
コード例 #13
0
ファイル: CSBframework.c プロジェクト: 12019/mtktest
/*****************************************************************************
 * FUNCTION
 *  GoBackToMainMenu
 * DESCRIPTION
 *  
 * PARAMETERS
 *  nIndex				[IN]            
 * RETURNS				void
 *****************************************************************************/
void GoBackToMainMenu(void)
{
	/* In search By Screen ID, editor screen is to be deleted when press END key */
	if(SEARCH_MODE_SCREENID == csb_frm_get_search_mode())
	{
		DeleteUptoScrID(SCR_ID_CSB_SEARCH_SCR_ID);
	}

	TurnOffBacklight();

	/* Release the EMS buffer */
	ReleaseEMSEditBuffer();

	g_CSB_struct.screen_counter = 0;
	GoBackHistory();
}
コード例 #14
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_delete_all_push_messages
 * DESCRIPTION
 *  Deletes the entire recent page list
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_delete_all_push_messages(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U16 msg_counter;
    JC_UINT32 brw_total_msg_count = 0;
    JC_UINT32 brw_unread_msg_count = 0;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    /* added by Vivek */
    HideStatusIcon(STATUS_ICON_WAP);

    mmi_brw_get_push_statistics(&brw_total_msg_count, &brw_unread_msg_count);

    for (msg_counter = 0; msg_counter < brw_total_msg_count; msg_counter++)
    {
        mmi_brw_delete_push_msg(0);
    }

    /* Added by Vivek - 13072006 */
    mmi_brw_push_free_service_value_struct(&g_mmi_brw_push_cntx.current_service_message);

    /* Edited By Vivek - 5 July 2006 */
    /* DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_DELETED, 1, UI_POPUP_NOTIFYDURATION_TIME, SUCCESS_TONE); */
    /* Edited by Vivek - 02082006. Now instead of displaying the image IMG_GLOBAL_DELETED
       we are displaying IMG_GLOBAL_ACTIVATED as we are doing in other part of browser */
    DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, UI_POPUP_NOTIFYDURATION_TIME, SUCCESS_TONE);

    if (IsScreenPresent(SCR_ID_BRW_SERVICE_INBOX))
    {
        DeleteUptoScrID(SCR_ID_BRW_SERVICE_INBOX);
    }
    else    /* when message is deleted from idle screen */
    {
        mmi_brw_entry_service_inbox();
        DeleteScreenIfPresent(SCR_ID_BRW_PUSH_MESSAGE_READ_OPTIONS);
        DeleteScreenIfPresent(SCR_ID_BRW_NEW_PUSH_MESSAGE_IND);
        DeleteScreenIfPresent(SCR_ID_BRW_READ_SERVICE_MESSAGE);
    }

    /* Save to persistant storage */
    mmi_brw_save_current_push_info();
}
コード例 #15
0
ファイル: CallsHistoryMain.c プロジェクト: 12019/mtktest
/*****************************************************************************
 * FUNCTION
 *  ResetGPRSCounterReq
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void ResetGPRSCounterReq(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
#ifdef __MMI_GPRS_UNIT_TEST__

    gprsTotalSent = 0;
    gprsTotalReceived = 0;
    gprsLastSent = 0;
    gprsLastReceived = 0;
    DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, CS_NOTIFYDURATION, SUCCESS_TONE);
    DeleteUptoScrID(SCR8004_GPRS_COUNTER);

#else /* __MMI_GPRS_UNIT_TEST__ */ 

    /* micha1020 */
#ifdef __MMI_GPRS_FEATURES__

    MYQUEUE Message;

    ClearInputEventHandler(MMI_DEVICE_ALL);
    ClearKeyHandler(KEY_END, KEY_EVENT_UP);
    ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
    /* micha1020 */
    SetProtocolEventHandler(ResetGPRSCounterRsp, PRT_MMI_PS_RESET_GPRS_DATA_COUNTER_RSP);
    /* format message to send req for get plmn list */
    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_L4C;
    /* micha1020 */
    Message.oslMsgId = PRT_MMI_PS_RESET_GPRS_DATA_COUNTER_REQ;
    Message.oslDataPtr = NULL;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);

#endif /* __MMI_GPRS_FEATURES__ */ 

#endif /* __MMI_GPRS_UNIT_TEST__ */ 

    return;
}
コード例 #16
0
ファイル: CallFixedDialList.c プロジェクト: jprothwell/sc-fix
/**************************************************************

	FUNCTION NAME		: SECSETSetFdlEntryRsp(void)
  	PURPOSE				: Rsp fn for getting all FDL entries.
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void SECSETSetFdlEntryRsp(void * info)
{
	MSG_PHB_SET_ENRTY_RSP_STRUCT* localPtr;

	localPtr = (MSG_PHB_SET_ENRTY_RSP_STRUCT *)info;

	if (localPtr->result.flag == 0)  {
		DisplayPopup((PU8)GetString(STR_GLOBAL_DONE) ,IMG_GLOBAL_ACTIVATED, 1,ST_NOTIFYDURATION,SUCCESS_TONE);
	}
	else if (localPtr->result.cause == MMI_SIM_EF_RECORD_FULL) {
		DisplayPopup((PU8)GetString(STR_NOT_SAVED_NUMBER_TOO_LONG), IMG_GLOBAL_ERROR, 1, ST_NOTIFYDURATION, ERROR_TONE);
	}
	else {
		DisplayPopup((PU8)GetString(STR_GLOBAL_UNFINISHED) ,IMG_GLOBAL_UNFINISHED, 1,ST_NOTIFYDURATION,ERROR_TONE);
	}
	gpFDLBDLContext->FDNBDNEdit = FALSE;
	DeleteUptoScrID(SCR_ID_SECSET_FDN_LIST);
}
コード例 #17
0
ファイル: CallFixedDialList.c プロジェクト: jprothwell/sc-fix
/**************************************************************

	FUNCTION NAME		: SECSETSetFdlEntryReq(void)
 
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 
	 

**************************************************************/
void SECSETSetFdlEntryReq(void)
{
	MSG_PHB_SET_ENRTY_REQ_STRUCT *pMsgNewEntry = NULL ;
	MYQUEUE Message;
	//U8 pbName_ASCII[MAX_PB_NAME_LENGTH];
	U8 pbNumber_ASCII[MAX_PB_NUMBER_LENGTH+1];		
	module_type dest_mod_id = MOD_L4C + gSecSetupMenuSimID;


	EntrySECSETFDNBDNSaving();
	pMsgNewEntry  = (MSG_PHB_SET_ENRTY_REQ_STRUCT*) OslConstructDataPtr(sizeof(MSG_PHB_SET_ENRTY_REQ_STRUCT));

	 
	//memset(pMsgNewEntry->list.alpha_id.name, 0, strlen((PS8)pbName_ASCII)+1);
	//memset(pMsgNewEntry->list.tel.number, 0, strlen((PS8)pbNumber_ASCII)+1);
	memset(pMsgNewEntry->list.alpha_id.name, 0, MAX_PB_NAME_LENGTH+1);
	memset(pMsgNewEntry->list.tel.number, 0, MAX_PB_NAME_LENGTH+1);
	 

	pMsgNewEntry->type = MMI_PHB_FDN;
	pMsgNewEntry->no_data = 1;
	pMsgNewEntry->list.storage = MMI_SIM + gSecSetupMenuSimID;
	pMsgNewEntry->list.index = 0xFFFF; // For New Entry It should Always be 0xFFFF;
	pMsgNewEntry->list.record_index = 0xFFFF; // For New Entry It should be alaways 0xFFFF

	if(gpFDLBDLContext->FDNBDNEdit)//If entry is edited
	{
		pMsgNewEntry->list.index = gpFDLBDLContext->FDLBDLEntries[gpFDLBDLContext->HighlightedFDN].index;
		pMsgNewEntry->list.record_index = gpFDLBDLContext->FDLBDLEntries[gpFDLBDLContext->HighlightedFDN].record_index;
	}
	if (gpFDLBDLContext->FDLBDLNumber[0] == '+')//If Number is International
	{
		pMsgNewEntry->list.tel.type = MMI_CSMCC_INTERNATIONAL_ADDR; //INTERNATIONAL
		pMsgNewEntry->list.tel.length = (U8)pfnUnicodeStrlen((const S8 *)(gpFDLBDLContext->FDLBDLNumber+ ENCODING_LENGTH));
		UnicodeToAnsii((PS8)pbNumber_ASCII,(PS8)( gpFDLBDLContext->FDLBDLNumber+ ENCODING_LENGTH));
		memcpy(pMsgNewEntry->list.tel.number, pbNumber_ASCII, strlen((PS8)pbNumber_ASCII)+1);
	}
	else
	{
		pMsgNewEntry->list.tel.type = MMI_CSMCC_DEFAULT_ADDR_TYPE; //DEFAULT
		pMsgNewEntry->list.tel.length = (U8)pfnUnicodeStrlen((PS8)gpFDLBDLContext->FDLBDLNumber);
		UnicodeToAnsii((PS8)pbNumber_ASCII, (PS8)gpFDLBDLContext->FDLBDLNumber);
		memcpy(pMsgNewEntry->list.tel.number, pbNumber_ASCII, strlen((PS8)pbNumber_ASCII)+1);
	}
	if(GetUCS2Flag((PS8)gpFDLBDLContext->FDLBDLName)) {
		pMsgNewEntry->list.alpha_id.name_dcs = MMI_PHB_UCS2;
		pMsgNewEntry->list.alpha_id.name_length = ((U8)pfnUnicodeStrlen((PS8)gpFDLBDLContext->FDLBDLName))*ENCODING_LENGTH;
		BigEndianToLittleEndian((PS8)pMsgNewEntry->list.alpha_id.name, (PS8)gpFDLBDLContext->FDLBDLName);
	}
	else {
		pMsgNewEntry->list.alpha_id.name_dcs = MMI_PHB_ASCII;
		pMsgNewEntry->list.alpha_id.name_length = (U8)pfnUnicodeStrlen((PS8)gpFDLBDLContext->FDLBDLName);
		UnicodeToAnsii((PS8)pMsgNewEntry->list.alpha_id.name, (PS8)gpFDLBDLContext->FDLBDLName);
		PhbAsciiToGSM7Bit(pMsgNewEntry->list.alpha_id.name);
	}
	Message.oslSrcId=MOD_MMI;
	Message.oslDestId=dest_mod_id;
	Message.oslMsgId = PRT_PHB_SET_ENTRY_REQ;
	Message.oslDataPtr = (oslParaType *)pMsgNewEntry;
	Message.oslPeerBuffPtr= NULL;
	DeleteUptoScrID(SCR_ID_SECSET_FDN_LIST);
	DeleteScreenIfPresent(SCR_ID_SECSET_FDN_LIST);
	ExitSECSETFDNListReload();
	SetProtocolEventHandlerExt(SECSETSetFdlEntryRsp,PRT_PHB_SET_ENTRY_RSP,gSecSetupMenuSimID);
	OslMsgSendExtQueue(&Message);
}
コード例 #18
0
ファイル: CallFixedDialList.c プロジェクト: jprothwell/sc-fix
/**************************************************************

	FUNCTION NAME		: SECSETGetFdlEntriesRsp(void)
  	PURPOSE				: getting all entries rsp
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void SECSETGetFdlEntriesRsp(void *info)
{
	MSG_PHB_GET_ENTRY_BY_INDEX_RSP_STRUCT* localPtr;
	U8 i= 0,j=0;
//micha0317
	U8 TempBuff[(MAX_PB_NUMBER_LENGTH+2)*ENCODING_LENGTH];
	U8 *tmpConvertBuf = NULL;
	U16 convertOutLen = 0;
	U8 name_dcs;//Renwy add 2008/06/25 for '$' error 
	U8 nSimID;

	nSimID = MTPNP_AD_get_protocol_event_src_mode();
	
	mmi_trace(1, TSTXT("SECSETGetFdlEntriesRsp"));
	SetProtocolEventHandlerExt(NULL, PRT_PHB_GET_ENTRY_BY_INDEX_RSP,nSimID);

	localPtr = (MSG_PHB_GET_ENTRY_BY_INDEX_RSP_STRUCT *)info;

	if (localPtr->result.flag == 0 /*OK*/) 
	{
		 mmi_trace(1, TSTXT("if (localPtr->result.flag == 0 /*OK*/) "));
		i =  gpFDLBDLContext->FDNBDNCount;
		gpFDLBDLContext->FDNBDNCount +=  localPtr->no_list;	//Add number of new entries in current list length.

		if (gpFDLBDLContext->FDNBDNCount > MAX_SIM_ENTRIES)
			gpFDLBDLContext->FDNBDNCount = MAX_SIM_ENTRIES;

		for (; i < gpFDLBDLContext->FDNBDNCount; i++, j++) 
		{
			gpFDLBDLContext->FDLBDLEntries[i].storage = localPtr->list[j].storage;
			gpFDLBDLContext->FDLBDLEntries[i].index = localPtr->list[j].index;
			gpFDLBDLContext->FDLBDLEntries[i].record_index = localPtr->list[j].record_index;

			memset(gpFDLBDLContext->FDLBDLEntries[i].alpha_id.name, 0, MAX_NAME_LEN_FSB_LIST*ENCODING_LENGTH);
			memset(gpFDLBDLContext->FDLBDLEntries[i].tel.number, 0, MAX_NUMBER_LEN_FSB_LIST*ENCODING_LENGTH);
			gpFDLBDLContext->FDLBDLEntries[i].alpha_id.name_length = localPtr->list[j].alpha_id.name_length;
			gpFDLBDLContext->FDLBDLEntries[i].alpha_id.name_dcs = localPtr->list[j].alpha_id.name_dcs;

			
			{//Renwy add begine 2008/06/25 for '$' error 

				name_dcs = gpFDLBDLContext->FDLBDLEntries[i].alpha_id.name_dcs;
				
				if (MMI_PHB_ASCII == gpFDLBDLContext->FDLBDLEntries[i].alpha_id.name_dcs)
				{
					name_dcs = MMI_8BIT_DCS;
				}
				
			}//Renwy add end 2008/06/25 for '$' error 
			tmpConvertBuf = CovertStringForPlatform(localPtr->list[j].alpha_id.name, gpFDLBDLContext->FDLBDLEntries[i].alpha_id.name_length,name_dcs,&convertOutLen);//Renwy modify 2008/06/25
			//tmpConvertBuf = CovertStringForPlatform(localPtr->list[j].alpha_id.name, gFDLBDLContext.FDLBDLEntries[i].alpha_id.name_length,gFDLBDLContext.FDLBDLEntries[i].alpha_id.name_dcs,&convertOutLen);

			gpFDLBDLContext->FDLBDLEntries[i].alpha_id.name_length = (U8) convertOutLen;

			if (pfnUnicodeStrlen((PS8) tmpConvertBuf) <= MAX_PB_NAME_LENGTH) {
				pfnUnicodeStrcpy((PS8) gpFDLBDLContext->FDLBDLEntries[i].alpha_id.name, (PS8) tmpConvertBuf);
			}
			else {
				pfnUnicodeStrncpy((PS8) gpFDLBDLContext->FDLBDLEntries[i].alpha_id.name, (PS8) tmpConvertBuf, MAX_PB_NAME_LENGTH);
			}

			if (tmpConvertBuf!=NULL)
				OslMfree(tmpConvertBuf);

			if (localPtr->list[j].tel.type == MMI_CSMCC_INTERNATIONAL_ADDR) 
			{
				gpFDLBDLContext->FDLBDLEntries[i].tel.type = localPtr->list[j].tel.type;
				gpFDLBDLContext->FDLBDLEntries[i].tel.number[0] = '+';//insert '+' before the number.
				gpFDLBDLContext->FDLBDLEntries[i].tel.length = localPtr->list[j].tel.length;
				AnsiiToUnicodeString((PS8)TempBuff, (PS8)localPtr->list[j].tel.number);
				memcpy(gpFDLBDLContext->FDLBDLEntries[i].tel.number + ENCODING_LENGTH, TempBuff, (localPtr->list[j].tel.length)*ENCODING_LENGTH);
			} 
			else 
			{
				gpFDLBDLContext->FDLBDLEntries[i].tel.type = localPtr->list[j].tel.type;
				gpFDLBDLContext->FDLBDLEntries[i].tel.length = localPtr->list[j].tel.length;
				AnsiiToUnicodeString((PS8)TempBuff, (PS8)localPtr->list[j].tel.number);
				memcpy(gpFDLBDLContext->FDLBDLEntries[i].tel.number, (PS8)TempBuff, (localPtr->list[j].tel.length)*ENCODING_LENGTH);
			}

		}
		if (localPtr->no_list == MAX_ENTRIES_IN_LIST)
		{
			 mmi_trace(1, TSTXT("	if (localPtr->no_list == MAX_ENTRIES_IN_LIST) "));
			SECSETGetFdlEntriesReq();
		}
		else 
		{
			 mmi_trace(1, TSTXT("	ViewFDList "));
		 	if(g_FixedInit[nSimID] != TRUE)////man for fdn
		 	{
				ViewFDList();
			}
			gSimReady[nSimID] = TRUE;
			
			/*
			*    Retrieve FDN list to ADN buffer when FDN is enable.
			*    Because ADN will not read when FDN is on, so use ADN's buffer to store FDN temporarily
			*    This is for call lookup FDN number usage.
			*/   
		//	if(g_SecuritySetupContext.FdlStatus)
		//		mmi_phb_fdn_get_list_to_ram();
		}
	}
	else if (localPtr->result.flag == 1 && localPtr->result.cause == 5) 
	{
//		gFDLBDLContext.FDNBDNCount = 0;

		gSimReady[nSimID] = TRUE;
		ViewFDList();
	}
	else 
	{
		DisplayPopup((PU8)GetString(STR_GLOBAL_UNFINISHED) ,IMG_GLOBAL_UNFINISHED, 1,ST_NOTIFYDURATION,ERROR_TONE);
		DeleteUptoScrID(SCR_ID_SECSET_FIX_DIAL);
	}
}
コード例 #19
0
ファイル: JavaAgencyTaskSwitch.c プロジェクト: 12019/mtktest
/*****************************************************************************
 * FUNCTION
 *  jvm_terminating_time_out_hdlr
 * DESCRIPTION
 *  Check if VM is real terminated
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_java_terminating_time_out_hdlr(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/

    kal_trace(TRACE_GROUP_1, MMI_JAVA_TERMINATEING_TIMEOUT, jvm_is_busy());
    ClearDelScrnIDCallbackHandler(SCR_JAVA_VM_TERMINATING, NULL);

    if(mmi_java_go_to_idle_after_terminated)
    {
        mmi_java_go_to_idle_after_terminated = MMI_FALSE;

        if (IsScreenPresent(SCR_SIM_INSERTION))
        {
            DeleteUptoScrID(SCR_SIM_INSERTION);
        }
        else if (IsScreenPresent(SCR_SIM_BLOCK))
        {
            DeleteUptoScrID(SCR_SIM_BLOCK);
        }
        else
        {
            DeleteUptoScrID(IDLE_SCREEN_ID);
        }
    }

#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
}
コード例 #20
0
ファイル: jmms_storeutils.c プロジェクト: jprothwell/sc-fix
void jmms_GoBackToMainScreen()
{
	DeleteUptoScrID(SCR_ID_MMS_MAIN_SCREEN);
}
コード例 #21
0
ファイル: SFApi.c プロジェクト: 12019/mtktest
/*
void mmi_gamesimu_exit_from_fmgr(void *filename, int is_short)
{
    
    //DeleteUptoScrID(SCREENID_GAMESIMU_LIST);
    DeleteNHistory(1);
    GoBackHistory();
}
*/
void EntryRomList(void)
{
#if 0
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    S8 buf_filepath[FMGR_PATH_BUFFER_SIZE];
    FS_HANDLE file_handle;
    FMGR_FILTER filter;
    S32 create_result;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
   memset(buf_filepath,0x00,FMGR_PATH_BUFFER_SIZE);
   pfnUnicodeStrcpy((S8 *)buf_filepath,(const S8 *)u8_g_game_dir);

    #ifndef NAND_SUPPORT
    if(fmgr_is_msdc_present() == FALSE)
    {
          DisplayPopup((PU8)GetString(STR_GLOBAL_NOTIFY_NO_MEMORY_CARD), IMG_GLOBAL_EMPTY,0, 1000, EMPTY_LIST_TONE);
          return;
    }
    #endif

    EntryNewScreen(SCREENID_GAMESIMU_LIST, NULL, EntryRomList, NULL);

    create_result = mmi_gamesimu_create_file_dir(buf_filepath);

    /* check if it is valid path */
    file_handle = FS_Open((PU16) buf_filepath, FS_OPEN_DIR | FS_READ_ONLY);

    if (file_handle >= 0)
    {
        FS_Close(file_handle);

        FMGR_FILTER_INIT(&filter);
	
	FMGR_FILTER_SET(&filter,FMGR_TYPE_NES);

        mmi_fmgr_select_path_and_enter(
            APP_GAME_SIMU,
            FMGR_SELECT_BROWSE,
            filter,
            buf_filepath,
            (PsExtFuncPtr) mmi_gamesimu_exit_from_fmgr);

        /* check if device is busy or not */
        if (FS_GetDevStatus(buf_filepath[0], FS_FEATURE_STATE_ENUM) == FS_DEVICE_BUSY)
        {
            /*  mmi_fmgr_select_path_and_enter will also add screen to histry */
            DeleteUptoScrID(SCREENID_GAMESIMU_LIST);

            /* Delete up to previous screen */
            DeleteNHistory(1);
        }
    }
    else
    {
        {
            /* storage is card */

            /* photo's path is not exist, and card is write protected, cant create photo folder */
            if (create_result == FS_WRITE_PROTECTION)
            {
                DisplayPopup(
                    (PU8) GetString(FMGR_FS_WRITE_PROTECTION_TEXT),
                    IMG_GLOBAL_WARNING,
                    1,
                    ST_NOTIFYDURATION,
                    WARNING_TONE);
            }
            else if (create_result == FS_DISK_FULL)
            {
                DisplayPopup(
                    (PU8) GetString(FMGR_FS_DISK_FULL_TEXT),
                    IMG_GLOBAL_WARNING,
                    1,
                    ST_NOTIFYDURATION,
                    WARNING_TONE);
            }
            else if (create_result == FS_ROOT_DIR_FULL)
            {
                DisplayPopup(
                    (PU8) GetString(FMGR_FS_ROOT_DIR_FULL_TEXT),
                    IMG_GLOBAL_WARNING,
                    1,
                    ST_NOTIFYDURATION,
                    WARNING_TONE);
            }
            else
            {
                DisplayPopup(
                    (PU8) GetString(STR_GLOBAL_NOTIFY_NO_MEMORY_CARD),
                    IMG_GLOBAL_WARNING,
                    1,
                    ST_NOTIFYDURATION,
                    WARNING_TONE);
            }

            DeleteUptoScrID(SCREENID_GAMESIMU);
            return;

        }
    }
#endif
}
コード例 #22
0
ファイル: CSBframework.c プロジェクト: 12019/mtktest
/*****************************************************************************
 * FUNCTION
 *  csb_frm_select_folder_callback
 * DESCRIPTION
 *
 * PARAMETERS
 *  U32			cat_ID
 * RETURNS
 *  void
 *****************************************************************************/
void csb_frm_select_folder_callback(void *fullpath, int is_short)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
	U8	csb_drive_phone_unicode[10];
	U8	csb_drive_card_unicode[10];
	U8  csb_default_folder_unicode[10];
	U8  temp_ascii[5];

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    UI_UNUSED_PARAMETER(is_short);

	sprintf((S8*)temp_ascii, "%c%s", MMI_PUBLIC_DRV, ":\\");
	mmi_asc_to_ucs2((PS8) csb_drive_phone_unicode, (PS8) temp_ascii);

	
	sprintf((S8*)temp_ascii, "%c%s", MMI_CARD_DRV, ":\\");
	mmi_asc_to_ucs2((PS8) csb_drive_card_unicode, (PS8) temp_ascii);

	mmi_asc_to_ucs2((PS8) csb_default_folder_unicode, (PS8) "CSB\\");


	/* If the file path returned by FileManager is longer than MAX, show error popup */
	if(fullpath)
	{
	if((mmi_ucs2strlen((char*) fullpath)) > MAX_CSB_PATH_LENGTH)
	{
		DisplayPopup((PU8) GetString(STR_ID_CSB_FILE_PATH_TOO_LONG),
				IMG_GLOBAL_ERROR, 
				1, 
				CSB_NOTIFY_DURATION, 
				0);
	}
		else if(!(mmi_ucs2cmp((PS8) fullpath, (PS8) csb_drive_phone_unicode)))
	{

	/* Store the path returned by CallBack in the Global variable */
		mmi_ucs2cpy((PS8) g_CSB_struct.csb_settings.csb_screenshots_folder_path, (PS8)fullpath);

			mmi_ucs2cat((PS8) g_CSB_struct.csb_settings.csb_screenshots_folder_path, (PS8) csb_default_folder_unicode);

			/* Write the updated value in NVRAM */
			csb_frm_write_in_nvram();

			DisplayPopup((PU8) GetString(STR_GLOBAL_DONE),
					IMG_GLOBAL_ACTIVATED, 
					1, 
					CSB_NOTIFY_DURATION, 
					0);
		}
		else if(!(mmi_ucs2cmp((PS8) fullpath, (PS8) csb_drive_card_unicode)))
		{

			/* Store the path returned by CallBack in the Global variable */
			mmi_ucs2cpy((PS8) g_CSB_struct.csb_settings.csb_screenshots_folder_path, (PS8)fullpath);
		
			mmi_ucs2cat((PS8) g_CSB_struct.csb_settings.csb_screenshots_folder_path, (PS8) csb_default_folder_unicode);

			/* Write the updated value in NVRAM */
			csb_frm_write_in_nvram();

			DisplayPopup((PU8) GetString(STR_GLOBAL_DONE),
					IMG_GLOBAL_ACTIVATED, 
					1, 
					CSB_NOTIFY_DURATION, 
					0);
		}
		else
		{
			/* Store the path returned by CallBack in the Global variable */
			mmi_ucs2cpy((PS8) g_CSB_struct.csb_settings.csb_screenshots_folder_path, (PS8)fullpath);
		
		/* Write the updated value in NVRAM */
		csb_frm_write_in_nvram();

		DisplayPopup((PU8) GetString(STR_GLOBAL_DONE),
				IMG_GLOBAL_ACTIVATED, 
				1, 
				CSB_NOTIFY_DURATION, 
				0);
	}
	}
	else
	{
		GoBackHistory();
	}
	DeleteUptoScrID(SCR_ID_CSB_TESTTOOL_SCR_ID);
}