Brad Larson 86568d705e Use isLocationProviderEnabled to test for enabled providers
LocationManagerService was just checking if the string of (comma-separated)
Location Providers contained the provider we were interested in.  This works
fine in normal cases, but breaks if we add a provider such as test_network.
Enabling test_network causes LocationManagerService to think that the network
provider is also enabled.

The code in Settings.Secure.isLocationProviderEnabled() checks for the commas
in the string as well, to make sure that a provider name which is a substring
of another provider name won't cause problems.  It also centralizes the code
which reads the string.

Signed-off-by: Brad Larson <brad.larson@garmin.com>

Change-Id: I00dfe7c2b09739ed4c8ed07c6167e409b0bf7d13
2010-05-07 11:35:15 -07:00
2009-07-29 14:25:07 -07:00
2010-04-16 12:55:48 -07:00
2010-03-30 11:13:47 -07:00
2009-11-13 13:53:39 -08:00
2010-04-28 15:04:10 -04:00
2009-11-13 13:53:39 -08:00
2010-03-24 10:15:41 -07:00
2010-02-05 13:55:16 -08:00
2009-11-13 13:53:39 -08:00
2010-05-03 09:50:38 -07:00
2009-07-21 11:16:54 -07:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%