Lines Matching refs:AudioSystem
264 AudioSystem::audio_in_acoustics acoustic_flags)
267 if (!AudioSystem::isInputDevice((AudioSystem::audio_devices)devices)) {
307 if (mode == AudioSystem::MODE_IN_CALL) {
320 if (((prevMode != AudioSystem::MODE_IN_CALL) && (mMode == AudioSystem::MODE_IN_CALL)) ||
321 ((prevMode == AudioSystem::MODE_IN_CALL) && (mMode != AudioSystem::MODE_IN_CALL))) {
578 if (format != AudioSystem::PCM_16_BIT) {
842 } else if (mMode == AudioSystem::MODE_IN_CALL
849 if (!checkOutputStandby() || mMode != AudioSystem::MODE_IN_CALL)
856 return do_route_audio_dev_ctrl(device, mMode == AudioSystem::MODE_IN_CALL, rx_acdb_id, tx_acdb_id);
994 if (mMode == AudioSystem::MODE_IN_CALL) {
1070 case AudioSystem::MODE_NORMAL:
1073 case AudioSystem::MODE_RINGTONE:
1076 case AudioSystem::MODE_IN_CALL:
1125 if ((Mode < AudioSystem::MODE_CURRENT) || (Mode >= AudioSystem::NUM_MODES)) {
1131 if (Mode == AudioSystem::MODE_IN_CALL) {
1342 if (mMode == AudioSystem::MODE_IN_CALL && mTTYMode != TTY_MODE_OFF) {
1343 if ((outputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET) ||
1344 (outputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE)) {
1361 if (inputDevice & AudioSystem::DEVICE_IN_BLUETOOTH_SCO_HEADSET) {
1364 } else if (inputDevice & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT) {
1367 } else if (inputDevice & AudioSystem::DEVICE_IN_WIRED_HEADSET) {
1368 if ((outputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET) &&
1369 (outputDevices & AudioSystem::DEVICE_OUT_SPEAKER)) {
1376 } else if (inputDevice & AudioSystem::DEVICE_IN_BACK_MIC) {
1377 if (outputDevices & (AudioSystem:: DEVICE_OUT_WIRED_HEADSET) &&
1378 (outputDevices & AudioSystem:: DEVICE_OUT_SPEAKER)) {
1381 } else if (outputDevices & AudioSystem::DEVICE_OUT_SPEAKER) {
1384 } else if (outputDevices == AudioSystem::DEVICE_OUT_EARPIECE) {
1392 if (outputDevices & AudioSystem::DEVICE_OUT_SPEAKER) {
1395 } else if (outputDevices == AudioSystem::DEVICE_OUT_WIRED_HEADPHONE) {
1408 if ((outputDevices & AudioSystem::DEVICE_OUT_SPEAKER) == 0) {
1415 (AudioSystem::DEVICE_OUT_BLUETOOTH_SCO | AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET)) {
1418 } else if (outputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT) {
1421 } else if ((outputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET) &&
1422 (outputDevices & AudioSystem::DEVICE_OUT_SPEAKER)) {
1425 } else if (outputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE) {
1426 if (outputDevices & AudioSystem::DEVICE_OUT_SPEAKER) {
1433 } else if (outputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET) {
1436 } else if (outputDevices & AudioSystem::DEVICE_OUT_SPEAKER) {
1448 if (mMode == AudioSystem::MODE_IN_CALL) {
1464 if (mMode != AudioSystem::MODE_IN_CALL) {
1571 mBufferSize = hw->getBufferSize(lRate, AudioSystem::popCount(lChannels));
1611 config.channel_count = AudioSystem::popCount(channels());
1766 mAcoustics((AudioSystem::audio_in_acoustics)0), mDevices(0)
1772 AudioSystem::audio_in_acoustics acoustic_flags)
1787 if (pChannels == 0 || (*pChannels != AudioSystem::CHANNEL_IN_MONO &&
1788 *pChannels != AudioSystem::CHANNEL_IN_STEREO)) {
1808 mBufferSize = hw->getBufferSize(*pRate, AudioSystem::popCount(*pChannels));
1820 config.channel_count = AudioSystem::popCount(*pChannels);
1830 *pChannels = AudioSystem::CHANNEL_IN_MONO;
1832 *pChannels = AudioSystem::CHANNEL_IN_STEREO;