Home
last modified time | relevance | path

Searched refs:player (Results 1 – 25 of 136) sorted by relevance

123456

/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DLocalRenderer.java262 public void onPrepared(MediaPlayer player) { in onPrepared() argument
263 if (!isCurrentPlayer(player)) { in onPrepared()
275 player.start(); in onPrepared()
281 public void onBufferingUpdate(MediaPlayer player, int percent) { in onBufferingUpdate() argument
282 if (!isCurrentPlayer(player)) { in onBufferingUpdate()
289 public void onCompletion(MediaPlayer player) { in onCompletion() argument
290 if (!isCurrentPlayer(player)) { in onCompletion()
311 public boolean onError(MediaPlayer player, int what, int extra) { in onError() argument
312 if (!isCurrentPlayer(player)) { in onError()
490 MediaPlayer player = mPlayer; in onPlay() local
[all …]
/frameworks/wilhelm/tests/mimeUri/
DslesTest_playStates.cpp53 SLObjectItf player, outputMix; in TestPlayUri() local
122 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayUri()
127 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayUri()
131 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri()
134 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri()
137 result = (*player)->GetInterface(player, SL_IID_MUTESOLO, (void*)&muteSoloItf); in TestPlayUri()
194 (*player)->Destroy(player); in TestPlayUri()
DslesTestPlayStreamType.cpp54 SLObjectItf player, outputMix; in TestStreamTypeConfiguration() local
128 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestStreamTypeConfiguration()
136 result = (*player)->GetInterface(player, SL_IID_ANDROIDCONFIGURATION, (void*)&configItf); in TestStreamTypeConfiguration()
150 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestStreamTypeConfiguration()
154 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestStreamTypeConfiguration()
157 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestStreamTypeConfiguration()
228 (*player)->Destroy(player); in TestStreamTypeConfiguration()
DslesTestPlayUri2.cpp69 SLObjectItf player, player2, outputMix; in TestPlayUri() local
137 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestPlayUri()
149 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayUri()
150 result = (*player)->Realize(player2, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayUri()
154 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri()
156 result = (*player)->GetInterface(player2, SL_IID_PLAY, (void*)&playItf2); in TestPlayUri()
159 result = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestPlayUri()
164 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri()
241 (*player)->Destroy(player); in TestPlayUri()
DslesTestPlayUri.cpp138 SLObjectItf player; in TestPlayUri() local
188 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayUri()
192 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlayUri()
196 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri()
199 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestPlayUri()
202 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri()
313 (*player)->Destroy(player); in TestPlayUri()
DslesTestLoopUri.cpp135 SLObjectItf player; in TestLoopUri() local
186 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestLoopUri()
190 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestLoopUri()
194 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestLoopUri()
197 res = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf); in TestLoopUri()
200 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestLoopUri()
279 (*player)->Destroy(player); in TestLoopUri()
DslesTestGetPositionUri.cpp140 SLObjectItf player; in TestGetPositionUri() local
195 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestGetPositionUri()
199 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestGetPositionUri()
203 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestGetPositionUri()
206 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestGetPositionUri()
209 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestGetPositionUri()
304 (*player)->Destroy(player); in TestGetPositionUri()
DslesTestSlowDownUri.cpp191 SLObjectItf player; in TestSlowDownUri() local
244 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestSlowDownUri()
248 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestSlowDownUri()
252 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); CheckErr(res); in TestSlowDownUri()
254 res = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf); CheckErr(res); in TestSlowDownUri()
256 res = (*player)->GetInterface(player, SL_IID_PLAYBACKRATE, (void*)&rateItf); CheckErr(res); in TestSlowDownUri()
258 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestSlowDownUri()
386 (*player)->Destroy(player); in TestSlowDownUri()
/frameworks/wilhelm/tests/
DmimeUri_test.cpp112 SLObjectItf player; in TestPlayUri() local
162 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, in TestPlayUri()
166 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlayUri()
169 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri()
172 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestPlayUri()
175 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri()
254 (*player)->Destroy(player); in TestPlayUri()
/frameworks/wilhelm/tests/examples/
DslesTestBassBoostPath.cpp56 SLObjectItf player, outputMix; in TestBassBoostPathFromFD() local
145 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestBassBoostPathFromFD()
150 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestBassBoostPathFromFD()
154 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestBassBoostPathFromFD()
157 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestBassBoostPathFromFD()
160 result = (*player)->GetInterface(player, SL_IID_BASSBOOST, (void*)&bbItf); in TestBassBoostPathFromFD()
237 (*player)->Destroy(player); in TestBassBoostPathFromFD()
DslesTestVirtualizerPath.cpp57 SLObjectItf player, outputMix; in TestVirtualizerPathFromFD() local
146 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestVirtualizerPathFromFD()
151 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestVirtualizerPathFromFD()
155 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestVirtualizerPathFromFD()
158 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestVirtualizerPathFromFD()
161 result = (*player)->GetInterface(player, SL_IID_VIRTUALIZER, (void*)&virtItf); in TestVirtualizerPathFromFD()
239 (*player)->Destroy(player); in TestVirtualizerPathFromFD()
DslesTestSendToPresetReverb.cpp79 SLObjectItf player, outputMix; in TestSendToPresetReverb() local
200 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 3, in TestSendToPresetReverb()
205 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestSendToPresetReverb()
209 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestSendToPresetReverb()
212 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestSendToPresetReverb()
220 result = (*player)->GetInterface(player, SL_IID_EFFECTSEND, (void*)&effectSendItf); in TestSendToPresetReverb()
223 result = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf); in TestSendToPresetReverb()
314 (*player)->Destroy(player); in TestSendToPresetReverb()
DslesTestPlayFdPath.cpp77 SLObjectItf player, outputMix; in TestPlayPathFromFD() local
151 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1, in TestPlayPathFromFD()
156 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayPathFromFD()
160 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayPathFromFD()
163 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayPathFromFD()
213 (*player)->Destroy(player); in TestPlayPathFromFD()
DslesTestSawtoothBufferQueue.cpp118 SLObjectItf player; in TestPlaySawtoothBufferQueue() local
200 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, in TestPlaySawtoothBufferQueue()
205 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlaySawtoothBufferQueue()
209 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlaySawtoothBufferQueue()
213 res = (*player)->GetInterface(player, SL_IID_BUFFERQUEUE, in TestPlaySawtoothBufferQueue()
264 (*player)->Destroy(player); in TestPlaySawtoothBufferQueue()
DslesTestEqFdPath.cpp61 SLObjectItf player, outputMix; in TestEQPathFromFD() local
150 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestEQPathFromFD()
155 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestEQPathFromFD()
159 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestEQPathFromFD()
162 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestEQPathFromFD()
165 result = (*player)->GetInterface(player, SL_IID_EQUALIZER, (void*)&eqItf); in TestEQPathFromFD()
266 (*player)->Destroy(player); in TestEQPathFromFD()
DslesTestEqOutputPath.cpp61 SLObjectItf player, outputMix; in TestEQPathFromFD() local
157 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1, in TestEQPathFromFD()
162 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestEQPathFromFD()
166 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestEQPathFromFD()
169 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestEQPathFromFD()
270 (*player)->Destroy(player); in TestEQPathFromFD()
DslesTestDecodeToBuffQueue.cpp280 SLObjectItf player; in TestDecToBuffQueue() local
359 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &decSource, &decDest, in TestDecToBuffQueue()
365 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); in TestDecToBuffQueue()
370 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestDecToBuffQueue()
387 result = (*player)->GetInterface(player, SL_IID_ANDROIDSIMPLEBUFFERQUEUE, in TestDecToBuffQueue()
392 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestDecToBuffQueue()
396 result = (*player)->GetInterface(player, SL_IID_METADATAEXTRACTION, (void*)&mdExtrItf); in TestDecToBuffQueue()
526 (*player)->Destroy(player); in TestDecToBuffQueue()
DslesTestDecodeAac.cpp461 SLObjectItf player; in TestDecToBuffQueue() local
532 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &decSource, &decDest, in TestDecToBuffQueue()
543 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); in TestDecToBuffQueue()
548 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestDecToBuffQueue()
589 res = (*player)->GetInterface(player, SL_IID_ANDROIDSIMPLEBUFFERQUEUE, (void*)&decBuffQueueItf); in TestDecToBuffQueue()
593 res = (*player)->GetInterface(player, SL_IID_ANDROIDBUFFERQUEUESOURCE, (void*)&aacBuffQueueItf); in TestDecToBuffQueue()
597 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestDecToBuffQueue()
602 res = (*player)->GetInterface(player, SL_IID_METADATAEXTRACTION, (void*)&mdExtrItf); in TestDecToBuffQueue()
841 (*player)->Destroy(player); in TestDecToBuffQueue()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DPlayer.java83 Player player; in create() local
86 player = new RemotePlayer(context); in create()
88 player = new LocalPlayer.SurfaceViewPlayer(context); in create()
90 player = new LocalPlayer.OverlayPlayer(context); in create()
92 player.setMediaSession(session); in create()
93 player.initMediaSession(); in create()
94 player.connect(route); in create()
95 return player; in create()
/frameworks/wilhelm/tests/sandbox/streamSource/
DslesTestPlayStream.cpp196 SLObjectItf player; in TestPlayStream() local
250 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayStream()
254 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlayStream()
258 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); CheckErr(res); in TestPlayStream()
260 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); CheckErr(res); in TestPlayStream()
262 res = (*player)->GetInterface(player, SL_IID_ANDROIDBUFFERQUEUESOURCE, (void*)&abqItf); in TestPlayStream()
370 (*player)->Destroy(player); in TestPlayStream()
/frameworks/wilhelm/src/android/
Dandroid_GenericMediaPlayer.cpp263 sp<IMediaPlayer> player; in preDestroy() local
264 getPreparedPlayer(player); in preDestroy()
265 if (player != NULL) { in preDestroy()
266 player->stop(); in preDestroy()
270 player->setVideoSurfaceTexture(NULL); in preDestroy()
271 player->disconnect(); in preDestroy()
293 sp<IMediaPlayer> player; in getPositionMsec() local
294 getPreparedPlayer(player); in getPositionMsec()
296 if (player == 0 || player->getCurrentPosition(msec) != NO_ERROR) { in getPositionMsec()
318 sp<IMediaPlayer> player; in setPlaybackRate() local
[all …]
/frameworks/wilhelm/tests/listening/
DslesTest_playMuteSolo.cpp169 SLObjectItf player, outputMix; in TestPlayUri() local
238 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, in TestPlayUri()
243 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayUri()
247 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri()
251 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri()
262 result = (*player)->GetInterface(player, SL_IID_MUTESOLO, (void*)&muteSoloItf); in TestPlayUri()
368 (*player)->Destroy(player); in TestPlayUri()
/frameworks/av/media/libmedia/
Dmediaplayer.cpp117 status_t MediaPlayer::attachNewPlayer(const sp<IMediaPlayer>& player) in attachNewPlayer() argument
132 mPlayer = player; in attachNewPlayer()
133 if (player != 0) { in attachNewPlayer()
157 sp<IMediaPlayer> player(service->create(this, mAudioSessionId)); in setDataSource() local
158 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || in setDataSource()
159 (NO_ERROR != player->setDataSource(httpService, url, headers))) { in setDataSource()
160 player.clear(); in setDataSource()
162 err = attachNewPlayer(player); in setDataSource()
174 sp<IMediaPlayer> player(service->create(this, mAudioSessionId)); in setDataSource() local
175 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || in setDataSource()
[all …]
/frameworks/base/media/java/android/media/
DAsyncPlayer.java59 MediaPlayer player = new MediaPlayer(); in startSound() local
60 player.setAudioAttributes(cmd.attributes); in startSound()
61 player.setDataSource(cmd.context, cmd.uri); in startSound()
62 player.setLooping(cmd.looping); in startSound()
63 player.prepare(); in startSound()
64 player.start(); in startSound()
68 mPlayer = player; in startSound()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java83 MediaPlayer player = new MediaPlayer(); in run() local
84 player.setAudioAttributes(mCmd.attributes); in run()
85 player.setDataSource(mCmd.context, mCmd.uri); in run()
86 player.setLooping(mCmd.looping); in run()
87 player.prepare(); in run()
115 player.setOnCompletionListener(NotificationPlayer.this); in run()
116 player.setOnErrorListener(NotificationPlayer.this); in run()
117 player.start(); in run()
121 mPlayer = player; in run()

123456