Home
last modified time | relevance | path

Searched refs:mState (Results 1 – 8 of 8) sorted by relevance

/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DMusicService.java94 State mState = State.Retrieving; field in MusicService
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()
289 if (mState == State.Playing || mState == State.Paused) in processRewindRequest()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DWindowFocusObserver.java35 TextView mState; field in WindowFocusObserver
41 mState.setText("Gained focus");
46 mState.setText("Lost focus");
55 mState = (TextView)findViewById(R.id.focus_state); in onCreate()
98 mState.setText(token.isFocused() ? "Focused" : "Not focused"); in onAttachedToWindow()
DGameControllerInput.java350 private InputDeviceState mState; field in GameControllerInput.SummaryAdapter
368 if (mState != null) { in onItemClick()
370 mContext, mState.getDevice().toString(), Toast.LENGTH_LONG); in onItemClick()
376 mState = state; in show()
/development/samples/NotePad/src/com/example/android/notepad/
DNoteEditor.java75 private int mState; field in NoteEditor
159 mState = STATE_EDIT; in onCreate()
168 mState = STATE_INSERT; in onCreate()
222 mState = STATE_EDIT; in onCreate()
268 if (mState == STATE_EDIT) { in onResume()
276 } else if (mState == STATE_INSERT) { in onResume()
367 } else if (mState == STATE_EDIT) { in onPause()
370 } else if (mState == STATE_INSERT) { in onPause()
372 mState = STATE_EDIT; in onPause()
394 if (mState == STATE_EDIT) { in onCreateOptionsMenu()
[all …]
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChatService.java62 private int mState; field in BluetoothChatService
77 mState = STATE_NONE; in BluetoothChatService()
86 if (D) Log.d(TAG, "setState() " + mState + " -> " + state); in setState()
87 mState = state; in setState()
96 return mState; in getState()
133 if (mState == STATE_CONNECTING) { in connect()
223 if (mState != STATE_CONNECTED) return; in write()
297 while (mState != STATE_CONNECTED) { in run()
310 switch (mState) { in run()
/development/samples/JetBoy/src/com/example/android/jetboy/
DJetBoyView.java159 public int mState; field in JetBoyView.JetBoyThread
363 mState = STATE_START; in JetBoyThread()
480 if (mState == STATE_RUNNING) { in doDraw()
482 } else if (mState == STATE_START) { in doDraw()
484 } else if (mState == STATE_PLAY || mState == STATE_LOSE) { in doDraw()
625 if (mState == STATE_RUNNING) { in run()
655 else if (mState == STATE_PLAY && !mInitialized) in run()
658 } else if (mState == STATE_LOSE) { in run()
1052 return mState; in getGameState()
1082 if (mState != state) { in setGameState()
[all …]
DJetBoy.java126 Log.d("JB VIEW", "state is " + mJetBoyThread.mState); in onClick()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DLabelMaker.java71 mState = STATE_NEW; in LabelMaker()
81 mState = STATE_INITIALIZED; in initialize()
107 if (mState > STATE_NEW) { in shutdown()
111 mState = STATE_NEW; in shutdown()
364 if (mState != oldState) { in checkState()
367 mState = newState; in checkState()
410 private int mState; field in LabelMaker