FreeCalypso > hg > fc-tourmaline
diff src/ui/bmi/mmiStart.c @ 92:c0052fe355d3
src/ui/bmi/*.[ch]: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 08 Nov 2020 06:39:16 +0000 |
parents | 67bfe9f274f6 |
children | 053ff6a94961 |
line wrap: on
line diff
--- a/src/ui/bmi/mmiStart.c Sun Nov 08 05:12:05 2020 +0000 +++ b/src/ui/bmi/mmiStart.c Sun Nov 08 06:39:16 2020 +0000 @@ -2,65 +2,65 @@ CONDAT (UK) -******************************************************************************** +******************************************************************************** This software product is the property of Condat (UK) Ltd and may not be - disclosed to any third party without the express permission of the owner. - + disclosed to any third party without the express permission of the owner. + ******************************************************************************** - $Project name: Basic MMI - $Project code: BMI (6349) + $Project name: Basic MMI + $Project code: BMI (6349) $Module: Start $File: MmiStart.c - $Revision: 1.0 - - $Author: Condat(UK) - $Date: 25/10/00 - + $Revision: 1.0 + + $Author: Condat(UK) + $Date: 25/10/00 + ******************************************************************************** - + Description: This provides the start code for the MMI - + ******************************************************************************** $History: MmiStart.c Jan 05, 2007 OMAPS00084665 x0039928(sumanth) Description: Boot time exceed UCSD estimations - + xashmic 21 Sep 2006, OMAPS00095831 Description: USB enumeration does not happen in PIN/PUK/Insert SIM scenarios - Solution: When booting up without SIM card, or prompting for PIN/PUK/SIMP entry, - enumerate all the USB ports automatically + Solution: When booting up without SIM card, or prompting for PIN/PUK/SIMP entry, + enumerate all the USB ports automatically May 30, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar) Description : CPHS Call Forwarding feature implementation Solution : As part of the implemention, in this file, divert status is got immediately after boot-up - + Apr 06, 2006 ERT: OMAPS00070660 x0039928(sumanth) - Description: Need to reduce flash foot-print for Locosto Lite - Solution: Voice Memo feature is put under the flag #ifndef FF_NO_VOICE_MEMO to compile + Description: Need to reduce flash foot-print for Locosto Lite + Solution: Voice Memo feature is put under the flag #ifndef FF_NO_VOICE_MEMO to compile out voice memo feature if the above flag is enabled. Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg - Description: Temporary removal of animation logo and replacing with + Description: Temporary removal of animation logo and replacing with static image Solution: The Animation at bootup is removed and replaced with a static - image also the display of logo is done before initiating the + image also the display of logo is done before initiating the AT_CMD_CFUN full functionality - Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) + Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) Solution: The CF state is maintained in flash. During bootup the CF icon in the idle screen is displayed depending upon its state in the ffs - 25/10/00 Original Condat(UK) BMI version. - + 25/10/00 Original Condat(UK) BMI version. + Dec 23, 2005 REF: SR13873 - x0020906 Description : Store the FFS value into current sound structure - Fix : Call setDefaultSound () to assign FFS value into current sound structure. - + Fix : Call setDefaultSound () to assign FFS value into current sound structure. + $End *******************************************************************************/ @@ -69,9 +69,9 @@ /******************************************************************************* - + Include files - + *******************************************************************************/ #define ENTITY_MFW @@ -180,7 +180,7 @@ #ifndef NEPTUNE_BOARD #ifdef FF_EM_MODE #include "MmiEm.h" -#endif +#endif #else #ifdef TI_PS_FF_EM #include "MmiEm.h" @@ -201,7 +201,7 @@ #define MFW_EVENT_PASSED 0 #endif -// Jun 23 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) +// Jun 23 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) #include "mfw_ffs.h" #ifdef FF_MMI_MULTIMEDIA @@ -212,9 +212,9 @@ extern void sms_cb_init (void); /******************************************************************************* - + Static data - + *******************************************************************************/ static MfwHnd win; @@ -230,11 +230,11 @@ /* static U8 welcome_status; x0039928 - Lint warning fix */ /* SPR877 - SH - set to TRUE if welcome animation has finished */ UBYTE animation_complete = FALSE; - + /******************************************************************************* - + Local prototypes - + *******************************************************************************/ static int winEvent( MfwEvt e, MfwWin *w ); @@ -250,9 +250,9 @@ extern unsigned char TIlogColour[]; #endif /******************************************************************************* - + Private methods - + *******************************************************************************/ #if(0) /* x0039928 - Lint warning fix */ @@ -262,11 +262,11 @@ $Description: Window event handler, handles window visible events and ignores all others - + $Returns: MFW_EVENT_CONSUMED or MFW_EVENT_PASSED $Arguments: e, event to be handles, w, window handle - + *******************************************************************************/ static int winEvent( MfwEvt e, MfwWin *w ) @@ -300,7 +300,7 @@ $Returns: None. $Arguments: None. - + *******************************************************************************/ static int winanimEvent( MfwEvt e, MfwWin *w ) @@ -312,7 +312,7 @@ { case MfwWinVisible: dspl_ClearAll(); - + break; default: { @@ -334,7 +334,7 @@ $Returns: None. $Arguments: None. - + *******************************************************************************/ static void startregis( void ) @@ -345,16 +345,16 @@ #ifdef TI_PS_UICC_CHIPSET_15 dspl_BitBlt2(WELCOME_ANI_POS_X, WELCOME_ANI_POS_Y,176,60,(char *)&TIlogColour[0],0,ICON_TYPE_256_COL); #endif - sim_activate(); - + sim_activate(); + } /******************************************************************************* - + Public methods - + *******************************************************************************/ /******************************************************************************* @@ -366,7 +366,7 @@ $Returns: None. $Arguments: None. - + *******************************************************************************/ void startInit( void ) @@ -383,7 +383,7 @@ /* Assume the welcome status is welcome */ /* welcome_status = WELCOME; x0039928 - Lint warning fix */ - + animation_complete = FALSE; /* unset the flag for ready state at the beginning*/ @@ -407,14 +407,14 @@ #ifdef BTE_MOBILE mmi_bt_init(); #endif - + /* Handlers created on windows */ pin_init( 0 ); - networkInit( 0 ); - smsidle_start(0, NULL); + networkInit( 0 ); + smsidle_start(0, NULL); servicesInit( 0 ); - idleInit( 0 ); + idleInit( 0 ); #ifndef FF_NO_VOICE_MEMO voice_memo_init (); @@ -422,8 +422,8 @@ voice_mail_init (); sms_cb_init (); - - mmi_cphs_init(); + + mmi_cphs_init(); /* SPR#2346 - SH - GPRS */ #ifdef MMI_GPRS_ENABLED @@ -440,7 +440,7 @@ AUI_wap_init(); #endif -#ifdef FF_MMI_MMS +#ifdef FF_MMI_MMS /* TISHMMS Project */ /*init mms wap profile*/ mms_wap_data_init(); @@ -463,7 +463,7 @@ AUI_wap_init(); #endif -#ifdef FF_MMI_MMS +#ifdef FF_MMI_MMS /* TISHMMS Project */ /*init mms wap profile*/ mms_wap_data_init(); @@ -487,12 +487,12 @@ #endif /* End */ //xashmic 21 Sep 2006, OMAPS00095831 - //During bootup, PIN, PUK, SIMP, Insert SIM stages, + //During bootup, PIN, PUK, SIMP, Insert SIM stages, //Audio module, USB module needs to be initialized for //Emergency call , USB enumeration respectively mmeInit(); //fieldstrength driver /* SH - PIN screen now comes before welcome screen */ - startregis(); + startregis(); } /******************************************************************************* @@ -505,7 +505,7 @@ $Returns: None. $Arguments: None. - + *******************************************************************************/ void startExit( void ) @@ -519,8 +519,8 @@ #ifdef MMI_GPRS_ENABLED GPRS_Exit(); #endif /* GPRS */ - - + + /* shut down the sim toolkit */ simToolkitExit(); @@ -560,7 +560,7 @@ $Arguments: reason, for invoking the execute method, next, not used passed for compatibility - + *******************************************************************************/ void startExec( int reason, MmiState next ) @@ -574,7 +574,7 @@ sim_init(); /* init SIM handler */ nm_init(); /* init REG handler */ startInit(); /* init startup module */ - + } break; @@ -587,7 +587,7 @@ winFocus( win ); winShow( win ); idleExec( IdleNormal, 0 ); - + } break; @@ -596,7 +596,7 @@ /* just trace on the search event for now */ TRACE_EVENT("Search"); - + } break; @@ -618,7 +618,7 @@ $Returns: mfwFocus $Arguments: None. - + *******************************************************************************/ MfwHnd startWhoIsFocused( void ) @@ -631,22 +631,22 @@ $Function: showwelcome $Description: shows a welcome Message when swiching on the mobile - + $Returns: none - $Arguments: - + $Arguments: + *******************************************************************************/ void showwelcome (T_MFW_HND win) /* SH - not static, as now externally called */ { - + TRACE_FUNCTION("showwelcome ()"); idle_set_starting_up(FALSE); /*SPR#1662-NH Starting is finished for Idle */ // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg -// Since the static image is displayed at bootup and it is preponed, this +// Since the static image is displayed at bootup and it is preponed, this // function will be called after the sim insert indication is recieved hence // we go ahead with the display of the Idle screen by calling show_welcome_cb @@ -661,13 +661,13 @@ T_DISPLAY_DATA display_info; dlg_initDisplayData_TextId( &display_info, TxtNull, TxtNull, TxtNull, TxtNull , COLOUR_STATUS_WELCOME); dlg_initDisplayData_events( &display_info, (T_VOID_FUNC)show_welcome_cb, FOUR_SECS, 0 ); - + /* * Call Icon */ mmi_dialogs_insert_animation (info_dialog (win, &display_info), 400 ,(MfwIcnAttr*)&welcome_Attr,animwelcome); } -#endif +#endif } @@ -677,11 +677,11 @@ $Function: show_welcome_cb $Description: shows a welcome Message when swiching on the mobile - + $Returns: none - $Arguments: - + $Arguments: + *******************************************************************************/ static int show_welcome_cb(T_MFW_HND win, USHORT identifier, UBYTE reason) @@ -723,11 +723,11 @@ /* SPR#1929 - DS - Check if there is voicemail waiting. Port of 1960 */ /*a0393213 cphs rel4*/ - #ifdef FF_CPHS_REL4 + #ifdef FF_CPHS_REL4 if(!isMWISFilePresent()) - #endif + #endif GetCphsVoicemailStatus(0); - + /* 30th May,2006 OMAPS00079650 a0393213 (R.Prabakar) Description : CPHS Call Forwarding feature implementation Solution : As part of the implemention, divert status is got during boot-up. @@ -736,13 +736,13 @@ /*a0393213 cphs rel4*/ /* call cphs_get_divert_status() only when EF(CFIS) is not present. when EF(CFIS) is present, the call to cphs_get_divert_status() should be made only after fetching MSP information from network*/ - #ifdef FF_CPHS_REL4 + #ifdef FF_CPHS_REL4 if(!isCFISFilePresent()) - #endif + #endif cphs_get_divert_status (); #else - // Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) - // Setting the CF icon state depending on the value in flash. + // Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) + // Setting the CF icon state depending on the value in flash. if(FFS_flashData.CFState==TRUE) { iconsSetState(iconIdCallFor); @@ -754,7 +754,7 @@ #endif idleEvent(IdleUpdate); - + return 1; // RAVI - Changed Return to Return 1 } @@ -769,7 +769,7 @@ #include "kpd_cfg.h" #include "mfw_kbd.h" #define MAX_KEY 255 -U32 mfw_kbd_map [MAX_KEY] = +U32 mfw_kbd_map [MAX_KEY] = { KEY_0, KEY_1, @@ -782,9 +782,9 @@ KEY_8, KEY_9, KEY_STAR, - + }; - + void mfw_keyMap(int mfw_key, int hw_key) { if ((hw_key >0) && (hw_key<MAX_KEY)) @@ -792,7 +792,7 @@ } void start_setKeys( void ) -{ +{ mfw_keyMap(KEY_0, KPD_KEY_0); mfw_keyMap(KEY_1, KPD_KEY_1); mfw_keyMap(KEY_2, KPD_KEY_2); @@ -825,7 +825,7 @@ #endif /******************************************************************************* - + End of File - + *******************************************************************************/