Lines Matching refs:virtual
81 virtual ~AudioPolicyInterface() {} in ~AudioPolicyInterface()
88 virtual void onNewAudioModulesAvailable() = 0;
91 virtual status_t setDeviceConnectionState(audio_devices_t device,
97 virtual audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
100 virtual status_t handleDeviceConfigChange(audio_devices_t device,
105 virtual void setPhoneState(audio_mode_t state) = 0;
107 virtual void setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) = 0;
109 virtual audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) = 0;
111 virtual void setSystemProperty(const char* property, const char* value) = 0;
113 virtual status_t initCheck() = 0;
120 virtual audio_io_handle_t getOutput(audio_stream_type_t stream) = 0;
121 virtual status_t getOutputForAttr(const audio_attributes_t *attr,
133 virtual status_t startOutput(audio_port_handle_t portId) = 0;
135 virtual status_t stopOutput(audio_port_handle_t portId) = 0;
137 virtual void releaseOutput(audio_port_handle_t portId) = 0;
140 virtual status_t getInputForAttr(const audio_attributes_t *attr,
151 virtual status_t startInput(audio_port_handle_t portId) = 0;
153 virtual status_t stopInput(audio_port_handle_t portId) = 0;
155 virtual void releaseInput(audio_port_handle_t portId) = 0;
162 virtual void initStreamVolume(audio_stream_type_t stream,
169 virtual status_t setStreamVolumeIndex(audio_stream_type_t stream,
176 virtual status_t getStreamVolumeIndex(audio_stream_type_t stream,
180 virtual status_t setVolumeIndexForAttributes(const audio_attributes_t &attr,
183 virtual status_t getVolumeIndexForAttributes(const audio_attributes_t &attr,
187 virtual status_t getMaxVolumeIndexForAttributes(const audio_attributes_t &attr,
190 virtual status_t getMinVolumeIndexForAttributes(const audio_attributes_t &attr,
194 virtual uint32_t getStrategyForStream(audio_stream_type_t stream) = 0;
197 virtual audio_devices_t getDevicesForStream(audio_stream_type_t stream) = 0;
200 virtual status_t getDevicesForAttributes(const audio_attributes_t &attr,
204 virtual audio_io_handle_t getOutputForEffect(const effect_descriptor_t *desc) = 0;
205 virtual status_t registerEffect(const effect_descriptor_t *desc,
210 virtual status_t unregisterEffect(int id) = 0;
211 virtual status_t setEffectEnabled(int id, bool enabled) = 0;
212 virtual status_t moveEffectsToIo(const std::vector<int>& ids, audio_io_handle_t io) = 0;
214 virtual bool isStreamActive(audio_stream_type_t stream, uint32_t inPastMs = 0) const = 0;
215 virtual bool isStreamActiveRemotely(audio_stream_type_t stream,
217 virtual bool isSourceActive(audio_source_t source) const = 0;
220 virtual status_t dump(int fd) = 0;
222 virtual status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t flags) = 0;
223 virtual bool isOffloadSupported(const audio_offload_info_t& offloadInfo) = 0;
224 virtual bool isDirectOutputSupported(const audio_config_base_t& config,
227 virtual status_t listAudioPorts(audio_port_role_t role,
232 virtual status_t getAudioPort(struct audio_port *port) = 0;
233 virtual status_t createAudioPatch(const struct audio_patch *patch,
236 virtual status_t releaseAudioPatch(audio_patch_handle_t handle,
238 virtual status_t listAudioPatches(unsigned int *num_patches,
241 virtual status_t setAudioPortConfig(const struct audio_port_config *config) = 0;
242 virtual void releaseResourcesForUid(uid_t uid) = 0;
244 virtual status_t acquireSoundTriggerSession(audio_session_t *session,
248 virtual status_t releaseSoundTriggerSession(audio_session_t session) = 0;
250 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes) = 0;
251 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes) = 0;
253 virtual status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices)
255 virtual status_t removeUidDeviceAffinities(uid_t uid) = 0;
257 virtual status_t setUserIdDeviceAffinities(int userId,
259 virtual status_t removeUserIdDeviceAffinities(int userId) = 0;
261 virtual status_t startAudioSource(const struct audio_port_config *source,
265 virtual status_t stopAudioSource(audio_port_handle_t portId) = 0;
267 virtual status_t setMasterMono(bool mono) = 0;
268 virtual status_t getMasterMono(bool *mono) = 0;
270 virtual float getStreamVolumeDB(
273 virtual status_t getSurroundFormats(unsigned int *numSurroundFormats,
277 virtual status_t setSurroundFormatEnabled(audio_format_t audioFormat, bool enabled) = 0;
279 virtual bool isHapticPlaybackSupported() = 0;
281 virtual status_t getHwOffloadEncodingFormatsSupportedForA2DP(
284 virtual void setAppState(audio_port_handle_t portId, app_state_t state) = 0;
286 virtual status_t listAudioProductStrategies(AudioProductStrategyVector &strategies) = 0;
288 virtual status_t getProductStrategyFromAudioAttributes(const AudioAttributes &aa,
291 virtual status_t listAudioVolumeGroups(AudioVolumeGroupVector &groups) = 0;
293 virtual status_t getVolumeGroupFromAudioAttributes(const AudioAttributes &aa,
296 virtual bool isCallScreenModeSupported() = 0;
298 virtual status_t setPreferredDeviceForStrategy(product_strategy_t strategy,
301 virtual status_t removePreferredDeviceForStrategy(product_strategy_t strategy) = 0;
303 virtual status_t getPreferredDeviceForStrategy(product_strategy_t strategy,
312 virtual ~AudioPolicyClientInterface() {} in ~AudioPolicyClientInterface()
319 virtual audio_module_handle_t loadHwModule(const char *name) = 0;
329 virtual status_t openOutput(audio_module_handle_t module,
337 …virtual audio_io_handle_t openDuplicateOutput(audio_io_handle_t output1, audio_io_handle_t output2…
339 virtual status_t closeOutput(audio_io_handle_t output) = 0;
342 virtual status_t suspendOutput(audio_io_handle_t output) = 0;
344 virtual status_t restoreOutput(audio_io_handle_t output) = 0;
351 virtual status_t openInput(audio_module_handle_t module,
359 virtual status_t closeInput(audio_io_handle_t input) = 0;
366 …virtual status_t setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t outpu…
369 virtual status_t invalidateStream(audio_stream_type_t stream) = 0;
372 …virtual void setParameters(audio_io_handle_t ioHandle, const String8& keyValuePairs, int delayMs =…
374 virtual String8 getParameters(audio_io_handle_t ioHandle, const String8& keys) = 0;
377 virtual status_t setVoiceVolume(float volume, int delayMs = 0) = 0;
380 virtual status_t moveEffects(audio_session_t session,
384 virtual void setEffectSuspended(int effectId,
389 virtual status_t createAudioPatch(const struct audio_patch *patch,
394 virtual status_t releaseAudioPatch(audio_patch_handle_t handle,
398 virtual status_t setAudioPortConfig(const struct audio_port_config *config, int delayMs) = 0;
400 virtual void onAudioPortListUpdate() = 0;
402 virtual void onAudioPatchListUpdate() = 0;
404 virtual void onAudioVolumeGroupChanged(volume_group_t group, int flags) = 0;
406 virtual audio_unique_id_t newAudioUniqueId(audio_unique_id_use_t use) = 0;
408 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) = 0;
410 virtual void onRecordingConfigurationUpdate(int event,
423 virtual void setSoundTriggerCaptureState(bool active) = 0;