Use AudioManager#getDevices in WiredHeadsetManager

AudioManager#getDevicesForStream returns only speakerphone when a call
is in progress and speakerphone is turned on. This prevents detection of
a wired headset being plugged in. Now uses AudioManager#getDevices
instead, which returns all connected devices.

Change-Id: I3bdaca6d77b2444b47971b72a3c7a8450eb50178
Fixes: 28025980
1 file changed