删除充电动画逻辑,直接设置显示图片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
相关推荐
倚肆8 小时前
Spring Boot CORS 配置详解:CorsConfigurationSource 全面指南q***72198 小时前
Spring Boot(快速上手)Aileen_0v08 小时前
【Gemini3.0的国内use教程】CoderYanger8 小时前
C.滑动窗口——1423. 可获得的最大点数Swift社区9 小时前
StackOverflowError 栈溢出的原因与实战解决方案字节拾光录9 小时前
手机号存储避坑指南:从20亿级数据库实践看,为什么VARCHAR才是终极答案p***97619 小时前
SpringBoot(7)-Swagger浩浩的代码花园9 小时前
自研端侧推理模型实测效果展示j***29489 小时前
springboot集成onlyoffice(部署+开发)