Searched refs:playbackViewModel (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | MetadataController.java | 90 @NonNull PlaybackViewModel playbackViewModel, @NonNull TextView title, in MetadataController() argument 99 playbackViewModel.getPlaybackController().observe(lifecycleOwner, in MetadataController() 101 playbackViewModel.getMetadata().observe(lifecycleOwner, in MetadataController() 128 playbackViewModel.getProgress().observe(lifecycleOwner, in MetadataController() 151 playbackViewModel.getPlaybackStateWrapper().observe(lifecycleOwner, in MetadataController() 163 playbackViewModel.getPlaybackStateWrapper().observe(lifecycleOwner, in MetadataController() 168 combine(playbackViewModel.getMetadata(), playbackViewModel.getProgress(), in MetadataController() 176 pair(playbackViewModel.getMetadata(), playbackViewModel.getProgress()).observe( in MetadataController()
|
D | PlaybackFragment.java | 67 PlaybackViewModel playbackViewModel = PlaybackViewModel.get(activity.getApplication(), in onCreateView() local 74 innerViewModel.init(mMediaSourceViewModel, playbackViewModel); in onCreateView() 79 playbackControls.setModel(playbackViewModel, getViewLifecycleOwner()); in onCreateView() 80 playbackViewModel.getPlaybackStateWrapper().observe(getViewLifecycleOwner(), in onCreateView() 110 playbackViewModel.getMetadata().observe(getViewLifecycleOwner(), in onCreateView() 138 void init(MediaSourceViewModel mediaSourceViewModel, PlaybackViewModel playbackViewModel) { in init() argument 140 && mPlaybackViewModel == playbackViewModel) { in init() 143 mPlaybackViewModel = playbackViewModel; in init() 148 mTitle = mapNonNull(playbackViewModel.getMetadata(), MediaItemMetadata::getTitle); in init() 149 mSubtitle = mapNonNull(playbackViewModel.getMetadata(), MediaItemMetadata::getArtist); in init()
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | MediaActivity.java | 174 PlaybackViewModel playbackViewModel = getPlaybackViewModel(); in onCreate() local 181 localViewModel.init(playbackViewModel); in onCreate() 196 mMiniPlaybackControls.setModel(playbackViewModel, this, maxArtSize); in onCreate() 213 playbackViewModel.getPlaybackController().observe(this, in onCreate() 219 playbackViewModel.getPlaybackStateWrapper().observe(this, in onCreate() 562 PlaybackViewModel playbackViewModel = getPlaybackViewModel(); in onRootLoaded() local 563 handlePlaybackState(playbackViewModel.getPlaybackStateWrapper().getValue(), false); in onRootLoaded() 603 void init(@NonNull PlaybackViewModel playbackViewModel) { in init() argument 604 if (mPlaybackViewModel == playbackViewModel) { in init() 607 mPlaybackViewModel = playbackViewModel; in init()
|
/packages/apps/Car/Media/src/com/android/car/media/service/ |
D | MediaConnectorService.java | 71 PlaybackViewModel playbackViewModel = PlaybackViewModel.get(getApplication(), in onStartCommand() local 77 playbackViewModel.getPlaybackStateWrapper().observe(this, in onStartCommand() 86 playbackViewModel.getPlaybackController().getValue().prepare(); in onStartCommand() 93 playbackViewModel.getPlaybackController().getValue().play(); in onStartCommand()
|
/packages/apps/Car/Cluster/src/android/car/cluster/ |
D | MusicFragment.java | 56 PlaybackViewModel playbackViewModel = in onCreateView() local 87 playbackViewModel, in onCreateView() local
|