Use a defined constant to name custom events

Change-Id: I88cc7539a4cf95750778dc4919a3614c98b6eab0