智能终端定制开发 ad
MTK/瑞芯微/高通-Android,智能模块/智能终端方案商

深度定制各类智能终端和智能硬件产品,提供硬件选型咨询、参考设计、元器件推荐、驱动开发、行业模块集成、操作系统定制与算法集成等软硬件定制服务。
contact.aspx

Android核心板产品覆盖2G、3G、4G通讯,双核、四核、八核CPU,可选的平台有MTK6580、MTK6737、MTK6750等,Android版本有5.1 6.0 7.0等。
contact.aspx

可广泛应用于低端智能POS、安防监控、车载设备、低端智能机器人、智能家居、智能硬件、工业智能手持设备、低端智能对讲设备、低端警务或执法设备、智能穿戴、贩卖机、物流柜、智能门禁系统等行业和设备。
contact.aspx

可提供以太网转串口透传,WIFI转串口透传,蓝牙转串口透传,CAN总线模拟量控制输出模块等。
contact.aspx

带3G或4G通讯功能,运行android系统,有多个串口,可以外挂各种模块:条码扫描、RFID、指纹识别、身份证识别、磁条卡、ID卡、GPS/北斗模块等。
contact.aspx

具有4G通讯功能,多个RS232或RS485接口,以太网接口,USB接口,CAN接口,多个AD输入。基于Android系统智能平台,方便APP应用开发。器件严格选型,运行稳定,质量可靠。
contact.aspx

MTK平台学习--FileManager模块分析
[MTK开发] 2008-04-09
FileManager模块分析

一、 External Interface
    
     1.   给其他模块使用的接口函数                    作用
          mmi_fmgr_init                   initialize file manager context
          mmi_fmgr_select_path_and_entry  entry point to file manager for other applications
          mmi_fmgr_reset_app_select       reset selection from other application
          GetFileSystemErrorString        convert file system return error code to error messgae pop up
    
     2.   分析mmi_fmgr_select_path_and_entry, mmi_fmgr_reset_app_selec
          函数原型: void  mmi_fmgr_select_path_and_entry(U8 app_id, U8 sel_type, U32 filter, PS8 start_path, PsFuncPtr callback) ;
          (1) 主要分析callback函数
              A.    excute mmi_fmgr_select_path_and_entry(......)
              start_path
              --->  callback(.....)
              --->  callback内部检查:  N
                    start_path=NULL?  ---> the selection is completed
                          |
                          | Y
                 the selection is aborted
              B.  FMGR_SELECT_REPEAT对于callback函数的影响以及
                  使用FMGR_SELECT_REPEAT可以多次选择文件/文件夹
                  a. Each Select
                     select target
               start_path  
                 ---> callback(......)
                 ---> callback内部检查  N
                      start_path=NULL? ---> user abort ( the selection is aborted )
                            |
                            | Y                       Y
                      reach applications condition? ---> application abort ( the selection is aborted )
                            |
                            |
                      the selection is completed
                  b. 两种abort
                     user abort:
                     will cause a callback with NULL parameter and File Manager will automatically reset ;
                     application abort:
                     needs to call the mmi_fmgr_reset_app_select( ) to terminate the process
          (2) FMGR_SELECT_BROWSE参数
              drive option
              folder option
              file option
    
     3.   Utility Functions
          BOOL  mmi_fmgr_get_default_folder_path(S8 * folder,S8 * path,U16 length);
          void  mmi_fmgr_remove_last_dir(S8 * path);
          S8 *  mmi_fmgr_extract_file_name(S8 * path );
          S8 *  mmi_fmgr_extract_ext_file_name(S8 * path);
          void  mmi_fmgr_hide_ext_name(S8 * path);
                mmi_fmgr_check_file_present
        
        
二、 Cache
     
     1.  First Time Enter a Floder
     A.  一般流程
         first time enter a floder
     --> call fmgr_kenmel: init the cache
     --> load file frome FS until the cache is filled
     --> 不管是否有sort选项, file manager都会获取 file list
     B.  关于 sort API
         当目录项内文件数超过255, file manager cant use sort API to get file list from file system
     but linear find first/find next instead.
     C.  filter
   
    2.  Request for File Info
    A.  Function:  fmgr_kernel_get_file_info
    B.      call fmgr_kernel_get_file_info with a index    
    --> get a structe of data filled with useful file information
    --> this funciton will use the passed in index to see      Y
        if the desired file info is already in chached or not ---> from cache
                               |
                               | N
                               |
                 reload cache and return file info

    3.  Image Cache
    A. File Manger模块的预览图Cache
    B. 一般流程
        Draw Thumb Image
                       Y
    --> Is in cache? -----> Draw it from cache
            |
            | N
            |        
        Decord Image -----> Decord Done -----> Cache the Image -----> Draw it from cache   



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=2151076


[MTK开发添加评论 | 评论/阅读(0/871)
评论
昵称
主页
内容
递交


Copyright @ 我的开发笔记     2008 - 2017         粤ICP备19155526号-1