OSDN Git Service

Catch IllegalArgumentException when calling
authorYu-Han Yang <yuhany@google.com>
Thu, 24 May 2018 17:29:39 +0000 (10:29 -0700)
committerYu-Han Yang <yuhany@google.com>
Sat, 26 May 2018 02:57:44 +0000 (19:57 -0700)
commite684ddac67038526e73f46ed261c34af46ef015c
tree12d312666e9093f04055b91356243263a21bf00b
parent621fd20f5591a3d5846e7bbdb8d5624e2b8b8dab
Catch IllegalArgumentException when calling
LocationManager#requestLocationUpdate

- Cannot depend on LocationManager#isProviderEnabled, since it always returns
false for FLP.

Bug: 80199046
Change-Id: I9c85b8a9468bceca0620c5aff16655ed633ee36b
Fixes: 80199046
Test: Manually added a CTS test to trigger the flow in AOSP build on
device, and successfully caught the exception when requesting location
updates from NLP.
services/core/java/com/android/server/location/GnssLocationProvider.java