Lines Matching refs:apm
50 AudioPolicyInterface *apm; member
70 return lap->apm->setDeviceConnectionState( in ap_set_device_connection_state()
82 return (audio_policy_dev_state_t)lap->apm->getDeviceConnectionState( in ap_get_device_connection_state()
91 lap->apm->setPhoneState((int) state); in ap_set_phone_state()
107 lap->apm->setForceUse((AudioSystem::force_use)usage, in ap_set_force_use()
117 return (audio_policy_forced_cfg_t)lap->apm->getForceUse( in ap_get_force_use()
127 lap->apm->setSystemProperty("ro.camera.sound.forced", can_mute ? "0" : "1"); in ap_set_can_mute_enforced_audible()
133 return lap->apm->initCheck(); in ap_init_check()
147 return lap->apm->getOutput((AudioSystem::stream_type)stream, in ap_get_output()
157 return lap->apm->startOutput(output, (AudioSystem::stream_type)stream, in ap_start_output()
165 return lap->apm->stopOutput(output, (AudioSystem::stream_type)stream, in ap_stop_output()
173 lap->apm->releaseOutput(output); in ap_release_output()
183 return lap->apm->getInput((int) inputSource, sampling_rate, format, channelMask, in ap_get_input()
190 return lap->apm->startInput(input); in ap_start_input()
196 return lap->apm->stopInput(input); in ap_stop_input()
202 lap->apm->releaseInput(input); in ap_release_input()
210 lap->apm->initStreamVolume((AudioSystem::stream_type)stream, index_min, in ap_init_stream_volume()
219 return lap->apm->setStreamVolumeIndex((AudioSystem::stream_type)stream, in ap_set_stream_volume_index()
229 return lap->apm->getStreamVolumeIndex((AudioSystem::stream_type)stream, in ap_get_stream_volume_index()
240 return lap->apm->setStreamVolumeIndex((AudioSystem::stream_type)stream, in ap_set_stream_volume_index_for_device()
251 return lap->apm->getStreamVolumeIndex((AudioSystem::stream_type)stream, in ap_get_stream_volume_index_for_device()
260 return lap->apm->getStrategyForStream((AudioSystem::stream_type)stream); in ap_get_strategy_for_stream()
267 return lap->apm->getDevicesForStream((AudioSystem::stream_type)stream); in ap_get_devices_for_stream()
274 return lap->apm->getOutputForEffect(desc); in ap_get_output_for_effect()
285 return lap->apm->registerEffect(desc, io, strategy, session, id); in ap_register_effect()
291 return lap->apm->unregisterEffect(id); in ap_unregister_effect()
297 return lap->apm->setEffectEnabled(id, enabled); in ap_set_effect_enabled()
304 return lap->apm->isStreamActive((int) stream, in_past_ms); in ap_is_stream_active()
311 return lap->apm->isStreamActiveRemotely((int) stream, in_past_ms); in ap_is_stream_active_remotely()
317 return lap->apm->isSourceActive(source); in ap_is_source_active()
323 return lap->apm->dump(fd); in ap_dump()
330 return lap->apm->isOffloadSupported(*info); in ap_is_offload_supported()
391 lap->apm = createAudioPolicyManager(lap->service_client); in create_legacy_ap()
392 if (!lap->apm) { in create_legacy_ap()
416 if (lap->apm) in destroy_legacy_ap()
417 destroyAudioPolicyManager(lap->apm); in destroy_legacy_ap()