• Home
  • Raw
  • Download

Lines Matching refs:mEngine

326                 mEngine->getActiveMediaDevices(mAvailableOutputDevices);  in setDeviceConnectionStateInt()
330 if (desc->isActive() && ((mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) || in setDeviceConnectionStateInt()
455 for (const auto &strategy : mEngine->getOrderedProductStrategies()) { in setDeviceConnectionStateInt()
456 auto attributes = mEngine->getAllAttributesForProductStrategy(strategy).front(); in setDeviceConnectionStateInt()
486 mEngine->setDeviceConnectionState(device, state); in setEngineDeviceConnectionState()
585 mEngine->getOutputDevicesForAttributes(attributes_initializer(AUDIO_USAGE_MEDIA), in handleDeviceConfigChange()
661 rxSinkdevices = mEngine->getOutputDevicesForAttributes( in selectBestRxSinkDevicesForCall()
686 if (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL) { in updateCallRouting()
705 auto txSourceDevice = mEngine->getInputDeviceForAttributes(attr); in updateCallRoutingInternal()
809 const auto aa = mEngine->getAttributesForStreamType(AUDIO_STREAM_VOICE_CALL); in connectTelephonyRxAudioSource()
844 const auto aa = mEngine->getAttributesForStreamType(AUDIO_STREAM_VOICE_CALL); in connectTelephonyTxAudioSource()
868 int oldState = mEngine->getPhoneState(); in setPhoneState()
871 if (mEngine->setPhoneState(state) != NO_ERROR) { in setPhoneState()
910 mEngine->getOutputDevicesForAttributes(attributes_initializer(AUDIO_USAGE_MEDIA), in setPhoneState()
914 mEngine->getOutputDevicesForAttributes(attributes_initializer(AUDIO_USAGE_ALARM), in setPhoneState()
971 return mEngine->getPhoneState(); in getPhoneState()
977 …ALOGV("setForceUse() usage %d, config %d, mPhoneState %d", usage, config, mEngine->getPhoneState()… in setForceUse()
978 if (config == mEngine->getForceUse(usage)) { in setForceUse()
982 if (mEngine->setForceUse(usage, config) != NO_ERROR) { in setForceUse()
1142 DeviceVector devices = mEngine->getOutputDevicesForStream(stream, false /*fromCache*/); in getOutput()
1181 *dstAttr = mEngine->getAttributesForStreamType(srcStream); in getAudioAttributes()
1186 if (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) != AUDIO_POLICY_FORCE_SYSTEM_ENFORCED) { in getAudioAttributes()
1226 *stream = mEngine->getStreamTypeForAttributes(*resultAttr); in getOutputForAttrInt()
1317 outputDevices = mEngine->getOutputDevicesForAttributes(*resultAttr, requestedDevice, false); in getOutputForAttrInt()
1357 mEngine->getProductStrategyForAttributes(*resultAttr), in getOutputForAttrInt()
1369 (mEngine->getPhoneState() != AUDIO_MODE_NORMAL || in getOutputForAttrInt()
1495 mEngine->getProductStrategyForAttributes(resultAttr), in getOutputForAttr()
1658 audio_stream_type_t stream = mEngine->getStreamTypeForAttributes(*attr); in getOutputForDevices()
1979 devices = mEngine->getOutputDevicesForAttributes( in setMsdOutputPatches()
2551 mEngine->getForceUse( in startSource()
2745mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_SYSTEM_ENFORCED) { in stopSource()
2804 outputDesc->mProfile, mEngine->getActiveMediaDevices(mAvailableOutputDevices)); in releaseOutput()
2934 device = mEngine->getInputDeviceForAttributes(attributes, uid, session, &policyMix); in getInputForAttr()
3353 mEngine->getInputDeviceForAttributes(client->attributes(), client->uid(), in checkCloseInput()
3386 audio_attributes_t attributesToDriveAbs = mEngine->getAttributesForStreamType(streamToDriveAbs); in setDeviceAbsoluteVolumeEnabled()
3424 auto attributes = mEngine->getAttributesForStreamType(stream); in setStreamVolumeIndex()
3442 deviceTypes = mEngine->getOutputDevicesForStream( in getStreamVolumeIndex()
3453 auto group = mEngine->getVolumeGroupForAttributes(attributes); in setVolumeIndexForAttributes()
3467 product_strategy_t strategy = mEngine->getProductStrategyForAttributes(attributes); in setVolumeIndexForAttributes()
3479 curSrcDevices = mEngine->getOutputDevicesForAttributes(attr, nullptr, false).types(); in setVolumeIndexForAttributes()
3482 curSrcDevices = mEngine->getOutputDevicesForStream(stream, false).types(); in setVolumeIndexForAttributes()
3533 for (const auto &productStrategy : mEngine->getOrderedProductStrategies()) { in setVolumeIndexForAttributes()
3630 deviceTypes = mEngine->getOutputDevicesForAttributes( in getVolumeIndexForAttributes()
3673 DeviceVector devices = mEngine->getOutputDevicesForAttributes( in selectOutputForMusicEffects()
4193 status_t status = mEngine->setDevicesRoleForStrategy(strategy, role, devices); in setDevicesRoleForStrategy()
4229 if ((mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) || in updateCallAndOutputRouting()
4285 status_t status = mEngine->removeDevicesRoleForStrategy(strategy, role, devices); in removeDevicesRoleForStrategy()
4313 status_t status = mEngine->clearDevicesRoleForStrategy(strategy, role); in clearDevicesRoleForStrategy()
4340 return mEngine->getDevicesForRoleAndStrategy(strategy, role, devices); in getDevicesForRoleAndStrategy()
4351 status_t status = mEngine->setDevicesRoleForCapturePreset(audioSource, role, devices); in setDevicesRoleForCapturePreset()
4367 status_t status = mEngine->addDevicesRoleForCapturePreset(audioSource, role, devices); in addDevicesRoleForCapturePreset()
4387 status_t status = mEngine->removeDevicesRoleForCapturePreset( in removeDevicesRoleForCapturePreset()
4401 status_t status = mEngine->clearDevicesRoleForCapturePreset(audioSource, role); in clearDevicesRoleForCapturePreset()
4412 return mEngine->getDevicesForRoleAndCapturePreset(audioSource, role, devices); in getDevicesForRoleAndCapturePreset()
4465 AudioModeConverter::toString(mEngine->getPhoneState(), stateLiteral); in dump()
4472 audio_policy_forced_cfg_t forceUseValue = mEngine->getForceUse(i); in dump()
4514 mEngine->dump(dst); in dump()
4520 mEngine->getVolumeGroupForAttributes(it.second)); in dump()
4578 DeviceVector outputDevices = mEngine->getOutputDevicesForAttributes(attributes); in isDirectOutputSupported()
4671 offloadInfo.stream_type = mEngine->getStreamTypeForAttributes(*attr); in getDirectPlaybackSupport()
4686 DeviceVector engineOutputDevices = mEngine->getOutputDevicesForAttributes(*attr); in getDirectPlaybackSupport()
4831 const product_strategy_t strategy = mEngine->getProductStrategyForAttributes(*attr); in setPreferredMixerAttributes()
4896 portId, mEngine->getProductStrategyForAttributes(*attr)); in getPreferredMixerAttributes()
4907 const product_strategy_t strategy = mEngine->getProductStrategyForAttributes(*attr); in clearPreferredMixerAttributes()
5099 mEngine->getProductStrategyForAttributes(attributes), toVolumeSource(attributes), in createAudioPatch()
5433 mEngine->getStreamTypeForAttributes(sourceDesc->attributes()) : in createAudioPatchInternal()
5662 auto attributes = mEngine->getAllAttributesForProductStrategy(ps).front(); in checkStrategyRoute()
5663 DeviceVector devices = mEngine->getOutputDevicesForAttributes(attributes, nullptr, false); in checkStrategyRoute()
5678 invalidateStreams(mEngine->getStreamTypesForProductStrategy(ps)); in checkStrategyRoute()
5758 sp<DeviceDescriptor> deviceDesc = mEngine->getInputDeviceForAttributes(attr); in acquireSoundTriggerSession()
5810 mEngine->getStreamTypeForAttributes(*attributes), in startAudioSourceInternal()
5811 mEngine->getProductStrategyForAttributes(*attributes), in startAudioSourceInternal()
5836 mEngine->getOutputDevicesForAttributes(attributes, nullptr, false /*fromCache*/); in connectAudioSource()
5924 audio_policy_forced_cfg_t forceUse = mEngine->getForceUse( in getSurroundFormats()
6009 if (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_ENCODED_SURROUND) != in setSurroundFormatEnabled()
6295 DeviceVector devices = mEngine->getOutputDevicesForAttributes(attr, nullptr, false); in checkVirtualizerClientRoutes()
6337 DeviceVector devices = mEngine->getOutputDevicesForAttributes(*attr, nullptr, false); in getSpatializerOutput()
6441 mEngine(std::move(engine)), in AudioPolicyManager()
6456 if (mEngine == nullptr) { in initialize()
6459 mEngine->setObserver(this); in initialize()
6460 status_t status = mEngine->initCheck(); in initialize()
6468 mEngine->initializeDeviceSelectionCache(); in initialize()
6469 mCommunnicationStrategy = mEngine->getProductStrategyForAttributes( in initialize()
6470 mEngine->getAttributesForStreamType(AUDIO_STREAM_VOICE_CALL)); in initialize()
7183 return mEngine->getProductStrategyForAttributes(lAttr) == in followsSameRouting()
7184 mEngine->getProductStrategyForAttributes(rAttr); in followsSameRouting()
7212 auto psId = mEngine->getProductStrategyForAttributes(attr); in checkOutputForAttributes()
7214 DeviceVector oldDevices = mEngine->getOutputDevicesForAttributes(attr, 0, true /*fromCache*/); in checkOutputForAttributes()
7215 DeviceVector newDevices = mEngine->getOutputDevicesForAttributes(attr, 0, false /*fromCache*/); in checkOutputForAttributes()
7231 if (mEngine->getProductStrategyForAttributes(client->attributes()) != psId) { in checkOutputForAttributes()
7316 invalidateStreams(mEngine->getStreamTypesForProductStrategy(psId)); in checkOutputForAttributes()
7326 for (const auto &strategy : mEngine->getOrderedProductStrategies()) { in checkOutputForAllStrategies()
7327 auto attributes = mEngine->getAllAttributesForProductStrategy(strategy).front(); in checkOutputForAllStrategies()
7392 mEngine->getDevicesForRoleAndStrategy(mCommunnicationStrategy, DEVICE_ROLE_PREFERRED, devices); in isScoRequestedForComm()
7402 DeviceVector devices = mEngine->getOutputDevicesForStream(AUDIO_STREAM_VOICE_CALL, in isHearingAidUsedForComm()
7439 (mEngine->getPhoneState() != AUDIO_MODE_IN_CALL) && in checkA2dpSuspend()
7440 (mEngine->getPhoneState() != AUDIO_MODE_RINGTONE))) { in checkA2dpSuspend()
7448 (mEngine->getPhoneState() == AUDIO_MODE_IN_CALL) || in checkA2dpSuspend()
7449 (mEngine->getPhoneState() == AUDIO_MODE_RINGTONE))) { in checkA2dpSuspend()
7497 for (const auto &productStrategy : mEngine->getOrderedProductStrategies()) { in getNewOutputDevices()
7498 StreamTypeVector streams = mEngine->getStreamTypesForProductStrategy(productStrategy); in getNewOutputDevices()
7523 auto attr = mEngine->getAllAttributesForProductStrategy(productStrategy).front(); in getNewOutputDevices()
7524 devices = mEngine->getOutputDevicesForAttributes(attr, nullptr, fromCache); in getNewOutputDevices()
7575 device = mEngine->getInputDeviceForAttributes(attributes, uid, session); in getNewInputDevice()
7677 mEngine->updateDeviceSelectionCache(); in updateDevicesAndOutputs()
7696 auto productStrategies = mEngine->getOrderedProductStrategies(); in checkDeviceMuteStrategies()
7698 auto attributes = mEngine->getAllAttributesForProductStrategy(productStrategy).front(); in checkDeviceMuteStrategies()
7700 mEngine->getOutputDevicesForAttributes(attributes, nullptr, false/*fromCache*/); in checkDeviceMuteStrategies()
8049 auto groupToDriveAbs = mEngine->getVolumeGroupForAttributes(attributesToDriveAbs); in adjustDeviceAttenuationForAbsVolume()
8103 if (AUDIO_MODE_RINGTONE == mEngine->getPhoneState() && in computeVolume()
8161 (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == AUDIO_POLICY_FORCE_NONE))) && in computeVolume()
8171mEngine->getOutputDevicesForAttributes(attributes_initializer(AUDIO_USAGE_MEDIA), in computeVolume()
8333 for (const auto &volumeGroup : mEngine->getVolumeGroups()) { in applyStreamVolumes()
8348 for (auto attributes: mEngine->getAllAttributesForProductStrategy(strategy)) { in setStrategyMute()
8378 (mEngine->getForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM) == in setVolumeSourceMute()
8441 return mEngine->getForceUse(usage); in getForceUse()
8445 return isStateInCall(mEngine->getPhoneState()); in isInCall()
8453 audio_mode_t mode = mEngine->getPhoneState(); in isCallAudioAccessible()
8460 audio_mode_t mode = mEngine->getPhoneState(); in isInCallOrScreening()
8517 audio_policy_forced_cfg_t forceUse = mEngine->getForceUse( in modifySurroundFormats()
8563 audio_policy_forced_cfg_t forceUse = mEngine->getForceUse( in modifySurroundChannelMasks()
8733 if (mEngine->getOutputDevicesForAttributes( in areAllActiveTracksRerouted()
8899 devices = mEngine->getOutputDevicesForAttributes( in getDevicesForAttributes()