TouchscreenTester is a project mainly written in Java, it's free.
Android App that examines tracking performance of touchscreen
Android app for examining performance of touchscreens
To do: