Convert MotionEvent#getSurfaceRotation to ui::Rotation

Because it might have an invalid rotation it needs to return
std::optional<ui::Rotation>, but at least we're using the types
effectively here.

Test: compiles
Change-Id: Ib8bd1cf5c1d910c08fa9ff2a8bb7c74f7c51a71d
1 file changed