⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmitask.c

📁 MTK手机平台的MMI部分的源代码
💻 C
📖 第 1 页 / 共 5 页
字号:
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/

/**
 * Copyright Notice
 * ?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
 * Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
 *  (It is illegal to remove this copyright notice from this software or any
 *  portion of it)
 */

/**************************************************************

   FILENAME : MMItask.c

   PURPOSE     : Protocol task functionality 

   REMARKS     : nil

   AUTHOR      : Neeraj Sharma

   DATE     : Dec' 28, 2002

**************************************************************/

/***************************************************************************** 
* Include
*****************************************************************************/


#if !defined(__MTK_TARGET__) || defined(MMI_ON_WIN32)
#include <windows.h>
#endif 

#include "stdC.h"
#include <string.h>
#include "L4Dr1.h"
#include "MMI_features.h"
/* __CUSTPACK_MULTIBIN     Terry   BEGIN */
#include "wgui_categories_inputs.h"
#include "IMERes.h"
/* __CUSTPACK_MULTIBIN     Terry   END */
#include "GlobalConstants.h"
#include "TaskInit.h"
#include "MMItaskProt.h"
#if defined(__MMI_RESOURCE_ENFB_SUPPORT__)
    #include "ResMemMgrGprot.h"
#endif /* __MMI_RESOURCE_ENFB_SUPPORT__ */
#include "ThrdOsInterface.h"
#include "GlobalStruct.h"
#include "DebugInitDef.h"
#include "ProtocolEvents.h"
#include "AsyncEventsGprot.h"
#include "ATHandlerProt.h"
#include "AlarmFrameWorkProt.h"
#include "CallManagementGprot.h"
#include "CallManagementStruct.h"
#include "SettingProfile.h"
#include "ProfileGprots.h"
#include "Service.h"
#include "SATGProts.h"
#include "CPHSProtocolHandlers.h"
#include "EngineerModeProt.h"
#include "FactoryModeProt.h"
#include "gpioInc.h"
#include "PhoneBookGProt.h"
#include "CallHistoryMain.h"
#include "FunAndGamesProts.h"
#include "MessagesResourceData.h"
#include "OrganizerGprot.h"
#include "AlarmGprot.h"
#include "ScheduledPowerOnOffGprot.h"
#include "Unicodedcl.h"
#include "Unicodedef.h"
#include "OrganizerGProt.h"
#include "ExtraGProt.h"
#include "IdleAppProt.h"
#include "Conversions.h"
#include "NVRAMProt.h"
#include "datetimetype.h"
#include "app_datetime.h"

//KP Jerry add on 2007-2-15 start
#ifdef __DUAL_SIM_SUPPORT__
extern void LoadSIMSwitchAllData(void);
#endif
//KP Jerry add on 2007-2-15 end

#ifdef __MMI_THEMES_V2_SUPPORT__
#include "ThemeManager.h"
#endif 
#include "MessagesExDcl.h"

#ifdef __MMI_USB_SUPPORT__
#include "USBDeviceGprot.h"
#ifndef MMI_ON_WIN32
extern kal_bool INT_USBBoot(void);
#endif 
#endif /* __MMI_USB_SUPPORT__ */ 

#ifdef __MMI_IRDA_SUPPORT__
#include "IrdaMMIGprots.h"
#endif 

#ifdef __MMI_BT_HP_SUPPORT__
#include "BTMMIHPGprots.h"
#endif 

#ifdef __MMI_BT_SUPPORT__
#include "BTMMIScrGprots.h"
#endif 

#ifdef __MMI_FILE_MANAGER__
#include "FileManagerGProt.h"
#include "msdc_def.h"
#endif /* __MMI_FILE_MANAGER__ */ 

#ifdef __MMI_WEBCAM__
#include "mdi_datatype.h"
#include "mdi_webcam.h"
#endif /* __MMI_WEBCAM__ */ 

#include "SoundEffect.h"

#include "vObjects.h"
#include "vCalendar.h"

#include "ShortcutsProts.h"
#include "SubLCDHistoryGprot.h"
#include "ToDoListDef.h"
#include "DataAccountGProt.h"
#include "WPSSProtos.h"
#include "CallerIdGprot.h"
#if defined(__MMI_STOPWATCH__)
#include "StopwatchGprot.h"
#endif 
#if defined(__MMI_EMAIL__)
#include "EmailAppGProt.h"
#endif /* def __MMI_EMAIL__ */
#include "OSThreadInterfaceGprot.h"

#ifdef MMI_ON_WIN32
extern BOOL flagMMIStart;

#include "BUildCfg.h"
#endif /* MMI_ON_WIN32 */ 
#include "EventsGprot.h"
#include "AllAppGprot.h"
#include "WrapperGprot.h"
#include "QueueGprot.h"
#ifdef __MMI_EBOOK_READER__
#include "EbookProt.h"
#endif 
#include "KeyBrd.h"
#include "NVRAMExdcl.h"
#include "SimDetectionGprot.h"
#include "wgui_status_icons.h"
#include "PowerOnChargerProt.h"
#include "SettingGprots.h"
#include "SimDetectionGexdcl.h"
#include "PhoneSetupGprots.h"   /* PhnsetReadNvramCalibrationData */
#if defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__)
#include "SmsGuiInterfaceType.h"
#endif 

#ifdef __MMI_VOIP__
#include "VoIPGProt.h"
#endif

#ifdef __MMI_POC__
#include "PoCGProt.h"
#endif 

#ifdef __SYNCML_SUPPORT__
#include "SyncMLGProt.h" /* mmi_syncml_init */
#endif

extern void InitAlarmHandler(void);


#if defined(__MMI_THEMES_APPLICATION__)
extern void InitThemes(void);
#endif

#ifdef __FLIGHT_MODE_SUPPORT__
#include "WallpaperDefs.h"
#include "DownloadDefs.h"
#include "PhoneSetup.h"
#endif /* __FLIGHT_MODE_SUPPORT__ */ 

extern void ATHandlerInit(void);

#if defined(__MMI_NITZ__)
extern void NITZHandlerInit(void);
#endif 
extern void PhnsetInitSetTimeNDateNvram(void);
extern void ReadValueCityNVRAM(void);


#ifndef MMI_ON_WIN32
#include "lcd_sw.h"
#include "lcd_sw_inc.h"
#include "sublcd.h"
#else /* MMI_ON_WIN32 */ 
#include "lcd_if.h"
#endif /* MMI_ON_WIN32 */ 
#include "ComposeRingToneProts.h"

#ifdef __MMI_IMPS__
#include "mmi_imps_gprot.h"
#endif 

/* Cylen */
#include "gdi_include.h"
//#include "gdi_lcd.h"
//extern void gdi_init(void);
//extern GDI_RESULT gdi_layer_clear(gdi_color bg_color);
//extern gdi_color GDI_COLOR_BLACK;

#ifdef __MMI_UNIFIED_MESSAGE__
#include "UnifiedMessageGProt.h"
#endif 

#ifdef __MMI_UNIFIED_COMPOSER__
#include "UnifiedComposerGProt.h"
#endif 

#ifdef __MMI_WLAN_FEATURES__
#include "NetworkSetupDefs.h"
#endif

//U8 isIdleScreenReached=0;
//U8 IsBeforePowerOn=1;
U8 gInitAllAppFlag = 0;
U8 gInsertSimAppFlag = 0;

MYTIME StartUpTime, LastDuration;

extern U8 isEarphonePlugged;
extern U8 gMMIClamState;

extern void goto_opening_screen(void);
extern void InitNvramData(void);

#ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
extern void PmgInitExtMelodyStruct(void);
#endif 
extern void InitAllApplications(void);
extern void InitDownloadNVRAM(void);
extern void ReadThemesFromNVRAM(void);
extern void initnvramprofapp(void);
extern void InitializeChargingScr(void);
extern void InitializeAll(void);
extern void QuitSystemOperation(void);
extern void mmi_pwron_entry_animation_screen(void);

/* 
 * for MDI 
 */
extern void mdi_audio_init(void);
extern void mdi_audio_init_event_hdlrs(void);

extern void setup_UI_wrappers(void);

/* 
 * For Input method
 */
#ifdef __MMI_T9__
extern void InitInputMethod(void);
#elif defined __MMI_ZI__
extern void InitZiInputMethod(void);
//KP Jerry add on 2007-3-8 start
#elif defined __MMI_CSTAR__
extern void InitCstarInputMethod(void);
//KP Jerry add on 2007-3-8 end
#elif defined(__MMI_KA__)
extern void InitKonkaInputMethod(void);
#elif defined(__MMI_ITAP__)
/* under construction !*/
#endif 

/* __CUSTPACK_MULTIBIN     Terry   BEGIN */
extern U8 MMI_english_input_mode_set[INPUT_MODE_MAX_NUM];
extern U8 MMI_qsearch_input_mode_set[INPUT_MODE_MAX_NUM];
extern U8 MMI_all_input_mode_set[INPUT_MODE_MAX_NUM];

#ifdef __MMI_PREFER_INPUT_METHOD__
extern U16 MMI_all_prefered_input_mode_set[INPUT_MODE_MAX_NUM];
#endif 
extern const sIMEModeDetails *gIMEModeArray;
extern const sIMEModeDetails *gIMEQSearchModeArray;
extern const U8 MMI_implement_input_mode_set[];

/* __CUSTPACK_MULTIBIN     Terry   END */
extern void mmiapi_init_engine(void);

/* 
 * Move InitPhoneSetupApp() to InitializeAll() for text encoding 
 */
extern void InitPhoneSetupApp(void);
extern void InitPhoneSetupCntx(void);
extern void InitAppMem(void);
extern void CheckAndPrintMsgId(U16 Id);

#if defined(__MMI_VRSD__)
extern void mmi_vrsd_init(void);
#endif 

#if defined(__MMI_VRSI__)
extern mmi_vrsi_init(void);
#endif 

#if defined(__MMI_SOUND_RECORDER__)
extern void InitSoundRecorderApp(void);
#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -