Lines Matching refs:pol
53 static inline struct legacy_audio_policy * to_lap(struct audio_policy *pol) in to_lap() argument
55 return reinterpret_cast<struct legacy_audio_policy *>(pol); in to_lap()
58 static inline const struct legacy_audio_policy * to_clap(const struct audio_policy *pol) in to_clap() argument
60 return reinterpret_cast<const struct legacy_audio_policy *>(pol); in to_clap()
64 static int ap_set_device_connection_state(struct audio_policy *pol, in ap_set_device_connection_state() argument
69 struct legacy_audio_policy *lap = to_lap(pol); in ap_set_device_connection_state()
77 const struct audio_policy *pol, in ap_get_device_connection_state() argument
81 const struct legacy_audio_policy *lap = to_clap(pol); in ap_get_device_connection_state()
87 static void ap_set_phone_state(struct audio_policy *pol, audio_mode_t state) in ap_set_phone_state() argument
89 struct legacy_audio_policy *lap = to_lap(pol); in ap_set_phone_state()
95 static void ap_set_ringer_mode(struct audio_policy *pol, uint32_t mode, in ap_set_ringer_mode() argument
102 static void ap_set_force_use(struct audio_policy *pol, in ap_set_force_use() argument
106 struct legacy_audio_policy *lap = to_lap(pol); in ap_set_force_use()
113 const struct audio_policy *pol, in ap_get_force_use() argument
116 const struct legacy_audio_policy *lap = to_clap(pol); in ap_get_force_use()
123 static void ap_set_can_mute_enforced_audible(struct audio_policy *pol, in ap_set_can_mute_enforced_audible() argument
126 struct legacy_audio_policy *lap = to_lap(pol); in ap_set_can_mute_enforced_audible()
130 static int ap_init_check(const struct audio_policy *pol) in ap_init_check() argument
132 const struct legacy_audio_policy *lap = to_clap(pol); in ap_init_check()
136 static audio_io_handle_t ap_get_output(struct audio_policy *pol, in ap_get_output() argument
144 struct legacy_audio_policy *lap = to_lap(pol); in ap_get_output()
153 static int ap_start_output(struct audio_policy *pol, audio_io_handle_t output, in ap_start_output() argument
156 struct legacy_audio_policy *lap = to_lap(pol); in ap_start_output()
161 static int ap_stop_output(struct audio_policy *pol, audio_io_handle_t output, in ap_stop_output() argument
164 struct legacy_audio_policy *lap = to_lap(pol); in ap_stop_output()
169 static void ap_release_output(struct audio_policy *pol, in ap_release_output() argument
172 struct legacy_audio_policy *lap = to_lap(pol); in ap_release_output()
176 static audio_io_handle_t ap_get_input(struct audio_policy *pol, audio_source_t inputSource, in ap_get_input() argument
182 struct legacy_audio_policy *lap = to_lap(pol); in ap_get_input()
187 static int ap_start_input(struct audio_policy *pol, audio_io_handle_t input) in ap_start_input() argument
189 struct legacy_audio_policy *lap = to_lap(pol); in ap_start_input()
193 static int ap_stop_input(struct audio_policy *pol, audio_io_handle_t input) in ap_stop_input() argument
195 struct legacy_audio_policy *lap = to_lap(pol); in ap_stop_input()
199 static void ap_release_input(struct audio_policy *pol, audio_io_handle_t input) in ap_release_input() argument
201 struct legacy_audio_policy *lap = to_lap(pol); in ap_release_input()
205 static void ap_init_stream_volume(struct audio_policy *pol, in ap_init_stream_volume() argument
209 struct legacy_audio_policy *lap = to_lap(pol); in ap_init_stream_volume()
214 static int ap_set_stream_volume_index(struct audio_policy *pol, in ap_set_stream_volume_index() argument
218 struct legacy_audio_policy *lap = to_lap(pol); in ap_set_stream_volume_index()
224 static int ap_get_stream_volume_index(const struct audio_policy *pol, in ap_get_stream_volume_index() argument
228 const struct legacy_audio_policy *lap = to_clap(pol); in ap_get_stream_volume_index()
234 static int ap_set_stream_volume_index_for_device(struct audio_policy *pol, in ap_set_stream_volume_index_for_device() argument
239 struct legacy_audio_policy *lap = to_lap(pol); in ap_set_stream_volume_index_for_device()
245 static int ap_get_stream_volume_index_for_device(const struct audio_policy *pol, in ap_get_stream_volume_index_for_device() argument
250 const struct legacy_audio_policy *lap = to_clap(pol); in ap_get_stream_volume_index_for_device()
256 static uint32_t ap_get_strategy_for_stream(const struct audio_policy *pol, in ap_get_strategy_for_stream() argument
259 const struct legacy_audio_policy *lap = to_clap(pol); in ap_get_strategy_for_stream()
263 static audio_devices_t ap_get_devices_for_stream(const struct audio_policy *pol, in ap_get_devices_for_stream() argument
266 const struct legacy_audio_policy *lap = to_clap(pol); in ap_get_devices_for_stream()
270 static audio_io_handle_t ap_get_output_for_effect(struct audio_policy *pol, in ap_get_output_for_effect() argument
273 struct legacy_audio_policy *lap = to_lap(pol); in ap_get_output_for_effect()
277 static int ap_register_effect(struct audio_policy *pol, in ap_register_effect() argument
284 struct legacy_audio_policy *lap = to_lap(pol); in ap_register_effect()
288 static int ap_unregister_effect(struct audio_policy *pol, int id) in ap_unregister_effect() argument
290 struct legacy_audio_policy *lap = to_lap(pol); in ap_unregister_effect()
294 static int ap_set_effect_enabled(struct audio_policy *pol, int id, bool enabled) in ap_set_effect_enabled() argument
296 struct legacy_audio_policy *lap = to_lap(pol); in ap_set_effect_enabled()
300 static bool ap_is_stream_active(const struct audio_policy *pol, audio_stream_type_t stream, in ap_is_stream_active() argument
303 const struct legacy_audio_policy *lap = to_clap(pol); in ap_is_stream_active()
307 static bool ap_is_stream_active_remotely(const struct audio_policy *pol, audio_stream_type_t stream, in ap_is_stream_active_remotely() argument
310 const struct legacy_audio_policy *lap = to_clap(pol); in ap_is_stream_active_remotely()
314 static bool ap_is_source_active(const struct audio_policy *pol, audio_source_t source) in ap_is_source_active() argument
316 const struct legacy_audio_policy *lap = to_clap(pol); in ap_is_source_active()
320 static int ap_dump(const struct audio_policy *pol, int fd) in ap_dump() argument
322 const struct legacy_audio_policy *lap = to_clap(pol); in ap_dump()
326 static bool ap_is_offload_supported(const struct audio_policy *pol, in ap_is_offload_supported() argument
329 const struct legacy_audio_policy *lap = to_clap(pol); in ap_is_offload_supported()