Home
last modified time | relevance | path

Searched refs:PlaybackViewModel (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMediaButtonController.java40 import com.android.car.media.common.playback.PlaybackViewModel;
68 private PlaybackViewModel mModel;
69 private PlaybackViewModel.PlaybackController mController;
108 public void setModel(@NonNull PlaybackViewModel model, @NonNull LifecycleOwner owner) { in setModel()
151 private void onPlaybackStateChanged(@Nullable PlaybackViewModel.PlaybackStateWrapper state) { in onPlaybackStateChanged()
196 private int convertMainAction(@Nullable PlaybackViewModel.PlaybackStateWrapper state) { in convertMainAction()
197 @PlaybackViewModel.Action int action = in convertMainAction()
198 (state != null) ? state.getMainAction() : PlaybackViewModel.ACTION_DISABLED; in convertMainAction()
200 case PlaybackViewModel.ACTION_DISABLED: in convertMainAction()
202 case PlaybackViewModel.ACTION_PLAY: in convertMainAction()
[all …]
DPlaybackFragment.java46 import com.android.car.media.common.playback.PlaybackViewModel;
65 PlaybackViewModel playbackViewModel = PlaybackViewModel.get(activity.getApplication()); in onCreateView()
127 private PlaybackViewModel mPlaybackViewModel;
134 void init(MediaSourceViewModel mediaSourceViewModel, PlaybackViewModel playbackViewModel) { in init()
DMinimizedPlaybackControlBar.java28 import com.android.car.media.common.playback.PlaybackViewModel;
42 private PlaybackViewModel mPlaybackViewModel;
74 public void setModel(@NonNull PlaybackViewModel model, @NonNull LifecycleOwner owner, in setModel()
DMetadataController.java36 import com.android.car.media.common.playback.PlaybackViewModel;
42 private PlaybackViewModel.PlaybackController mController;
90 @NonNull PlaybackViewModel playbackViewModel, @NonNull TextView title, in MetadataController()
DControlBarHelper.java28 import com.android.car.media.common.playback.PlaybackViewModel;
39 @NonNull PlaybackViewModel model, @Nullable ProgressBar progressBar, in initProgressBar()
DPlaybackControlsActionBar.java28 import com.android.car.media.common.playback.PlaybackViewModel;
79 public void setModel(@NonNull PlaybackViewModel model, @NonNull LifecycleOwner owner) { in setModel()
DCustomPlaybackAction.java24 import com.android.car.media.common.playback.PlaybackViewModel.PlaybackStateWrapper;
/packages/apps/Car/Media/src/com/android/car/media/
DMediaActivity.java61 import com.android.car.media.common.playback.PlaybackViewModel;
88 private PlaybackViewModel.PlaybackController mPlaybackController;
112 private PlaybackViewModel.PlaybackStateWrapper mCurrentPlaybackStateWrapper;
254 PlaybackViewModel playbackViewModel = getPlaybackViewModel(); in onCreate()
355 private void handlePlaybackState(PlaybackViewModel.PlaybackStateWrapper state, in handlePlaybackState()
420 private String getDisplayedMessage(@Nullable PlaybackViewModel.PlaybackStateWrapper state) { in getDisplayedMessage()
770 public PlaybackViewModel getPlaybackViewModel() { in getPlaybackViewModel()
771 return PlaybackViewModel.get(getApplication()); in getPlaybackViewModel()
794 private PlaybackViewModel mPlaybackViewModel;
803 void init(@NonNull PlaybackViewModel playbackViewModel) { in init()
DPlaybackFragment.java51 import com.android.car.media.common.playback.PlaybackViewModel;
91 private PlaybackViewModel.PlaybackController mController;
611 private PlaybackViewModel getPlaybackViewModel() { in getPlaybackViewModel()
612 return PlaybackViewModel.get(getActivity().getApplication()); in getPlaybackViewModel()
/packages/apps/Car/Media/src/com/android/car/media/service/
DMediaConnectorService.java32 import com.android.car.media.common.playback.PlaybackViewModel;
69 PlaybackViewModel playbackViewModel = PlaybackViewModel.get(getApplication()); in onStartCommand()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java70 public class PlaybackViewModel extends AndroidViewModel { class
77 private static PlaybackViewModel sInstance;
80 public static PlaybackViewModel get(@NonNull Application application) { in get()
82 sInstance = new PlaybackViewModel(application); in get()
140 private PlaybackViewModel(Application application) { in PlaybackViewModel() method in PlaybackViewModel
145 public PlaybackViewModel(Application application, LiveData<MediaControllerCompat> controller) { in PlaybackViewModel() method in PlaybackViewModel
/packages/apps/Car/Cluster/src/android/car/cluster/
DMusicFragment.java34 import com.android.car.media.common.playback.PlaybackViewModel;
54 PlaybackViewModel playbackViewModel = PlaybackViewModel.get(activity.getApplication()); in onCreateView()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DPlaybackViewModelTest.java80 private PlaybackViewModel mPlaybackViewModel;
90 mPlaybackViewModel = new PlaybackViewModel(application, mMediaControllerLiveData); in setUp()
110 CaptureObserver<PlaybackViewModel.PlaybackStateWrapper> observer = new CaptureObserver<>(); in testGetPlaybackState()