/system/media/wilhelm/tests/examples/ |
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)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result) [all...] |
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)->GetInterface(player, SL_IID_BUFFERQUEUE [all...] |
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)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result) [all...] |
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)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result) [all...] |
slesTestDecodeAac.cpp | 24 Player created 25 Player realized 401 /* Objects this application uses: one audio player */ 402 SLObjectItf player; local 404 /* Interfaces for the audio player */ 430 /* Configuration of the player */ 467 /* Create the audio player */ 468 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &decSource, &decDest, 476 printf("Player created\n"); 478 /* Realize the player in synchronous mode. * [all...] |
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, 362 fprintf(stdout, "Player created\n"); 364 /* Realize the player in synchronous mode. */ 365 result = (*player)->Realize(player, SL_BOOLEAN_FALSE) [all...] |
/system/media/wilhelm/tests/mimeUri/ |
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_PLAY, (void*)&playItf) [all...] |
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_PLAY, (void*)&playItf) [all...] |
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_PLAY, (void*)&playItf) [all...] |
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)->GetInterface(player, SL_IID_PLAY, (void*)&playItf); CheckErr(res) [all...] |
/system/media/wilhelm/tests/ |
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_PLAY, (void*)&playItf) [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertAudio.java | 259 // future optimization: reuse media player object 288 /* Start the vibrator after everything is ok with the media player */ 297 private static void startAlarm(MediaPlayer player) 300 player.setAudioStreamType(AudioManager.STREAM_ALARM); 301 player.setLooping(true); 302 player.prepare(); 303 player.start(); 307 MediaPlayer player, int res) throws java.io.IOException { 310 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmKlaxon.java | 204 // Must reset the media player to clear the error state. 216 /* Start the vibrator after everything is ok with the media player */ 229 private void startAlarm(MediaPlayer player) 236 player.setAudioStreamType(AudioManager.STREAM_ALARM); 237 player.setLooping(true); 238 player.prepare(); 239 player.start(); 244 MediaPlayer player, int res) throws java.io.IOException { 247 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
|
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/ |
GameActivity.java | 37 /** Start player. Must be 1 or 2. Default is 1. */
88 State player = mGameView.getCurrentPlayer();
local 89 if (player == State.UNKNOWN) {
90 player = State.fromInt(getIntent().getIntExtra(EXTRA_START_PLAYER, 1));
91 if (!checkGameFinished(player)) {
92 selectTurn(player);
95 if (player == State.PLAYER2) {
98 if (player == State.WIN) {
104 private State selectTurn(State player) {
105 mGameView.setCurrentPlayer(player);
132 State player = mGameView.getCurrentPlayer(); local 178 State player = mGameView.getCurrentPlayer(); local [all...] |
/external/quake/quake/src/QW/client/ |
cl_cam.c | 22 * Player camera tracking in Spectator mode 24 * This takes over player controls for spectator automatic camera. 25 * Player moves as a spectator, but the camera tracks and enemy player 54 int spec_track = 0; // player# of who we are tracking 103 // returns true if we should draw this player, we don't if we are chase camming 151 static float Cam_TryFlyby(player_state_t *self, player_state_t *player, vec3_t vec, qboolean checkvis) 161 VectorMA(player->origin, 800, vec, v); 163 // fake a player move 164 trace = Cam_DoTrace(player->origin, v) 317 player_state_t *player, *self; local [all...] |
cl_parse.c | 573 // parse player slot, high bit means spectator 677 if (!strcmp(cl.model_name[nummodels],"progs/player.mdl")) 883 player_info_t *player; 889 player = &cl.players[slot]; 891 strcpy(s, Info_ValueForKey(player->userinfo, "skin")); 893 if (player->skin && !stricmp(s, player->skin->name)) 894 player->skin = NULL; 896 if (player->_topcolor != player->topcolor | 961 player_info_t *player; local 982 player_info_t *player; local 1012 player_info_t *player; local [all...] |
/frameworks/base/cmds/stagefright/ |
stream.cpp | 334 sp<IBinder> binder = sm->getService(String16("media.player")); 359 sp<IMediaPlayer> player = local 362 if (player != NULL && player->setDataSource(source) == NO_ERROR) { 363 player->setVideoSurfaceTexture(surface->getSurfaceTexture()); 364 player->start(); 368 player->stop(); 370 fprintf(stderr, "failed to instantiate player.\n");
|
/system/media/wilhelm/src/android/ |
android_GenericMediaPlayer.cpp | 27 // default delay in Us used when reposting an event when the player is not ready to accept 106 // only send video size updates if the player was flagged as having video, to avoid 195 sp<IMediaPlayer> player; local 196 getPreparedPlayer(player); 197 if (player != NULL) { 198 player->stop(); 201 //player->setDataSource(NULL); 202 player->setVideoSurfaceTexture(NULL); 203 player->disconnect(); 225 sp<IMediaPlayer> player; local [all...] |
/system/media/wilhelm/tests/listening/ |
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 in synchronous mode. * [all...] |
/system/media/wilhelm/tests/sandbox/ |
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);
|
/system/media/wilhelm/tests/sandbox/streamSource/ |
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_PLAY, (void*)&playItf); CheckErr(res) [all...] |
/external/webkit/Source/WebCore/html/ |
HTMLMediaElement.h | 58 MediaPlayer* player() const { return m_player.get(); } function in class:WebCore::HTMLMediaElement 379 // Counter incremented while processing a callback from the media player, so we can avoid
|
/external/webkit/Source/WebCore/platform/graphics/avfoundation/ |
MediaPlayerPrivateAVFoundation.cpp | 50 MediaPlayerPrivateAVFoundation::MediaPlayerPrivateAVFoundation(MediaPlayer* player) 51 : m_player(player) 660 MediaPlayerPrivateAVFoundation* player = static_cast<MediaPlayerPrivateAVFoundation*>(context); local 661 player->clearMainThreadPendingFlag(); 662 player->dispatchNotification();
|
/external/webkit/Source/WebKit/android/WebCoreSupport/ |
MediaPlayerPrivateAndroid.cpp | 146 MediaPlayerPrivate::MediaPlayerPrivate(MediaPlayer* player) 147 : m_player(player), 303 MediaPlayerVideoPrivate(MediaPlayer* player) : MediaPlayerPrivate(player) 432 MediaPlayerAudioPrivate(MediaPlayer* player) : MediaPlayerPrivate(player) 494 // Android media player gives us a duration of 0 for a live 510 MediaPlayerPrivateInterface* MediaPlayerPrivate::create(MediaPlayer* player) 512 if (player->mediaElementType() == MediaPlayer::Video) 513 return new MediaPlayerVideoPrivate(player); 524 WebCore::MediaPlayerPrivate* player = reinterpret_cast<WebCore::MediaPlayerPrivate*>(pointer); local 532 WebCore::MediaPlayerPrivate* player = reinterpret_cast<WebCore::MediaPlayerPrivate*>(pointer); local 540 WebCore::MediaPlayerPrivate* player = reinterpret_cast<WebCore::MediaPlayerPrivate*>(pointer); local 560 WebCore::MediaPlayerPrivate* player = reinterpret_cast<WebCore::MediaPlayerPrivate*>(pointer); local 568 WebCore::MediaPlayerPrivate* player = reinterpret_cast<WebCore::MediaPlayerPrivate*>(pointer); local 615 WebCore::MediaPlayerPrivate* player = local [all...] |
/packages/apps/Music/src/com/android/music/ |
AudioPreview.java | 106 PreviewPlayer player = (PreviewPlayer) getLastNonConfigurationInstance(); local 107 if (player == null) { 123 mPlayer = player; 200 PreviewPlayer player = mPlayer; local 202 return player;
|