Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event

See b.android.com/55873

Change-Id: I92c549e1a595662d4df8fa0e47675ccb2b8814fd
Revert "Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event"

This reverts commit e3ce9004dfd257943f04e48abb12ecfe6210290a.