Android系统关机充电动画实现
2016-07-01 11:13
423 查看
<span style="font-size:18px;color:#FF0000;">\mediatek\platform\mt6572\lk\mt_logo.c </span> /********** show_animationm_ver: charging animation version ************/ /* */ /* version 0: show 4 recatangle growing animation without battery number */ /* version 1: show wave animation with battery number */ /* */ /*** ***/ /* * Get the defined charging animation version * */ void sync_anim_version() { dprintf(INFO, "[lk logo: %s %d]\n",__FUNCTION__,__LINE__); #ifdef ANIMATION_NEW show_animationm_ver = 1 ; #else show_animationm_ver = 0 ; dprintf(INFO, "[lk logo %s %d]not define ANIMATION_NEW:show old animation \n",__FUNCTION__,__LINE__); #endif } int show_animationm_ver = 0; <span style="font-size:18px;color:#FF0000;">\mediatek\external\ipod\bootlogo.cpp </span> /* * Read charging animation feature option, and set charging animation version * * version 0: show 4 recatangle growing animation without battery number * version 1: show wave animation with battery number */ void sync_anim_version() { XLOGD("[ChargingAnimation: %s %d]\n",__FUNCTION__,__LINE__); if (is_wireless_charging()) { set_anim_version(WIRELESS_CHARGING_ANIM_VER); } else { #ifdef ANIMATION_NEW set_anim_version(1); #else set_anim_version(0); XLOGD("[ChargingAnimation %s %d]not define ANIMATION_NEW:show old animation \n",__FUNCTION__,__LINE__); #endif } <span style="color:#FF0000;"> </span><span style="font-size:18px;"><span style="color:#FF0000;">mediatek\external\libshowlogo\show_animation_common.c\ show_animation_common.c fill_animation_battery_ver_1//执行充电动画的函数</span></span> /* * Show charging animation by version * */ void fill_animation_battery_by_ver(unsigned int capacity,void *fill_addr, void * dec_logo_addr, void * logo_addr, LCM_SCREEN_T phical_screen, int version) { LOG_ANIM("[show_animation_common: %s %d]version : %d\n",__FUNCTION__,__LINE__, version); switch (version) { case 0: fill_animation_battery_ver_0(capacity, fill_addr, dec_logo_addr, logo_addr, phical_screen); break; case 1: fill_animation_battery_ver_1(capacity, fill_addr, dec_logo_addr, logo_addr, phical_screen); break;
相关文章推荐
- maillist of Hacking USB@LINUX
- MTK驱动笔记
- (zt)MTK编译过程
- 解析MTK获取系统时间函数大全
- MTK中关于存储系统应用教程
- 如何在MTK上使用RVCT
- 手机开发平台指南
- MTK相关
- Java数字签名步骤
- 手机MTK芯片组格式化
- MTK 如何生成lib
- 在大容量数据集中查找前N个数的算法
- MTK中history机制小结
- MTK手机平台添加资源和菜单的方式(转)
- 国笔手机输入法MTK支持的语言
- mtk modis 菜单功能紊乱
- 11a MTK 编译系列问题
- MTK 读取 IMEI
- MTK task (原文 http://blog.csdn.net/yanwuxufeng/archive/2010/07/24/5762361.aspx)
- TASK