The link you provided to the Android SDK docs says the following:
"... if a SCO connection is established, the following restrictions apply on audio output streams so that they can be routed to SCO headset:
the stream type must be STREAM_VOICE_CALL
the format must be mono
the sampling must be 16kHz or 8kHz
The following restrictions apply on input streams:
the format must be mono
the sampling must be 8kHz"
Your usage of "AudioRecord" is an input stream and does not need to be concerned w/ STREAM_VOICE_CALL:
For "AudioTrack" you would need to do the following when in SCO mode:
AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_VOICE_CALL, //
8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, //
minBufferSizeInBytes, //
AudioTrack.MODE_STREAM);
And the following when NOT in SCO mode:
AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, //
8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, //
minBufferSizeInBytes, //
AudioTrack.MODE_STREAM);