Home
last modified time | relevance | path

Searched refs:oldState (Results 1 – 1 of 1) sorted by relevance

/hardware/qcom/audio/legacy/alsa_sound/
DAudioPolicyManagerALSA.cpp72 int oldState = mPhoneState; in setPhoneState() local
77 if (!isStateInCall(oldState) && isStateInCall(state)) { in setPhoneState()
82 } else if (isStateInCall(oldState) && !isStateInCall(state)) { in setPhoneState()
87 } else if (isStateInCall(state) && (state != oldState)) { in setPhoneState()
104 if (isStateInCall(oldState) && newDevice == AUDIO_DEVICE_NONE) { in setPhoneState()
112 if (isStateInCall(state) && oldState == AudioSystem::MODE_RINGTONE) { in setPhoneState()
139 if (state == AudioSystem::MODE_IN_CALL && oldState == AudioSystem::MODE_RINGTONE) { in setPhoneState()
152 if (oldState == AudioSystem::MODE_RINGTONE) { in setPhoneState()