Lines Matching refs:virtual
56 class IAfTrackBase : public virtual RefBase {
89 virtual status_t initCheck() const = 0;
90 virtual status_t start(
93 virtual void stop() = 0;
94 virtual sp<IMemory> getCblk() const = 0;
95 virtual audio_track_cblk_t* cblk() const = 0;
96 virtual audio_session_t sessionId() const = 0;
97 virtual uid_t uid() const = 0;
98 virtual pid_t creatorPid() const = 0;
99 virtual uint32_t sampleRate() const = 0;
100 virtual size_t frameSize() const = 0;
101 virtual audio_port_handle_t portId() const = 0;
102 virtual status_t setSyncEvent(const sp<audioflinger::SyncEvent>& event) = 0;
103 virtual track_state state() const = 0;
104 virtual void setState(track_state state) = 0;
105 virtual sp<IMemory> getBuffers() const = 0;
106 virtual void* buffer() const = 0;
107 virtual size_t bufferSize() const = 0;
108 virtual bool isFastTrack() const = 0;
109 virtual bool isDirect() const = 0;
110 virtual bool isOutputTrack() const = 0;
111 virtual bool isPatchTrack() const = 0;
112 virtual bool isExternalTrack() const = 0;
114 virtual void invalidate() = 0;
115 virtual bool isInvalid() const = 0;
117 virtual void terminate() = 0;
118 virtual bool isTerminated() const = 0;
120 virtual audio_attributes_t attributes() const = 0;
121 virtual bool isSpatialized() const = 0;
122 virtual bool isBitPerfect() const = 0;
125 virtual void destroy() {}; // MmapTrack doesn't implement. in destroy()
126 virtual void appendDumpHeader(String8& result) const = 0;
127 virtual void appendDump(String8& result, bool active) const = 0;
130 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer) = 0;
131 virtual void releaseBuffer(AudioBufferProvider::Buffer* buffer) = 0;
134 virtual wp<IAfThreadBase> thread() const = 0;
135 virtual const sp<ServerProxy>& serverProxy() const = 0;
138 virtual void dumpTee(int fd __unused, const std::string& reason __unused) const {}; in dumpTee()
146 virtual double bufferLatencyMs() const = 0;
151 virtual bool isServerLatencySupported() const = 0;
171 virtual status_t getServerLatencyMs(double* latencyMs, bool* fromTrack = nullptr) const = 0;
191 virtual status_t getTrackLatencyMs(double* latencyMs, bool* fromTrack = nullptr) const = 0;
200 virtual void getKernelFrameTime(FrameTime* ft) const = 0;
202 virtual audio_format_t format() const = 0;
203 virtual int id() const = 0;
205 virtual const char* getTrackStateAsString() const = 0;
209 virtual void logBeginInterval(const std::string& devices) = 0;
212 virtual void logEndInterval() = 0;
215 virtual void tallyUnderrunFrames(size_t frames) = 0;
217 virtual audio_channel_mask_t channelMask() const = 0;
225 virtual bool readAndClearHasChanged() = 0;
228 virtual void setMetadataHasChanged() = 0;
234 virtual void beginBatteryAttribution() = 0;
240 virtual void endBatteryAttribution() = 0;
246 virtual void handleSyncStartEvent(const sp<audioflinger::SyncEvent>& event __unused){}; in handleSyncStartEvent()
250 virtual bool isStopped() const = 0;
251 virtual bool isStopping() const = 0;
252 virtual bool isStopping_1() const = 0;
253 virtual bool isStopping_2() const = 0;
257 class IAfTrack : public virtual IAfTrackBase {
294 virtual void pause() = 0;
295 virtual void flush() = 0;
296 virtual audio_stream_type_t streamType() const = 0;
297 virtual bool isOffloaded() const = 0;
298 virtual bool isOffloadedOrDirect() const = 0;
299 virtual bool isStatic() const = 0;
300 virtual status_t setParameters(const String8& keyValuePairs) = 0;
301 virtual status_t selectPresentation(int presentationId, int programId) = 0;
302 virtual status_t attachAuxEffect(int EffectId) = 0;
303 virtual void setAuxBuffer(int EffectId, int32_t* buffer) = 0;
304 virtual int32_t* auxBuffer() const = 0;
305 virtual void setMainBuffer(float* buffer) = 0;
306 virtual float* mainBuffer() const = 0;
307 virtual int auxEffectId() const = 0;
308 virtual status_t getTimestamp(AudioTimestamp& timestamp) = 0;
309 virtual void signal() = 0;
310 virtual status_t getDualMonoMode(audio_dual_mono_mode_t* mode) const = 0;
311 virtual status_t setDualMonoMode(audio_dual_mono_mode_t mode) = 0;
312 virtual status_t getAudioDescriptionMixLevel(float* leveldB) const = 0;
313 virtual status_t setAudioDescriptionMixLevel(float leveldB) = 0;
314 virtual status_t getPlaybackRateParameters(audio_playback_rate_t* playbackRate) const = 0;
315 virtual status_t setPlaybackRateParameters(const audio_playback_rate_t& playbackRate) = 0;
318 virtual gain_minifloat_packed_t getVolumeLR() const = 0;
321 virtual media::VolumeShaper::Status applyVolumeShaper(
324 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) const = 0;
325 virtual sp<media::VolumeHandler> getVolumeHandler() const = 0;
328 virtual void setFinalVolume(float volumeLeft, float volumeRight) = 0;
329 virtual float getFinalVolume() const = 0;
330 virtual void getFinalVolume(float* left, float* right) const = 0;
335 virtual void copyMetadataTo(MetadataInserter& backInserter) const = 0;
338 virtual bool getHapticPlaybackEnabled() const = 0;
341 virtual void setHapticPlaybackEnabled(bool hapticPlaybackEnabled) = 0;
343 virtual os::HapticScale getHapticScale() const = 0;
345 virtual float getHapticMaxAmplitude() const = 0;
347 virtual void setHapticScale(os::HapticScale hapticScale) = 0;
351 virtual void setHapticMaxAmplitude(float maxAmplitude) = 0;
352 virtual sp<os::ExternalVibration> getExternalVibration() const = 0;
355 virtual void updateTeePatches_l() REQUIRES(audio_utils::ThreadBase_Mutex)
359 virtual void setTeePatchesToUpdate_l(TeePatches teePatchesToUpdate) = 0;
365 virtual audio_output_flags_t getOutputFlags() const = 0;
366 virtual float getSpeed() const = 0;
372 virtual void processMuteEvent_l(
375 virtual void triggerEvents(AudioSystem::sync_event_t type) = 0;
377 virtual void disable() = 0;
378 virtual bool isDisabled() const = 0;
380 virtual int& fastIndex() = 0;
381 virtual bool isPlaybackRestricted() const = 0;
385 virtual bool isPausing() const = 0;
386 virtual bool isPaused() const = 0;
387 virtual bool isResuming() const = 0;
388 virtual bool isReady() const = 0;
389 virtual void setPaused() = 0;
390 virtual void reset() = 0;
391 virtual bool isFlushPending() const = 0;
392 virtual void flushAck() = 0;
393 virtual bool isResumePending() const = 0;
394 virtual void resumeAck() = 0;
397 virtual bool isPausePending() const = 0;
398 virtual void pauseAck() = 0;
399 virtual void updateTrackFrameInfo(
402 virtual sp<IMemory> sharedBuffer() const = 0;
405 virtual size_t framesReady() const = 0;
410 virtual bool presentationComplete(int64_t framesWritten, size_t audioHalFrames) = 0;
413 virtual bool presentationComplete(uint32_t latencyMs) = 0;
415 virtual void resetPresentationComplete() = 0;
417 virtual bool hasVolumeController() const = 0;
418 virtual void setHasVolumeController(bool hasVolumeController) = 0;
419 virtual const sp<AudioTrackServerProxy>& audioTrackServerProxy() const = 0;
420 virtual void setCachedVolume(float volume) = 0;
421 virtual void setResetDone(bool resetDone) = 0;
423 virtual ExtendedAudioBufferProvider* asExtendedAudioBufferProvider() = 0;
424 virtual VolumeProvider* asVolumeProvider() = 0;
427 virtual FillingStatus& fillingStatus() = 0;
428 virtual int8_t& retryCount() = 0;
429 virtual FastTrackUnderruns& fastTrackUnderruns() = 0;
432 virtual bool getInternalMute() const = 0;
433 virtual void setInternalMute(bool muted) = 0;
437 class IAfOutputTrack : public virtual IAfTrack {
445 virtual ssize_t write(void* data, uint32_t frames) = 0;
446 virtual bool bufferQueueEmpty() const = 0;
447 virtual bool isActive() const = 0;
450 virtual void setMetadatas(const SourceMetadatas& metadatas) = 0;
452 virtual ExtendedTimestamp getClientProxyTimestamp() const = 0;
455 class IAfMmapTrack : public virtual IAfTrackBase {
469 virtual void setSilenced_l(bool silenced) = 0;
471 virtual bool isSilenced_l() const = 0;
473 virtual bool getAndSetSilencedNotified_l() = 0;
479 virtual void processMuteEvent_l( // see IAfTrack
485 class IAfRecordTrack : public virtual IAfTrackBase {
512 virtual void clearOverflow() = 0;
514 virtual bool setOverflow() = 0;
517 virtual void clearSyncStartEvent() = 0;
518 virtual void updateTrackFrameInfo(
522 virtual void setSilenced(bool silenced) = 0;
523 virtual bool isSilenced() const = 0;
524 virtual status_t getActiveMicrophones(
527 virtual status_t setPreferredMicrophoneDirection(audio_microphone_direction_t direction) = 0;
528 virtual status_t setPreferredMicrophoneFieldDimension(float zoom) = 0;
529 virtual status_t shareAudioHistory(
531 virtual int32_t startFrames() const = 0;
539 virtual void copyMetadataTo(MetadataInserter& backInserter) const = 0; // see IAfTrack
542 virtual AudioBufferProvider::Buffer& sinkBuffer() = 0;
543 virtual audioflinger::SynchronizedRecordState& synchronizedRecordState() = 0;
544 virtual RecordBufferConverter* recordBufferConverter() const = 0;
545 virtual ResamplerBufferProvider* resamplerBufferProvider() const = 0;
552 virtual ~PatchProxyBufferProvider() = default;
553 virtual bool producesBufferOnDemand() const = 0;
554 virtual status_t obtainBuffer(
556 virtual void releaseBuffer(Proxy::Buffer* buffer) = 0;
559 class IAfPatchTrackBase : public virtual RefBase {
563 virtual void setPeerTimeout(std::chrono::nanoseconds timeout) = 0;
564 virtual void setPeerProxy(const sp<IAfPatchTrackBase>& proxy, bool holdReference) = 0;
565 virtual void clearPeerProxy() = 0;
566 virtual PatchProxyBufferProvider* asPatchProxyBufferProvider() = 0;
569 class IAfPatchTrack : public virtual IAfTrack, public virtual IAfPatchTrackBase {
589 class IAfPatchRecord : public virtual IAfRecordTrack, public virtual IAfPatchTrackBase {
612 virtual Source* getSource() = 0;
613 virtual size_t writeFrames(const void* src, size_t frameCount, size_t frameSize) = 0;