Lines Matching refs:virtual
50 virtual void onNewAudioModulesAvailable() = 0;
51 virtual status_t setDeviceConnectionState(audio_devices_t device,
56 virtual audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
58 virtual status_t handleDeviceConfigChange(audio_devices_t device,
62 virtual status_t setPhoneState(audio_mode_t state, uid_t uid) = 0;
63 virtual status_t setForceUse(audio_policy_force_use_t usage,
65 virtual audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) = 0;
66 virtual audio_io_handle_t getOutput(audio_stream_type_t stream) = 0;
67 virtual status_t getOutputForAttr(audio_attributes_t *attr,
78 virtual status_t startOutput(audio_port_handle_t portId) = 0;
79 virtual status_t stopOutput(audio_port_handle_t portId) = 0;
80 virtual void releaseOutput(audio_port_handle_t portId) = 0;
81 virtual status_t getInputForAttr(const audio_attributes_t *attr,
92 virtual status_t startInput(audio_port_handle_t portId) = 0;
93 virtual status_t stopInput(audio_port_handle_t portId) = 0;
94 virtual void releaseInput(audio_port_handle_t portId) = 0;
95 virtual status_t initStreamVolume(audio_stream_type_t stream,
98 virtual status_t setStreamVolumeIndex(audio_stream_type_t stream,
101 virtual status_t getStreamVolumeIndex(audio_stream_type_t stream,
105 virtual status_t setVolumeIndexForAttributes(const audio_attributes_t &attr,
108 virtual status_t getVolumeIndexForAttributes(const audio_attributes_t &attr,
111 virtual status_t getMaxVolumeIndexForAttributes(const audio_attributes_t &attr, int &index) = 0;
113 virtual status_t getMinVolumeIndexForAttributes(const audio_attributes_t &attr, int &index) = 0;
115 virtual uint32_t getStrategyForStream(audio_stream_type_t stream) = 0;
116 virtual audio_devices_t getDevicesForStream(audio_stream_type_t stream) = 0;
117 virtual status_t getDevicesForAttributes(const AudioAttributes &aa,
119 virtual audio_io_handle_t getOutputForEffect(const effect_descriptor_t *desc) = 0;
120 virtual status_t registerEffect(const effect_descriptor_t *desc,
125 virtual status_t unregisterEffect(int id) = 0;
126 virtual status_t setEffectEnabled(int id, bool enabled) = 0;
127 virtual status_t moveEffectsToIo(const std::vector<int>& ids, audio_io_handle_t io) = 0;
128 virtual bool isStreamActive(audio_stream_type_t stream, uint32_t inPastMs = 0) const = 0;
129 virtual bool isStreamActiveRemotely(audio_stream_type_t stream, uint32_t inPastMs = 0)
131 virtual bool isSourceActive(audio_source_t source) const = 0;
132 virtual status_t queryDefaultPreProcessing(audio_session_t audioSession,
135 virtual status_t addSourceDefaultEffect(const effect_uuid_t *type,
141 virtual status_t addStreamDefaultEffect(const effect_uuid_t *type,
147 virtual status_t removeSourceDefaultEffect(audio_unique_id_t id) = 0;
148 virtual status_t removeStreamDefaultEffect(audio_unique_id_t id) = 0;
149 virtual status_t setSupportedSystemUsages(const std::vector<audio_usage_t>& systemUsages) = 0;
150 virtual status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t flags) = 0;
153 virtual bool isOffloadSupported(const audio_offload_info_t& info) = 0;
156 virtual bool isDirectOutputSupported(const audio_config_base_t& config,
160 virtual status_t listAudioPorts(audio_port_role_t role,
167 virtual status_t getAudioPort(struct audio_port *port) = 0;
170 virtual status_t createAudioPatch(const struct audio_patch *patch,
174 virtual status_t releaseAudioPatch(audio_patch_handle_t handle) = 0;
177 virtual status_t listAudioPatches(unsigned int *num_patches,
181 virtual status_t setAudioPortConfig(const struct audio_port_config *config) = 0;
183 virtual void registerClient(const sp<IAudioPolicyServiceClient>& client) = 0;
185 virtual void setAudioPortCallbacksEnabled(bool enabled) = 0;
187 virtual void setAudioVolumeGroupCallbacksEnabled(bool enabled) = 0;
189 virtual status_t acquireSoundTriggerSession(audio_session_t *session,
193 virtual status_t releaseSoundTriggerSession(audio_session_t session) = 0;
195 virtual audio_mode_t getPhoneState() = 0;
197 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration) = 0;
199 virtual status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices)
202 virtual status_t removeUidDeviceAffinities(uid_t uid) = 0;
204 virtual status_t setUserIdDeviceAffinities(int userId,
207 virtual status_t removeUserIdDeviceAffinities(int userId) = 0;
209 virtual status_t startAudioSource(const struct audio_port_config *source,
212 virtual status_t stopAudioSource(audio_port_handle_t portId) = 0;
214 virtual status_t setMasterMono(bool mono) = 0;
215 virtual status_t getMasterMono(bool *mono) = 0;
216 virtual float getStreamVolumeDB(
219 virtual status_t getSurroundFormats(unsigned int *numSurroundFormats,
223 virtual status_t getHwOffloadEncodingFormatsSupportedForA2DP(
225 virtual status_t setSurroundFormatEnabled(audio_format_t audioFormat, bool enabled) = 0;
227 virtual status_t setAssistantUid(uid_t uid) = 0;
228 virtual status_t setA11yServicesUids(const std::vector<uid_t>& uids) = 0;
229 virtual status_t setCurrentImeUid(uid_t uid) = 0;
231 virtual bool isHapticPlaybackSupported() = 0;
232 virtual status_t listAudioProductStrategies(AudioProductStrategyVector &strategies) = 0;
233 virtual status_t getProductStrategyFromAudioAttributes(const AudioAttributes &aa,
236 virtual status_t listAudioVolumeGroups(AudioVolumeGroupVector &groups) = 0;
237 virtual status_t getVolumeGroupFromAudioAttributes(const AudioAttributes &aa,
240 virtual status_t setRttEnabled(bool enabled) = 0;
242 virtual bool isCallScreenModeSupported() = 0;
244 virtual status_t setPreferredDeviceForStrategy(product_strategy_t strategy,
247 virtual status_t removePreferredDeviceForStrategy(product_strategy_t strategy) = 0;
249 virtual status_t getPreferredDeviceForStrategy(product_strategy_t strategy,
254 virtual status_t registerSoundTriggerCaptureStateListener(
265 virtual status_t onTransact( uint32_t code,