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 | 65 PlaybackViewModel playbackViewModel = PlaybackViewModel.get(activity.getApplication()); in onCreateView() local 70 innerViewModel.init(mMediaSourceViewModel, playbackViewModel); in onCreateView() 75 playbackControls.setModel(playbackViewModel, getViewLifecycleOwner()); in onCreateView() 76 playbackViewModel.getPlaybackStateWrapper().observe(getViewLifecycleOwner(), in onCreateView() 106 playbackViewModel.getMetadata().observe(getViewLifecycleOwner(), in onCreateView() 134 void init(MediaSourceViewModel mediaSourceViewModel, PlaybackViewModel playbackViewModel) { in init() argument 136 && mPlaybackViewModel == playbackViewModel) { in init() 139 mPlaybackViewModel = playbackViewModel; in init() 144 mTitle = mapNonNull(playbackViewModel.getMetadata(), MediaItemMetadata::getTitle); in init() 145 mSubtitle = mapNonNull(playbackViewModel.getMetadata(), MediaItemMetadata::getArtist); in init()
|
/packages/apps/Car/Media/src/com/android/car/media/service/ |
D | MediaConnectorService.java | 69 PlaybackViewModel playbackViewModel = PlaybackViewModel.get(getApplication()); in onStartCommand() local 74 playbackViewModel.getPlaybackStateWrapper().observe(this, in onStartCommand() 83 playbackViewModel.getPlaybackController().getValue().prepare(); in onStartCommand() 90 playbackViewModel.getPlaybackController().getValue().play(); in onStartCommand()
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | MediaActivity.java | 254 PlaybackViewModel playbackViewModel = getPlaybackViewModel(); in onCreate() local 261 localViewModel.init(playbackViewModel); in onCreate() 291 handlePlaybackState(playbackViewModel.getPlaybackStateWrapper().getValue(), false); in onCreate() 303 mMiniPlaybackControls.setModel(playbackViewModel, this, maxArtSize); in onCreate() 318 playbackViewModel.getPlaybackController().observe(this, in onCreate() 324 playbackViewModel.getPlaybackStateWrapper().observe(this, in onCreate() 803 void init(@NonNull PlaybackViewModel playbackViewModel) { in init() argument 804 if (mPlaybackViewModel == playbackViewModel) { in init() 807 mPlaybackViewModel = playbackViewModel; in init()
|
/packages/apps/Car/Cluster/src/android/car/cluster/ |
D | MusicFragment.java | 54 PlaybackViewModel playbackViewModel = PlaybackViewModel.get(activity.getApplication()); in onCreateView() local 84 playbackViewModel, in onCreateView() local
|