/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 | 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 | 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 | 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 | 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...] |
/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 | 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 | 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...] |
/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/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/av/cmds/stagefright/ |
H A D | stream.cpp | 339 sp<IBinder> binder = sm->getService(String16("media.player")); 372 sp<IMediaPlayer> player = local 375 if (player != NULL && player->setDataSource(source) == NO_ERROR) { 376 player->setVideoSurfaceTexture(surface->getSurfaceTexture()); 377 player->start(); 381 player->stop(); 383 fprintf(stderr, "failed to instantiate player.\n");
|
H A D | stagefright.cpp | 206 AudioPlayer *player = new AudioPlayer(NULL); local 207 player->setSource(rawSource); 210 player->start(true /* sourceAlreadyStarted */); 213 while (!player->reachedEOS(&finalStatus)) { 217 delete player; 218 player = NULL; 817 sp<IBinder> binder = sm->getService(String16("media.player")); 879 sp<IBinder> binder = sm->getService(String16("media.player")); 893 sp<IBinder> binder = sm->getService(String16("media.player"));
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraService.cpp | 381 sp<MediaPlayer> player = mSoundPlayer[kind]; local 382 if (player != 0) { 383 player->seekTo(0); 384 player->start();
|
/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/av/media/libmedia/ |
H A D | IMediaPlayer.cpp | 70 // disconnect from media player service 116 // pass the buffered ISurfaceTexture to the media player service 316 status_t setNextPlayer(const sp<IMediaPlayer>& player) { argument 319 sp<IBinder> b(player->asBinder());
|
H A D | mediaplayer.cpp | 109 status_t MediaPlayer::attachNewPlayer(const sp<IMediaPlayer>& player) argument 124 mPlayer = player; 125 if (player != 0) { 129 ALOGE("Unable to to create media player"); 148 sp<IMediaPlayer> player(service->create(getpid(), this, mAudioSessionId)); 149 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || 150 (NO_ERROR != player->setDataSource(url, headers))) { 151 player.clear(); 153 err = attachNewPlayer(player); 165 sp<IMediaPlayer> player(servic 477 doSetRetransmitEndpoint(const sp<IMediaPlayer>& player) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | MediaController.java | 199 public void setMediaPlayer(MediaPlayerControl player) { argument 200 mPlayer = player;
|
/frameworks/base/media/java/android/media/ |
H A D | JetPlayer.java | 35 * music concept and how to use the JetCreator tool to create content to be player by JetPlayer. 499 * @param player the JET player the event is coming from 506 void onJetEvent(JetPlayer player, argument 511 * @param player the JET player the status update is coming from 515 void onJetUserIdUpdate(JetPlayer player, int userId, int repeatCount); argument 520 * @param player the JET player the status update is coming from 523 void onJetNumQueuedSegmentUpdate(JetPlayer player, in argument 531 onJetPauseUpdate(JetPlayer player, int paused) argument [all...] |
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
H A D | VideoDumpView.java | 262 * A renderer to read each video frame from a media player, draw it over a surface 328 // The media player that loads and decodes the video. 331 // The frame number from media player. 355 public void setMediaPlayer(MediaPlayer player) { argument 356 mMediaPlayer = player; 580 Log.e(TAG, "media player prepare failed");
|