Lines Matching refs:virtual
100 virtual ~AudioPolicyInterface() {} in ~AudioPolicyInterface()
107 virtual void onNewAudioModulesAvailable() = 0;
110 virtual status_t setDeviceConnectionState(audio_policy_dev_state_t state,
114 virtual audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
117 virtual status_t handleDeviceConfigChange(audio_devices_t device,
122 virtual void setPhoneState(audio_mode_t state) = 0;
124 virtual void setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) = 0;
126 virtual audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) = 0;
128 virtual void setSystemProperty(const char* property, const char* value) = 0;
130 virtual status_t initCheck() = 0;
137 virtual audio_io_handle_t getOutput(audio_stream_type_t stream) = 0;
138 virtual status_t getOutputForAttr(const audio_attributes_t *attr,
153 virtual status_t startOutput(audio_port_handle_t portId) = 0;
156 virtual status_t stopOutput(audio_port_handle_t portId) = 0;
158 virtual bool releaseOutput(audio_port_handle_t portId) = 0;
161 virtual status_t getInputForAttr(const audio_attributes_t *attr,
173 virtual status_t startInput(audio_port_handle_t portId) = 0;
175 virtual status_t stopInput(audio_port_handle_t portId) = 0;
177 virtual void releaseInput(audio_port_handle_t portId) = 0;
185 virtual status_t setDeviceAbsoluteVolumeEnabled(audio_devices_t device,
190 virtual void initStreamVolume(audio_stream_type_t stream,
197 virtual status_t setStreamVolumeIndex(audio_stream_type_t stream,
204 virtual status_t getStreamVolumeIndex(audio_stream_type_t stream,
208 virtual status_t setVolumeIndexForAttributes(const audio_attributes_t &attr,
211 virtual status_t getVolumeIndexForAttributes(const audio_attributes_t &attr,
215 virtual status_t getMaxVolumeIndexForAttributes(const audio_attributes_t &attr,
218 virtual status_t getMinVolumeIndexForAttributes(const audio_attributes_t &attr,
222 virtual product_strategy_t getStrategyForStream(audio_stream_type_t stream) = 0;
225 virtual status_t getDevicesForAttributes(const audio_attributes_t &attr,
230 virtual audio_io_handle_t getOutputForEffect(const effect_descriptor_t *desc) = 0;
231 virtual status_t registerEffect(const effect_descriptor_t *desc,
236 virtual status_t unregisterEffect(int id) = 0;
237 virtual status_t setEffectEnabled(int id, bool enabled) = 0;
238 virtual status_t moveEffectsToIo(const std::vector<int>& ids, audio_io_handle_t io) = 0;
240 virtual bool isStreamActive(audio_stream_type_t stream, uint32_t inPastMs = 0) const = 0;
241 virtual bool isStreamActiveRemotely(audio_stream_type_t stream,
243 virtual bool isSourceActive(audio_source_t source) const = 0;
246 virtual status_t dump(int fd) = 0;
248 virtual status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t flags) = 0;
249 virtual audio_offload_mode_t getOffloadSupport(const audio_offload_info_t& offloadInfo) = 0;
250 virtual bool isDirectOutputSupported(const audio_config_base_t& config,
253 virtual status_t listAudioPorts(audio_port_role_t role,
258 virtual status_t listDeclaredDevicePorts(media::AudioPortRole role,
260 virtual status_t getAudioPort(struct audio_port_v7 *port) = 0;
261 virtual status_t createAudioPatch(const struct audio_patch *patch,
264 virtual status_t releaseAudioPatch(audio_patch_handle_t handle,
266 virtual status_t listAudioPatches(unsigned int *num_patches,
269 virtual status_t setAudioPortConfig(const struct audio_port_config *config) = 0;
270 virtual void releaseResourcesForUid(uid_t uid) = 0;
272 virtual status_t acquireSoundTriggerSession(audio_session_t *session,
276 virtual status_t releaseSoundTriggerSession(audio_session_t session) = 0;
278 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes) = 0;
279 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes) = 0;
280 virtual status_t getRegisteredPolicyMixes(std::vector<AudioMix>& mixes) = 0;
282 virtual status_t updatePolicyMix(
286 virtual status_t setUidDeviceAffinities(uid_t uid, const AudioDeviceTypeAddrVector& devices)
288 virtual status_t removeUidDeviceAffinities(uid_t uid) = 0;
290 virtual status_t setUserIdDeviceAffinities(int userId,
292 virtual status_t removeUserIdDeviceAffinities(int userId) = 0;
294 virtual status_t startAudioSource(const struct audio_port_config *source,
298 virtual status_t stopAudioSource(audio_port_handle_t portId) = 0;
300 virtual status_t setMasterMono(bool mono) = 0;
301 virtual status_t getMasterMono(bool *mono) = 0;
303 virtual float getStreamVolumeDB(
306 virtual status_t getSurroundFormats(unsigned int *numSurroundFormats,
310 virtual status_t getReportedSurroundFormats(unsigned int *numSurroundFormats,
313 virtual status_t setSurroundFormatEnabled(audio_format_t audioFormat, bool enabled) = 0;
315 virtual bool isHapticPlaybackSupported() = 0;
317 virtual bool isUltrasoundSupported() = 0;
319 virtual bool isHotwordStreamSupported(bool lookbackAudio) = 0;
321 virtual status_t getHwOffloadFormatsSupportedForBluetoothMedia(
324 virtual void setAppState(audio_port_handle_t portId, app_state_t state) = 0;
326 virtual status_t listAudioProductStrategies(AudioProductStrategyVector &strategies) = 0;
328 virtual status_t getProductStrategyFromAudioAttributes(
332 virtual status_t listAudioVolumeGroups(AudioVolumeGroupVector &groups) = 0;
334 virtual status_t getVolumeGroupFromAudioAttributes(
337 virtual bool isCallScreenModeSupported() = 0;
339 virtual status_t setDevicesRoleForStrategy(product_strategy_t strategy,
343 virtual status_t removeDevicesRoleForStrategy(product_strategy_t strategy,
347 virtual status_t clearDevicesRoleForStrategy(product_strategy_t strategy,
350 virtual status_t getDevicesForRoleAndStrategy(product_strategy_t strategy,
354 virtual status_t setDevicesRoleForCapturePreset(audio_source_t audioSource,
358 virtual status_t addDevicesRoleForCapturePreset(audio_source_t audioSource,
362 virtual status_t removeDevicesRoleForCapturePreset(
366 virtual status_t clearDevicesRoleForCapturePreset(audio_source_t audioSource,
369 virtual status_t getDevicesForRoleAndCapturePreset(audio_source_t audioSource,
389 virtual bool canBeSpatialized(const audio_attributes_t *attr,
406 virtual status_t getSpatializerOutput(const audio_config_base_t *config,
415 virtual status_t releaseSpatializerOutput(audio_io_handle_t output) = 0;
426 virtual audio_direct_mode_t getDirectPlaybackSupport(const audio_attributes_t *attr,
430 virtual status_t getDirectProfilesForAttributes(const audio_attributes_t* attr,
433 virtual status_t getSupportedMixerAttributes(
435 virtual status_t setPreferredMixerAttributes(
440 virtual status_t getPreferredMixerAttributes(const audio_attributes_t* attr,
443 virtual status_t clearPreferredMixerAttributes(const audio_attributes_t* attr,
452 virtual ~AudioPolicyClientInterface() {} in ~AudioPolicyClientInterface()
454 virtual status_t getAudioPolicyConfig(media::AudioPolicyConfig *config) = 0;
461 virtual audio_module_handle_t loadHwModule(const char *name) = 0;
474 virtual status_t openOutput(audio_module_handle_t module,
483 virtual audio_io_handle_t openDuplicateOutput(audio_io_handle_t output1,
486 virtual status_t closeOutput(audio_io_handle_t output) = 0;
490 virtual status_t suspendOutput(audio_io_handle_t output) = 0;
492 virtual status_t restoreOutput(audio_io_handle_t output) = 0;
499 virtual status_t openInput(audio_module_handle_t module,
507 virtual status_t closeInput(audio_io_handle_t input) = 0;
515 virtual status_t setStreamVolume(audio_stream_type_t stream, float volume,
520 virtual void setParameters(audio_io_handle_t ioHandle, const String8& keyValuePairs,
524 virtual String8 getParameters(audio_io_handle_t ioHandle, const String8& keys) = 0;
527 virtual status_t setVoiceVolume(float volume, int delayMs = 0) = 0;
530 virtual status_t moveEffects(audio_session_t session,
534 virtual void setEffectSuspended(int effectId,
539 virtual status_t createAudioPatch(const struct audio_patch *patch,
544 virtual status_t releaseAudioPatch(audio_patch_handle_t handle,
548 virtual status_t setAudioPortConfig(const struct audio_port_config *config, int delayMs) = 0;
550 virtual void onAudioPortListUpdate() = 0;
552 virtual void onAudioPatchListUpdate() = 0;
554 virtual void onAudioVolumeGroupChanged(volume_group_t group, int flags) = 0;
556 virtual audio_unique_id_t newAudioUniqueId(audio_unique_id_use_t use) = 0;
558 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) = 0;
560 virtual void onRecordingConfigurationUpdate(int event,
569 virtual void onRoutingUpdated() = 0;
573 virtual void onVolumeRangeInitRequest() = 0;
579 virtual void setSoundTriggerCaptureState(bool active) = 0;
581 virtual status_t getAudioPort(struct audio_port_v7 *port) = 0;
583 virtual status_t updateSecondaryOutputs(
586 virtual status_t setDeviceConnectedState(const struct audio_port_v7 *port,
589 virtual status_t invalidateTracks(const std::vector<audio_port_handle_t>& portIds) = 0;
592 virtual status_t getAudioMixPort(const struct audio_port_v7 *devicePort,
595 virtual status_t setTracksInternalMute(