Lines Matching refs:media

28 using media::audio::common::AudioDeviceAddress;
31 aidl2legacy_AudioMixType_uint32_t(media::AudioMixType aidl) { in aidl2legacy_AudioMixType_uint32_t()
33 case media::AudioMixType::PLAYERS: in aidl2legacy_AudioMixType_uint32_t()
35 case media::AudioMixType::RECORDERS: in aidl2legacy_AudioMixType_uint32_t()
41 ConversionResult<media::AudioMixType>
45 return media::AudioMixType::PLAYERS; in legacy2aidl_uint32_t_AudioMixType()
47 return media::AudioMixType::RECORDERS; in legacy2aidl_uint32_t_AudioMixType()
53 aidl2legacy_AudioMixCallbackFlag_uint32_t(media::AudioMixCallbackFlag aidl) { in aidl2legacy_AudioMixCallbackFlag_uint32_t()
55 case media::AudioMixCallbackFlag::NOTIFY_ACTIVITY: in aidl2legacy_AudioMixCallbackFlag_uint32_t()
61 ConversionResult<media::AudioMixCallbackFlag>
65 return media::AudioMixCallbackFlag::NOTIFY_ACTIVITY; in legacy2aidl_uint32_t_AudioMixCallbackFlag()
72 return convertBitmask<uint32_t, int32_t, uint32_t, media::AudioMixCallbackFlag>( in aidl2legacy_AudioMixCallbackFlag_uint32_t_mask()
75 indexToEnum_index<media::AudioMixCallbackFlag>, in aidl2legacy_AudioMixCallbackFlag_uint32_t_mask()
81 return convertBitmask<int32_t, uint32_t, media::AudioMixCallbackFlag, uint32_t>( in legacy2aidl_uint32_t_AudioMixCallbackFlag_mask()
85 enumToMask_index<int32_t, media::AudioMixCallbackFlag>); in legacy2aidl_uint32_t_AudioMixCallbackFlag_mask()
89 aidl2legacy_AudioMixRouteFlag_uint32_t(media::AudioMixRouteFlag aidl) { in aidl2legacy_AudioMixRouteFlag_uint32_t()
91 case media::AudioMixRouteFlag::RENDER: in aidl2legacy_AudioMixRouteFlag_uint32_t()
93 case media::AudioMixRouteFlag::LOOP_BACK: in aidl2legacy_AudioMixRouteFlag_uint32_t()
99 ConversionResult<media::AudioMixRouteFlag>
103 return media::AudioMixRouteFlag::RENDER; in legacy2aidl_uint32_t_AudioMixRouteFlag()
105 return media::AudioMixRouteFlag::LOOP_BACK; in legacy2aidl_uint32_t_AudioMixRouteFlag()
112 return convertBitmask<uint32_t, int32_t, uint32_t, media::AudioMixRouteFlag>( in aidl2legacy_AudioMixRouteFlag_uint32_t_mask()
115 indexToEnum_index<media::AudioMixRouteFlag>, in aidl2legacy_AudioMixRouteFlag_uint32_t_mask()
121 return convertBitmask<int32_t, uint32_t, media::AudioMixRouteFlag, uint32_t>( in legacy2aidl_uint32_t_AudioMixRouteFlag_mask()
125 enumToMask_index<int32_t, media::AudioMixRouteFlag>); in legacy2aidl_uint32_t_AudioMixRouteFlag_mask()
133 const media::AudioMixMatchCriterionValue& aidl, in aidl2legacy_AudioMixMatchCriterionValue()
138 case media::AudioMixMatchCriterionValue::usage: in aidl2legacy_AudioMixMatchCriterionValue()
144 case media::AudioMixMatchCriterionValue::source: in aidl2legacy_AudioMixMatchCriterionValue()
150 case media::AudioMixMatchCriterionValue::uid: in aidl2legacy_AudioMixMatchCriterionValue()
156 case media::AudioMixMatchCriterionValue::userId: in aidl2legacy_AudioMixMatchCriterionValue()
161 case media::AudioMixMatchCriterionValue::audioSessionId: in aidl2legacy_AudioMixMatchCriterionValue()
170 ConversionResult<media::AudioMixMatchCriterionValue>
174 media::AudioMixMatchCriterionValue aidl; in legacy2aidl_AudioMixMatchCriterionValue()
205 aidl2legacy_AudioMixMatchCriterion(const media::AudioMixMatchCriterion& aidl) { in aidl2legacy_AudioMixMatchCriterion()
215 ConversionResult<media::AudioMixMatchCriterion>
217 media::AudioMixMatchCriterion aidl; in legacy2aidl_AudioMixMatchCriterion()
228 aidl2legacy_AudioMix(const media::AudioMix& aidl) { in aidl2legacy_AudioMix()
250 ConversionResult<media::AudioMix>
252 media::AudioMix aidl; in legacy2aidl_AudioMix()
254 convertContainer<std::vector<media::AudioMixMatchCriterion>>( in legacy2aidl_AudioMix()
276 aidl2legacy_AudioPolicyDeviceState_audio_policy_dev_state_t(media::AudioPolicyDeviceState aidl) { in aidl2legacy_AudioPolicyDeviceState_audio_policy_dev_state_t()
278 case media::AudioPolicyDeviceState::UNAVAILABLE: in aidl2legacy_AudioPolicyDeviceState_audio_policy_dev_state_t()
280 case media::AudioPolicyDeviceState::AVAILABLE: in aidl2legacy_AudioPolicyDeviceState_audio_policy_dev_state_t()
286 ConversionResult<media::AudioPolicyDeviceState>
290 return media::AudioPolicyDeviceState::UNAVAILABLE; in legacy2aidl_audio_policy_dev_state_t_AudioPolicyDeviceState()
292 return media::AudioPolicyDeviceState::AVAILABLE; in legacy2aidl_audio_policy_dev_state_t_AudioPolicyDeviceState()
300 aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t(media::AudioPolicyForceUse aidl) { in aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t()
302 case media::AudioPolicyForceUse::COMMUNICATION: in aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t()
304 case media::AudioPolicyForceUse::MEDIA: in aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t()
306 case media::AudioPolicyForceUse::RECORD: in aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t()
308 case media::AudioPolicyForceUse::DOCK: in aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t()
310 case media::AudioPolicyForceUse::SYSTEM: in aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t()
312 case media::AudioPolicyForceUse::HDMI_SYSTEM_AUDIO: in aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t()
314 case media::AudioPolicyForceUse::ENCODED_SURROUND: in aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t()
316 case media::AudioPolicyForceUse::VIBRATE_RINGING: in aidl2legacy_AudioPolicyForceUse_audio_policy_force_use_t()
322 ConversionResult<media::AudioPolicyForceUse>
326 return media::AudioPolicyForceUse::COMMUNICATION; in legacy2aidl_audio_policy_force_use_t_AudioPolicyForceUse()
328 return media::AudioPolicyForceUse::MEDIA; in legacy2aidl_audio_policy_force_use_t_AudioPolicyForceUse()
330 return media::AudioPolicyForceUse::RECORD; in legacy2aidl_audio_policy_force_use_t_AudioPolicyForceUse()
332 return media::AudioPolicyForceUse::DOCK; in legacy2aidl_audio_policy_force_use_t_AudioPolicyForceUse()
334 return media::AudioPolicyForceUse::SYSTEM; in legacy2aidl_audio_policy_force_use_t_AudioPolicyForceUse()
336 return media::AudioPolicyForceUse::HDMI_SYSTEM_AUDIO; in legacy2aidl_audio_policy_force_use_t_AudioPolicyForceUse()
338 return media::AudioPolicyForceUse::ENCODED_SURROUND; in legacy2aidl_audio_policy_force_use_t_AudioPolicyForceUse()
340 return media::AudioPolicyForceUse::VIBRATE_RINGING; in legacy2aidl_audio_policy_force_use_t_AudioPolicyForceUse()
348 aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t(media::AudioPolicyForcedConfig aidl) { in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
350 case media::AudioPolicyForcedConfig::NONE: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
352 case media::AudioPolicyForcedConfig::SPEAKER: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
354 case media::AudioPolicyForcedConfig::HEADPHONES: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
356 case media::AudioPolicyForcedConfig::BT_SCO: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
358 case media::AudioPolicyForcedConfig::BT_A2DP: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
360 case media::AudioPolicyForcedConfig::WIRED_ACCESSORY: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
362 case media::AudioPolicyForcedConfig::BT_CAR_DOCK: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
364 case media::AudioPolicyForcedConfig::BT_DESK_DOCK: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
366 case media::AudioPolicyForcedConfig::ANALOG_DOCK: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
368 case media::AudioPolicyForcedConfig::DIGITAL_DOCK: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
370 case media::AudioPolicyForcedConfig::NO_BT_A2DP: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
372 case media::AudioPolicyForcedConfig::SYSTEM_ENFORCED: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
374 case media::AudioPolicyForcedConfig::HDMI_SYSTEM_AUDIO_ENFORCED: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
376 case media::AudioPolicyForcedConfig::ENCODED_SURROUND_NEVER: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
378 case media::AudioPolicyForcedConfig::ENCODED_SURROUND_ALWAYS: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
380 case media::AudioPolicyForcedConfig::ENCODED_SURROUND_MANUAL: in aidl2legacy_AudioPolicyForcedConfig_audio_policy_forced_cfg_t()
386 ConversionResult<media::AudioPolicyForcedConfig>
390 return media::AudioPolicyForcedConfig::NONE; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
392 return media::AudioPolicyForcedConfig::SPEAKER; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
394 return media::AudioPolicyForcedConfig::HEADPHONES; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
396 return media::AudioPolicyForcedConfig::BT_SCO; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
398 return media::AudioPolicyForcedConfig::BT_A2DP; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
400 return media::AudioPolicyForcedConfig::WIRED_ACCESSORY; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
402 return media::AudioPolicyForcedConfig::BT_CAR_DOCK; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
404 return media::AudioPolicyForcedConfig::BT_DESK_DOCK; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
406 return media::AudioPolicyForcedConfig::ANALOG_DOCK; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
408 return media::AudioPolicyForcedConfig::DIGITAL_DOCK; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
410 return media::AudioPolicyForcedConfig::NO_BT_A2DP; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
412 return media::AudioPolicyForcedConfig::SYSTEM_ENFORCED; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
414 return media::AudioPolicyForcedConfig::HDMI_SYSTEM_AUDIO_ENFORCED; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
416 return media::AudioPolicyForcedConfig::ENCODED_SURROUND_NEVER; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
418 return media::AudioPolicyForcedConfig::ENCODED_SURROUND_ALWAYS; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
420 return media::AudioPolicyForcedConfig::ENCODED_SURROUND_MANUAL; in legacy2aidl_audio_policy_forced_cfg_t_AudioPolicyForcedConfig()
428 aidl2legacy_DeviceRole_device_role_t(media::DeviceRole aidl) { in aidl2legacy_DeviceRole_device_role_t()
430 case media::DeviceRole::NONE: in aidl2legacy_DeviceRole_device_role_t()
432 case media::DeviceRole::PREFERRED: in aidl2legacy_DeviceRole_device_role_t()
434 case media::DeviceRole::DISABLED: in aidl2legacy_DeviceRole_device_role_t()
440 ConversionResult<media::DeviceRole>
444 return media::DeviceRole::NONE; in legacy2aidl_device_role_t_DeviceRole()
446 return media::DeviceRole::PREFERRED; in legacy2aidl_device_role_t_DeviceRole()
448 return media::DeviceRole::DISABLED; in legacy2aidl_device_role_t_DeviceRole()
454 aidl2legacy_AudioOffloadMode_audio_offload_mode_t(media::AudioOffloadMode aidl) { in aidl2legacy_AudioOffloadMode_audio_offload_mode_t()
456 case media::AudioOffloadMode::NOT_SUPPORTED: in aidl2legacy_AudioOffloadMode_audio_offload_mode_t()
458 case media::AudioOffloadMode::SUPPORTED: in aidl2legacy_AudioOffloadMode_audio_offload_mode_t()
460 case media::AudioOffloadMode::GAPLESS_SUPPORTED: in aidl2legacy_AudioOffloadMode_audio_offload_mode_t()
466 ConversionResult<media::AudioOffloadMode>
470 return media::AudioOffloadMode::NOT_SUPPORTED; in legacy2aidl_audio_offload_mode_t_AudioOffloadMode()
472 return media::AudioOffloadMode::SUPPORTED; in legacy2aidl_audio_offload_mode_t_AudioOffloadMode()
474 return media::AudioOffloadMode::GAPLESS_SUPPORTED; in legacy2aidl_audio_offload_mode_t_AudioOffloadMode()
480 aidl2legacy_AudioMixerBehavior_audio_mixer_behavior_t(media::AudioMixerBehavior aidl) { in aidl2legacy_AudioMixerBehavior_audio_mixer_behavior_t()
482 case media::AudioMixerBehavior::DEFAULT: in aidl2legacy_AudioMixerBehavior_audio_mixer_behavior_t()
484 case media::AudioMixerBehavior::BIT_PERFECT: in aidl2legacy_AudioMixerBehavior_audio_mixer_behavior_t()
486 case media::AudioMixerBehavior::INVALID: in aidl2legacy_AudioMixerBehavior_audio_mixer_behavior_t()
491 ConversionResult<media::AudioMixerBehavior>
495 return media::AudioMixerBehavior::DEFAULT; in legacy2aidl_audio_mixer_behavior_t_AudioMixerBehavior()
497 return media::AudioMixerBehavior::BIT_PERFECT; in legacy2aidl_audio_mixer_behavior_t_AudioMixerBehavior()
499 return media::AudioMixerBehavior::INVALID; in legacy2aidl_audio_mixer_behavior_t_AudioMixerBehavior()
506 const media::AudioMixerAttributesInternal& aidl) { in aidl2legacy_AudioMixerAttributesInternal_audio_mixer_attributes_t()
514 ConversionResult<media::AudioMixerAttributesInternal>
517 media::AudioMixerAttributesInternal aidl; in legacy2aidl_audio_mixer_attributes_t_AudioMixerAttributesInternal()