Home
last modified time | relevance | path

Searched refs:mState (Results 1 – 22 of 22) 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/Support7Demos/src/com/example/android/supportv7/media/
DLocalPlayer.java61 private int mState = STATE_IDLE; field in LocalPlayer
138 if (mState == STATE_PLAYING || mState == STATE_PAUSED) { in seek()
141 } else if (mState == STATE_IDLE || mState == STATE_PREPARING_FOR_PLAY in seek()
142 || mState == STATE_PREPARING_FOR_PAUSE) { in seek()
151 if (mState == STATE_PLAYING || mState == STATE_PAUSED) { in getStatus()
169 if (mState == STATE_PLAYING) { in pause()
171 mState = STATE_PAUSED; in pause()
172 } else if (mState == STATE_PREPARING_FOR_PLAY) { in pause()
173 mState = STATE_PREPARING_FOR_PAUSE; in pause()
182 if (mState == STATE_READY || mState == STATE_PAUSED) { in resume()
[all …]
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DPlayback.java65 private int mState; field in Playback
109 mState = PlaybackState.STATE_STOPPED; in stop()
111 mCallback.onPlaybackStatusChanged(mState); in stop()
125 this.mState = state; in setState()
129 return mState; in getState()
156 if (mState == PlaybackState.STATE_PAUSED && !mediaHasChanged && mMediaPlayer != null) { in play()
159 mState = PlaybackState.STATE_STOPPED; in play()
169 mState = PlaybackState.STATE_BUFFERING; in play()
187 mCallback.onPlaybackStatusChanged(mState); in play()
200 if (mState == PlaybackState.STATE_PLAYING) { in pause()
[all …]
/development/samples/Support4Demos/src/com/example/android/supportv4/media/
DPlayback.java66 private int mState; field in Playback
110 mState = PlaybackState.STATE_STOPPED; in stop()
112 mCallback.onPlaybackStatusChanged(mState); in stop()
126 this.mState = state; in setState()
130 return mState; in getState()
157 if (mState == PlaybackState.STATE_PAUSED && !mediaHasChanged && mMediaPlayer != null) { in play()
160 mState = PlaybackState.STATE_STOPPED; in play()
170 mState = PlaybackState.STATE_BUFFERING; in play()
188 mCallback.onPlaybackStatusChanged(mState); in play()
201 if (mState == PlaybackState.STATE_PLAYING) { in pause()
[all …]
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSynthVoice.java27 private int mState = STATE_OFF; field in SynthVoice
34 mState = STATE_ON; in noteOn()
40 mState = STATE_OFF; in noteOff()
64 return mState == STATE_OFF; in isDone()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSynthVoice.java27 private int mState = STATE_OFF; field in SynthVoice
34 mState = STATE_ON; in noteOn()
40 mState = STATE_OFF; in noteOff()
64 return mState == STATE_OFF; in isDone()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DLocalPlayer.java65 private int mState = STATE_IDLE; field in LocalPlayer
142 if (mState == STATE_PLAYING || mState == STATE_PAUSED) { in seek()
145 } else if (mState == STATE_IDLE || mState == STATE_PLAY_PENDING) { in seek()
154 if (mState == STATE_PLAYING || mState == STATE_PAUSED) { in getStatus()
172 if (mState == STATE_PLAYING) { in pause()
174 mState = STATE_PAUSED; in pause()
183 if (mState == STATE_READY || mState == STATE_PAUSED) { in resume()
185 mState = STATE_PLAYING; in resume()
186 } else if (mState == STATE_IDLE){ in resume()
187 mState = STATE_PLAY_PENDING; in resume()
[all …]
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DStreamRetentionFragment.java24 CardStreamState mState; field in StreamRetentionFragment
33 mState = state; in storeCardStream()
37 return mState; in getCardStream()
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DUIAnimation.java44 private UIState mState = UIState.HOME; field in UIAnimation
130 mState = UIState.getUIState(index); in zoomImageFromThumb()
131 mListener.onUIStateChanged(mState); in zoomImageFromThumb()
173 mState = UIState.HOME; in zoomImageFromThumb()
174 mListener.onUIStateChanged(mState); in zoomImageFromThumb()
193 private int mState; field in UIAnimation.UIState
196 mState = state; in UIState()
201 if (uiState.mState == state) { in getUIState()
214 if (mState == UIState.HOME) { in transitionToHome()
DSoundRecorder.java54 private State mState = State.IDLE; field 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()
DMainActivity.java54 private AppState mState = AppState.READY; field in MainActivity
87 mState = AppState.PLAYING_MUSIC; in onUIStateChanged()
92 mState = AppState.RECORDING; in onUIStateChanged()
111 mState = AppState.READY; in onUIStateChanged()
118 mState = AppState.PLAYING_VOICE; in onUIStateChanged()
123 switch (mState) { in onUIStateChanged()
125 mState = AppState.READY; in onUIStateChanged()
130 mState = AppState.READY; in onUIStateChanged()
135 mState = AppState.READY; in onUIStateChanged()
268 mState = AppState.READY; in onPlaybackStopped()
/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/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/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatService.java62 private int mState; field in BluetoothChatService
78 mState = STATE_NONE; in BluetoothChatService()
88 Log.d(TAG, "setState() " + mState + " -> " + state); in setState()
89 mState = state; in setState()
99 return mState; in getState()
144 if (mState == STATE_CONNECTING) { in connect()
248 if (mState != STATE_CONNECTED) return; in write()
322 while (mState != STATE_CONNECTED) { in run()
335 switch (mState) { in run()
476 while (mState == STATE_CONNECTED) { in run()
/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/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/
DBatchStepSensorFragment.java101 private int mState = STATE_OTHER; field in BatchStepSensorFragment
197 mState = STATE_OTHER; in onCardClick()
239 mState = STATE_COUNTER; in registerEventListener()
248 mState = STATE_DETECTOR; in registerEventListener()
425 outState.putInt(BUNDLE_STATE, mState); in onSaveInstanceState()
438 mState = savedInstanceState.getInt(BUNDLE_STATE); in onActivityCreated()
442 if (mState == STATE_DETECTOR) { in onActivityCreated()
444 } else if (mState == STATE_COUNTER) { in onActivityCreated()
469 if (mState == STATE_COUNTER) { in showCountingCards()
471 } else if (mState == STATE_DETECTOR) { in showCountingCards()
/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
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java266 private int mState = STATE_PREVIEW; field in Camera2BasicFragment
290 switch (mState) {
305 mState = STATE_PICTURE_TAKEN;
319 mState = STATE_WAITING_NON_PRECAPTURE;
327 mState = STATE_PICTURE_TAKEN;
781 mState = STATE_WAITING_LOCK; in lockFocus()
799 mState = STATE_WAITING_PRECAPTURE; in runPrecaptureSequence()
878 mState = STATE_PREVIEW; in unlockFocus()
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCamera2RawFragment.java341 private int mState = STATE_CLOSED; field in Camera2RawFragment
362 mState = STATE_OPENED;
376 mState = STATE_CLOSED;
387 mState = STATE_CLOSED;
437 switch (mState) {
485 mState = STATE_PREVIEW;
863 mState = STATE_CLOSED; in closeCamera()
952 mState = STATE_PREVIEW; in createCameraPreviewSessionLocked()
1142 if (mState != STATE_CLOSED) { in configureTransform()
1163 if (mState != STATE_PREVIEW) { in takePicture()
[all …]