public static Object newInstance(int state, long position, long bufferedPosition, float speed, long actions, CharSequence errorMessage, long updateTime, List<Object> customActions, long activeItemId) { Builder stateObj = new Builder(); stateObj.setState(state, position, speed, updateTime); stateObj.setBufferedPosition(bufferedPosition); stateObj.setActions(actions); stateObj.setErrorMessage(errorMessage); Iterator i$ = customActions.iterator(); while (i$.hasNext()) { stateObj.addCustomAction((CustomAction) i$.next()); } stateObj.setActiveQueueItemId(activeItemId); return stateObj.build(); }
public static Object newInstance(int state, long position, long bufferedPosition, float speed, long actions, CharSequence errorMessage, long updateTime, List<Object> customActions, long activeItemId, Bundle extras) { Builder stateObj = new Builder(); stateObj.setState(state, position, speed, updateTime); stateObj.setBufferedPosition(bufferedPosition); stateObj.setActions(actions); stateObj.setErrorMessage(errorMessage); Iterator i$ = customActions.iterator(); while (i$.hasNext()) { stateObj.addCustomAction((CustomAction) i$.next()); } stateObj.setActiveQueueItemId(activeItemId); stateObj.setExtras(extras); return stateObj.build(); }
public static it a(Object paramObject) { if ((paramObject == null) || (Build.VERSION.SDK_INT < 21)) { return null; } return new it(((PlaybackState.CustomAction)paramObject).getAction(), ((PlaybackState.CustomAction)paramObject).getName(), ((PlaybackState.CustomAction)paramObject).getIcon(), ((PlaybackState.CustomAction)paramObject).getExtras()); }