AudioService: Fix mConnectedDevices iteration issues.

 - Don't remove from the map while iterating.
 - Use ArrayMap and tighten up all iterations to avoid unnecessary
   allocations.

Bug: 20523001
Change-Id: I2587d0f9778b38d96afdfd0e61b00b06911837ae
1 file changed