删除充电动画逻辑,直接设置显示图片logo:hvga_low_battery.bmp
vendor/mediatek/proprietary/external/libshowlogo/charging_animation.cpp
void show_battery_capacity(unsigned int capacity)
{
anim_show_logo(LOW_BATTERY_INDEX);//*/rm animation add set low battery logo
/* if (MTK_LOG_ENABLE == 1) {
SLOGD("[libshowlogo: %s %d]capacity =%d\n",FUNCTION,LINE, capacity);
}
int has_fast_charging = getValue("ro.vendor.mtk_pump_express_plus_support" , "0" );
if (draw_anim_mode == (DRAW_ANIM_MODE_FB)) {
anim_fb_addr_switch();
if( has_fast_charging == 1) {
if (2 != show_animationm_ver && get_fast_charging_state()) {
fill_animation_battery_by_ver(capacity, (void *)outBuffer.bits, dec_logo_addr, logo_addr, phical_screen, show_animationm_ver);
} else {
fill_animation_battery_by_ver(capacity, (void *)fb_addr, dec_logo_addr, logo_addr, phical_screen, show_animationm_ver);
}
}
else {
fill_animation_battery_by_ver(capacity, (void *)fb_addr, dec_logo_addr, logo_addr, phical_screen, show_animationm_ver);
}
anim_fb_disp_update();
} else {
ARect tmpRect;
tmpRect.left = 0;
tmpRect.top = 0;
tmpRect.right = phical_screen.width;
tmpRect.bottom = phical_screen.height;status_t lockResult = surface->lock(&outBuffer, &tmpRect);
if (MTK_LOG_ENABLE == 1) {
SLOGD("[libshowlogo: %s %d]outBuffer.bits = %d, surface->lock return = 0x%08x,\n",FUNCTION,LINE, (int)outBuffer.bits,lockResult);
}
if (0 == lockResult)
{
if(has_fast_charging == 1) {
if (2 != show_animationm_ver && get_fast_charging_state()) {
fill_animation_battery_by_ver(capacity, (void *)outBuffer.bits, dec_logo_addr, logo_addr, phical_screen, show_animationm_ver);
} else {
fill_animation_battery_by_ver(capacity, (void *)outBuffer.bits, dec_logo_addr, logo_addr, phical_screen, show_animationm_ver);
}
} else {
fill_animation_battery_by_ver(capacity, (void *)outBuffer.bits, dec_logo_addr, logo_addr, phical_screen, show_animationm_ver);
}
surface->unlockAndPost();
}
}*/
}
Android 取消充电动画logo,直接显示图片即可
顾北川_野2024-10-23 18:55
相关推荐
_oP_i1 小时前
Pinpoint 是一个开源的分布式追踪系统mmsx1 小时前
android sqlite 数据库简单封装示例(java)武子康1 小时前
大数据-258 离线数仓 - Griffin架构 配置安装 Livy 架构设计 解压配置 Hadoop Hive豪宇刘2 小时前
MyBatis的面试题以及详细解答二秋恬意2 小时前
Mybatis能执行一对一、一对多的关联查询吗?都有哪些实现方式,以及它们之间的区别FF在路上3 小时前
Knife4j调试实体类传参扁平化模式修改:default-flat-param-object: true真的很上进3 小时前
如何借助 Babel+TS+ESLint 构建现代 JS 工程环境?众拾达人4 小时前
Android自动化测试实战 Java篇 主流工具 框架 脚本皓木.4 小时前
Mybatis-Plus不良人天码星4 小时前
lombok插件不生效