Commit d4ac568
committed
refactor: remove smart battery management feature
Removed the smart battery management feature including its configuration
options and related code. This includes:
1. Removed smartBatteryStatus and smartBatteryOnThreshold configuration
options from DSG config
2. Removed smart battery related fields from Battery and Manager structs
3. Removed smart battery logic that fakes 100% battery percentage when
charging above threshold
4. Removed refreshSmartBattery method and its calls
5. Removed DSG configuration handling for smart battery settings
The feature was removed to simplify the power management system and
eliminate potentially misleading battery percentage display behavior
that could confuse users about actual battery status.
Log: Removed smart battery management feature
Influence:
1. Test battery percentage display accuracy during charging
2. Verify battery status reporting remains consistent
3. Test power management functionality without smart battery features
4. Confirm configuration options are properly removed from settings
5. Verify no regression in battery low warnings and power saving modes
refactor: 移除智能电量管理功能
移除了智能电量管理功能及其相关配置选项和代码。具体包括:
1. 从 DSG 配置中移除 smartBatteryStatus 和 smartBatteryOnThreshold 配置
选项
2. 从 Battery 和 Manager 结构体中移除智能电量相关字段
3. 移除在充电超过阈值时伪造 100% 电量的智能电量逻辑
4. 移除 refreshSmartBattery 方法及其调用
5. 移除智能电量设置的 DSG 配置处理
此次移除旨在简化电源管理系统,消除可能误导用户对实际电池状态认知的电池百
分比显示行为。
Log: 移除智能电量管理功能
Influence:
1. 测试充电期间电池百分比显示的准确性
2. 验证电池状态报告保持一致性
3. 测试无智能电量功能下的电源管理功能
4. 确认配置选项已从设置中正确移除
5. 验证电池低电量警告和节能模式无回归问题1 parent ea1f285 commit d4ac568
4 files changed
Lines changed: 0 additions & 89 deletions
File tree
- misc/dsg-configs
- system/power1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | 580 | | |
605 | 581 | | |
606 | 582 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 48 | | |
55 | 49 | | |
56 | 50 | | |
| |||
72 | 66 | | |
73 | 67 | | |
74 | 68 | | |
75 | | - | |
76 | 69 | | |
77 | 70 | | |
78 | 71 | | |
| |||
207 | 200 | | |
208 | 201 | | |
209 | 202 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | 203 | | |
219 | 204 | | |
220 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 124 | | |
132 | 125 | | |
133 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 93 | | |
102 | 94 | | |
103 | 95 | | |
| |||
418 | 410 | | |
419 | 411 | | |
420 | 412 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | 413 | | |
448 | 414 | | |
449 | 415 | | |
450 | 416 | | |
451 | 417 | | |
452 | 418 | | |
453 | 419 | | |
454 | | - | |
455 | | - | |
456 | 420 | | |
457 | 421 | | |
458 | 422 | | |
| |||
483 | 447 | | |
484 | 448 | | |
485 | 449 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | 450 | | |
493 | 451 | | |
494 | 452 | | |
| |||
584 | 542 | | |
585 | 543 | | |
586 | 544 | | |
587 | | - | |
588 | 545 | | |
589 | 546 | | |
590 | 547 | | |
| |||
0 commit comments