/frameworks/av/cmds/stagefright/ |
audioloop.cpp | 125 AudioPlayer *player = new AudioPlayer(NULL); local 126 player->setSource(decoder); 127 player->start(); 129 source->stop(); // must stop source otherwise delete player will hang 130 delete player; // there is no player->stop()...
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
NotificationPlayer.java | 82 MediaPlayer player = new MediaPlayer(); local 83 player.setAudioAttributes(mCmd.attributes); 84 player.setDataSource(mCmd.context, mCmd.uri); 85 player.setLooping(mCmd.looping); 86 player.prepare(); 114 player.setOnCompletionListener(NotificationPlayer.this); 115 player.start(); 119 mPlayer = player; 205 Log.w(mTag, "STOP command without a player");
|
/packages/apps/Stk/src/com/android/stk/ |
ToneDialog.java | 41 TonePlayer player = null; field in class:ToneDialog 105 player = new TonePlayer(); 106 player.play(settings.tone); 127 if (null != player) { 128 player.stop(); 129 player.release();
|
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
AnimationStackTest.cpp | 30 AnimationPlayer* player = timeline->createAnimationPlayer(animation); local 31 player->setStartTimeInternal(startTime); 32 player->update(TimingUpdateOnDemand); 33 return player; 112 RefPtrWillBeRawPtr<AnimationPlayer> player = play(makeAnimation(makeAnimationEffect(CSSPropertyFontSize, AnimatableDouble::create(1))).get(), 0); local 113 cancelledAnimationPlayers.add(player.get());
|
AnimationTimelineTest.cpp | 212 // TODO: Put the player startTime in the future when we add the capability to change player startTime 242 RefPtrWillBeRawPtr<AnimationPlayer> player = timeline->createAnimationPlayer(0); local 245 player->setStartTime(0);
|
AnimationTest.cpp | 353 RefPtrWillBeRawPtr<AnimationPlayer> player = document.timeline().play(animation.get()); local 359 player->setCurrentTimeInternal(100); 363 player->setCurrentTimeInternal(199); 367 player->setCurrentTimeInternal(200); 372 player->setCurrentTimeInternal(300); 386 RefPtrWillBeRawPtr<AnimationPlayer> player = document.timeline().play(animation.get()); local 392 player->setCurrentTimeInternal(100); 396 player->setCurrentTimeInternal(149); 400 player->setCurrentTimeInternal(150); 405 player->setCurrentTimeInternal(200) 419 RefPtrWillBeRawPtr<AnimationPlayer> player = document.timeline().play(animation.get()); local [all...] |
AnimationTimeline.cpp | 85 RefPtrWillBeRawPtr<AnimationPlayer> player = AnimationPlayer::create(m_document->contextDocument().get(), *this, child); local 86 AnimationPlayer* result = player.get(); 96 AnimationPlayer* player = createAnimationPlayer(child); 97 return player; 133 AnimationPlayer* player = players[i]; local 134 if (player->update(reason)) 135 timeToNextEffect = std::min(timeToNextEffect, player->timeToEffectChange()); 137 m_playersNeedingUpdate.remove(player); 227 void AnimationTimeline::setOutdatedAnimationPlayer(AnimationPlayer* player) 229 ASSERT(player->outdated()) [all...] |
/frameworks/wilhelm/tests/examples/ |
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)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result) [all...] |
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)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result) [all...] |
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)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result) [all...] |
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...] |
/frameworks/wilhelm/tests/mimeUri/ |
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)->GetInterface(player, SL_IID_ANDROIDCONFIGURATION, (void*)&configItf) [all...] |
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...] |
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)->Realize(player, SL_BOOLEAN_FALSE); ExitOnError(result) [all...] |
/hardware/intel/img/hwcomposer/common/devices/ |
DummyDevice.cpp | 64 hwc_layer_1 * player = &display->hwLayers[i]; local 65 player->compositionType = HWC_OVERLAY; 66 player->flags &= ~HWC_SKIP_LAYER;
|
/external/replicaisland/src/com/replica/replicaisland/ |
PatrolComponent.java | 25 * may change direction. Patrollers can also be configured via this component to attack the player 79 GameObject player = null; local 81 player = manager.getPlayer(); 85 updateAttack(player, parentObject); 109 if (mTurnToFacePlayer && player != null && player.life > 0) { 110 final float horizontalDelta = player.getCenteredPositionX() 113 final float closestDistance = player.width / 2.0f; 201 private void updateAttack(GameObject player, GameObject parentObject) { 218 if (mAttackAtDistance > 0 && player != null && player.life > 0 [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
TimerRingService.java | 140 // Must reset the media player to clear the error state. 155 private void startAlarm(MediaPlayer player) 162 player.setAudioStreamType(AudioManager.STREAM_ALARM); 163 player.setLooping(true); 164 player.prepare(); 167 player.start(); 172 MediaPlayer player, int res) throws java.io.IOException { 175 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
AlarmKlaxon.java | 113 // Must reset the media player to clear the error state. 133 private static void startAlarm(Context context, MediaPlayer player) throws IOException { 137 player.setAudioStreamType(AudioManager.STREAM_ALARM); 138 player.setLooping(true); 139 player.prepare(); 142 player.start(); 146 private static void setDataSourceFromResource(Context context, MediaPlayer player, int res) 150 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
|
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
PlaylistItem.java | 17 package com.example.android.mediarouter.player;
|
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
PlaylistItem.java | 17 package com.example.android.mediarouter.player;
|
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
PlaylistItem.java | 17 package com.example.android.mediarouter.player;
|
/external/chromium_org/content/browser/android/ |
child_process_launcher_android.cc | 34 // identified by render process handle, render frame ID and player ID. 67 DVLOG(1) << "Cannot find the media player manager for frame " << frame; 71 media::MediaPlayerAndroid* player = player_manager->GetPlayer(player_id); local 72 if (!player) { 73 DVLOG(1) << "Cannot find media player for player_id " << player_id; 77 if (player != player_manager->GetFullscreenPlayer()) { 79 player->SetVideoSurface(scoped_surface.Pass());
|
content_video_view.cc | 164 media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer(); 165 if (player && player->IsPlayerReady()) { 167 env, content_video_view.obj(), player->GetVideoWidth(), 168 player->GetVideoHeight(), 169 static_cast<int>(player->GetDuration().InMilliseconds()), 170 player->CanPause(),player->CanSeekForward(), player->CanSeekBackward()); 175 media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer() local 180 media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer(); local 185 media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer(); local 190 media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer(); local 195 media::MediaPlayerAndroid* player = manager_->GetFullscreenPlayer(); local [all...] |