Home
last modified time | relevance | path

Searched refs:MediaItemStatus (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
DSessionManager.java23 import androidx.mediarouter.media.MediaItemStatus;
134 return removeItem(iid, MediaItemStatus.PLAYBACK_STATE_CANCELED); in remove()
148 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING in seek()
149 || item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in seek()
257 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING in suspend()
258 || item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in suspend()
259 item.setState(MediaItemStatus.PLAYBACK_STATE_PENDING); in suspend()
336 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PENDING) { in updatePlaybackState()
337 item.setState(mPaused ? MediaItemStatus.PLAYBACK_STATE_PAUSED in updatePlaybackState()
338 : MediaItemStatus.PLAYBACK_STATE_PLAYING); in updatePlaybackState()
[all …]
DRemotePlayer.java25 import androidx.mediarouter.media.MediaItemStatus;
58 String itemId, MediaItemStatus itemStatus) {
63 if (state == MediaItemStatus.PLAYBACK_STATE_FINISHED) {
65 } else if (state == MediaItemStatus.PLAYBACK_STATE_ERROR) {
133 String itemId, MediaItemStatus itemStatus) { in play()
139 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in play()
175 String itemId, MediaItemStatus itemStatus) { in getStatus()
178 if (state == MediaItemStatus.PLAYBACK_STATE_PLAYING in getStatus()
179 || state == MediaItemStatus.PLAYBACK_STATE_PAUSED in getStatus()
180 || state == MediaItemStatus.PLAYBACK_STATE_PENDING) { in getStatus()
[all …]
DPlaylistItem.java23 import androidx.mediarouter.media.MediaItemStatus;
37 private int mPlaybackState = MediaItemStatus.PLAYBACK_STATE_PENDING;
114 public MediaItemStatus getStatus() { in getStatus()
115 return new MediaItemStatus.Builder(mPlaybackState) in getStatus()
DSampleMediaRouterActivity.java63 import androidx.mediarouter.media.MediaItemStatus;
564 if (state == MediaItemStatus.PLAYBACK_STATE_PLAYING in updateProgress()
565 || state == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in updateProgress()
588 case MediaItemStatus.PLAYBACK_STATE_PLAYING: in updateUi()
591 case MediaItemStatus.PLAYBACK_STATE_PAUSED: in updateUi()
594 case MediaItemStatus.PLAYBACK_STATE_PENDING: in updateUi()
595 case MediaItemStatus.PLAYBACK_STATE_BUFFERING: in updateUi()
DLocalPlayer.java41 import androidx.mediarouter.media.MediaItemStatus;
127 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING) { in play()
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
DMediaItemStatus.java60 public final class MediaItemStatus { class
198 MediaItemStatus(Bundle bundle) { in MediaItemStatus() method in MediaItemStatus
306 public static MediaItemStatus fromBundle(Bundle bundle) { in fromBundle()
307 return bundle != null ? new MediaItemStatus(bundle) : null; in fromBundle()
332 public Builder(MediaItemStatus status) { in Builder()
388 public MediaItemStatus build() { in build()
389 return new MediaItemStatus(mBundle); in build()
DRemotePlaybackClient.java675 MediaItemStatus itemStatus = MediaItemStatus.fromBundle( in performItemAction()
898 MediaItemStatus itemStatus = MediaItemStatus.fromBundle( in onReceive()
960 String itemId, MediaItemStatus itemStatus) { in onItemStatusChanged()
1013 String itemId, MediaItemStatus itemStatus) { in onResult()
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/
DMediaItemStatus.java61 public final class MediaItemStatus { class
199 MediaItemStatus(Bundle bundle) { in MediaItemStatus() method in MediaItemStatus
307 public static MediaItemStatus fromBundle(Bundle bundle) { in fromBundle()
308 return bundle != null ? new MediaItemStatus(bundle) : null; in fromBundle()
333 public Builder(MediaItemStatus status) { in Builder()
389 public MediaItemStatus build() { in build()
390 return new MediaItemStatus(mBundle); in build()
DRemotePlaybackClient.java676 MediaItemStatus itemStatus = MediaItemStatus.fromBundle( in performItemAction()
899 MediaItemStatus itemStatus = MediaItemStatus.fromBundle( in onReceive()
961 String itemId, MediaItemStatus itemStatus) { in onItemStatusChanged()
1014 String itemId, MediaItemStatus itemStatus) { in onResult()
/frameworks/av/packages/MediaComponents/src/com/android/media/
DRoutePlayer.java28 import com.android.support.mediarouter.media.MediaItemStatus;
53 String itemId, MediaItemStatus itemStatus) {
99 String itemId, MediaItemStatus itemStatus) { in onSeekTo()
126 String itemId, MediaItemStatus itemStatus) { in openVideo()
149 String itemId, MediaItemStatus itemStatus) { in playInternal()
160 private void updateItemStatus(String itemId, MediaItemStatus itemStatus) { in updateItemStatus()
167 public void onPlayerStateChanged(MediaItemStatus itemStatus) { } in onPlayerStateChanged()
/frameworks/support/media-widget/src/main/java/androidx/media/widget/
DRoutePlayer.java30 import androidx.mediarouter.media.MediaItemStatus;
57 String itemId, MediaItemStatus itemStatus) {
110 String itemId, MediaItemStatus itemStatus) { in onSeekTo()
162 String itemId, MediaItemStatus itemStatus) { in openVideo()
187 String itemId, MediaItemStatus itemStatus) { in playInternal()
198 private void updateItemStatus(String itemId, MediaItemStatus itemStatus) { in updateItemStatus()
213 public void onPlayerStateChanged(MediaItemStatus itemStatus) { } in onPlayerStateChanged()
/frameworks/support/mediarouter/api/
Dcurrent.txt129 public final class MediaItemStatus {
131 method public static androidx.mediarouter.media.MediaItemStatus fromBundle(android.os.Bundle);
149 public static final class MediaItemStatus.Builder {
150 ctor public MediaItemStatus.Builder(int);
151 ctor public MediaItemStatus.Builder(androidx.mediarouter.media.MediaItemStatus);
152 method public androidx.mediarouter.media.MediaItemStatus build();
153 method public androidx.mediarouter.media.MediaItemStatus.Builder setContentDuration(long);
154 method public androidx.mediarouter.media.MediaItemStatus.Builder setContentPosition(long);
155 method public androidx.mediarouter.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
156 method public androidx.mediarouter.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
/frameworks/support/mediarouter/api_legacy/
D27.0.0.txt129 public final class MediaItemStatus {
131 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
149 public static final class MediaItemStatus.Builder {
150 ctor public MediaItemStatus.Builder(int);
151 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
152 method public android.support.v7.media.MediaItemStatus build();
153 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
154 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
155 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
156 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
D26.0.0.txt129 public final class MediaItemStatus {
131 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
149 public static final class MediaItemStatus.Builder {
150 ctor public MediaItemStatus.Builder(int);
151 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
152 method public android.support.v7.media.MediaItemStatus build();
153 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
154 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
155 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
156 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
Dcurrent.txt129 public final class MediaItemStatus {
131 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
149 public static final class MediaItemStatus.Builder {
150 ctor public MediaItemStatus.Builder(int);
151 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
152 method public android.support.v7.media.MediaItemStatus build();
153 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
154 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
155 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
156 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
D27.1.0.txt129 public final class MediaItemStatus {
131 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
149 public static final class MediaItemStatus.Builder {
150 ctor public MediaItemStatus.Builder(int);
151 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
152 method public android.support.v7.media.MediaItemStatus build();
153 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
154 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
155 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
156 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
D28.0.0-alpha1.txt129 public final class MediaItemStatus {
131 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
149 public static final class MediaItemStatus.Builder {
150 ctor public MediaItemStatus.Builder(int);
151 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
152 method public android.support.v7.media.MediaItemStatus build();
153 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
154 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
155 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
156 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
D26.1.0.txt129 public final class MediaItemStatus {
131 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
149 public static final class MediaItemStatus.Builder {
150 ctor public MediaItemStatus.Builder(int);
151 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
152 method public android.support.v7.media.MediaItemStatus build();
153 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
154 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
155 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
156 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
DVideoView2ImplBaseWithMp1.java66 import androidx.mediarouter.media.MediaItemStatus;
180 public void onPlayerStateChanged(MediaItemStatus itemStatus) {
185 case MediaItemStatus.PLAYBACK_STATE_PENDING:
189 case MediaItemStatus.PLAYBACK_STATE_PLAYING:
193 case MediaItemStatus.PLAYBACK_STATE_PAUSED:
197 case MediaItemStatus.PLAYBACK_STATE_BUFFERING:
202 case MediaItemStatus.PLAYBACK_STATE_FINISHED:
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
DVideoView2ImplBase.java72 import androidx.mediarouter.media.MediaItemStatus;
191 public void onPlayerStateChanged(MediaItemStatus itemStatus) {
196 case MediaItemStatus.PLAYBACK_STATE_PENDING:
200 case MediaItemStatus.PLAYBACK_STATE_PLAYING:
204 case MediaItemStatus.PLAYBACK_STATE_PAUSED:
208 case MediaItemStatus.PLAYBACK_STATE_BUFFERING:
213 case MediaItemStatus.PLAYBACK_STATE_FINISHED:
/frameworks/av/packages/MediaComponents/src/com/android/widget/
DVideoView2Impl.java76 import com.android.support.mediarouter.media.MediaItemStatus;
195 public void onPlayerStateChanged(MediaItemStatus itemStatus) {
200 case MediaItemStatus.PLAYBACK_STATE_PENDING:
204 case MediaItemStatus.PLAYBACK_STATE_PLAYING:
208 case MediaItemStatus.PLAYBACK_STATE_PAUSED:
212 case MediaItemStatus.PLAYBACK_STATE_BUFFERING:
216 case MediaItemStatus.PLAYBACK_STATE_FINISHED:
/frameworks/support/api/
D22.0.0.txt5042 public final class MediaItemStatus {
5044 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
5062 public static final class MediaItemStatus.Builder {
5063 ctor public MediaItemStatus.Builder(int);
5064 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
5065 method public android.support.v7.media.MediaItemStatus build();
5066 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
5067 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
5068 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
5069 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
D22.1.0.txt5613 public final class MediaItemStatus {
5615 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
5633 public static final class MediaItemStatus.Builder {
5634 ctor public MediaItemStatus.Builder(int);
5635 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
5636 method public android.support.v7.media.MediaItemStatus build();
5637 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
5638 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
5639 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
5640 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
D22.2.0.txt7214 public final class MediaItemStatus {
7216 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
7234 public static final class MediaItemStatus.Builder {
7235 ctor public MediaItemStatus.Builder(int);
7236 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
7237 method public android.support.v7.media.MediaItemStatus build();
7238 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
7239 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
7240 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
7241 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]
D22.2.1.txt7303 public final class MediaItemStatus {
7305 method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
7323 public static final class MediaItemStatus.Builder {
7324 ctor public MediaItemStatus.Builder(int);
7325 ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
7326 method public android.support.v7.media.MediaItemStatus build();
7327 method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
7328 method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
7329 method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
7330 method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
[all …]

12