# HG changeset patch # User Mychaela Falconia # Date 1605505622 0 # Node ID 1075ec44accafb46cb23a8fdd0bee19c81c79c57 # Parent 303704cf070194bc274578415bb246bdc91f6378 mmiDummy.c: bogotab fixes diff -r 303704cf0701 -r 1075ec44acca src/ui/bmi/mmiDummy.c --- a/src/ui/bmi/mmiDummy.c Mon Nov 16 05:38:13 2020 +0000 +++ b/src/ui/bmi/mmiDummy.c Mon Nov 16 05:47:02 2020 +0000 @@ -1,6 +1,6 @@ /******************************************************************************* - CONDAT (UK) + CONDAT (UK) ******************************************************************************** @@ -9,33 +9,32 @@ ******************************************************************************** - $Project name: Basic MMI - $Project code: BMI (6349) - $Module: Start - $File: MmiDummy.c - $Revision: 1.0 + $Project name: Basic MMI + $Project code: BMI (6349) + $Module: Start + $File: MmiDummy.c + $Revision: 1.0 - $Author: Condat(UK) - $Date: 25/10/00 + $Author: Condat(UK) + $Date: 25/10/00 ******************************************************************************** Description: - ******************************************************************************** $History: MmiDummy.c - July 09, 2005 REF : MMI-22565 - a0876501 - Description: IMEI CD byte calculation added - Solution: Byte alignment done for IMEI display. + July 09, 2005 REF : MMI-22565 - a0876501 + Description: IMEI CD byte calculation added + Solution: Byte alignment done for IMEI display. - May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg - Description: IMEI retreival by posting a call to ACI sAT_xx API - Solution: The direct call to cl_get_imeisv() is replaced with the - call to the callNUmber() which inturn calls sAT_Dn() and - retrieves the IMEI info + May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg + Description: IMEI retreival by posting a call to ACI sAT_xx API + Solution: The direct call to cl_get_imeisv() is replaced with the + call to the callNUmber() which inturn calls sAT_Dn() and + retrieves the IMEI info ******************************************************************************* @@ -91,7 +90,6 @@ #endif - #include "message.h" #include "prim.h" #include "aci_cmh.h" @@ -120,7 +118,7 @@ #include "MmiLists.h" #include "MmiMain.h" -// May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg +// May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg #ifdef FF_MMI_ATC_MIGRATION #define ATD_IMEI "*#06#" #define IMEI_LEN 15 @@ -133,12 +131,12 @@ #endif -// May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg +// May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg #ifdef FF_MMI_ATC_MIGRATION char imei[IMEI_LEN+1]; #endif -// July 09, 2005 REF : MMI-22565 - a0876501 +// July 09, 2005 REF : MMI-22565 - a0876501 extern UBYTE getCdByteFromImei(UBYTE *imei); @@ -157,13 +155,13 @@ void mmi_send_event (T_MFW_HND win, USHORT event, USHORT value, void * parameter) { - if (win){ - T_MFW_WIN * win_data = ((T_MFW_HDR *)win)->data; - T_MMI_CONTROL * control = (T_MMI_CONTROL *)win_data->user; + if (win){ + T_MFW_WIN * win_data = ((T_MFW_HDR *)win)->data; + T_MMI_CONTROL * control = (T_MMI_CONTROL *)win_data->user; - if (control->dialog NEQ 0) - (control->dialog) (win, event, value, parameter); - } + if (control->dialog NEQ 0) + (control->dialog) (win, event, value, parameter); + } } UBYTE idle_screen_has_focus() @@ -171,15 +169,15 @@ return TRUE; } -// May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg -// this function is no more referenced hence omit it +// May 02, 2005 REF : LOCOSTO-ENH-30818 - xpradipg +// this function is no more referenced hence omit it #ifdef FF_MMI_ATC_MIGRATION /******************************************************************************* - $Function: mmi_imei_retrieve + $Function: mmi_imei_retrieve - $Description: This function invokes sAT_Dn() to retrieve the IMEI and store it - in the global variabel "imei". + $Description: This function invokes sAT_Dn() to retrieve the IMEI and store it + in the global variabel "imei". $Returns: @@ -187,15 +185,15 @@ *******************************************************************************/ void mmi_imei_retrieve() { - callNumber((UBYTE*)ATD_IMEI); + callNumber((UBYTE*)ATD_IMEI); } #else /******************************************************************************* - $Function: get_imei + $Function: get_imei - $Description: This function invokes the operation for key sequence - command for getting the IMEI. + $Description: This function invokes the operation for key sequence + command for getting the IMEI. $Returns: @@ -220,14 +218,14 @@ TRACE_FUNCTION ("get_imei()"); #ifdef PCM_2_FFS - /* OMAPS00059546 : If there is no IMEI file, copying the default imei - has been added */ - retVal = ffs_file_read((UBYTE *)PSPDF_IMEI_ID, buf, sizeof(T_PSPDF_IMEI) ); - if (retVal != sizeof(T_PSPDF_IMEI)) - { - TRACE_ERROR("CL FFS read ERROR (IMEI) -> Default values used"); - memcpy(buf, C_DEFAULT_IMEISV, sizeof(T_PSPDF_IMEI)); - } + /* OMAPS00059546 : If there is no IMEI file, copying the default imei + has been added */ + retVal = ffs_file_read((UBYTE *)PSPDF_IMEI_ID, buf, sizeof(T_PSPDF_IMEI) ); + if (retVal != sizeof(T_PSPDF_IMEI)) + { + TRACE_ERROR("CL FFS read ERROR (IMEI) -> Default values used"); + memcpy(buf, C_DEFAULT_IMEISV, sizeof(T_PSPDF_IMEI)); + } #else retVal = pcm_ReadFile ((UBYTE *)EF_IMEI_ID, SIZE_EF_IMEI, buf, &version); if( retVal EQ PCM_INVALID_SIZE OR retVal EQ PCM_INVALID_FILE ) @@ -235,9 +233,9 @@ #endif #else - UBYTE buf[CL_IMEI_SIZE]; + UBYTE buf[CL_IMEI_SIZE]; - TRACE_FUNCTION ("get_imei()"); + TRACE_FUNCTION ("get_imei()"); cl_get_imeisv(CL_IMEI_SIZE, buf, CL_IMEI_GET_STORED_IMEI); #endif @@ -277,8 +275,8 @@ imei[11] = ( buf [5] & 0x0F)+0x30; imei[12] = ((buf [6] >> 4) & 0x0F)+0x30; imei[13] = ( buf [6] & 0x0F)+0x30; -// July 09, 2005 REF : MMI-22565 - a0876501 -// For calculating the Cd byte +// July 09, 2005 REF : MMI-22565 - a0876501 +// For calculating the Cd byte imei[14] = ((getCdByteFromImei(buf)) & 0x0F)+0x30; imei[15] = (( buf [7] >> 4) & 0x0F)+0x30; imei[16] = ( buf [7] & 0x0F)+0x30; @@ -299,17 +297,17 @@ char* get_build_user() { - return BUILD_USER; + return BUILD_USER; } char* get_build_date() { - return BUILD_DATE; + return BUILD_DATE; } char* get_build_time() { - return BUILD_TIME; + return BUILD_TIME; } /************************ End of functions *************************************************/ @@ -317,7 +315,7 @@ #ifndef FF_WAP void rAT_WAP_start_gprs_login(void) { - //Dummy function - WAP disabled/not compiled + //Dummy function - WAP disabled/not compiled } #endif /* END OF DUMMY FUNCTIONS */