Home
last modified time | relevance | path

Searched refs:State (Results 1 – 10 of 10) sorted by relevance

/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameActivity.java32 import com.example.android.tictactoe.library.GameView.State;
88 State player = mGameView.getCurrentPlayer(); in onResume()
89 if (player == State.UNKNOWN) { in onResume()
90 player = State.fromInt(getIntent().getIntExtra(EXTRA_START_PLAYER, 1)); in onResume()
95 if (player == State.PLAYER2) { in onResume()
98 if (player == State.WIN) { in onResume()
104 private State selectTurn(State player) { in selectTurn()
108 if (player == State.PLAYER1) { in selectTurn()
112 } else if (player == State.PLAYER2) { in selectTurn()
122 if (mGameView.getCurrentPlayer() == State.PLAYER1) { in onCellSelected()
[all …]
DGameView.java47 public enum State { enum in GameView
56 private State(int value) { in State() method in GameView.State
64 public static State fromInt(int i) { in fromInt()
65 for (State s : values()) { in fromInt()
95 private final State[] mData = new State[9];
98 private State mSelectedValue = State.EMPTY;
99 private State mCurrentPlayer = State.UNKNOWN;
100 private State mWinner = State.EMPTY;
142 mData[i] = State.EMPTY; in GameView()
150 mData[i] = State.fromInt(rnd.nextInt(3)); in GameView()
[all …]
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DMusicService.java84 enum State { enum in MusicService
94 State mState = State.Retrieving;
227 if (mState == State.Paused || mState == State.Stopped) { in processTogglePlaybackRequest()
235 if (mState == State.Retrieving) { in processPlayRequest()
247 if (mState == State.Stopped) { in processPlayRequest()
251 else if (mState == State.Paused) { in processPlayRequest()
253 mState = State.Playing; in processPlayRequest()
266 if (mState == State.Retrieving) { in processPauseRequest()
273 if (mState == State.Playing) { in processPauseRequest()
275 mState = State.Paused; in processPauseRequest()
[all …]
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/
DMusicProvider.java71 enum State { enum in MusicProvider
75 private State mCurrentState = State.NON_INITIALIZED;
94 if (mCurrentState != State.INITIALIZED) { in getGenres()
106 if (mCurrentState != State.INITIALIZED || !mMusicListByGenre.containsKey(genre)) { in getMusicsByGenre()
120 if (mCurrentState != State.INITIALIZED) { in searchMusics()
150 return mCurrentState == State.INITIALIZED; in isInitialized()
161 if (mCurrentState == State.INITIALIZED) { in retrieveMedia()
181 if (mCurrentState == State.NON_INITIALIZED) { in retrieveMediaAsync()
182 mCurrentState = State.INITIALIZING; in retrieveMediaAsync()
203 mCurrentState = State.INITIALIZED; in retrieveMediaAsync()
[all …]
/development/samples/TicTacToeMain/src/com/example/android/tictactoe/
DMainActivity.java26 import com.example.android.tictactoe.library.GameView.State;
53 startWithHuman ? State.PLAYER1.getValue() : State.PLAYER2.getValue()); in startGame()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyNetworkMonitor.java50 if (NetworkInfo.State.CONNECTED == ni.getState()) { in performReceive()
53 } else if (NetworkInfo.State.DISCONNECTED == ni.getState()) { in performReceive()
/development/tools/emulator/test-apps/SmokeTests/src/com/android/emulator/smoketests/connectivity/
DConnectivityTest.java53 assertEquals( NetworkInfo.State.CONNECTED, networkInfo.getState()); in testActiveConnectivity()
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/
DRecyclerViewActivity.java108 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren()
146 RecyclerView.State state) { in scrollVerticallyBy()
200 RecyclerView.Recycler recycler, RecyclerView.State state) { in onFocusSearchFailed()
DAnimatedRecyclerView.java203 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren()
284 RecyclerView.State state) { in scrollVerticallyBy()
337 RecyclerView.Recycler recycler, RecyclerView.State state) { in onFocusSearchFailed()
/development/sdk/
Dsdk_files_NOTICE.txt342 This Agreement is governed by the laws of the State of New York and
10181 This Agreement is governed by the laws of the State of New York and the
11978 This Agreement is governed by the laws of the State of New York and the intellectual property laws …
13350 This Agreement is governed by the laws of the State of New York and the intellectual property laws …