Home
last modified time | relevance | path

Searched refs:getState (Results 1 – 15 of 15) sorted by relevance

/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DSessionManager.java151 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING in seek()
152 || item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in seek()
248 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING in suspend()
249 || item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in suspend()
327 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PENDING) { in updatePlaybackState()
333 } else if (mPaused && item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING) { in updatePlaybackState()
336 } else if (!mPaused && item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in updatePlaybackState()
357 } else if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING in removeItem()
358 || item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED){ in removeItem()
DPlaylistItem.java90 public int getState() { in getState() method in PlaylistItem
DRemotePlayer.java141 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in play()
374 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in enqueueInternal()
DLocalPlayer.java129 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING) { in play()
DMainActivity.java532 int state = item.getState(); in updateProgress()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyNetworkMonitor.java48 + "type=" + ni.getType() + ", state=" + ni.getState()); in performReceive()
50 if (NetworkInfo.State.CONNECTED == ni.getState()) { in performReceive()
53 } else if (NetworkInfo.State.DISCONNECTED == ni.getState()) { in performReceive()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMediaNotificationManager.java197 if (state != null && (state.getState() == PlaybackState.STATE_STOPPED ||
198 state.getState() == PlaybackState.STATE_NONE)) {
300 if (mPlaybackState.getState() == PlaybackState.STATE_PLAYING) { in addPlayPauseAction()
319 if (mPlaybackState.getState() == PlaybackState.STATE_PLAYING in setNotificationPlaybackState()
336 builder.setOngoing(mPlaybackState.getState() == PlaybackState.STATE_PLAYING); in setNotificationPlaybackState()
DMusicService.java389 LogHelper.d(TAG, "pause. current state=" + mPlayback.getState()); in onPause()
395 LogHelper.d(TAG, "stop. current state=" + mPlayback.getState()); in onStop()
486 LogHelper.d(TAG, "handlePlayRequest: mState=" + mPlayback.getState()); in handlePlayRequest()
512 LogHelper.d(TAG, "handlePauseRequest: mState=" + mPlayback.getState()); in handlePauseRequest()
523 … LogHelper.d(TAG, "handleStopRequest: mState=" + mPlayback.getState() + " error=", withError); in handleStopRequest()
605 LogHelper.d(TAG, "updatePlaybackState, playback state=" + mPlayback.getState()); in updatePlaybackState()
615 int state = mPlayback.getState(); in updatePlaybackState()
DQueueFragment.java111 LogHelper.d(TAG, "Received playback state change to state ", state.getState());
198 switch (state.getState()) { in onPlaybackStateChanged()
249 PlaybackState.STATE_NONE : mPlaybackState.getState();
DPlayback.java128 public int getState() { in getState() method in Playback
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatService.java88 mState = getState(); in updateUserInterfaceTitle()
99 public synchronized int getState() { in getState() method in BluetoothChatService
DBluetoothChatFragment.java136 if (mChatService.getState() == BluetoothChatService.STATE_NONE) { in onResume()
209 if (mChatService.getState() != BluetoothChatService.STATE_CONNECTED) { in sendMessage()
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChat.java129 if (mChatService.getState() == BluetoothChatService.STATE_NONE) { in onResume()
202 if (mChatService.getState() != BluetoothChatService.STATE_CONNECTED) { in sendMessage()
DBluetoothChatService.java95 public synchronized int getState() { in getState() method in BluetoothChatService
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DCard.java131 public int getState() { in getState() method in Card