Lines Matching refs:virtual
42 virtual ~ThreadBase();
44 virtual status_t readyToRun();
60 virtual ~ConfigEventData() {} in ~ConfigEventData()
62 virtual void dump(char *buffer, size_t size) = 0;
87 virtual ~ConfigEvent() {} in ~ConfigEvent()
111 virtual void dump(char *buffer, size_t size) { in dump()
126 virtual ~IoConfigEvent() {} in ~IoConfigEvent()
134 virtual void dump(char *buffer, size_t size) { in dump()
151 virtual ~PrioConfigEvent() {} in ~PrioConfigEvent()
159 virtual void dump(char *buffer, size_t size) { in dump()
173 virtual ~SetParameterConfigEvent() {} in ~SetParameterConfigEvent()
182 virtual void dump(char *buffer, size_t size) { in dump()
198 virtual ~CreateAudioPatchConfigEvent() {} in ~CreateAudioPatchConfigEvent()
206 virtual void dump(char *buffer, size_t size) { in dump()
220 virtual ~ReleaseAudioPatchConfigEvent() {} in ~ReleaseAudioPatchConfigEvent()
228 virtual void dump(char *buffer, size_t size) { in dump()
242 virtual ~UpdateOutDevicesConfigEvent();
248 virtual ~PMDeathRecipient() {} in ~PMDeathRecipient()
251 virtual void binderDied(const wp<IBinder>& who);
259 virtual status_t initCheck() const = 0;
274 virtual size_t frameCount() const = 0;
275 virtual uint32_t latency_l() const { return 0; } in latency_l()
276 virtual void setVolumeForOutput_l(float left __unused, float right __unused) const {} in setVolumeForOutput_l()
286 virtual bool checkForNewParameter_l(const String8& keyValuePair,
288 virtual status_t setParameters(const String8& keyValuePairs);
289 virtual String8 getParameters(const String8& keys) = 0;
290 virtual void ioConfigChanged(audio_io_config_event event, pid_t pid = 0,
309 virtual void cacheParameters_l() = 0;
310 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
312 virtual status_t releaseAudioPatch_l(const audio_patch_handle_t handle) = 0;
313 virtual void updateOutDevices(const DeviceDescriptorBaseVector& outDevices);
314 virtual void toAudioPortConfig(struct audio_port_config *config) = 0;
347 virtual sp<StreamHalInterface> stream() const = 0;
376 virtual status_t addEffectChain_l(const sp<EffectChain>& chain) = 0;
378 virtual size_t removeEffectChain_l(const sp<EffectChain>& chain) = 0;
403 virtual void detachAuxEffect_l(int effectId __unused) {} in detachAuxEffect_l()
408 virtual uint32_t hasAudioSession_l(audio_session_t sessionId) const = 0;
437 virtual uint32_t getStrategyForSession_l(audio_session_t sessionId __unused) in getStrategyForSession_l()
446 virtual status_t setSyncEvent(const sp<SyncEvent>& event) = 0;
447 virtual bool isValidSyncEvent(const sp<SyncEvent>& event) const = 0;
455 virtual sp<MemoryDealer> readOnlyHeap() const { return 0; } in readOnlyHeap()
457 virtual sp<IMemory> pipeMemory() const { return 0; } in pipeMemory()
462 virtual status_t checkEffectCompatibility_l(const effect_descriptor_t *desc,
467 virtual bool isTimestampCorrectionEnabled() const { return false; } in isTimestampCorrectionEnabled()
493 virtual void acquireWakeLock_l();
512 virtual void updateMetadata_l() = 0;
516 virtual void preExit() { } in preExit()
517 virtual void setMasterMono_l(bool mono __unused) { } in setMasterMono_l()
518 virtual bool requireMonoBlend() { return false; } in requireMonoBlend()
521 virtual status_t threadloop_getHalTimestamp_l( in threadloop_getHalTimestamp_l()
526 virtual void dumpInternals_l(int fd __unused, const Vector<String16>& args __unused) in dumpInternals_l()
528 virtual void dumpTracks_l(int fd __unused, const Vector<String16>& args __unused) { } in dumpTracks_l()
725 virtual ~VolumeInterface() {} in ~VolumeInterface()
727 virtual void setMasterVolume(float value) = 0;
728 virtual void setMasterMute(bool muted) = 0;
729 virtual void setStreamVolume(audio_stream_type_t stream, float value) = 0;
730 virtual void setStreamMute(audio_stream_type_t stream, bool muted) = 0;
731 virtual float streamVolume(audio_stream_type_t stream) const = 0;
770 virtual ~PlaybackThread();
773 virtual bool threadLoop();
776 virtual void onFirstRef();
778 virtual status_t checkEffectCompatibility_l(const effect_descriptor_t *desc,
783 virtual void threadLoop_mix() = 0;
784 virtual void threadLoop_sleepTime() = 0;
785 virtual ssize_t threadLoop_write();
786 virtual void threadLoop_drain();
787 virtual void threadLoop_standby();
788 virtual void threadLoop_exit();
789 virtual void threadLoop_removeTracks(const Vector< sp<Track> >& tracksToRemove);
795 virtual mixer_state prepareTracks_l(Vector< sp<Track> > *tracksToRemove) = 0;
800 virtual void onWriteReady();
801 virtual void onDrainReady();
802 virtual void onError();
807 virtual bool waitingAsyncCallback();
808 virtual bool waitingAsyncCallback_l();
809 virtual bool shouldStandby_l();
810 virtual void onAddNewTrack_l();
818 virtual void preExit();
820 virtual bool keepWakeLock() const { return true; } in keepWakeLock()
821 virtual void acquireWakeLock_l() { in acquireWakeLock_l()
831 virtual status_t initCheck() const { return (mOutput == NULL) ? NO_INIT : NO_ERROR; } in initCheck()
839 virtual void setMasterVolume(float value);
840 virtual void setMasterBalance(float balance);
841 virtual void setMasterMute(bool muted);
842 virtual void setStreamVolume(audio_stream_type_t stream, float value);
843 virtual void setStreamMute(audio_stream_type_t stream, bool muted);
844 virtual float streamVolume(audio_stream_type_t stream) const;
871 virtual sp<StreamHalInterface> stream() const;
886 virtual String8 getParameters(const String8& keys);
887 virtual void ioConfigChanged(audio_io_config_event event, pid_t pid = 0,
895 virtual void detachAuxEffect_l(int effectId);
901 virtual status_t addEffectChain_l(const sp<EffectChain>& chain);
902 virtual size_t removeEffectChain_l(const sp<EffectChain>& chain);
906 virtual uint32_t getStrategyForSession_l(audio_session_t sessionId);
909 virtual status_t setSyncEvent(const sp<SyncEvent>& event);
910 virtual bool isValidSyncEvent(const sp<SyncEvent>& event) const;
914 virtual void invalidateTracks(audio_stream_type_t streamType);
916 virtual size_t frameCount() const { return mNormalFrameCount; } in frameCount()
923 virtual void toAudioPortConfig(struct audio_port_config *config);
926 virtual int64_t computeWaitTimeNs_l() const { return INT64_MAX; } in computeWaitTimeNs_l()
928 virtual bool isTrackAllowed_l( in isTrackAllowed_l()
1036 virtual uint32_t activeSleepTimeUs() const; // mixer state MIXER_TRACKS_ENABLED
1037 virtual uint32_t idleSleepTimeUs() const = 0; // mixer state MIXER_IDLE
1038 virtual uint32_t suspendSleepTimeUs() const = 0; // audio policy manager suspended us
1046 virtual void saveOutputTracks() { } in saveOutputTracks()
1047 virtual void clearOutputTracks() { } in clearOutputTracks()
1050 virtual void cacheParameters_l();
1052 virtual uint32_t correctLatency_l(uint32_t latency) const;
1054 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
1056 virtual status_t releaseAudioPatch_l(const audio_patch_handle_t handle);
1076 virtual void sendMetadataToBackend_l(const StreamOutHalInterface::SourceMetadata& metadata);
1207 virtual bool hasFastMixer() const = 0;
1208 virtual FastTrackUnderruns getFastTrackUnderruns(size_t fastIndex __unused) const in getFastTrackUnderruns()
1229 virtual ~MixerThread();
1233 virtual bool checkForNewParameter_l(const String8& keyValuePair,
1236 virtual bool isTrackAllowed_l(
1240 virtual mixer_state prepareTracks_l(Vector< sp<Track> > *tracksToRemove);
1241 virtual uint32_t idleSleepTimeUs() const;
1242 virtual uint32_t suspendSleepTimeUs() const;
1243 virtual void cacheParameters_l();
1245 virtual void acquireWakeLock_l() { in acquireWakeLock_l()
1256 virtual ssize_t threadLoop_write();
1257 virtual void threadLoop_standby();
1258 virtual void threadLoop_mix();
1259 virtual void threadLoop_sleepTime();
1260 virtual uint32_t correctLatency_l(uint32_t latency) const;
1262 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
1264 virtual status_t releaseAudioPatch_l(const audio_patch_handle_t handle);
1286 virtual bool hasFastMixer() const { return mFastMixer != 0; } in hasFastMixer()
1287 virtual FastTrackUnderruns getFastTrackUnderruns(size_t fastIndex) const { in getFastTrackUnderruns()
1301 virtual void setMasterMono_l(bool mono) { in setMasterMono_l()
1310 virtual bool requireMonoBlend() { return mMasterMono.load() && !hasFastMixer(); } in requireMonoBlend()
1327 virtual ~DirectOutputThread();
1333 virtual bool checkForNewParameter_l(const String8& keyValuePair,
1336 virtual void flushHw_l();
1341 virtual uint32_t activeSleepTimeUs() const;
1342 virtual uint32_t idleSleepTimeUs() const;
1343 virtual uint32_t suspendSleepTimeUs() const;
1344 virtual void cacheParameters_l();
1349 virtual mixer_state prepareTracks_l(Vector< sp<Track> > *tracksToRemove);
1350 virtual void threadLoop_mix();
1351 virtual void threadLoop_sleepTime();
1352 virtual void threadLoop_exit();
1353 virtual bool shouldStandby_l();
1355 virtual void onAddNewTrack_l();
1373 virtual bool hasFastMixer() const { return false; } in hasFastMixer()
1375 virtual int64_t computeWaitTimeNs_l() const override;
1400 virtual ~OffloadThread() {}; in ~OffloadThread()
1401 virtual void flushHw_l();
1405 virtual mixer_state prepareTracks_l(Vector< sp<Track> > *tracksToRemove);
1406 virtual void threadLoop_exit();
1408 virtual bool waitingAsyncCallback();
1409 virtual bool waitingAsyncCallback_l();
1410 virtual void invalidateTracks(audio_stream_type_t streamType);
1412 virtual bool keepWakeLock() const { return (mKeepWakeLock || (mDrainSequence & 1)); } in keepWakeLock()
1429 virtual ~AsyncCallbackThread();
1432 virtual bool threadLoop();
1435 virtual void onFirstRef();
1463 virtual ~DuplicatingThread();
1473 virtual uint32_t activeSleepTimeUs() const;
1480 virtual void threadLoop_mix();
1481 virtual void threadLoop_sleepTime();
1482 virtual ssize_t threadLoop_write();
1483 virtual void threadLoop_standby();
1484 virtual void cacheParameters_l();
1488 virtual void updateWaitTime_l();
1490 virtual void saveOutputTracks();
1491 virtual void clearOutputTracks();
1498 virtual bool hasFastMixer() const { return false; } in hasFastMixer()
1534 virtual ~ResamplerBufferProvider() { } in ~ResamplerBufferProvider()
1538 virtual void reset();
1551 virtual void sync(size_t *framesAvailable = NULL, bool *hasOverrun = NULL);
1554 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer);
1555 virtual void releaseBuffer(AudioBufferProvider::Buffer* buffer);
1572 virtual ~RecordThread();
1579 virtual bool threadLoop();
1580 virtual void preExit();
1583 virtual void onFirstRef();
1585 virtual status_t initCheck() const { return (mInput == NULL) ? NO_INIT : NO_ERROR; } in initCheck()
1587 virtual sp<MemoryDealer> readOnlyHeap() const { return mReadOnlyHeap; } in readOnlyHeap()
1589 virtual sp<IMemory> pipeMemory() const { return mPipeMemory; } in pipeMemory()
1617 virtual sp<StreamHalInterface> stream() const;
1620 virtual bool checkForNewParameter_l(const String8& keyValuePair,
1622 virtual void cacheParameters_l() {} in cacheParameters_l()
1623 virtual String8 getParameters(const String8& keys);
1624 virtual void ioConfigChanged(audio_io_config_event event, pid_t pid = 0,
1626 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
1628 virtual status_t releaseAudioPatch_l(const audio_patch_handle_t handle);
1635 virtual uint32_t getInputFramesLost();
1637 virtual status_t addEffectChain_l(const sp<EffectChain>& chain);
1638 virtual size_t removeEffectChain_l(const sp<EffectChain>& chain);
1648 virtual status_t setSyncEvent(const sp<SyncEvent>& event);
1649 virtual bool isValidSyncEvent(const sp<SyncEvent>& event) const;
1653 virtual size_t frameCount() const { return mFrameCount; } in frameCount()
1655 virtual void toAudioPortConfig(struct audio_port_config *config);
1657 virtual status_t checkEffectCompatibility_l(const effect_descriptor_t *desc,
1660 virtual void acquireWakeLock_l() { in acquireWakeLock_l()
1774 virtual ~MmapThread();
1776 virtual void configure(const audio_attributes_t *attr,
1796 virtual void onFirstRef();
1799 virtual bool threadLoop();
1801 virtual void threadLoop_exit();
1802 virtual void threadLoop_standby();
1803 virtual bool shouldStandby_l() { return false; } in shouldStandby_l()
1804 virtual status_t exitStandby();
1806 virtual status_t initCheck() const { return (mHalStream == 0) ? NO_INIT : NO_ERROR; } in initCheck()
1807 virtual size_t frameCount() const { return mFrameCount; } in frameCount()
1808 virtual bool checkForNewParameter_l(const String8& keyValuePair,
1810 virtual String8 getParameters(const String8& keys);
1811 virtual void ioConfigChanged(audio_io_config_event event, pid_t pid = 0,
1814 virtual void cacheParameters_l() {} in cacheParameters_l()
1815 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
1817 virtual status_t releaseAudioPatch_l(const audio_patch_handle_t handle);
1818 virtual void toAudioPortConfig(struct audio_port_config *config);
1820 virtual sp<StreamHalInterface> stream() const { return mHalStream; } in stream()
1821 virtual status_t addEffectChain_l(const sp<EffectChain>& chain);
1822 virtual size_t removeEffectChain_l(const sp<EffectChain>& chain);
1823 virtual status_t checkEffectCompatibility_l(const effect_descriptor_t *desc,
1830 virtual status_t setSyncEvent(const sp<SyncEvent>& event);
1831 virtual bool isValidSyncEvent(const sp<SyncEvent>& event) const;
1833 virtual void checkSilentMode_l() {} in checkSilentMode_l()
1834 virtual void processVolume_l() {} in processVolume_l()
1837 virtual audio_stream_type_t streamType() { return AUDIO_STREAM_DEFAULT; } in streamType()
1839 virtual void invalidateTracks(audio_stream_type_t streamType __unused) {} in invalidateTracks()
1842 virtual void setRecordSilenced(audio_port_handle_t portId __unused, in setRecordSilenced()
1875 virtual ~MmapPlaybackThread() {} in ~MmapPlaybackThread()
1877 virtual void configure(const audio_attributes_t *attr,
1887 virtual void setMasterVolume(float value);
1888 virtual void setMasterMute(bool muted);
1889 virtual void setStreamVolume(audio_stream_type_t stream, float value);
1890 virtual void setStreamMute(audio_stream_type_t stream, bool muted);
1891 virtual float streamVolume(audio_stream_type_t stream) const;
1895 virtual void invalidateTracks(audio_stream_type_t streamType);
1897 virtual audio_stream_type_t streamType() { return mStreamType; } in streamType()
1898 virtual void checkSilentMode_l();
1903 virtual void toAudioPortConfig(struct audio_port_config *config);
1922 virtual ~MmapCaptureThread() {} in ~MmapCaptureThread()
1933 virtual void toAudioPortConfig(struct audio_port_config *config);