/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 | 53 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()
|
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 | slesTestPlayUri.cpp | 138 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()
|
D | slesTestLoopUri.cpp | 135 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()
|
D | slesTestGetPositionUri.cpp | 140 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()
|
D | slesTestSlowDownUri.cpp | 191 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/ |
D | mimeUri_test.cpp | 112 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/ |
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 | 79 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()
|
D | slesTestPlayFdPath.cpp | 77 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()
|
D | slesTestSawtoothBufferQueue.cpp | 118 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()
|
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 | 461 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/ |
D | Player.java | 83 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/ |
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 | 263 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/ |
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/av/media/libmedia/ |
D | mediaplayer.cpp | 117 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/ |
D | AsyncPlayer.java | 59 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/ |
D | NotificationPlayer.java | 83 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()
|