From 6b4893a2d169649a2e2a2efa5343f696712cc5df Mon Sep 17 00:00:00 2001 From: destradaa Date: Tue, 3 May 2016 15:33:43 -0700 Subject: [PATCH] Update verbosity of hardware providers. Uses a debug log for logging of messages related to hardware providers that are not mandatory in the device. Bug: 28530304 Change-Id: Ief1f193f934e7ebe7077366aafaa913b216e3481 --- .../com/android/server/LocationManagerService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/core/java/com/android/server/LocationManagerService.java b/services/core/java/com/android/server/LocationManagerService.java index 7c48634c8d564..e0b49603ac4fd 100644 --- a/services/core/java/com/android/server/LocationManagerService.java +++ b/services/core/java/com/android/server/LocationManagerService.java @@ -545,11 +545,11 @@ public class LocationManagerService extends ILocationManager.Stub { com.android.internal.R.string.config_hardwareFlpPackageName, com.android.internal.R.array.config_locationProviderPackageNames); if (fusedProxy == null) { - Slog.e(TAG, "Unable to bind FusedProxy."); + Slog.d(TAG, "Unable to bind FusedProxy."); } } else { flpHardwareProvider = null; - Slog.e(TAG, "FLP HAL not supported"); + Slog.d(TAG, "FLP HAL not supported"); } // bind to geofence provider @@ -561,7 +561,7 @@ public class LocationManagerService extends ILocationManager.Stub { mGpsGeofenceProxy, flpHardwareProvider != null ? flpHardwareProvider.getGeofenceHardware() : null); if (provider == null) { - Slog.e(TAG, "Unable to bind FLP Geofence proxy."); + Slog.d(TAG, "Unable to bind FLP Geofence proxy."); } // bind to hardware activity recognition @@ -570,7 +570,7 @@ public class LocationManagerService extends ILocationManager.Stub { if (activityRecognitionHardwareIsSupported) { activityRecognitionHardware = ActivityRecognitionHardware.getInstance(mContext); } else { - Slog.e(TAG, "Hardware Activity-Recognition not supported."); + Slog.d(TAG, "Hardware Activity-Recognition not supported."); } ActivityRecognitionProxy proxy = ActivityRecognitionProxy.createAndBind( mContext, @@ -581,7 +581,7 @@ public class LocationManagerService extends ILocationManager.Stub { com.android.internal.R.string.config_activityRecognitionHardwarePackageName, com.android.internal.R.array.config_locationProviderPackageNames); if (proxy == null) { - Slog.e(TAG, "Unable to bind ActivityRecognitionProxy."); + Slog.d(TAG, "Unable to bind ActivityRecognitionProxy."); } String[] testProviderStrings = resources.getStringArray(