Home
last modified time | relevance | path

Searched refs:player (Results 1 – 15 of 15) sorted by relevance

/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameActivity.java88 State player = mGameView.getCurrentPlayer(); in onResume() local
89 if (player == State.UNKNOWN) { in onResume()
90 player = State.fromInt(getIntent().getIntExtra(EXTRA_START_PLAYER, 1)); in onResume()
91 if (!checkGameFinished(player)) { in onResume()
92 selectTurn(player); in onResume()
95 if (player == State.PLAYER2) { in onResume()
98 if (player == State.WIN) { in onResume()
104 private State selectTurn(State player) { in selectTurn() argument
105 mGameView.setCurrentPlayer(player); in selectTurn()
108 if (player == State.PLAYER1) { in selectTurn()
[all …]
DGameView.java180 public void setCurrentPlayer(State player) { in setCurrentPlayer() argument
181 mCurrentPlayer = player; in setCurrentPlayer()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DPlayer.java17 package com.example.android.mediarouter.player;
62 Player player; in create() local
65 player = new RemotePlayer(context); in create()
67 player = new LocalPlayer.SurfaceViewPlayer(context); in create()
69 player = new LocalPlayer.OverlayPlayer(context); in create()
71 player.connect(route); in create()
72 return player; in create()
DSampleMediaButtonReceiver.java17 package com.example.android.mediarouter.player;
DSessionManager.java17 package com.example.android.mediarouter.player;
25 import com.example.android.mediarouter.player.Player.Callback;
391 public void setPlayer(Player player) { in setPlayer() argument
392 mPlayer = player; in setPlayer()
DPlaylistItem.java17 package com.example.android.mediarouter.player;
DLocalPlayer.java17 package com.example.android.mediarouter.player;
366 public static final void setSurface(MediaPlayer player, Surface surface) { in setSurface() argument
367 player.setSurface(surface); in setSurface()
385 mLayout = (FrameLayout)((Activity)context).findViewById(R.id.player); in SurfaceViewPlayer()
DRemotePlayer.java17 package com.example.android.mediarouter.player;
32 import com.example.android.mediarouter.player.Player;
33 import com.example.android.mediarouter.player.PlaylistItem;
DOverlayDisplayWindow.java17 package com.example.android.mediarouter.player;
DMainActivity.java17 package com.example.android.mediarouter.player;
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSimpleAudioOutput.java68 AudioTrack player = new AudioTrack(AudioManager.STREAM_MUSIC, in createAudioTrack() local
73 return player; in createAudioTrack()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSimpleAudioOutput.java68 AudioTrack player = new AudioTrack(AudioManager.STREAM_MUSIC, in createAudioTrack() local
73 return player; in createAudioTrack()
/development/samples/JetBoy/src/com/example/android/jetboy/
DJetBoyView.java105 public JetGameEvent(JetPlayer player, short segment, byte track, byte channel, in JetGameEvent() argument
107 this.player = player; in JetGameEvent()
115 public JetPlayer player; field in JetBoyView.JetGameEvent
733 processJetEvent(jetEvent.player, jetEvent.segment, jetEvent.track, in updateGameState()
901 protected void processJetEvent(JetPlayer player, short segment, byte track, byte channel, in processJetEvent() argument
1244 public void onJetNumQueuedSegmentUpdate(JetPlayer player, int nbSegments) { in onJetNumQueuedSegmentUpdate() argument
1265 public void onJetEvent(JetPlayer player, short segment, byte track, byte channel, in onJetEvent() argument
1272 mEventQueue.add(new JetGameEvent(player, segment, track, channel, controller, value)); in onJetEvent()
1277 public void onJetPauseUpdate(JetPlayer player, int paused) { in onJetPauseUpdate() argument
1283 public void onJetUserIdUpdate(JetPlayer player, int userId, int repeatCount) { in onJetUserIdUpdate() argument
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DPlayback.java366 public void onCompletion(MediaPlayer player) { in onCompletion() argument
381 public void onPrepared(MediaPlayer player) { in onPrepared() argument
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/provider/
DSampleMediaRouteProvider.java37 import com.example.android.mediarouter.player.Player;
38 import com.example.android.mediarouter.player.PlaylistItem;
40 import com.example.android.mediarouter.player.SessionManager;