Add context to customization class constructors

Context may be needed to obtain extra information.

Also fix bug where exception is thrown when
MediaKeyDispatcher#getOverriddenKeyEvents is not overridden in the
custom MediaKeyDispatcher class.

Bug: 168579449
Test: build and manually check that custom classes are being
      instantiated through reflection.
Change-Id: I248c5842dc8675d3fbe5699cfc7174d10a4d7188
3 files changed