Age | Commit message (Collapse) | Author |
|
am: 59441155d9
Change-Id: I9bb4870983c0e9d5e9933267b6e6009402651b54
|
|
Test:
- delete file /persist/battery/qcom_charge_full
- adb logcat to check code flow related health@2.0
- adb bugreport
- no "avc: denied" on health vendor service
- check learned capacity in both
/sys/class/power_supply/bms/charge_full
/persist/battery/qcom_charge_full
-- decrease /sys/class/power_supply/bms/charge_full
to check backup to /persist/battery/qcom_charge_full
-- increase /sys/class/power_supply/bms/charge_full
to check restore from /persist/battery/qcom_charge_full
(simluate the reset condition)
Bug: 120098378
Change-Id: I7413d9e1e41b4354f0a3cfd1070b100b7ebb0794
Signed-off-by: Jack Wu <wjack@google.com>
|
|
Bug: 114316519
Test: it builds
Change-Id: Iae926b460797dd82e4e0d0ce45ba3c10beef441a
Signed-off-by: Maggie White <maggiewhite@google.com>
|
|
am: a46b924031
Change-Id: If91d2d8ca46d520b165fc762b2bfb270dd792aba
|
|
Change NOT_CHARGE to DISCHARGE
Bug: 117579500
Test: confrim no NOT_CHARGE state reported
Change-Id: I9801660e452a1366c784a55e2129f015b5978214
Signed-off-by: Wasb Liu <wasbliu@google.com>
|
|
am: 2a89377461
Change-Id: Iccd859218794bf439ea4bfad96f575e35bcf0706
|
|
sync from: ag/5235847
Test: lshal debug android.hardware.health@2.0::IHealth/default
Test: vts-tradefed run singleCommand vts -m VtsHalHealthV2_0Target
Test: vts-tradefed run singleCommand vts -m VtsHalHealthV1_0Target
Bug: 117744364
Bug: 117744536
Bug: 117744136
Change-Id: I6e2338753b57d03bf830cc2e9e27a06a8754e519
Signed-off-by: Denny cy Lee <dennycylee@google.com>
|
|
It will be a global error by default.
Test: make checkbuild
Bug: 112564944
Change-Id: I039bfb7173866aff67e0c90501ddf63e80d1ef50
Exempt-From-Owner-Approval: do not block on new warnings
|
|
Bug: 112444505
Test: boot to home and battery temp can be faked
Change-Id: Ifcf5c0818f0705251e91928db7191e6d14010b22
Signed-off-by: Wasb Liu <wasbliu@google.com>
|
|
Bug: 115849755
Test: boot to home and cycle count works
Change-Id: I1e4390bf538a368544d5469e1e21457b0a7bd3fc
Signed-off-by: Wasb Liu <wasbliu@google.com>
|
|
SOC drops from 100% to 99% way too quickly when plug-out cable.
This is the real situation of the responding.
But it causes bad user experience.
So using remap function solves it.
Test: Charge to 100% for a while and remove the cable immediately.
SOC needs to keep 100% for a period of time.
Bug: 115849755
Change-Id: Ic65f6795c6ac01805891dedb5d2ce63fa34aad3c
Signed-off-by: Ted Lin <tedlin@google.com>
Signed-off-by: Wasb Liu <wasbliu@google.com>
|
|
The System SoC does get back to MaxFG reported SoC.
But the elapsed time will be reset and re-calculated.
SOC will stick to 100% for 8 minutes then converge.
Test: Overload the device with charging.
And let it charging/discharging during the test.
Bug: 115849755
Change-Id: I897c6207cd08b886fb74e38c94da28092b786d14
Signed-off-by: Ted Lin <tedlin@google.com>
Signed-off-by: Wasb Liu <wasbliu@google.com>
|
|
When the system time is changed to past time,
the elapsed time calculated from RemapSOC becomes negative.
Using SYSTEM_TIME_BOOTTIME to fix the time changed.
Test: Change system time then the diff time is continuous.
Bug: 115849755
Change-Id: I01e27f110bbfff1fee0534d9cc24defc79ce21e0
Signed-off-by: Ted Lin <tedlin@google.com>
Signed-off-by: Wasb Liu <wasbliu@google.com>
|
|
Bug: 115938979
Test: boot to home, capture bugreport
Change-Id: I61d2b8592b070521df96e7c207e41af940ca5ecd
Signed-off-by: Randall Huang <huangrandall@google.com>
|
|
Bug: 112616579
Test: boot to home
Change-Id: Ic02ec294febdc4b8f49ee9e9455616d020e32d39
Signed-off-by: Randall Huang <huangrandall@google.com>
|
|
Bug: 111163725
Change-Id: I00af3102379676cedf818caa2e86c5e1593a48da
Signed-off-by: Roger Liao <rogerliao@google.com>
|
|
- Save the recharging cycle SOC for overloading checking
- use std::string as much as possible
- add power disconnect in WAIT_EOC state case
Test: Using camcorder to overloading the USB charging.
Use USB and below command to find current status/SOC change.
adb shell logcat | grep "vendor/bin/hw/android.hardware.health@2.0-service.crosshatch"
Bug: 74004835
Change-Id: I1dbd09d25a2e1025418cb5d655060c84a0127bb2
Signed-off-by: Ted Lin <tedlin@google.com>
Signed-off-by: Thierry Strudel <tstrudel@google.com>
|
|
Charger driver will not trigger charging when full is reached and device
remains connected to power power source.
User reported SoC will remain to 100% as long as the device is connected also
actual battery SoC will drop.
The reported SoC will converge from 100% to actual battery capacity once
power source is removed.
Test: Using camcorder to overloading the USB charging.
Use USB and below command to find current status/SOC change.
adb shell logcat | grep "vendor/bin/hw/android.hardware.health@2.0-service.crosshatch"
Bug: 74004835
Change-Id: I40e495cb7b367affe62ab0b081e107386e82a140
Signed-off-by: Ted Lin <tedlin@google.com>
|
|
healthd should not be installed on the device
Test: lshal -i | grep IHealth/backup fails
Test: lshal debug android.hardware.health@2.0::IHealth/backup
shows nothing
Test: vts_treble_vintf_test shows nothing about /backup
instance
Bug: 77541952
Change-Id: I34e8585b3b702bd5eb86b7821d140c17266d0ab3
|
|
Bug: 74057048 crosshatch health impl
Bug: 77491619 crash when sysfs nodes are missing
Bug: 77661605 health service write battery level messages
Test: lshal debug android.hardware.health@2.0::IHealth/default
Change-Id: Ie68ae8c253c2a7a31da922dcea1fde5e8d21028a
|