BT: Using ConcurrentHashMap for connection list

- Bluetooth Off operation during active Browse
  connection causes concurrent access of conn
  map with cleanup and other browse related
  operations.
- This change updates datatype of conn list map
  to ConcurrentHashMap to accommodate such
  scenarios.

CRs-Fixed: 2557454

Change-Id: I2208cb817a04403a96055f55a88963dd0c9402c2
diff --git a/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java b/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java
index 710afbb..9dab1b3 100644
--- a/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java
+++ b/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java
@@ -91,6 +91,7 @@
 import java.util.Objects;
 import com.android.bluetooth.hfp.HeadsetService;
 import java.util.Arrays;
+import java.util.concurrent.ConcurrentHashMap;
 /******************************************************************************
  * support Bluetooth AVRCP profile. support metadata, play status, event
  * notifications, address player selection and browse feature implementation.
@@ -4834,7 +4835,7 @@
     }
 
     public class AvrcpBrowseManager {
-        Map<String, BrowsedMediaPlayer_ext> connList = new HashMap<String, BrowsedMediaPlayer_ext>();
+        Map<String, BrowsedMediaPlayer_ext> connList = new ConcurrentHashMap<String, BrowsedMediaPlayer_ext>();
         private AvrcpMediaRspInterface_ext mMediaInterface;
         private Context mContext;