Home
last modified time | relevance | path

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

1234

/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/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp42 AAudioSimplePlayer &player = myData.simplePlayer; in testOpenPlayClose() local
52 result = player.open(argParser, in testOpenPlayClose()
59 argParser.compareWithStream(player.getStream()); in testOpenPlayClose()
63 int32_t actualSampleRate = player.getSampleRate(); in testOpenPlayClose()
74 result = player.prime(); // FIXME crashes AudioTrack.cpp in testOpenPlayClose()
81 result = player.start(); in testOpenPlayClose()
101 (int) AAudioStream_getFramesWritten(player.getStream()), in testOpenPlayClose()
102 (int) AAudioStream_getXRunCount(player.getStream())); in testOpenPlayClose()
113 result = player.stop(); in testOpenPlayClose()
118 result = player.close(); in testOpenPlayClose()
[all …]
Dwrite_sine.cpp36 AAudioSimplePlayer player; in main() local
66 result = player.open(argParser); in main()
72 aaudioStream = player.getStream(); in main()
108 result = player.start(); in main()
181 result = player.stop(); in main()
189 player.close(); in main()
/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()
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()
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()
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()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DPlayer.java88 Player player; in create() local
91 player = new RemotePlayer(context); in create()
93 player = new LocalPlayer.SurfaceViewPlayer(context); in create()
95 player = new LocalPlayer.OverlayPlayer(context); in create()
97 player.setMediaSession(session); in create()
98 player.initMediaSession(); in create()
99 player.connect(route); in create()
100 return player; in create()
/frameworks/wilhelm/tests/sandbox/streamSource/
DslesTestPlayStream.cpp193 SLObjectItf player; in TestPlayStream() local
247 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayStream()
251 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlayStream()
255 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); CheckErr(res); in TestPlayStream()
257 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); CheckErr(res); in TestPlayStream()
259 res = (*player)->GetInterface(player, SL_IID_ANDROIDBUFFERQUEUESOURCE, (void*)&abqItf); in TestPlayStream()
367 (*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/base/media/java/android/media/
DAsyncPlayer.java60 MediaPlayer player = new MediaPlayer(); in startSound() local
61 player.setAudioAttributes(cmd.attributes); in startSound()
62 player.setDataSource(cmd.context, cmd.uri); in startSound()
63 player.setLooping(cmd.looping); in startSound()
64 player.prepare(); in startSound()
65 player.start(); in startSound()
69 mPlayer = player; in startSound()
/frameworks/av/media/libmedia/
Dmediaplayer.cpp122 status_t MediaPlayer::attachNewPlayer(const sp<IMediaPlayer>& player) in attachNewPlayer() argument
137 mPlayer = player; in attachNewPlayer()
138 if (player != 0) { in attachNewPlayer()
140 player->getDefaultBufferingSettings(&mCurrentBufferingSettings); in attachNewPlayer()
164 sp<IMediaPlayer> player(service->create(this, mAudioSessionId)); in setDataSource() local
165 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || in setDataSource()
166 (NO_ERROR != player->setDataSource(httpService, url, headers))) { in setDataSource()
167 player.clear(); in setDataSource()
169 err = attachNewPlayer(player); in setDataSource()
181 sp<IMediaPlayer> player(service->create(this, mAudioSessionId)); in setDataSource() local
[all …]

1234