test Location.isFromMockProvider()

Added tests for Location.isFromMockProvider() to CTS.

LocationVerifier can now be configured to expect incoming Location
objects to have come from mock or real location providers, and
a mismatch will result in associated CTS tests failing.

GpsTestActivity uses LocationVerifier, and enforces "false" return
values from isFromMockProvider() when called on locations returned
by the GPS provider.

LocationManagerTest uses mock location providers in a variety of
ways, so we test that Locations being reported by those are
properly flagged.

Bug: 6813235
Change-Id: I2d4a37a73d2f518d4b5e53b0d33037899817965e
3 files changed