Java 类android.media.session.PlaybackState.CustomAction 实例源码

项目:letv    文件:PlaybackStateCompatApi21.java   
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();
}
项目:letv    文件:PlaybackStateCompatApi22.java   
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();
}
项目:boohee_v5.6    文件:PlaybackStateCompatApi22.java   
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();
}
项目:FMTech    文件:it.java   
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());
}