Lines Matching refs:virtual
75 virtual void notify(int msg, int ext1, int ext2, const Parcel *obj) = 0;
76 virtual ~Listener() {} in ~Listener()
95 virtual ~AudioSink() {} in ~AudioSink()
96 virtual bool ready() const = 0; // audio output is open and ready
97 virtual ssize_t bufferSize() const = 0;
98 virtual ssize_t frameCount() const = 0;
99 virtual ssize_t channelCount() const = 0;
100 virtual ssize_t frameSize() const = 0;
101 virtual uint32_t latency() const = 0;
102 virtual float msecsPerFrame() const = 0;
103 virtual status_t getPosition(uint32_t *position) const = 0;
104 virtual status_t getTimestamp(AudioTimestamp &ts) const = 0;
105 virtual int64_t getPlayedOutDurationUs(int64_t nowUs) const = 0;
106 virtual status_t getFramesWritten(uint32_t *frameswritten) const = 0;
107 virtual audio_session_t getSessionId() const = 0;
108 virtual audio_stream_type_t getAudioStreamType() const = 0;
109 virtual uint32_t getSampleRate() const = 0;
110 virtual int64_t getBufferDurationInUs() const = 0;
114 virtual status_t open(
125 virtual status_t start() = 0;
137 virtual ssize_t write(const void* buffer, size_t size, bool blocking = true) = 0;
139 virtual void stop() = 0;
140 virtual void flush() = 0;
141 virtual void pause() = 0;
142 virtual void close() = 0;
144 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
145 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
146 virtual bool needsTrailingPadding() { return true; } in needsTrailingPadding()
148 virtual status_t setParameters(const String8& /* keyValuePairs */) { return NO_ERROR; } in setParameters()
149 virtual String8 getParameters(const String8& /* keys */) { return String8::empty(); } in getParameters()
151 virtual media::VolumeShaper::Status applyVolumeShaper(
154 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) = 0;
157 virtual status_t setOutputDevice(audio_port_handle_t deviceId) = 0;
158 virtual status_t getRoutedDeviceId(audio_port_handle_t* deviceId) = 0;
159 virtual status_t enableAudioDeviceCallback(bool enabled) = 0;
163 virtual ~MediaPlayerBase() {} in ~MediaPlayerBase()
164 virtual status_t initCheck() = 0;
165 virtual bool hardwareOutput() = 0;
167 virtual status_t setUID(uid_t /* uid */) { in setUID()
171 virtual status_t setDataSource(
176 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
178 virtual status_t setDataSource(const sp<IStreamSource>& /* source */) { in setDataSource()
182 virtual status_t setDataSource(const sp<DataSource>& /* source */) { in setDataSource()
187 virtual status_t setVideoSurfaceTexture(
190 virtual status_t getBufferingSettings( in getBufferingSettings()
195 virtual status_t setBufferingSettings(const BufferingSettings& /* buffering */) { in setBufferingSettings()
199 virtual status_t prepare() = 0;
200 virtual status_t prepareAsync() = 0;
201 virtual status_t start() = 0;
202 virtual status_t stop() = 0;
203 virtual status_t pause() = 0;
204 virtual bool isPlaying() = 0;
205 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { in setPlaybackSettings()
212 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) { in getPlaybackSettings()
216 virtual status_t setSyncSettings(const AVSyncSettings& sync, float /* videoFps */) { in setSyncSettings()
224 virtual status_t getSyncSettings( in getSyncSettings()
230 virtual status_t seekTo(
232 virtual status_t getCurrentPosition(int *msec) = 0;
233 virtual status_t getDuration(int *msec) = 0;
234 virtual status_t reset() = 0;
235 virtual status_t notifyAt(int64_t /* mediaTimeUs */) { in notifyAt()
238 virtual status_t setLooping(int loop) = 0;
239 virtual player_type playerType() = 0;
240 virtual status_t setParameter(int key, const Parcel &request) = 0;
241 virtual status_t getParameter(int key, Parcel *reply) = 0;
244 virtual status_t setRetransmitEndpoint(const struct sockaddr_in* /* endpoint */) { in setRetransmitEndpoint()
247 virtual status_t getRetransmitEndpoint(struct sockaddr_in* /* endpoint */) { in getRetransmitEndpoint()
250 virtual status_t setNextPlayer(const sp<MediaPlayerBase>& /* next */) { in setNextPlayer()
261 virtual status_t invoke(const Parcel& request, Parcel *reply) = 0;
270 virtual status_t getMetadata(const media::Metadata::Filter& /* ids */, in getMetadata()
294 virtual status_t dump(int /* fd */, const Vector<String16>& /* args */) const { in dump()
299 …virtual status_t prepareDrm(const uint8_t /* uuid */[16], const Vector<uint8_t>& /* drmSessionId *… in prepareDrm()
302 virtual status_t releaseDrm() { in releaseDrm()
317 virtual ~MediaPlayerInterface() { } in ~MediaPlayerInterface()
318 virtual bool hardwareOutput() { return false; } in hardwareOutput()
319 virtual void setAudioSink(const sp<AudioSink>& audioSink) { mAudioSink = audioSink; } in setAudioSink()
328 virtual ~MediaPlayerHWInterface() {} in ~MediaPlayerHWInterface()
329 virtual bool hardwareOutput() { return true; } in hardwareOutput()
330 virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
331 virtual status_t setAudioStreamType(audio_stream_type_t streamType) = 0;