/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
D | LocalRenderer.java | 262 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/ |
D | slesTest_playStates.cpp | 54 SLObjectItf player, outputMix; in TestPlayUri() local 123 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayUri() 128 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayUri() 132 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri() 135 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri() 138 result = (*player)->GetInterface(player, SL_IID_MUTESOLO, (void*)&muteSoloItf); in TestPlayUri() 197 (*player)->Destroy(player); in TestPlayUri()
|
D | slesTestPlayStreamType.cpp | 54 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()
|
D | slesTestPlayUri2.cpp | 69 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()
|
D | slesTestLoopUri.cpp | 138 SLObjectItf player; in TestLoopUri() local 189 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestLoopUri() 193 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestLoopUri() 197 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestLoopUri() 200 res = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf); in TestLoopUri() 203 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestLoopUri() 282 (*player)->Destroy(player); in TestLoopUri()
|
D | slesTestPlayUri.cpp | 141 SLObjectItf player; in TestPlayUri() local 191 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayUri() 195 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlayUri() 199 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri() 202 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestPlayUri() 205 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri() 316 (*player)->Destroy(player); in TestPlayUri()
|
D | slesTestGetPositionUri.cpp | 143 SLObjectItf player; in TestGetPositionUri() local 198 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestGetPositionUri() 202 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestGetPositionUri() 206 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestGetPositionUri() 209 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestGetPositionUri() 212 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestGetPositionUri() 307 (*player)->Destroy(player); in TestGetPositionUri()
|
D | slesTestSlowDownUri.cpp | 194 SLObjectItf player; in TestSlowDownUri() local 247 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestSlowDownUri() 251 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestSlowDownUri() 255 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); CheckErr(res); in TestSlowDownUri() 257 res = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf); CheckErr(res); in TestSlowDownUri() 259 res = (*player)->GetInterface(player, SL_IID_PLAYBACKRATE, (void*)&rateItf); CheckErr(res); in TestSlowDownUri() 261 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestSlowDownUri() 389 (*player)->Destroy(player); in TestSlowDownUri()
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestPlayFdPath.cpp | 56 SLObjectItf player, outputMix; in TestPlayPathFromFD() local 130 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1, in TestPlayPathFromFD() 135 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestPlayPathFromFD() 139 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayPathFromFD() 142 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayPathFromFD() 182 (*player)->Destroy(player); in TestPlayPathFromFD()
|
D | slesTestBassBoostPath.cpp | 56 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()
|
D | slesTestVirtualizerPath.cpp | 57 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()
|
D | slesTestSendToPresetReverb.cpp | 80 SLObjectItf player, outputMix; in TestSendToPresetReverb() local 201 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 3, in TestSendToPresetReverb() 206 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); in TestSendToPresetReverb() 210 result = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestSendToPresetReverb() 213 result = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestSendToPresetReverb() 221 result = (*player)->GetInterface(player, SL_IID_EFFECTSEND, (void*)&effectSendItf); in TestSendToPresetReverb() 224 result = (*player)->GetInterface(player, SL_IID_SEEK, (void*)&seekItf); in TestSendToPresetReverb() 315 (*player)->Destroy(player); in TestSendToPresetReverb()
|
D | slesTestSawtoothBufferQueue.cpp | 121 SLObjectItf player; in TestPlaySawtoothBufferQueue() local 203 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, in TestPlaySawtoothBufferQueue() 208 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlaySawtoothBufferQueue() 212 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlaySawtoothBufferQueue() 216 res = (*player)->GetInterface(player, SL_IID_BUFFERQUEUE, in TestPlaySawtoothBufferQueue() 267 (*player)->Destroy(player); in TestPlaySawtoothBufferQueue()
|
D | slesTestEqFdPath.cpp | 61 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()
|
D | slesTestEqOutputPath.cpp | 61 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()
|
D | slesTestDecodeToBuffQueue.cpp | 280 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()
|
D | slesTestDecodeAac.cpp | 462 SLObjectItf player; in TestDecToBuffQueue() local 533 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &decSource, &decDest, in TestDecToBuffQueue() 544 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); in TestDecToBuffQueue() 549 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestDecToBuffQueue() 590 res = (*player)->GetInterface(player, SL_IID_ANDROIDSIMPLEBUFFERQUEUE, (void*)&decBuffQueueItf); in TestDecToBuffQueue() 594 res = (*player)->GetInterface(player, SL_IID_ANDROIDBUFFERQUEUESOURCE, (void*)&aacBuffQueueItf); in TestDecToBuffQueue() 598 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestDecToBuffQueue() 603 res = (*player)->GetInterface(player, SL_IID_METADATAEXTRACTION, (void*)&mdExtrItf); in TestDecToBuffQueue() 842 (*player)->Destroy(player); in TestDecToBuffQueue()
|
/frameworks/wilhelm/tests/ |
D | mimeUri_test.cpp | 115 SLObjectItf player; in TestPlayUri() local 165 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, in TestPlayUri() 169 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlayUri() 172 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); in TestPlayUri() 175 res = (*player)->GetInterface(player, SL_IID_VOLUME, (void*)&volItf); in TestPlayUri() 178 res = (*player)->GetInterface(player, SL_IID_PREFETCHSTATUS, (void*)&prefetchItf); in TestPlayUri() 257 (*player)->Destroy(player); in TestPlayUri()
|
/frameworks/wilhelm/tests/sandbox/streamSource/ |
D | slesTestPlayStream.cpp | 196 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/ |
D | android_GenericMediaPlayer.cpp | 260 sp<IMediaPlayer> player; in preDestroy() local 261 getPreparedPlayer(player); in preDestroy() 262 if (player != NULL) { in preDestroy() 263 player->stop(); in preDestroy() 267 player->setVideoSurfaceTexture(NULL); in preDestroy() 268 player->disconnect(); in preDestroy() 290 sp<IMediaPlayer> player; in getPositionMsec() local 291 getPreparedPlayer(player); in getPositionMsec() 293 if (player == 0 || player->getCurrentPosition(msec) != NO_ERROR) { in getPositionMsec() 315 sp<IMediaPlayer> player; in setPlaybackRate() local [all …]
|
/frameworks/base/media/java/android/media/ |
D | AsyncPlayer.java | 58 MediaPlayer player = new MediaPlayer(); in startSound() local 59 player.setAudioStreamType(cmd.stream); in startSound() 60 player.setDataSource(cmd.context, cmd.uri); in startSound() 61 player.setLooping(cmd.looping); in startSound() 62 player.prepare(); in startSound() 63 player.start(); in startSound() 67 mPlayer = player; in startSound()
|
/frameworks/av/media/libmedia/ |
D | mediaplayer.cpp | 114 status_t MediaPlayer::attachNewPlayer(const sp<IMediaPlayer>& player) in attachNewPlayer() argument 129 mPlayer = player; in attachNewPlayer() 130 if (player != 0) { in attachNewPlayer() 154 sp<IMediaPlayer> player(service->create(this, mAudioSessionId)); in setDataSource() local 155 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || in setDataSource() 156 (NO_ERROR != player->setDataSource(httpService, url, headers))) { in setDataSource() 157 player.clear(); in setDataSource() 159 err = attachNewPlayer(player); in setDataSource() 171 sp<IMediaPlayer> player(service->create(this, mAudioSessionId)); in setDataSource() local 172 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || in setDataSource() [all …]
|
/frameworks/wilhelm/tests/listening/ |
D | slesTest_playMuteSolo.cpp | 169 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/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 82 MediaPlayer player = new MediaPlayer(); in run() local 83 player.setAudioAttributes(mCmd.attributes); in run() 84 player.setDataSource(mCmd.context, mCmd.uri); in run() 85 player.setLooping(mCmd.looping); in run() 86 player.prepare(); in run() 114 player.setOnCompletionListener(NotificationPlayer.this); in run() 115 player.start(); in run() 119 mPlayer = player; in run()
|
/frameworks/av/cmds/stagefright/ |
D | audioloop.cpp | 125 AudioPlayer *player = new AudioPlayer(NULL); in main() local 126 player->setSource(decoder); in main() 127 player->start(); in main() 130 delete player; // there is no player->stop()... in main()
|