/frameworks/av/media/libaaudio/examples/write_sine/src/ |
D | write_sine_callback.cpp | 50 AAudioSimplePlayer &player = myData.simplePlayer; in testOpenPlayClose() local 61 result = player.open(argParser, in testOpenPlayClose() 71 argParser.compareWithStream(player.getStream()); in testOpenPlayClose() 73 myData.sampleRate = player.getSampleRate(); in testOpenPlayClose() 83 result = player.prime(); // FIXME crashes AudioTrack.cpp in testOpenPlayClose() 107 result = player.start(); in testOpenPlayClose() 123 … const int32_t framesWritten = (int32_t) AAudioStream_getFramesWritten(player.getStream()); in testOpenPlayClose() 124 const int32_t framesRead = (int32_t) AAudioStream_getFramesRead(player.getStream()); in testOpenPlayClose() 125 const int32_t xruns = AAudioStream_getXRunCount(player.getStream()); in testOpenPlayClose() 146 result = player.stop(); in testOpenPlayClose() [all …]
|
D | write_sine.cpp | 36 AAudioSimplePlayer player; in main() local 66 result = player.open(argParser); in main() 72 aaudioStream = player.getStream(); in main() 108 result = player.start(); in main() 180 result = player.stop(); in main() 188 player.close(); in main()
|
/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 | 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 | 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 | 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()
|
/frameworks/wilhelm/tests/sandbox/streamSource/ |
D | slesTestPlayStream.cpp | 193 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/ |
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/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 89 MediaPlayer player = null; in run() local 94 player = new MediaPlayer(); in run() 101 player.setAudioAttributes(mCmd.attributes); in run() 102 player.setDataSource(mCmd.context, mCmd.uri); in run() 103 player.setLooping(mCmd.looping); in run() 104 player.setOnCompletionListener(NotificationPlayer.this); in run() 105 player.setOnErrorListener(NotificationPlayer.this); in run() 106 player.prepare(); in run() 141 player.start(); in run() 144 if (player != null) { in run() [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/media/java/android/media/ |
D | AsyncPlayer.java | 61 MediaPlayer player = new MediaPlayer(); in startSound() local 62 player.setAudioAttributes(cmd.attributes); in startSound() 63 player.setDataSource(cmd.context, cmd.uri); in startSound() 64 player.setLooping(cmd.looping); in startSound() 65 player.prepare(); in startSound() 66 player.start(); in startSound() 70 mPlayer = player; in startSound()
|
/frameworks/av/media/libmedia/ |
D | mediaplayer.cpp | 124 status_t MediaPlayer::attachNewPlayer(const sp<IMediaPlayer>& player) in attachNewPlayer() argument 139 mPlayer = player; in attachNewPlayer() 140 if (player != 0) { 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 182 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || in setDataSource() [all …]
|