diff options
| author | destradaa <destradaa@google.com> | 2014-06-13 00:07:24 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-06-10 21:44:22 +0000 |
| commit | 45c9ef2021e678b85851dce51fd9c2f3698eb0b3 (patch) | |
| tree | 63d8eea15535e0e4e216f0ca39a3ff3b956871ec | |
| parent | 65599da8612b72973f0334286d10bf5f1219da0f (diff) | |
| parent | d5323174d85b6685672e321f045c44637e777618 (diff) | |
| download | frameworks_base-45c9ef2021e678b85851dce51fd9c2f3698eb0b3.zip frameworks_base-45c9ef2021e678b85851dce51fd9c2f3698eb0b3.tar.gz frameworks_base-45c9ef2021e678b85851dce51fd9c2f3698eb0b3.tar.bz2 | |
Merge "Separate Hardware Flp ServiceWatcher flags from the ones used by Software Flp."
| -rw-r--r-- | core/res/res/values/config.xml | 13 | ||||
| -rw-r--r-- | core/res/res/values/symbols.xml | 2 | ||||
| -rw-r--r-- | services/core/java/com/android/server/LocationManagerService.java | 4 |
3 files changed, 17 insertions, 2 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 9ff9b11..830c64c 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -791,6 +791,19 @@ config_enableFusedLocationOverlay is false. --> <string name="config_fusedLocationProviderPackageName" translatable="false">com.android.location.fused</string> + <!-- Whether to enable Hardware FLP overlay which allows Hardware FLP to be + replaced by an app at run-time. When disabled, only the + config_hardwareFlpPackageName package will be searched for Hardware Flp, + otherwise packages whose signature matches the signatures of + config_locationProviderPackageNames will be searched, and the service + with the highest version number will be picked. Anyone who wants to + disable the overlay mechanism can set it to false. + --> + <bool name="config_enableHardwareFlpOverlay" translatable="false">true</bool> + <!-- Package name providing Hardware Flp. Used only when + config_enableHardwareFlpOverlay is false. --> + <string name="config_hardwareFlpPackageName" translatable="false">com.android.location.fused</string> + <!-- Whether to enable geocoder overlay which allows geocoder to be replaced by an app at run-time. When disabled, only the config_geocoderProviderPackageName package will be searched for diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index f2550ab..8fad07a 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -1462,6 +1462,7 @@ <java-symbol type="bool" name="config_animateScreenLights" /> <java-symbol type="bool" name="config_automatic_brightness_available" /> <java-symbol type="bool" name="config_enableFusedLocationOverlay" /> + <java-symbol type="bool" name="config_enableHardwareFlpOverlay" /> <java-symbol type="bool" name="config_enableGeocoderOverlay" /> <java-symbol type="bool" name="config_enableGeofenceOverlay" /> <java-symbol type="bool" name="config_enableNetworkLocationOverlay" /> @@ -1553,6 +1554,7 @@ <java-symbol type="string" name="chooser_wallpaper" /> <java-symbol type="string" name="config_datause_iface" /> <java-symbol type="string" name="config_fusedLocationProviderPackageName" /> + <java-symbol type="string" name="config_hardwareFlpPackageName" /> <java-symbol type="string" name="config_geocoderProviderPackageName" /> <java-symbol type="string" name="config_geofenceProviderPackageName" /> <java-symbol type="string" name="config_networkLocationProviderPackageName" /> diff --git a/services/core/java/com/android/server/LocationManagerService.java b/services/core/java/com/android/server/LocationManagerService.java index 5eee396..10382ba 100644 --- a/services/core/java/com/android/server/LocationManagerService.java +++ b/services/core/java/com/android/server/LocationManagerService.java @@ -479,8 +479,8 @@ public class LocationManagerService extends ILocationManager.Stub { mContext, mLocationHandler, flpHardwareProvider.getLocationHardware(), - com.android.internal.R.bool.config_enableFusedLocationOverlay, - com.android.internal.R.string.config_fusedLocationProviderPackageName, + com.android.internal.R.bool.config_enableHardwareFlpOverlay, + com.android.internal.R.string.config_hardwareFlpPackageName, com.android.internal.R.array.config_locationProviderPackageNames); if(fusedProxy == null) { Slog.e(TAG, "Unable to bind FusedProxy."); |
