Home
last modified time | relevance | path

Searched refs:State (Results 1 – 9 of 9) 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/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/
DMusicProvider.java72 enum State { enum in MusicProvider
76 private volatile State mCurrentState = State.NON_INITIALIZED;
94 if (mCurrentState != State.INITIALIZED) { in getGenres()
105 if (mCurrentState != State.INITIALIZED || !mMusicListByGenre.containsKey(genre)) { in getMusicsByGenre()
117 if (mCurrentState != State.INITIALIZED) { in searchMusic()
170 return mCurrentState == State.INITIALIZED; in isInitialized()
179 if (mCurrentState == State.INITIALIZED) { in retrieveMediaAsync()
186 new AsyncTask<Void, Void, State>() { in retrieveMediaAsync()
188 protected State doInBackground(Void... params) { in retrieveMediaAsync()
194 protected void onPostExecute(State current) { in retrieveMediaAsync()
[all …]
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DSoundRecorder.java54 private State mState = State.IDLE;
60 enum State { enum in SoundRecorder
77 if (mState != State.IDLE) { in startRecording()
88 mState = State.RECORDING; in startRecording()
123 mState = State.IDLE; in startRecording()
129 if (mState == State.RECORDING) { in startRecording()
131 mState = State.IDLE; in startRecording()
158 if (mState != State.IDLE) { in startPlay()
185 mState = State.PLAYING; in startPlay()
239 mState = State.IDLE; in startPlay()
/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/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarmAdapter.java175 public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDrawOver()
/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 …
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dcommit.csv8309 …_zOvHBH_zRDiDBfvTl3ZBuA@fakeemail.com,Make Airplane Mode Toggle Wait for All Radios to Change State
9241 …atform/hardware/libhardware,fake_94o33uJ6SiqEg4lA0KQkgg@fakeemail.com,Add Control/State Interfaces.
10962 …/opt/telephony,fake_OeNxAWuMSAmKNd65TXZVjA@fakeemail.com,Consider Service State OFF same as OUT OF…
11226 …atform/frameworks/opt/telephony,fake_qrJWJZkBTpuXNYo0vInwxg@fakeemail.com,Check ImsPhone WiFi State
11681 …lephony,fake_zOvHBH_zRDiDBfvTl3ZBuA@fakeemail.com,Change initial IccCardProxy Card State to UNKNOWN
14819 …/freetype,fake_cGJR-E_kQja09VzCsNPRHQ@fakeemail.com,* src/tools/apinames (State): Remove final com…
18489 …s/Bluetooth,fake_B7M5Jn_mRN6s8WtKlR7kaQ@fakeemail.com,Fix formatting issue on Headset State Machine
18554 …platform/packages/apps/Bluetooth,fake_hXfzCamoTwCy8ddFbA_ZyA@fakeemail.com,PBAPClient State Machine
19014 …_mmwUdN0mTpu66Ey_HYJufA@fakeemail.com,Init JNI in Bluetooth Service not the Bluetooth State machine
19107 …tform/packages/apps/Bluetooth,fake_Xh0ViHRERGyTJsvnoblSsw@fakeemail.com,Clean up A2DP State Machine
[all …]