Home | History | Annotate | Download | only in libaudio-qsd8k

Lines Matching refs:AudioSystem

64         if (mPhoneState != AudioSystem::MODE_IN_CALL) {
75 switch (mForceUse[AudioSystem::FOR_COMMUNICATION]) {
76 case AudioSystem::FORCE_BT_SCO:
77 if (mPhoneState != AudioSystem::MODE_IN_CALL || strategy != STRATEGY_DTMF) {
78 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT;
82 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET;
84 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO;
90 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE;
92 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET;
95 if (mPhoneState != AudioSystem::MODE_IN_CALL) {
98 if (mForceUse[AudioSystem::FOR_DOCK] == AudioSystem::FORCE_BT_CAR_DOCK) {
99 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP;
100 } else if (mForceUse[AudioSystem::FOR_DOCK] == AudioSystem::FORCE_BT_DESK_DOCK) {
101 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_SPEAKER;
105 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP;
107 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES;
110 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_EARPIECE;
116 case AudioSystem::FORCE_SPEAKER:
117 if (mPhoneState != AudioSystem::MODE_IN_CALL || strategy != STRATEGY_DTMF) {
118 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT;
122 if (mPhoneState != AudioSystem::MODE_IN_CALL) {
124 if (mForceUse[AudioSystem::FOR_DOCK] == AudioSystem::FORCE_BT_CAR_DOCK) {
125 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP;
130 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER;
133 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_SPEAKER;
145 if (mPhoneState == AudioSystem::MODE_IN_CALL) {
152 if (mForceUse[AudioSystem::FOR_DOCK] != AudioSystem::FORCE_BT_CAR_DOCK) {
153 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_SPEAKER;
157 if (mForceUse[AudioSystem::FOR_DOCK] == AudioSystem::FORCE_BT_DESK_DOCK) {
158 if (mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE) {
159 device |= AudioSystem::DEVICE_OUT_WIRED_HEADPHONE;
160 } else if (mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET) {
161 device |= AudioSystem::DEVICE_OUT_WIRED_HEADSET;
173 uint32_t device2 = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_AUX_DIGITAL;
179 if (mForceUse[AudioSystem::FOR_DOCK] == AudioSystem::FORCE_BT_CAR_DOCK &&
181 mPhoneState == AudioSystem::MODE_RINGTONE) {
183 (AudioSystem::DEVICE_OUT_SPEAKER |
184 AudioSystem::DEVICE_OUT_WIRED_HEADPHONE |
185 AudioSystem::DEVICE_OUT_WIRED_HEADSET);
191 device2 = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE;
194 device2 = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET;
199 device2 = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP;
202 device2 = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES;
205 device2 = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER;
210 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_SPEAKER;
219 if (mPhoneState == AudioSystem::MODE_IN_CALL &&
220 !AudioSystem::isA2dpDevice((AudioSystem::audio_devices)device) &&
242 mForceUse[AudioSystem::FOR_DOCK] == AudioSystem::FORCE_BT_CAR_DOCK) {
251 if (mPhoneState == AudioSystem::MODE_IN_CALL && AudioSystem::isBluetoothScoDevice((AudioSystem::audio_devices)device)) {
260 if ((mForceUse[AudioSystem::FOR_DOCK] == AudioSystem::FORCE_BT_CAR_DOCK) &&
261 (stream == AudioSystem::MUSIC) &&
262 (device & (AudioSystem::DEVICE_OUT_WIRED_HEADPHONE |
263 AudioSystem::DEVICE_OUT_WIRED_HEADSET))) {