summaryrefslogtreecommitdiffstats
path: root/pixelstats/Android.bp
Commit message (Collapse)AuthorAgeFilesLines
* Report FG capacity atom in pixelstatsStephane Lee2020-04-151-0/+1
| | | | | | | | | | | | | | | 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 105010 in logcat Change-Id: I74b79158818d3ff9fad5ecd3c047c0b4184de23e
* Pixelstats: Add 2 wireless charging metricsDenny cy Lee2020-04-081-0/+3
| | | | | | | | | | | Upload metrics, "device orientation" and "1P/3P charger", when wireless charging starts. Bug: 141605895 Test: Manually, adb shell cmd stats print-logs;adb logcat |egrep "statsd.*\(10500. \)0x10000->" Change-Id: I7486cc6ea9ca50e63cc5bfe9c58bdd592020f5b4
* Set proper sdk_versionJeongik Cha2019-11-061-0/+1
| | | | | | | | | | even though pixelatoms-java doesn't use any hidden APIs, it leaves sdk_version empty, that is, it builds agiast platform. So set narrower sdk_version(current) Bug: 132780927 Test: m Change-Id: Ie1195c82887d5862cc06ee5ad9fb0fe9ece64515
* Remove libhwbinder/libhidltransport depsndk-sysroot-r21Steven Moreland2019-10-011-1/+0
| | | | | | | | Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: Ifcbd0675df88cb43afe98b1dfe0c5da396384eee
* pixelstats: Upload charge metricsMaggie White2019-04-191-0/+1
| | | | | | | | | | | | | | | | | | We calcalate charge metrics at the end of every charge cycle in the kernel and notify userspace (i.e. the pixelstats service) when a full charge is completed. The pixelstats service will then read the relevant sysfs file and construct and push statsd VendorAtoms. Bug: 120801632 Test: Matched charge_stats_actual input with statsd logs pixelstats-uevent: ChargeStats: processing 4,5000,1500, 65535,65535,65535,65535 pixelstats-uevent: VoltageTierStats: processing 1, 98.180,3698,265, 6,0,0, 265,353,265, 1187,2279,1884, 150,1350,1300 pixelstats-uevent: VoltageTierStats: processing 2, 98.180,3698,265, 317,1290,517, 260,265,272, -608,-57,609, 1250,1326,1350 statsd : { uid(1066) 1555470326000000000 2147106165556 (105000)0x10000->com.google.pixel[S] 0x20000->4[I] 0x30000->5000[I] 0x40000->1500[I] 0x50000->65535[I] 0x60000->65535[I] 0x70000->65535[I] 0x80000->65535[I] } statsd : { uid(1066) 1555470326000000000 2147106257796 (105001)0x10000->com.google.pixel[S] 0x20000->1[I] 0x30000->98.180000[F] 0x40000->3698[I] 0x50000->265[I] 0x60000->6[I] 0x70000->0[I] 0x80000->0[I] 0x90000->265[I] 0xa0000->353[I] 0xb0000->265[I] 0xc0000->1187[I] 0xd0000->2279[I] 0xe0000->1884[I] 0xf0000->150[I] 0x100000->1350[I] 0x110000->1300[I] } statsd : { uid(1066) 1555470326000000000 2147106334775 (105001)0x10000->com.google.pixel[S] 0x20000->2[I] 0x30000->98.180000[F] 0x40000->3698[I] 0x50000->265[I] 0x60000->317[I] 0x70000->1290[I] 0x80000->517[I] 0x90000->260[I] 0xa0000->265[I] 0xb0000->272[I] 0xc0000->-608[I] 0xd0000->-57[I] 0xe0000->609[I] 0xf0000->1250[I] 0x100000->1326[I] 0x110000->1350[I] } Change-Id: Iabff0ed4d2c7bb7b51f6436d6021cd2f2bde3e85 Signed-off-by: Maggie White <maggiewhite@google.com>
* pixelstats: Create device-agnostic PixelAtoms libraryMaggie White2019-04-161-1/+26
| | | | | | | | | | | | | | | Create a central library that holds all Pixel-specific atom IDs for atoms that are generated on the vendor partition and are not device specific. This will prevent atom ID and namespace collision between Pixel device software teams. The first atoms added allow us to collect detailed charge cycle metrics. Bug: 127358284 Bug: 120439050 Test: Used this library in pixelstats Change-Id: I67ddbd6bdd3e6015838e7dfbe74ae6aee82b29cb Signed-off-by: Maggie White <maggiewhite@google.com>
* health: pixelstats: Remove references to IPixelStatsMaggie White2019-04-111-1/+0
| | | | | | | Bug: 122904980 Change-Id: I3be3928c214de7cf788111cabb4ceda5806e9c6d Signed-off-by: Maggie White <maggiewhite@google.com> Merged-In: 7b2dc962f0154bceb81d18f9a8bec2e05cbe911e
* pixelstats: Publish events to both tron and stats HALMaggie White2018-12-101-0/+4
| | | | | | | | This reverts commit 56e4e2292d518773aec61fb1e9a43b15a7b3a3ab. Bug: 114316519 Test: adb shell cmd stats pull-source 10019 Change-Id: I49be88c62876c5aec41bd9589e9a9fb999f3fb42
* Revert "pixelstats: Publish events to both tron and stats HAL"Maggie White2018-12-041-4/+0
| | | | | | | | | This reverts commit a30ceaf6a0e26189126cfcc7a3514d2591c09bcd. Reason for revert: This change is causing a watchdog reset: b/119809588 Test: Built and flashed on a device which booted Change-Id: I4069f854fafd96c139b3af0b606408a5a7de960b
* pixelstats: Publish events to both tron and stats HALMaggie White2018-11-141-0/+4
| | | | | | | | | Bug: 114316519 Bug: 119490156 Test: Don't see any stats service error logs on blueline Test: Verified drop and battery snapshot metrics statsd messages Change-Id: Ia573de875a54f342477b2b9463c04274b8aa59d8 Signed-off-by: Maggie White <maggiewhite@google.com>
* vendor: pixelstats: Add device-agnostic classes from P18Maggie White2018-10-261-0/+43
Bug: 117826269 Test: See "Drop Detect enabled" log Change-Id: I30d85bb672790a831545b2acfbf2a5dc2674f0b1 Signed-off-by: Maggie White <maggiewhite@google.com>