/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
D | MusicService.java | 94 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/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | Playback.java | 65 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/browseable/MidiSynth/src/com.example.android.common.midi/synth/ |
D | SynthVoice.java | 27 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/ |
D | SynthVoice.java | 27 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/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | StreamRetentionFragment.java | 24 CardStreamState mState; field in StreamRetentionFragment 33 mState = state; in storeCardStream() 37 return mState; in getCardStream()
|
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/ |
D | BluetoothChatService.java | 62 private int mState; field in BluetoothChatService 79 mState = STATE_NONE; in BluetoothChatService() 80 mNewState = mState; in BluetoothChatService() 88 mState = getState(); in updateUserInterfaceTitle() 89 Log.d(TAG, "updateUserInterfaceTitle() " + mNewState + " -> " + mState); in updateUserInterfaceTitle() 90 mNewState = mState; in updateUserInterfaceTitle() 100 return mState; in getState() 145 if (mState == STATE_CONNECTING) { in connect() 236 mState = STATE_NONE; in stop() 252 if (mState != STATE_CONNECTED) return; in write() [all …]
|
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
D | LocalPlayer.java | 65 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/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
D | SoundRecorder.java | 54 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()
|
D | UIAnimation.java | 44 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()
|
D | MainActivity.java | 54 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/ApiDemos/src/com/example/android/apis/view/ |
D | WindowFocusObserver.java | 35 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()
|
D | GameControllerInput.java | 350 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/ |
D | NoteEditor.java | 76 private int mState; field in NoteEditor 164 mState = STATE_EDIT; in onCreate() 173 mState = STATE_INSERT; in onCreate() 215 mState = STATE_EDIT; in onCreate() 300 } else if (mState == STATE_EDIT) { in onStop() 303 } else if (mState == STATE_INSERT) { in onStop() 305 mState = STATE_EDIT; in onStop() 326 if (mState == STATE_EDIT) { in onCreateOptionsMenu() 471 if (mState == STATE_INSERT) { in updateNote() 527 if (mState == STATE_EDIT) { in cancelNote() [all …]
|
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/ |
D | BluetoothChatService.java | 62 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/ |
D | BatchStepSensorFragment.java | 101 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/ |
D | JetBoyView.java | 159 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 …]
|
D | JetBoy.java | 126 Log.d("JB VIEW", "state is " + mJetBoyThread.mState); in onClick()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
D | LabelMaker.java | 71 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/ |
D | Camera2BasicFragment.java | 266 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/ |
D | Camera2RawFragment.java | 341 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 …]
|