Activate hot plugged device

Activate hot plugged audio input device, to match the output device
behavior.

This is a reland of http://ag/29970464 with slight modification that
the applyDefaultSelectedTypeToAllPresets is being called at the
beginning of onAudioDevicesAdded to make sure the device list is fully
available when mAudioManager.getDevices API is called.

Change-Id: I92196d6bb66424cd86e2dd705ad06a0f97d061bd
Bug: b/355684672, b/374174565
Test: InputRouteManagerTest
Flag: com.android.media.flags.enable_audio_input_device_routing_and_volume_control
2 files changed