Lines Matching refs:audio_policy
24 #include <system/audio_policy.h>
25 #include <hardware/audio_policy.h>
45 struct audio_policy policy;
53 static inline struct legacy_audio_policy * to_lap(struct audio_policy *pol)
58 static inline const struct legacy_audio_policy * to_clap(const struct audio_policy *pol)
64 static int ap_set_device_connection_state(struct audio_policy *pol,
77 const struct audio_policy *pol,
87 static void ap_set_phone_state(struct audio_policy *pol, audio_mode_t state)
95 static void ap_set_ringer_mode(struct audio_policy *pol, uint32_t mode,
102 static void ap_set_force_use(struct audio_policy *pol,
113 const struct audio_policy *pol,
123 static void ap_set_can_mute_enforced_audible(struct audio_policy *pol,
130 static int ap_init_check(const struct audio_policy *pol)
136 static audio_io_handle_t ap_get_output(struct audio_policy *pol,
153 static int ap_start_output(struct audio_policy *pol, audio_io_handle_t output,
161 static int ap_stop_output(struct audio_policy *pol, audio_io_handle_t output,
169 static void ap_release_output(struct audio_policy *pol,
176 static audio_io_handle_t ap_get_input(struct audio_policy *pol, audio_source_t inputSource,
187 static int ap_start_input(struct audio_policy *pol, audio_io_handle_t input)
193 static int ap_stop_input(struct audio_policy *pol, audio_io_handle_t input)
199 static void ap_release_input(struct audio_policy *pol, audio_io_handle_t input)
205 static void ap_init_stream_volume(struct audio_policy *pol,
214 static int ap_set_stream_volume_index(struct audio_policy *pol,
224 static int ap_get_stream_volume_index(const struct audio_policy *pol,
234 static int ap_set_stream_volume_index_for_device(struct audio_policy *pol,
245 static int ap_get_stream_volume_index_for_device(const struct audio_policy *pol,
256 static uint32_t ap_get_strategy_for_stream(const struct audio_policy *pol,
263 static audio_devices_t ap_get_devices_for_stream(const struct audio_policy *pol,
270 static audio_io_handle_t ap_get_output_for_effect(struct audio_policy *pol,
277 static int ap_register_effect(struct audio_policy *pol,
288 static int ap_unregister_effect(struct audio_policy *pol, int id)
294 static int ap_set_effect_enabled(struct audio_policy *pol, int id, bool enabled)
300 static bool ap_is_stream_active(const struct audio_policy *pol, audio_stream_type_t stream,
307 static bool ap_is_stream_active_remotely(const struct audio_policy *pol, audio_stream_type_t stream,
314 static bool ap_is_source_active(const struct audio_policy *pol, audio_source_t source)
320 static int ap_dump(const struct audio_policy *pol, int fd)
326 static bool ap_is_offload_supported(const struct audio_policy *pol,
336 struct audio_policy **ap)
409 struct audio_policy *ap)