audio_policy Struct Reference
#include <
audio_policy.h
>
Data Fields |
|
int(* | set_device_connection_state )(struct audio_policy *pol, audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) |
audio_policy_dev_state_t(* | get_device_connection_state )(const struct audio_policy *pol, audio_devices_t device, const char *device_address) |
void(* | set_phone_state )(struct audio_policy *pol, audio_mode_t state) |
void(* | set_ringer_mode )(struct audio_policy *pol, uint32_t mode, uint32_t mask) |
void(* | set_force_use )(struct audio_policy *pol, audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) |
audio_policy_forced_cfg_t(* | get_force_use )(const struct audio_policy *pol, audio_policy_force_use_t usage) |
void(* | set_can_mute_enforced_audible )(struct audio_policy *pol, bool can_mute) |
int(* | init_check )(const struct audio_policy *pol) |
audio_io_handle_t(* | get_output )(struct audio_policy *pol, audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) |
int(* | start_output )(struct audio_policy *pol, audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) |
int(* | stop_output )(struct audio_policy *pol, audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) |
void(* | release_output )(struct audio_policy *pol, audio_io_handle_t output) |
audio_io_handle_t(* | get_input )(struct audio_policy *pol, audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_in_acoustics_t acoustics) |
int(* | start_input )(struct audio_policy *pol, audio_io_handle_t input) |
int(* | stop_input )(struct audio_policy *pol, audio_io_handle_t input) |
void(* | release_input )(struct audio_policy *pol, audio_io_handle_t input) |
void(* | init_stream_volume )(struct audio_policy *pol, audio_stream_type_t stream, int index_min, int index_max) |
int(* | set_stream_volume_index )(struct audio_policy *pol, audio_stream_type_t stream, int index) |
int(* | get_stream_volume_index )(const struct audio_policy *pol, audio_stream_type_t stream, int *index) |
int(* | set_stream_volume_index_for_device )(struct audio_policy *pol, audio_stream_type_t stream, int index, audio_devices_t device) |
int(* | get_stream_volume_index_for_device )(const struct audio_policy *pol, audio_stream_type_t stream, int *index, audio_devices_t device) |
uint32_t(* | get_strategy_for_stream )(const struct audio_policy *pol, audio_stream_type_t stream) |
audio_devices_t(* | get_devices_for_stream )(const struct audio_policy *pol, audio_stream_type_t stream) |
audio_io_handle_t(* | get_output_for_effect )(struct audio_policy *pol, const struct effect_descriptor_s *desc) |
int(* | register_effect )(struct audio_policy *pol, const struct effect_descriptor_s *desc, audio_io_handle_t output, uint32_t strategy, audio_session_t session, int id) |
int(* | unregister_effect )(struct audio_policy *pol, int id) |
int(* | set_effect_enabled )(struct audio_policy *pol, int id, bool enabled) |
bool(* | is_stream_active )(const struct audio_policy *pol, audio_stream_type_t stream, uint32_t in_past_ms) |
bool(* | is_stream_active_remotely )(const struct audio_policy *pol, audio_stream_type_t stream, uint32_t in_past_ms) |
bool(* | is_source_active )(const struct audio_policy *pol, audio_source_t source) |
int(* | dump )(const struct audio_policy *pol, int fd) |
bool(* | is_offload_supported )(const struct audio_policy *pol, const audio_offload_info_t *info) |
Detailed Description
Definition at line 83 of file audio_policy.h .
Field Documentation
int(* dump)(const struct audio_policy *pol, int fd) |
Definition at line 244 of file audio_policy.h .
audio_policy_dev_state_t(* get_device_connection_state)(const struct audio_policy *pol, audio_devices_t device, const char *device_address) |
Definition at line 95 of file audio_policy.h .
audio_devices_t(* get_devices_for_stream)(const struct audio_policy *pol, audio_stream_type_t stream) |
Definition at line 214 of file audio_policy.h .
audio_policy_forced_cfg_t(* get_force_use)(const struct audio_policy *pol, audio_policy_force_use_t usage) |
Definition at line 114 of file audio_policy.h .
audio_io_handle_t(* get_input)(struct audio_policy *pol, audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_in_acoustics_t acoustics) |
Definition at line 158 of file audio_policy.h .
audio_io_handle_t(* get_output)(struct audio_policy *pol, audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) |
Definition at line 131 of file audio_policy.h .
audio_io_handle_t(* get_output_for_effect)(struct audio_policy *pol, const struct effect_descriptor_s *desc) |
Definition at line 218 of file audio_policy.h .
uint32_t(* get_strategy_for_stream)(const struct audio_policy *pol, audio_stream_type_t stream) |
Definition at line 210 of file audio_policy.h .
int(* get_stream_volume_index)(const struct audio_policy *pol, audio_stream_type_t stream, int *index) |
Definition at line 191 of file audio_policy.h .
int(* get_stream_volume_index_for_device)(const struct audio_policy *pol, audio_stream_type_t stream, int *index, audio_devices_t device) |
Definition at line 204 of file audio_policy.h .
int(* init_check)(const struct audio_policy *pol) |
Definition at line 123 of file audio_policy.h .
void(* init_stream_volume)(struct audio_policy *pol, audio_stream_type_t stream, int index_min, int index_max) |
Definition at line 179 of file audio_policy.h .
bool(* is_offload_supported)(const struct audio_policy *pol, const audio_offload_info_t *info) |
Definition at line 247 of file audio_policy.h .
bool(* is_source_active)(const struct audio_policy *pol, audio_source_t source) |
Definition at line 240 of file audio_policy.h .
bool(* is_stream_active)(const struct audio_policy *pol, audio_stream_type_t stream, uint32_t in_past_ms) |
Definition at line 232 of file audio_policy.h .
bool(* is_stream_active_remotely)(const struct audio_policy *pol, audio_stream_type_t stream, uint32_t in_past_ms) |
Definition at line 236 of file audio_policy.h .
int(* register_effect)(struct audio_policy *pol, const struct effect_descriptor_s *desc, audio_io_handle_t output, uint32_t strategy, audio_session_t session, int id) |
Definition at line 221 of file audio_policy.h .
void(* release_input)(struct audio_policy *pol, audio_io_handle_t input) |
Definition at line 171 of file audio_policy.h .
void(* release_output)(struct audio_policy *pol, audio_io_handle_t output) |
Definition at line 154 of file audio_policy.h .
void(* set_can_mute_enforced_audible)(struct audio_policy *pol, bool can_mute) |
Definition at line 119 of file audio_policy.h .
int(* set_device_connection_state)(struct audio_policy *pol, audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) |
Definition at line 89 of file audio_policy.h .
int(* set_effect_enabled)(struct audio_policy *pol, int id, bool enabled) |
Definition at line 230 of file audio_policy.h .
void(* set_force_use)(struct audio_policy *pol, audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) |
Definition at line 109 of file audio_policy.h .
void(* set_phone_state)(struct audio_policy *pol, audio_mode_t state) |
Definition at line 102 of file audio_policy.h .
void(* set_ringer_mode)(struct audio_policy *pol, uint32_t mode, uint32_t mask) |
Definition at line 105 of file audio_policy.h .
int(* set_stream_volume_index)(struct audio_policy *pol, audio_stream_type_t stream, int index) |
Definition at line 186 of file audio_policy.h .
int(* set_stream_volume_index_for_device)(struct audio_policy *pol, audio_stream_type_t stream, int index, audio_devices_t device) |
Definition at line 198 of file audio_policy.h .
int(* start_input)(struct audio_policy *pol, audio_io_handle_t input) |
Definition at line 165 of file audio_policy.h .
int(* start_output)(struct audio_policy *pol, audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) |
Definition at line 141 of file audio_policy.h .
int(* stop_input)(struct audio_policy *pol, audio_io_handle_t input) |
Definition at line 168 of file audio_policy.h .
int(* stop_output)(struct audio_policy *pol, audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) |
Definition at line 148 of file audio_policy.h .
int(* unregister_effect)(struct audio_policy *pol, int id) |
Definition at line 228 of file audio_policy.h .
The documentation for this struct was generated from the following file:
- hardware/libhardware/include/hardware/ audio_policy.h