完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
RK3288[android 7.1]调试笔记 去掉开始后屏幕下侧显示的“已充满”
屏蔽掉路径为/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/KeyguardIndicationController.java此文件的以下几句话 wangxd@build-server-100:~/work/dsy/rk3288-Android-7.0/frameworks/base/packages/SystemUI(m_android_7_0)$ git diff src/com/android/systemui/statu***ar/KeyguardIndicationController.java diff --git a/packages/SystemUI/src/com/android/systemui/statu***ar/KeyguardIndicationController.java b/packages/Sy old mode 100644 new mode 100755 index 0ef97152..3d3cbb3 --- a/packages/SystemUI/src/com/android/systemui/statu***ar/KeyguardIndicationController.java +++ b/packages/SystemUI/src/com/android/systemui/statu***ar/KeyguardIndicationController.java @@ -170,12 +170,12 @@ public class KeyguardIndicationController { mTextView.setTextColor(mTransientTextColor); } else if (mPowerPluggedIn) { - String indication = computePowerIndication(); - if (DEBUG_CHARGING_SPEED) { - indication += ", " + (mChargingWattage / 1000) + " mW"; - } - mTextView.switchIndication(indication); - mTextView.setTextColor(Color.WHITE); + // String indication = computePowerIndication(); //主要是 把computePowerIndication 这个显示充电时间函数给屏蔽掉 + // if (DEBUG_CHARGING_SPEED) { + // indication += ", " + (mChargingWattage / 1000) + " mW"; + // } + // mTextView.switchIndication(indication); + // mTextView.setTextColor(Color.WHITE); } else { mTextView.switchIndication(mRestingIndication); mTextView.setTextColor(Color.WHITE); } } } //这个函数是显示已充满,得到充电时间函数 private String computePowerIndication() { if (mPowerCharged) { return mContext.getResources().getString(R.string.keyguard_charged);//这里会获取已充满的字符串资源 } // Try fetching charging time from battery stats. long chargingTimeRemaining = 0; try { chargingTimeRemaining = mBatteryInfo.computeChargeTimeRemaining(); } catch (RemoteException e) { Log.e(TAG, "Error calling IBatteryStats: ", e); } final boolean hasChargingTime = chargingTimeRemaining > 0; int chargingId; switch (mChargingSpeed) { case KeyguardUpdateMonitor.BatteryStatus.CHARGING_FAST: chargingId = hasChargingTime ? R.string.keyguard_indication_charging_time_fast : R.string.keyguard_plugged_in_charging_fast; break; case KeyguardUpdateMonitor.BatteryStatus.CHARGING_SLOWLY: chargingId = hasChargingTime ? R.string.keyguard_indication_charging_time_slowly : R.string.keyguard_plugged_in_charging_slowly; break; default: chargingId = hasChargingTime ? R.string.keyguard_indication_charging_time : R.string.keyguard_plugged_in; break; } if (hasChargingTime) { String chargingTimeFormatted = Formatter.formatShortElapsedTimeRoundingUpToMinutes( mContext, chargingTimeRemaining); return mContext.getResources().getString(chargingId, chargingTimeFormatted); } else { return mContext.getResources().getString(chargingId); } } |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1906 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
2382 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
5175 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 04:43 , Processed in 0.570214 second(s), Total 71, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号