Revert "Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event"

This reverts commit 2795f59d1025a56e9afd14ceb09d67e1030cc745.
Revert "framework:base: iterator error in singletone provider"

This reverts commit 9f657ae90161c880cdf19093766ad0a133ff5226.