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;
111 virtual audio_output_flags_t getFlags() const = 0;
115 virtual status_t open(
126 virtual void setPlayerIId(int32_t playerIId) = 0;
128 virtual status_t start() = 0;
140 virtual ssize_t write(const void* buffer, size_t size, bool blocking = true) = 0;
142 virtual void stop() = 0;
143 virtual void flush() = 0;
144 virtual void pause() = 0;
145 virtual void close() = 0;
147 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
148 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
149 virtual bool needsTrailingPadding() { return true; }
151 virtual status_t setParameters(const String8& /* keyValuePairs */) { return NO_ERROR; }
152 virtual String8 getParameters(const String8& /* keys */) { return String8(); }
154 virtual media::VolumeShaper::Status applyVolumeShaper(
157 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) = 0;
160 virtual status_t setOutputDevice(audio_port_handle_t deviceId) = 0;
161 virtual status_t getRoutedDeviceId(audio_port_handle_t* deviceId) = 0;
162 virtual status_t enableAudioDeviceCallback(bool enabled) = 0;
166 virtual ~MediaPlayerBase() {}
167 virtual status_t initCheck() = 0;
168 virtual bool hardwareOutput() = 0;
170 virtual status_t setUID(uid_t /* uid */) {
174 virtual status_t setDataSource(
179 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
181 virtual status_t setDataSource(const sp<IStreamSource>& /* source */) {
185 virtual status_t setDataSource(const sp<DataSource>& /* source */) {
189 virtual status_t setDataSource(const String8& /* rtpParams */) {
194 virtual status_t setVideoSurfaceTexture(
197 virtual status_t getBufferingSettings(
202 virtual status_t setBufferingSettings(const BufferingSettings& /* buffering */) {
206 virtual status_t prepare() = 0;
207 virtual status_t prepareAsync() = 0;
208 virtual status_t start() = 0;
209 virtual status_t stop() = 0;
210 virtual status_t pause() = 0;
211 virtual bool isPlaying() = 0;
212 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) {
219 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) {
223 virtual status_t setSyncSettings(const AVSyncSettings& sync, float /* videoFps */) {
231 virtual status_t getSyncSettings(
237 virtual status_t seekTo(
239 virtual status_t getCurrentPosition(int *msec) = 0;
240 virtual status_t getDuration(int *msec) = 0;
241 virtual status_t reset() = 0;
242 virtual status_t notifyAt(int64_t /* mediaTimeUs */) {
245 virtual status_t setLooping(int loop) = 0;
246 virtual player_type playerType() = 0;
247 virtual status_t setParameter(int key, const Parcel &request) = 0;
248 virtual status_t getParameter(int key, Parcel *reply) = 0;
251 virtual status_t setRetransmitEndpoint(const struct sockaddr_in* /* endpoint */) {
254 virtual status_t getRetransmitEndpoint(struct sockaddr_in* /* endpoint */) {
257 virtual status_t setNextPlayer(const sp<MediaPlayerBase>& /* next */) {
268 virtual status_t invoke(const Parcel& request, Parcel *reply) = 0;
277 virtual status_t getMetadata(const media::Metadata::Filter& /* ids */,
301 virtual status_t dump(int /* fd */, const Vector<String16>& /* args */) const {
306 virtual status_t prepareDrm(const uint8_t /* uuid */[16], const Vector<uint8_t>& /* drmSessionId */) {
309 virtual status_t releaseDrm() {
324 virtual ~MediaPlayerInterface() { }
325 virtual bool hardwareOutput() { return false; }
326 virtual void setAudioSink(const sp<AudioSink>& audioSink) { mAudioSink = audioSink; }
335 virtual ~MediaPlayerHWInterface() {}
336 virtual bool hardwareOutput() { return true; }
337 virtual status_t setVolume(float leftVolume, float rightVolume) = 0;
338 virtual status_t setAudioStreamType(audio_stream_type_t streamType) = 0;