Fix native stats_event logging

pass the byte array pointer; not the reference to the pointer.

Also turn on new socket protocol.

Bug: 148909969
Bug: 143979391
Test: m
Test: fastboot flashall
Test: atest android.cts.statsd.atom.UidAtomTests#testLmkKillOccurred
Test: atest LibStatsPullTests
Test: atest GtsStatsdHostTestCases
Change-Id: If7abae5cadb036555540d1b9b5e7f2cabe99beb8
This commit is contained in:
Muhammad Qureshi 2020-02-05 17:10:46 -08:00
parent f49c38beb5
commit b173a95ae8

View file

@ -324,5 +324,5 @@ void AStatsEvent_build(AStatsEvent* event) {
int AStatsEvent_write(AStatsEvent* event) {
AStatsEvent_build(event);
return write_buffer_to_statsd(&event->buf, event->size, event->atomId);
}
return write_buffer_to_statsd(event->buf, event->size, event->atomId);
}