Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event

See b.android.com/55873

Change-Id: Idff7b71480991e16f57e55748fafa57d5827b10b
Merge "Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event" into jb42