Age | Commit message (Collapse) | Author |
|
Added SPDX-license-identifier-Apache-2.0 to:
bonito/overlay_packages/SettingsOverlayG020A/Android.bp
bonito/overlay_packages/SettingsOverlayG020B/Android.bp
bonito/overlay_packages/SettingsOverlayG020C/Android.bp
bonito/overlay_packages/SettingsOverlayG020D/Android.bp
bootctrl/Android.bp
dumpstate/Android.mk
health/Android.bp
keymaster/Android.bp
pixelstats/Android.bp
powerstats/Android.bp
rro_overlays/WifiOverlay/Android.bp
sargo/overlay_packages/SettingsOverlayG020E/Android.bp
sargo/overlay_packages/SettingsOverlayG020E_VN/Android.bp
sargo/overlay_packages/SettingsOverlayG020F/Android.bp
sargo/overlay_packages/SettingsOverlayG020F_VN/Android.bp
sargo/overlay_packages/SettingsOverlayG020G/Android.bp
sargo/overlay_packages/SettingsOverlayG020G_VN/Android.bp
sargo/overlay_packages/SettingsOverlayG020H/Android.bp
sargo/overlay_packages/SettingsOverlayG020H_VN/Android.bp
self-extractors/qcom/staging/Android.mk
self-extractors_sargo/qcom/staging/Android.mk
usb/Android.bp
voice_processing/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
SPDX-license-identifier-GPL-2.0 SPDX-license-identifier-MIT
legacy_unencumbered
to:
Android.bp
Added SPDX-license-identifier-BSD
to:
gpt-utils/Android.bp
sdm710/thermal-engine/Android.mk
Added SPDX-license-identifier-MIT legacy_unencumbered
to:
json-c/Android.mk
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Id8c6575eaf6c928c0e5e2b2ac4221357e3dc4897
|
|
Bug: 175614345
Test: 'atest HealthTestCases'
Merged-In: Iac6fff029e9bbc5d0b294ae194041d81428ff385
Change-Id: Iac6fff029e9bbc5d0b294ae194041d81428ff385
(cherry picked from commit b509d5329d9c5ae160e435d3c9c01fa0893108e5)
|
|
Battery defender aims to extend the life of the battery when a device
is plugged in for too long (2 weeks).
Test: Set BatteryDefender.h constructor thresholds to 1 minute.
Ensure that the SOC charge thresholds change to 60/70
when connected to power for 1 minute.
Bug: 146318912
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I47d21c5c557a1f478b6d5fa26c02b81f32432d3b
|
|
Test: Ensure that contents of the file paths modified do not change
Bug: b/143853986
Change-Id: Ifc73eef14966455624df88aafe7f6250d0e97da5
|
|
Since these were combined into libhidlbase.
Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: If6735b9754a632d26ed8b06e879d6819039cae44
|
|
This is to enable to disabling of SOC based throttling
when charging is enabled. Throttling is re-enabled once
device is no longer charging.
Bug: 131314951
Test: Use emul_temp and battery/capacity to emulate
condition for checking if SOC thermal zone is
disabled/enabled.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Idbf460ba6e240b819aa02ba2962c5176da991b7d
|
|
Bug: 122904980
Test: it builds
Change-Id: I8b27f93c2527a1bf9ea48cb50bca3a6d622012f3
Signed-off-by: Maggie White <maggiewhite@google.com>
|
|
am: e9ba885953
Change-Id: I0887227b1cd2b5384c0f994efe2cf01daf3895a7
|
|
Restore capacity from persist data when capacity is the same as
nominal capacity. Write capacity to persist data when capacity
has changed and it is different from nominal capacity.
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
-- change /sys/class/power_supply/bms/charge_full
to check backup to /persist/battery/qcom_charge_full
-- set /sys/class/power_supply/bms/charge_full the same
as /sys/class/power_supply/bms/charge_full_design
to check /sys/class/power_supply/bms/charge_full
restore from /persist/battery/qcom_charge_full
(simluate the reset condition)
Bug: 120401569
Change-Id: I14251eb235eb2893492e4d16113f86b11b56d0c7
Signed-off-by: Jack Wu <wjack@google.com>
|
|
am: 1dcfe0c588
Change-Id: I35547db1557eccd9ac28482fe3367f77230247b0
|
|
Avoid abnormal level jump when overloading happens at 100%
and it's not in EoC case.
Bug: 128385708
Test: Verify passed
Change-Id: I13e038e77ec6386704e1f3365cd59a2ab6ee508a
Signed-off-by: Wasb Liu <wasbliu@google.com>
|
|
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
|