Refactor Location.java

Apply API best practices, fix infinite loop in setBearing(), fix up
javadocs and rewrite some tests.

Bug: 187142700
Test: atest LocationTest + presubmits
Change-Id: I75decc7b167b90b5a22e718848259d454db7a08b
4 files changed