Lines Matching refs:mEngine
263 if (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL && hasPrimaryOutput()) { in setDeviceConnectionStateInt()
270 if ((mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) || (desc != mPrimaryOutput)) { in setDeviceConnectionStateInt()
354 if (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL && hasPrimaryOutput()) { in setDeviceConnectionStateInt()
378 mEngine->setDeviceConnectionState(device, state); in setEngineDeviceConnectionState()
522 auto txSourceDevice = mEngine->getInputDeviceForAttributes(attr); in updateCallRouting()
648 int oldState = mEngine->getPhoneState(); in setPhoneState()
650 if (mEngine->setPhoneState(state) != NO_ERROR) { in setPhoneState()
689 mEngine->getOutputDevicesForAttributes(attributes_initializer(AUDIO_USAGE_MEDIA), in setPhoneState()
693 mEngine->getOutputDevicesForAttributes(attributes_initializer(AUDIO_USAGE_ALARM), in setPhoneState()
746 return mEngine->getPhoneState(); in getPhoneState()
752 …ALOGV("setForceUse() usage %d, config %d, mPhoneState %d", usage, config, mEngine->getPhoneState()… in setForceUse()
753 if (config == mEngine->getForceUse(usage)) { in setForceUse()
757 if (mEngine->setForceUse(usage, config) != NO_ERROR) { in setForceUse()
855 DeviceVector devices = mEngine->getOutputDevicesForStream(stream, false /*fromCache*/); in getOutput()
889 *dstAttr = mEngine->getAttributesForStreamType(srcStream); in getAudioAttributes()
894 if (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) != AUDIO_POLICY_FORCE_SYSTEM_ENFORCED) { in getAudioAttributes()
927 *stream = mEngine->getStreamTypeForAttributes(*resultAttr); in getOutputForAttrInt()
968 outputDevices = mEngine->getOutputDevicesForAttributes(*resultAttr, requestedDevice, false); in getOutputForAttrInt()
1068 mEngine->getProductStrategyForAttributes(resultAttr), in getOutputForAttr()
1393 DeviceVector devices = mEngine->getOutputDevicesForAttributes( in setMsdPatch()
1740 mEngine->getForceUse( in startSource()
1850 … mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_SYSTEM_ENFORCED) { in stopSource()
2016 device = mEngine->getInputDeviceForAttributes(attributes, &policyMix); in getInputForAttr()
2402 mEngine->getInputDeviceForAttributes(client->attributes()); in checkCloseInputs()
2444 auto attributes = mEngine->getAttributesForStreamType(stream); in setStreamVolumeIndex()
2462 deviceTypes = mEngine->getOutputDevicesForStream( in getStreamVolumeIndex()
2473 auto group = mEngine->getVolumeGroupForAttributes(attributes); in setVolumeIndexForAttributes()
2482 product_strategy_t strategy = mEngine->getProductStrategyForAttributes(attributes); in setVolumeIndexForAttributes()
2494 curSrcDevices = mEngine->getOutputDevicesForAttributes(attr, nullptr, false).types(); in setVolumeIndexForAttributes()
2497 curSrcDevices = mEngine->getOutputDevicesForStream(stream, false).types(); in setVolumeIndexForAttributes()
2543 for (const auto &productStrategy : mEngine->getOrderedProductStrategies()) { in setVolumeIndexForAttributes()
2625 DeviceTypeSet deviceTypes = mEngine->getOutputDevicesForAttributes( in getVolumeIndexForAttributes()
2668 DeviceVector devices = mEngine->getOutputDevicesForAttributes( in selectOutputForMusicEffects()
3066 status_t status = mEngine->setPreferredDeviceForStrategy(strategy, device); in setPreferredDeviceForStrategy()
3082 if (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL && hasPrimaryOutput()) { in updateCallAndOutputRouting()
3089 if ((mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) || (outputDesc != mPrimaryOutput)) { in updateCallAndOutputRouting()
3105 status_t status = mEngine->removePreferredDeviceForStrategy(strategy); in removePreferredDeviceForStrategy()
3119 return mEngine->getPreferredDeviceForStrategy(strategy, device); in getPreferredDeviceForStrategy()
3128 AudioModeConverter::toString(mEngine->getPhoneState(), stateLiteral); in dump()
3135 audio_policy_forced_cfg_t forceUseValue = mEngine->getForceUse(i); in dump()
3164 mEngine->dump(dst); in dump()
3834 auto attributes = mEngine->getAllAttributesForProductStrategy(ps).front(); in checkStrategyRoute()
3835 DeviceVector devices = mEngine->getOutputDevicesForAttributes(attributes, nullptr, false); in checkStrategyRoute()
3849 for (auto stream : mEngine->getStreamTypesForProductStrategy(ps)) { in checkStrategyRoute()
3923 *device = mEngine->getInputDeviceForAttributes(attr)->type(); in acquireSoundTriggerSession()
3962 mEngine->getStreamTypeForAttributes(*attributes), in startAudioSource()
3963 mEngine->getProductStrategyForAttributes(*attributes), in startAudioSource()
3984 mEngine->getOutputDevicesForAttributes(attributes, nullptr, true); in connectAudioSource()
4139 audio_policy_forced_cfg_t forceUse = mEngine->getForceUse( in getSurroundFormats()
4170 if (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_ENCODED_SURROUND) != in setSurroundFormatEnabled()
4390 mEngine = engLib->createEngine(); in initialize()
4391 if (mEngine == nullptr) { in initialize()
4396 mEngine->setObserver(this); in initialize()
4397 status_t status = mEngine->initCheck(); in initialize()
5104 return mEngine->getProductStrategyForAttributes(lAttr) == in followsSameRouting()
5105 mEngine->getProductStrategyForAttributes(rAttr); in followsSameRouting()
5110 auto psId = mEngine->getProductStrategyForAttributes(attr); in checkOutputForAttributes()
5112 DeviceVector oldDevices = mEngine->getOutputDevicesForAttributes(attr, 0, true /*fromCache*/); in checkOutputForAttributes()
5113 DeviceVector newDevices = mEngine->getOutputDevicesForAttributes(attr, 0, false /*fromCache*/); in checkOutputForAttributes()
5169 for (auto stream : mEngine->getStreamTypesForProductStrategy(psId)) { in checkOutputForAttributes()
5177 for (const auto &strategy : mEngine->getOrderedProductStrategies()) { in checkOutputForAllStrategies()
5178 auto attributes = mEngine->getAllAttributesForProductStrategy(strategy).front(); in checkOutputForAllStrategies()
5230 ((mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_COMMUNICATION) != in checkA2dpSuspend()
5232 (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_RECORD) != in checkA2dpSuspend()
5234 (mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) && in checkA2dpSuspend()
5235 (mEngine->getPhoneState() != AUDIO_MODE_RINGTONE))) { in checkA2dpSuspend()
5242 ((mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_COMMUNICATION) == in checkA2dpSuspend()
5244 (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_RECORD) == in checkA2dpSuspend()
5246 (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL) || in checkA2dpSuspend()
5247 (mEngine->getPhoneState() == AUDIO_MODE_RINGTONE))) { in checkA2dpSuspend()
5292 for (const auto &productStrategy : mEngine->getOrderedProductStrategies()) { in getNewOutputDevices()
5293 StreamTypeVector streams = mEngine->getStreamTypesForProductStrategy(productStrategy); in getNewOutputDevices()
5294 auto attr = mEngine->getAllAttributesForProductStrategy(productStrategy).front(); in getNewOutputDevices()
5304 devices = mEngine->getOutputDevicesForAttributes(attr, nullptr, fromCache); in getNewOutputDevices()
5342 device = mEngine->getInputDeviceForAttributes(attributes); in getNewInputDevice()
5368 DeviceVector curDevices = mEngine->getOutputDevicesForStream(curStream, false/*fromCache*/); in getDevicesForStream()
5465 mEngine->updateDeviceSelectionCache(); in updateDevicesAndOutputs()
5484 auto productStrategies = mEngine->getOrderedProductStrategies(); in checkDeviceMuteStrategies()
5486 auto attributes = mEngine->getAllAttributesForProductStrategy(productStrategy).front(); in checkDeviceMuteStrategies()
5488 mEngine->getOutputDevicesForAttributes(attributes, nullptr, false/*fromCache*/); in checkDeviceMuteStrategies()
5785 && (AUDIO_MODE_RINGTONE == mEngine->getPhoneState()) && in computeVolume()
5840 (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_NONE))) && in computeVolume()
5850 … mEngine->getOutputDevicesForAttributes(attributes_initializer(AUDIO_USAGE_MEDIA), in computeVolume()
5930 mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_COMMUNICATION); in checkAndSetVolume()
5977 for (const auto &volumeGroup : mEngine->getVolumeGroups()) { in applyStreamVolumes()
5992 for (auto attributes: mEngine->getAllAttributesForProductStrategy(strategy)) { in setStrategyMute()
6020 (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == in setVolumeSourceMute()
6078 return mEngine->getForceUse(usage); in getForceUse()
6083 return isStateInCall(mEngine->getPhoneState()); in isInCall()
6139 audio_policy_forced_cfg_t forceUse = mEngine->getForceUse( in modifySurroundFormats()
6185 audio_policy_forced_cfg_t forceUse = mEngine->getForceUse( in modifySurroundChannelMasks()