/external/jmonkeyengine/engine/src/test/jme3test/games/ |
CubeField.java | 70 private Node player; field in class:CubeField 103 player = createPlayer(); 104 rootNode.attachChild(player); 139 player.setLocalTranslation(0,0,0); 155 cam.setLocation(player.getLocalTranslation().add(-8, 2, 0)); 156 cam.lookAt(player.getLocalTranslation(), Vector3f.UNIT_Y); 169 System.out.println("Player has Collided. Final Score is " + Score); 174 * Randomly Places a cube on the map between 30 and 90 paces away from player 178 int playerX = (int) player.getLocalTranslation().getX(); 179 int playerZ = (int) player.getLocalTranslation().getZ() [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/audio/ |
TestAmbient.java | 72 Geometry player = new Geometry("Player", box1); local 76 player.setMaterial(mat1); 77 rootNode.attachChild(player);
|
/external/jmonkeyengine/engine/src/test/jme3test/helloworld/ |
HelloAnimation.java | 53 Node player; field in class:HelloAnimation 73 player = (Node) assetManager.loadModel("Models/Oto/Oto.mesh.xml"); 74 player.setLocalScale(0.5f); 75 rootNode.attachChild(player); 78 control = player.getControl(AnimControl.class);
|
HelloAudio.java | 18 private Geometry player; field in class:HelloAudio 31 player = new Geometry("Player", box1); 35 player.setMaterial(mat1); 36 rootNode.attachChild(player);
|
/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...] |
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...] |
/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 | 144 // Must reset the media player to clear the error state. 159 private void startAlarm(MediaPlayer player) 166 player.setAudioStreamType(AudioManager.STREAM_ALARM); 167 player.setLooping(true); 168 player.prepare(); 169 player.start(); 174 MediaPlayer player, int res) throws java.io.IOException { 177 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
|
AlarmKlaxon.java | 210 // Must reset the media player to clear the error state. 222 /* Start the vibrator after everything is ok with the media player */ 235 private void startAlarm(MediaPlayer player) 242 player.setAudioStreamType(AudioManager.STREAM_ALARM); 243 player.setLooping(true); 244 player.prepare(); 245 player.start(); 250 MediaPlayer player, int res) throws java.io.IOException { 253 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
|
/external/quake/quake/src/QW/client/ |
cl_demo.c | 386 player_info_t *player; local 591 player = cl.players + i; 595 MSG_WriteShort (&buf, player->frags); 599 MSG_WriteShort (&buf, player->ping); 603 MSG_WriteByte (&buf, player->pl); 607 MSG_WriteFloat (&buf, player->entertime); 611 MSG_WriteLong (&buf, player->userid); 612 MSG_WriteString (&buf, player->userinfo);
|
gl_rmisc.c | 231 Translates a skin texture by the per-player color lookup 247 player_info_t *player; local 253 player = &cl.players[playernum]; 254 if (!player->name[0]) 257 strcpy(s, Info_ValueForKey(player->userinfo, "skin")); 259 if (player->skin && !stricmp(s, player->skin->name)) 260 player->skin = NULL; 262 if (player->_topcolor != player->topcolor | [all...] |
/external/webkit/Source/WebCore/html/ |
HTMLVideoElement.cpp | 128 if (!player() || !player()->supportsFullscreen() || !player()->hasVideo()) 142 if (!player()) 144 return player()->naturalSize().width(); 149 if (!player()) 151 return player()->naturalSize().height(); 188 if (oldMode != Video && player()) 189 player()->prepareForRendering(); 193 } else if (oldMode != Video && player()) 217 MediaPlayer* player = HTMLMediaElement::player(); local [all...] |
/external/webkit/Source/WebCore/rendering/ |
RenderVideo.cpp | 59 if (MediaPlayer* p = mediaElement()->player()) { 111 MediaPlayer* player = mediaElement()->player(); local 112 if (player && video->readyState() >= HTMLVideoElement::HAVE_METADATA) 113 return player->naturalSize(); 189 MediaPlayer* mediaPlayer = mediaElement()->player(); 233 MediaPlayer* mediaPlayer = mediaElement()->player(); 270 MediaPlayer* p = mediaElement()->player(); 279 MediaPlayer* p = mediaElement()->player();
|
/frameworks/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 | 317 // future optimization: reuse media player object 355 private static void startAlarm(MediaPlayer player) 357 player.setAudioStreamType(AudioManager.STREAM_NOTIFICATION); 358 player.setLooping(true); 359 player.prepare(); 360 player.start(); 364 MediaPlayer player, int res) throws java.io.IOException { 367 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 411 loge("exception trying to stop media player");
|