Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2012da8 authored by Muhammad Qureshi's avatar Muhammad Qureshi
Browse files

Fix atom id annotation parsing

Bug: 152633444
Test: m -j cts && m -j CtsStatsdHostTestCases && cts-tradefed run
cts-dev -m CtsStatsdHostTestCases -t
android.cts.statsd.atom.UidAtomTests#testAudioState
Test: bit statsd_test:*

Change-Id: I167012330e431b38b86f190ca6b5d4f90995172f
parent 52f4d8d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -504,12 +504,12 @@ bool LogEvent::parseBuffer(uint8_t* buf, size_t len) {
    typeInfo = readNextValue<uint8_t>();
    if (getTypeId(typeInfo) != INT64_TYPE) mValid = false;
    mElapsedTimestampNs = readNextValue<int64_t>();
    parseAnnotations(getNumAnnotations(typeInfo)); // atom-level annotations
    numElements--;

    typeInfo = readNextValue<uint8_t>();
    if (getTypeId(typeInfo) != INT32_TYPE) mValid = false;
    mTagId = readNextValue<int32_t>();
    parseAnnotations(getNumAnnotations(typeInfo)); // atom-level annotations
    numElements--;