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

Commit fd1c8930 authored by Chiachang Wang's avatar Chiachang Wang
Browse files

Support DATA_STALL_EVENT in StatsLog.write

The target source to send the event will be mainline module
which unable to access @hide classes/functions. And current
design of StatsLog.write only allows a specific id. Thus, add
more case to support mainline module usage.

Bug: 120452078
Test: ./out/host/linux-x86/bin/statsd_testdrive 121
      against data stall event sent from NetworkStack

Change-Id: I5a68e7e093e63cc87eae753068183215a97e022d
parent 38e184a0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -126,6 +126,12 @@ public final class StatsLog extends StatsLogInternal {
            case PERMISSION_GRANT_REQUEST_RESULT_REPORTED:
                write(id, (long) params[0], (int) params[1], (String) params[2], (String) params[3],
                        (boolean) params[4], (int) params[5]);
                break;
            case DATA_STALL_EVENT:
                // Refer to the defintion in frameworks/base/cmds/statsd/src/atoms.proto.
                write(id, (int) params[0], (int) params[1], (int) params[2], (byte[]) params[3],
                        (byte[]) params[4], (byte[]) params[5]);
                break;
        }
    }
}