AudioFlinger: Fix getInputBufferSize() calculation

1. Query 44100 and 48000 SR if proposed SR is not supported
2. Query AUDIO_CHANNEL_IN_MONO and AUDIO_CHANNEL_IN_STEREO if
proposed channel_mask is not supported
3. Return with bytes rather than frames
4. Fix destinationFramesPossible usage

Test: run cts
android.media.cts.AudioRecord_BufferSizeTest#testGetMinBufferSize
Bug: 144245613
Bug: 144245318
Bug: 144000030

Change-Id: I0fa90eb1bef63bd441724cdb0fa7f9172f503364
2 files changed