Lines Matching refs:stateObj
27 public static int getState(Object stateObj) {
28 return ((PlaybackState)stateObj).getState();
31 public static long getPosition(Object stateObj) {
32 return ((PlaybackState)stateObj).getPosition();
35 public static long getBufferedPosition(Object stateObj) {
36 return ((PlaybackState)stateObj).getBufferedPosition();
39 public static float getPlaybackSpeed(Object stateObj) {
40 return ((PlaybackState)stateObj).getPlaybackSpeed();
43 public static long getActions(Object stateObj) {
44 return ((PlaybackState)stateObj).getActions();
47 public static CharSequence getErrorMessage(Object stateObj) {
48 return ((PlaybackState)stateObj).getErrorMessage();
51 public static long getLastPositionUpdateTime(Object stateObj) {
52 return ((PlaybackState)stateObj).getLastPositionUpdateTime();
55 public static List<Object> getCustomActions(Object stateObj) {
56 return (List)((PlaybackState)stateObj).getCustomActions();
59 public static long getActiveQueueItemId(Object stateObj) {
60 return ((PlaybackState)stateObj).getActiveQueueItemId();
67 PlaybackState.Builder stateObj = new PlaybackState.Builder();
68 stateObj.setState(state, position, speed, updateTime);
69 stateObj.setBufferedPosition(bufferedPosition);
70 stateObj.setActions(actions);
71 stateObj.setErrorMessage(errorMessage);
73 stateObj.addCustomAction((PlaybackState.CustomAction) customAction);
75 stateObj.setActiveQueueItemId(activeItemId);
76 return stateObj.build();