Make stats_event write function parameters const am: 6d5a2fc44d am: bf9e1fcf1d

Change-Id: I2f2e780f874eab10022d1273a9eac05f8c29ad16