Revert "move some log spilling below DEBUG"

This reverts commit f1f5991fceb71b52d3f28a6ce2f080d16626781f.
Revert "fix for auto-close 3-dot menu"

This reverts commit 5e7d7a8e9d99f80192da85e74cfcfd363cb5b00f.
Properly rotate full [-pi, +pi] orientation range if available

The code currently in place assumes that orientation has a range
of [-pi/2, +pi/2] as may be found with a touch digitizer. However,
when used with a digitzer that can report the full [-pi, +pi] range
of orientations (e.g. a stylus) the calculations here are incorrect.

This patch checks if the post-rotation value is out of range for
the axis, and wraps it back around.

Change-Id: I03a22f7bf9526a5d995df1a18430d6dd24c6d6ee