Searched refs:PlaybackViewModel (Results 1 – 13 of 13) sorted by relevance
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | MediaButtonController.java | 40 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 …]
|
D | PlaybackFragment.java | 46 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()
|
D | MinimizedPlaybackControlBar.java | 28 import com.android.car.media.common.playback.PlaybackViewModel; 42 private PlaybackViewModel mPlaybackViewModel; 74 public void setModel(@NonNull PlaybackViewModel model, @NonNull LifecycleOwner owner, in setModel()
|
D | MetadataController.java | 36 import com.android.car.media.common.playback.PlaybackViewModel; 42 private PlaybackViewModel.PlaybackController mController; 90 @NonNull PlaybackViewModel playbackViewModel, @NonNull TextView title, in MetadataController()
|
D | ControlBarHelper.java | 28 import com.android.car.media.common.playback.PlaybackViewModel; 39 @NonNull PlaybackViewModel model, @Nullable ProgressBar progressBar, in initProgressBar()
|
D | PlaybackControlsActionBar.java | 28 import com.android.car.media.common.playback.PlaybackViewModel; 79 public void setModel(@NonNull PlaybackViewModel model, @NonNull LifecycleOwner owner) { in setModel()
|
D | CustomPlaybackAction.java | 24 import com.android.car.media.common.playback.PlaybackViewModel.PlaybackStateWrapper;
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | MediaActivity.java | 61 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()
|
D | PlaybackFragment.java | 51 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/ |
D | MediaConnectorService.java | 32 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/ |
D | PlaybackViewModel.java | 70 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/ |
D | MusicFragment.java | 34 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/ |
D | PlaybackViewModelTest.java | 80 private PlaybackViewModel mPlaybackViewModel; 90 mPlaybackViewModel = new PlaybackViewModel(application, mMediaControllerLiveData); in setUp() 110 CaptureObserver<PlaybackViewModel.PlaybackStateWrapper> observer = new CaptureObserver<>(); in testGetPlaybackState()
|