/frameworks/wilhelm/src/android/ |
H A D | android_GenericMediaPlayer.cpp | 28 // default delay in Us used when reposting an event when the player is not ready to accept 140 // only send video size updates if the player was flagged as having video, to avoid 260 sp<IMediaPlayer> player; local 261 getPreparedPlayer(player); 262 if (player != NULL) { 263 player->stop(); 266 //player->setDataSource(NULL); 267 player->setVideoSurfaceTexture(NULL); 268 player->disconnect(); 290 sp<IMediaPlayer> player; local 315 sp<IMediaPlayer> player; local [all...] |
H A D | android_StreamPlayer.cpp | 39 StreamPlayer * /* const sp<StreamPlayer> & */ player) : 43 mPlayer(player) 186 const sp<StreamPlayer> player(mPlayer.promote()); 187 if (player != NULL) { 189 player->seek(ANDROID_UNKNOWN_TIME); 265 const sp<StreamPlayer> player(mPlayer.promote()); 266 if (player != NULL) { 267 player->queueRefilled(); 367 * Asynchronously notify the player that the queue is ready to be pulled from. 370 // async notification that the ABQ was refilled: the player shoul 32 StreamSourceAppProxy( IAndroidBufferQueue *androidBufferQueue, const sp<CallbackProtector> &callbackProtector, StreamPlayer * player) argument [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestBassBoostPath.cpp | 55 /* Objects this application uses: one player and an ouput mix */ 56 SLObjectItf player, outputMix; local 67 /* Data sinks for the audio player */ 71 /* Interfaces for the audio player */ 92 /* Create Output Mix object to be used by the player */ 107 /* Configuration of the player */ 144 /* Create the audio player */ 145 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 149 /* Realize the player in synchronous mode. */ 150 result = (*player) [all...] |
H A D | slesTestDecodeAac.cpp | 461 /* Objects this application uses: one audio player */ 462 SLObjectItf player; local 464 /* Interfaces for the audio player */ 492 /* Configuration of the player */ 532 /* Create the audio player */ 533 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &decSource, &decDest, 543 /* Realize the player in synchronous mode. */ 544 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); 549 res = (*player) [all...] |
H A D | slesTestDecodeToBuffQueue.cpp | 279 /* Objects this application uses: one audio player */ 280 SLObjectItf player; local 282 /* Interfaces for the audio player */ 319 /* Configuration of the player */ 358 /* Create the audio player */ 359 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &decSource, &decDest, 364 /* Realize the player in synchronous mode. */ 365 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); 370 result = (*player) [all...] |
H A D | slesTestEqFdPath.cpp | 60 /* Objects this application uses: one player and an ouput mix */ 61 SLObjectItf player, outputMix; local 72 /* Data sinks for the audio player */ 76 /* Play and PrefetchStatus interfaces for the audio player */ 97 /* Create Output Mix object to be used by the player */ 112 /* Configuration of the player */ 149 /* Create the audio player */ 150 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 154 /* Realize the player in synchronous mode. */ 155 result = (*player) [all...] |
H A D | slesTestEqOutputPath.cpp | 60 /* Objects this application uses: one player and an ouput mix */ 61 SLObjectItf player, outputMix; local 72 /* Data sinks for the audio player */ 76 /* Play and PrefetchStatus interfaces for the audio player */ 103 /* Create Output Mix object to be used by the player */ 121 /* Configuration of the player */ 156 /* Create the audio player */ 157 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1, 161 /* Realize the player in synchronous mode. */ 162 result = (*player) [all...] |
H A D | slesTestPlayFdPath.cpp | 55 /* Objects this application uses: one player and an ouput mix */ 56 SLObjectItf player, outputMix; local 63 /* Data sinks for the audio player */ 67 /* Play and PrefetchStatus interfaces for the audio player */ 87 /* Create Output Mix object to be used by the player */ 102 /* Configuration of the player */ 129 /* Create the audio player */ 130 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 1, 134 /* Realize the player in synchronous mode. */ 135 result = (*player) [all...] |
H A D | slesTestSawtoothBufferQueue.cpp | 121 SLObjectItf player; local 151 // Create Output Mix object to be used by player 202 /* Create the music player */ 203 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, 207 /* Realizing the player in synchronous mode. */ 208 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 212 res = (*player)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); 216 res = (*player) [all...] |
H A D | slesTestSendToPresetReverb.cpp | 79 /* Objects this application uses: one player and an ouput mix */ 80 SLObjectItf player, outputMix; local 90 /* Data sinks for the audio player */ 94 /* Interfaces for the audio player */ 123 /* Create Output Mix object to be used by the player */ 160 /* Configuration of the player */ 200 /* Create the audio player */ 201 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 3, 205 /* Realize the player in synchronous mode. */ 206 result = (*player) [all...] |
H A D | slesTestVirtualizerPath.cpp | 56 /* Objects this application uses: one player and an ouput mix */ 57 SLObjectItf player, outputMix; local 68 /* Data sinks for the audio player */ 72 /* Play and PrefetchStatus interfaces for the audio player */ 93 /* Create Output Mix object to be used by the player */ 108 /* Configuration of the player */ 145 /* Create the audio player */ 146 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 150 /* Realize the player in synchronous mode. */ 151 result = (*player) [all...] |
/frameworks/wilhelm/tests/listening/ |
H A D | slesTest_playMuteSolo.cpp | 101 /* PlayItf callback for an audio player, will be called for every SL_PLAYEVENT_HEADATNEWPOS event */ 168 /* Objects this application uses: one player and an output mix */ 169 SLObjectItf player, outputMix; local 176 /* Data sinks for the audio player */ 180 /* Play, Volume and PrefetchStatus interfaces for the audio player */ 201 /* Create Output Mix object to be used by the player */ 216 /* Configuration of the player */ 237 /* Create the audio player */ 238 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 242 /* Realize the player i [all...] |
/frameworks/wilhelm/tests/mimeUri/ |
H A D | slesTestGetPositionUri.cpp | 65 /* PrefetchStatusItf callback for an audio player */ 143 SLObjectItf player; local 173 // Create Output Mix object to be used by player 197 /* Create the audio player */ 198 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 201 /* Realizing the player in synchronous mode. */ 202 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 206 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
H A D | slesTestLoopUri.cpp | 62 /* PrefetchStatusItf callback for an audio player */ 138 SLObjectItf player; local 160 // Create Output Mix object to be used by player 184 /* Create the audio player */ 189 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 192 /* Realizing the player in synchronous mode. */ 193 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 197 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
H A D | slesTestPlayStreamType.cpp | 53 /* Objects this application uses: one player and an ouput mix */ 54 SLObjectItf player, outputMix; local 61 /* Data sinks for the audio player */ 65 /* Play, Volume and AndroidStreamType interfaces for the audio player */ 88 /* Create Output Mix object to be used by the player */ 103 /* Configuration of the player */ 127 /* Create the audio player */ 128 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 132 /* Retrieve the configuration interface before the player is realized so its resources 136 result = (*player) [all...] |
H A D | slesTestPlayUri.cpp | 71 /* PrefetchStatusItf callback for an audio player */ 141 SLObjectItf player; local 166 // Create Output Mix object to be used by player 190 /* Create the audio player */ 191 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 194 /* Realizing the player in synchronous mode. */ 195 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 199 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
H A D | slesTestPlayUri2.cpp | 38 /* PlayItf callback for an audio player */ 69 SLObjectItf player, player2, outputMix; local 107 /* Create Output Mix object to be used each player */ 136 /* Create the first audio player */ 137 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 2, 141 /* Create the second audio player with a different path for its data source */ 149 result = (*player)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result); 150 result = (*player)->Realize(player2, SL_BOOLEAN_FALSE); ExitOnError(result); 153 /* Get the SLPlayItf, SLVolumeItf and SLPrefetchStatusItf interfaces for each player */ [all...] |
H A D | slesTestSlowDownUri.cpp | 64 /* PlayItf callback for an audio player */ 107 /* PrefetchStatusItf callback for an audio player */ 194 SLObjectItf player; local 216 // Create Output Mix object to be used by player 240 /* Create the audio player */ 247 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 250 /* Realizing the player in synchronous mode. */ 251 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 255 res = (*player) [all...] |
H A D | slesTest_playStates.cpp | 53 /* Objects this application uses: one player and an ouput mix */ 54 SLObjectItf player, outputMix; local 61 /* Data sinks for the audio player */ 65 /* Play, Volume and PrefetchStatus interfaces for the audio player */ 86 /* Create Output Mix object to be used by the player */ 101 /* Configuration of the player */ 122 /* Create the audio player */ 123 result = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 127 /* Realize the player in synchronous mode. */ 128 result = (*player) [all...] |
/frameworks/wilhelm/tests/ |
H A D | mimeUri_test.cpp | 73 /* PrefetchStatusItf callback for an audio player */ 115 SLObjectItf player; local 140 // Create Output Mix object to be used by player 164 /* Create the audio player */ 165 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, 168 /* Realizing the player in synchronous mode. */ 169 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 172 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | monkey.c | 17 // single-threaded, single-player monkey test 46 typedef State_t (*Action_pt)(Player_pt player); 116 // create audio player 129 // realize the player 248 Player_t player; local 249 player.mObject = NULL; 250 player.mPlay = NULL; 251 player.mSeek = NULL; 285 State_t nextState = (*transitionTable[i].mAction)(&player);
|
/frameworks/wilhelm/tests/sandbox/streamSource/ |
H A D | slesTestPlayStream.cpp | 72 /* AndroidBufferQueueItf callback for an audio player */ 196 SLObjectItf player; local 225 // Create Output Mix object to be used by player 249 /* Create the audio player */ 250 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, 253 /* Realizing the player in synchronous mode. */ 254 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); 258 res = (*player)->GetInterface(player, SL_IID_PLA [all...] |
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/ |
H A D | MediaPlayerProxyTestCase.java | 51 * {@link #createTestMediaPlayer()} method to construct the player you would like to test. Every 52 * test will construct the player in {@link #setUp()} and release it in {@link #tearDown()}. 440 // The real media player should play a stuttering audio, hopefully my player does too. 501 * If we have a variable speed media player proxy, set the variable speed rate. 503 * If we don't have a variable speed media player proxy, this method will be a no-op. 568 private void setDataSourceFromContentProvider(MediaPlayerProxy player, String assetFilename, argument 570 player.setDataSource(getInstrumentation().getTargetContext(),
|
/frameworks/base/media/tests/players/ |
H A D | invoke_mock_media_player.cpp | 42 // This file contains a test player that is loaded via the 43 // TestPlayerStub class. The player contains various implementation 121 ALOGD("New invoke test player"); 125 extern "C" android::status_t deletePlayer(android::MediaPlayerBase *player) argument 127 ALOGD("Delete invoke test player"); 128 delete player;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | MediaPlayerGetCurrentPositionStateUnitTest.java | 55 public void invokeMethodUnderTest(MediaPlayer player) { argument 56 player.getCurrentPosition();
|