summaryrefslogtreecommitdiff
path: root/pixelstats/BatteryCapacityReporter.cpp
AgeCommit message (Collapse)Author
2022-03-16Remove reverseDomainName from pixel atomsJeffrey Huang
Bug: 224697964 Test: TH Change-Id: I566e23bc818a6d7184202d445eba438f41b5cf5b
2021-04-09Update pixelstats.proto structureJeffrey Huang
Bug: 184885739 Test: TH Change-Id: Ie79231ece35e1779943194a09f89dc421bffc742
2021-03-22Stats: Transition HIDL clients to the new AIDL APIsVova Sharaienko
Transition performed for below vendor atoms: - VENDOR_CHARGE_CYCLES - VENDOR_HARDWARE_FAILED - VENDOR_SLOW_IO - VENDOR_SPEECH_DSP_STAT - VENDOR_PHYSICAL_DROP_DETECTED - VENDOR_USB_PORT_OVERHEAT Added StatsHelper class to remove code duplication Removed HIDL Stats service usage Eldar documents: - https://eldar.corp.google.com/assessments/711181187/drafts/524239972 - https://eldar.corp.google.com/assessments/172545515/drafts/387415106 - https://eldar.corp.google.com/assessments/58228256/drafts/670276665 - https://eldar.corp.google.com/assessments/739149551/drafts/409076581 - https://eldar.corp.google.com/assessments/758740529/drafts/537971467 - https://eldar.corp.google.com/assessments/410566721/drafts/146868766 Bug: 179509859 Bug: 182352837 Bug: 181908420 Test: build, flash & boot Test: adb shell cmd stats print-stats for all new atoms IDs Change-Id: Ibe3ddfbb008811f6e1770ebea0c5950adfa20c5e
2021-02-24Stats: Transition HIDL clients to the new AIDL APIsVova Sharaienko
Transition is done for reportVendorAtom API Bug: 179509859 Test: build, flash & VtsAidlHalStatsTargetTest Change-Id: Ic54c96330bcf9ebd113f71ff8100c93cff131eae
2020-08-11Prevent logging of more than 4 events per hourStephane Lee
Test: Ensure that a device will not log more than 4 BatteryCapacityFG events in the last hour Bug: b/160894167 Change-Id: Ic0b6ccbab2be64449f3945ff4ca3ffeffe793323
2020-04-14Report FG capacity atom in pixelstatsStephane Lee
Read ssoc_details, parse the battery FG SOC and the UI SOC. Also parse the UI curve midpoint values and the log reason. This will only nominally log when a device has been disconnected, connected, or reached 100% capacity. In abnormal conditions, this will log when the ssoc jumps by greater than 2%, or if abs(ssoc-gdf) is greater than 4% (at a maximum of 30 min intervals). Bug: 147992263 Bug: 122978471 Test: 'adb shell cmd stats print-logs', then check atom ID 105008 in logcat Change-Id: I74b79158818d3ff9fad5ecd3c047c0b4184de23e