Lines Matching refs:mEngine

140             mEngine->setDeviceConnectionState(devDesc, state);  in setDeviceConnectionStateInt()
167 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
196 if (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL && hasPrimaryOutput()) { in setDeviceConnectionStateInt()
202 if ((mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) || (desc != mPrimaryOutput)) { in setDeviceConnectionStateInt()
261 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
280 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
293 if (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL && hasPrimaryOutput()) { in setDeviceConnectionStateInt()
529 int oldState = mEngine->getPhoneState(); in setPhoneState()
531 if (mEngine->setPhoneState(state) != NO_ERROR) { in setPhoneState()
634 return mEngine->getPhoneState(); in getPhoneState()
640 …ALOGV("setForceUse() usage %d, config %d, mPhoneState %d", usage, config, mEngine->getPhoneState()… in setForceUse()
641 if (config == mEngine->getForceUse(usage)) { in setForceUse()
645 if (mEngine->setForceUse(usage, config) != NO_ERROR) { in setForceUse()
665 if (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL && hasPrimaryOutput()) { in setForceUse()
672 if ((mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) || (outputDesc != mPrimaryOutput)) { in setForceUse()
2505 AudioModeConverter::toString(mEngine->getPhoneState(), stateLiteral); in dump()
2509 mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_COMMUNICATION)); in dump()
2511 …snprintf(buffer, SIZE, " Force use for media %d\n", mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_ME… in dump()
2513 …snprintf(buffer, SIZE, " Force use for record %d\n", mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_R… in dump()
2515 …snprintf(buffer, SIZE, " Force use for dock %d\n", mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_DOC… in dump()
2517 …snprintf(buffer, SIZE, " Force use for system %d\n", mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_S… in dump()
2520 mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_HDMI_SYSTEM_AUDIO)); in dump()
2523 mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_ENCODED_SURROUND)); in dump()
3498 mEngine = engineInstance->queryInterface<AudioPolicyManagerInterface>(); in AudioPolicyManager()
3499 if (mEngine == NULL) { in AudioPolicyManager()
3503 mEngine->setObserver(this); in AudioPolicyManager()
3504 status_t status = mEngine->initCheck(); in AudioPolicyManager()
3670 mEngine->setDeviceConnectionState(mAvailableOutputDevices[i], in AudioPolicyManager()
3681 mEngine->setDeviceConnectionState(mAvailableInputDevices[i], in AudioPolicyManager()
4515 if (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_SYSTEM_ENFORCED) in AudioPolicyManager()
4518 if (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) != AUDIO_POLICY_FORCE_SYSTEM_ENFORCED) in AudioPolicyManager()
4553 ((mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_COMMUNICATION) != in AudioPolicyManager()
4555 (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_RECORD) != in AudioPolicyManager()
4557 (mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) && in AudioPolicyManager()
4558 (mEngine->getPhoneState() != AUDIO_MODE_RINGTONE))) { in AudioPolicyManager()
4565 ((mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_COMMUNICATION) == in AudioPolicyManager()
4567 (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_RECORD) == in AudioPolicyManager()
4569 (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL) || in AudioPolicyManager()
4570 (mEngine->getPhoneState() == AUDIO_MODE_RINGTONE))) { in AudioPolicyManager()
4613 mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_SYSTEM_ENFORCED) { in AudioPolicyManager()
4710 return mEngine->getStrategyForStream(stream); in AudioPolicyManager()
4722 return static_cast<uint32_t>(mEngine->getStrategyForUsage(attr->usage)); in AudioPolicyManager()
4818 return mEngine->getDeviceForStrategy(strategy); in AudioPolicyManager()
5210 return mEngine->getDeviceForInputSource(inputSource); in AudioPolicyManager()
5224 && (AUDIO_MODE_RINGTONE == mEngine->getPhoneState()) in AudioPolicyManager()
5247 … (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_NONE))) && in AudioPolicyManager()
5301 mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_COMMUNICATION); in AudioPolicyManager()
5389 … (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_NONE))) { in AudioPolicyManager()
5559 return mEngine->getForceUse(usage); in AudioPolicyManager()
5564 return isStateInCall(mEngine->getPhoneState()); in AudioPolicyManager()
5612 audio_policy_forced_cfg_t forceUse = mEngine->getForceUse( in AudioPolicyManager()
5694 audio_policy_forced_cfg_t forceUse = mEngine->getForceUse( in AudioPolicyManager()