I guess one can do some heuristics to tell a tilt apart from a move.
But be aware that in the end there are physical restrictions to tell
them apart in all cases.
Imagine you sit in a moving theater (like the ones they have in Disney
land) where a rocket is being simulated. On the screen you see the
cockpit of the rocket that is being launched, and you are pushed back
into your seat. Maybe the whole cinema is moving and acceleration
forward, but more probably it is just tilting back. How can you tell
the difference? Probably using a gyroscope and a compass, but things
get more involved there.
I assume that the G1 does not have a three-axis gyroscope included and
the orientation sensor value is really a combination of the compass
and the accelerometer values. If this is the case, there is no easy
way to tell tilt apart from move in general.
As for what exactly SensorTest is doing, I guess you have to ask in
the Android Developer's forum. It is taken from the API demos. All I
did was add support for the OpenIntents SensorSimulator for it.
Peli