Merge "First draft of native StatsEvent API" am: 5158ab9ff2 am: 3ccb84e989

Change-Id: I8314225a99d9c4e63aea32df3c5aac90d66e1f1f