Lines Matching refs:MediaPlayerService
21 #define LOG_TAG "MediaPlayerService"
63 #include "MediaPlayerService.h"
208 /* static */ int MediaPlayerService::AudioOutput::mMinBufferCount = 4;
209 /* static */ bool MediaPlayerService::AudioOutput::mIsOnEmulator = false;
211 void MediaPlayerService::instantiate() {
213 String16("media.player"), new MediaPlayerService());
216 MediaPlayerService::MediaPlayerService()
218 LOGV("MediaPlayerService created");
231 MediaPlayerService::~MediaPlayerService()
233 LOGV("MediaPlayerService destroyed");
236 sp<IMediaRecorder> MediaPlayerService::createMediaRecorder(pid_t pid)
246 void MediaPlayerService::removeMediaRecorderClient(wp<MediaRecorderClient> client)
253 sp<IMediaMetadataRetriever> MediaPlayerService::createMetadataRetriever(pid_t pid)
260 sp<IMediaPlayer> MediaPlayerService::create(pid_t pid, const sp<IMediaPlayerClient>& client,
280 sp<IOMX> MediaPlayerService::getOMX() {
290 status_t MediaPlayerService::AudioCache::dump(int fd, const Vector<String16>& args) const
312 status_t MediaPlayerService::AudioOutput::dump(int fd, const Vector<String16>& args) const
336 status_t MediaPlayerService::Client::dump(int fd, const Vector<String16>& args) const
356 status_t MediaPlayerService::dump(int fd, const Vector<String16>& args)
363 "can't dump MediaPlayerService from pid=%d, uid=%d\n",
470 void MediaPlayerService::removeClient(wp<Client> client)
476 MediaPlayerService::Client::Client(
477 const sp<MediaPlayerService>& service, pid_t pid,
497 MediaPlayerService::Client::~Client()
506 void MediaPlayerService::Client::disconnect()
645 sp<MediaPlayerBase> MediaPlayerService::Client::createPlayer(player_type playerType)
664 status_t MediaPlayerService::Client::setDataSource(
718 status_t MediaPlayerService::Client::setDataSource(int fd, int64_t offset, int64_t length)
763 status_t MediaPlayerService::Client::setDataSource(
787 status_t MediaPlayerService::Client::setVideoSurface(const sp<Surface>& surface)
795 void MediaPlayerService::Client::disconnectNativeWindow() {
808 status_t MediaPlayerService::Client::setVideoSurfaceTexture(
858 status_t MediaPlayerService::Client::invoke(const Parcel& request,
867 status_t MediaPlayerService::Client::setMetadataFilter(const Parcel& filter)
882 status_t MediaPlayerService::Client::getMetadata(
925 status_t MediaPlayerService::Client::prepareAsync()
938 status_t MediaPlayerService::Client::start()
947 status_t MediaPlayerService::Client::stop()
955 status_t MediaPlayerService::Client::pause()
963 status_t MediaPlayerService::Client::isPlaying(bool* state)
973 status_t MediaPlayerService::Client::getCurrentPosition(int *msec)
987 status_t MediaPlayerService::Client::getDuration(int *msec)
1001 status_t MediaPlayerService::Client::seekTo(int msec)
1009 status_t MediaPlayerService::Client::reset()
1017 status_t MediaPlayerService::Client::setAudioStreamType(int type)
1026 status_t MediaPlayerService::Client::setLooping(int loop)
1035 status_t MediaPlayerService::Client::setVolume(float leftVolume, float rightVolume)
1044 status_t MediaPlayerService::Client::setAuxEffectSendLevel(float level)
1052 status_t MediaPlayerService::Client::attachAuxEffect(int effectId)
1060 status_t MediaPlayerService::Client::setParameter(int key, const Parcel &request) {
1067 status_t MediaPlayerService::Client::getParameter(int key, Parcel *reply) {
1074 void MediaPlayerService::Client::notify(
1096 bool MediaPlayerService::Client::shouldDropMetadata(media::Metadata::Type code) const
1112 void MediaPlayerService::Client::addNewMetadataUpdate(media::Metadata::Type metadata_type) {
1156 sp<IMemory> MediaPlayerService::decode(const char* url, uint32_t *pSampleRate, int* pNumChannels, int* pFormat)
1212 sp<IMemory> MediaPlayerService::decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, int* pFormat)
1263 MediaPlayerService::AudioOutput::AudioOutput(int sessionId)
1279 MediaPlayerService::AudioOutput::~AudioOutput()
1284 void MediaPlayerService::AudioOutput::setMinBufferCount()
1293 bool MediaPlayerService::AudioOutput::isOnEmulator()
1299 int MediaPlayerService::AudioOutput::getMinBufferCount()
1305 ssize_t MediaPlayerService::AudioOutput::bufferSize() const
1311 ssize_t MediaPlayerService::AudioOutput::frameCount() const
1317 ssize_t MediaPlayerService::AudioOutput::channelCount() const
1323 ssize_t MediaPlayerService::AudioOutput::frameSize() const
1329 uint32_t MediaPlayerService::AudioOutput::latency () const
1334 float MediaPlayerService::AudioOutput::msecsPerFrame() const
1339 status_t MediaPlayerService::AudioOutput::getPosition(uint32_t *position)
1345 status_t MediaPlayerService::AudioOutput::open(
1417 void MediaPlayerService::AudioOutput::start()
1429 ssize_t MediaPlayerService::AudioOutput::write(const void* buffer, size_t size)
1441 void MediaPlayerService::AudioOutput::stop()
1447 void MediaPlayerService::AudioOutput::flush()
1453 void MediaPlayerService::AudioOutput::pause()
1459 void MediaPlayerService::AudioOutput::close()
1466 void MediaPlayerService::AudioOutput::setVolume(float left, float right)
1476 status_t MediaPlayerService::AudioOutput::setAuxEffectSendLevel(float level)
1486 status_t MediaPlayerService::AudioOutput::attachAuxEffect(int effectId)
1497 void MediaPlayerService::AudioOutput::CallbackWrapper(
1521 int MediaPlayerService::AudioOutput::getSessionId()
1528 MediaPlayerService::AudioCache::AudioCache(const char* name) :
1536 uint32_t MediaPlayerService::AudioCache::latency () const
1541 float MediaPlayerService::AudioCache::msecsPerFrame() const
1546 status_t MediaPlayerService::AudioCache::getPosition(uint32_t *position)
1617 status_t MediaPlayerService::AudioCache::open(
1637 void MediaPlayerService::AudioCache::start() {
1643 void MediaPlayerService::AudioCache::stop() {
1649 ssize_t MediaPlayerService::AudioCache::write(const void* buffer, size_t size)
1668 status_t MediaPlayerService::AudioCache::wait()
1684 void MediaPlayerService::AudioCache::notify(
1714 int MediaPlayerService::AudioCache::getSessionId()
1719 void MediaPlayerService::addBatteryData(uint32_t params)
1859 status_t MediaPlayerService::pullBatteryData(Parcel* reply) {