Home
last modified time | relevance | path

Searched refs:PlaybackViewModel (Results 1 – 16 of 16) 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;
72 private PlaybackViewModel mModel;
73 private PlaybackViewModel.PlaybackController mController;
115 public void setModel(@NonNull PlaybackViewModel model, @NonNull LifecycleOwner owner) { in setModel()
159 private void onPlaybackStateChanged(@Nullable PlaybackViewModel.PlaybackStateWrapper state) { in onPlaybackStateChanged()
204 private int convertMainAction(@Nullable PlaybackViewModel.PlaybackStateWrapper state) { in convertMainAction()
205 @PlaybackViewModel.Action int action = in convertMainAction()
206 (state != null) ? state.getMainAction() : PlaybackViewModel.ACTION_DISABLED; in convertMainAction()
208 case PlaybackViewModel.ACTION_DISABLED: in convertMainAction()
210 case PlaybackViewModel.ACTION_PLAY: in convertMainAction()
[all …]
DPlaybackFragment.java56 import com.android.car.media.common.playback.PlaybackViewModel;
57 import com.android.car.media.common.playback.PlaybackViewModel.PlaybackStateWrapper;
75 private PlaybackViewModel mPlaybackViewModel;
92 mPlaybackViewModel = PlaybackViewModel.get(application, MEDIA_SOURCE_MODE_PLAYBACK); in onCreateView()
230 private PlaybackViewModel mPlaybackViewModel;
238 PlaybackViewModel playbackViewModel, MediaItemsRepository mediaItemsRepository) { in init()
DMinimizedPlaybackControlBar.java30 import com.android.car.media.common.playback.PlaybackViewModel;
45 private PlaybackViewModel mPlaybackViewModel;
86 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;
95 @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.java25 import com.android.car.media.common.playback.PlaybackViewModel.PlaybackStateWrapper;
DPlaybackErrorsHelper.java29 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;
82 private PlaybackViewModel.PlaybackController mPlaybackController;
99 private PlaybackViewModel.PlaybackStateWrapper mCurrentPlaybackStateWrapper;
145 PlaybackViewModel playbackViewModel = getPlaybackViewModel(); in onCreate()
209 private void handlePlaybackState(PlaybackViewModel.PlaybackStateWrapper state, in handlePlaybackState()
218 PlaybackViewModel.PlaybackStateWrapper state, boolean ignoreSameState) {
487 PlaybackViewModel playbackViewModel = getPlaybackViewModel(); in onRootLoaded()
500 private PlaybackViewModel getPlaybackViewModel() { in getPlaybackViewModel()
501 return PlaybackViewModel.get(getApplication(), MEDIA_SOURCE_MODE_BROWSE); in getPlaybackViewModel()
523 private PlaybackViewModel mPlaybackViewModel;
[all …]
DPlaybackFragment.java54 import com.android.car.media.common.playback.PlaybackViewModel;
104 private PlaybackViewModel.PlaybackController mController;
761 private PlaybackViewModel getPlaybackViewModel() { in getPlaybackViewModel()
762 return PlaybackViewModel.get(getActivity().getApplication(), MEDIA_SOURCE_MODE_BROWSE); in getPlaybackViewModel()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/audio/
DMediaViewModel.java40 import com.android.car.media.common.playback.PlaybackViewModel;
56 private PlaybackViewModel mPlaybackViewModel;
76 PlaybackViewModel playbackViewModel) { in MediaViewModel()
89 mPlaybackViewModel = PlaybackViewModel.get(getApplication(), in onCreate()
140 PlaybackViewModel getPlaybackViewModel() { in getPlaybackViewModel()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java73 public class PlaybackViewModel extends AndroidViewModel { class
80 private static PlaybackViewModel[] sInstances = new PlaybackViewModel[2];
83 public static PlaybackViewModel get(@NonNull Application application, int mode) { in get()
85 sInstances[mode] = new PlaybackViewModel(application, mode); in get()
154 private PlaybackViewModel(Application application, int mode) { in PlaybackViewModel() method in PlaybackViewModel
160 public PlaybackViewModel(Application application, in PlaybackViewModel() method in PlaybackViewModel
/packages/apps/Car/Media/src/com/android/car/media/service/
DMediaConnectorService.java34 import com.android.car.media.common.playback.PlaybackViewModel;
71 PlaybackViewModel playbackViewModel = PlaybackViewModel.get(getApplication(), in onStartCommand()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DMusicFragment.java36 import com.android.car.media.common.playback.PlaybackViewModel;
56 PlaybackViewModel playbackViewModel = in onCreateView()
57 PlaybackViewModel.get(activity.getApplication(), MEDIA_SOURCE_MODE_PLAYBACK); in onCreateView()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DPlaybackViewModelTest.java89 private PlaybackViewModel mPlaybackViewModel;
101 mPlaybackViewModel = new PlaybackViewModel(application, mBrowsingStateLD, in setUp()
123 CaptureObserver<PlaybackViewModel.PlaybackStateWrapper> observer = new CaptureObserver<>(); in testGetPlaybackState()
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/
DMediaViewModelTest.java38 import com.android.car.media.common.playback.PlaybackViewModel;
66 private PlaybackViewModel mPlaybackViewModel;