Lines Matching refs:virtual

75         virtual void notify(int msg, int ext1, int ext2, const Parcel *obj) = 0;
76 virtual ~Listener() {}
95 virtual ~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; }
148 virtual status_t setParameters(const String8& /* keyValuePairs */) { return NO_ERROR; }
149 virtual String8 getParameters(const String8& /* keys */) { return String8::empty(); }
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() {}
164 virtual status_t initCheck() = 0;
165 virtual bool hardwareOutput() = 0;
167 virtual status_t setUID(uid_t /* uid */) {
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 */) {
182 virtual status_t setDataSource(const sp<DataSource>& /* source */) {
187 virtual status_t setVideoSurfaceTexture(
190 virtual status_t getBufferingSettings(
195 virtual status_t setBufferingSettings(const BufferingSettings& /* buffering */) {
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) {
212 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) {
216 virtual status_t setSyncSettings(const AVSyncSettings& sync, float /* videoFps */) {
224 virtual status_t 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 */) {
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 */) {
247 virtual status_t getRetransmitEndpoint(struct sockaddr_in* /* endpoint */) {
250 virtual status_t setNextPlayer(const sp<MediaPlayerBase>& /* next */) {
261 virtual status_t invoke(const Parcel& request, Parcel *reply) = 0;
270 virtual status_t getMetadata(const media::Metadata::Filter& /* ids */,
294 virtual status_t dump(int /* fd */, const Vector<String16>& /* args */) const {
299 virtual status_t prepareDrm(const uint8_t /* uuid */[16], const Vector<uint8_t>& /* drmSessionId */) {
302 virtual status_t releaseDrm() {
317 virtual ~MediaPlayerInterface() { }
318 virtual bool hardwareOutput() { return false; }
319 virtual void setAudioSink(const sp<AudioSink>& audioSink) { mAudioSink = audioSink; }
328 virtual ~MediaPlayerHWInterface() {}
329 virtual bool hardwareOutput() { return true; }
330 virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
331 virtual status_t setAudioStreamType(audio_stream_type_t streamType) = 0;