public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { super.dump(prefix, fd, writer, args); if (this.mTask != null) { writer.print(prefix); writer.print("mTask="); writer.print(this.mTask); writer.print(" waiting="); writer.println(this.mTask.waiting); } if (this.mCancellingTask != null) { writer.print(prefix); writer.print("mCancellingTask="); writer.print(this.mCancellingTask); writer.print(" waiting="); writer.println(this.mCancellingTask.waiting); } if (this.mUpdateThrottle != 0) { writer.print(prefix); writer.print("mUpdateThrottle="); TimeUtils.formatDuration(this.mUpdateThrottle, writer); writer.print(" mLastLoadCompleteTime="); TimeUtils.formatDuration(this.mLastLoadCompleteTime, SystemClock.uptimeMillis(), writer); writer.println(); } }
@Override public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { super.dump(prefix, fd, writer, args); if (mTask != null) { writer.print(prefix); writer.print("mTask="); writer.print(mTask); writer.print(" waiting="); writer.println(mTask.waiting); } if (mCancellingTask != null) { writer.print(prefix); writer.print("mCancellingTask="); writer.print(mCancellingTask); writer.print(" waiting="); writer.println(mCancellingTask.waiting); } if (mUpdateThrottle != 0) { writer.print(prefix); writer.print("mUpdateThrottle="); TimeUtils.formatDuration(mUpdateThrottle, writer); writer.print(" mLastLoadCompleteTime="); TimeUtils.formatDuration(mLastLoadCompleteTime, SystemClock.uptimeMillis(), writer); writer.println(); } }
String toString(long now) { StringBuilder b = new StringBuilder(); b.append("{ when="); TimeUtils.formatDuration(when - now, b); if (target != null) { if (callback != null) { b.append(" callback="); b.append(callback.getClass().getName()); } else { b.append(" what="); b.append(what); } if (arg1 != 0) { b.append(" arg1="); b.append(arg1); } if (arg2 != 0) { b.append(" arg2="); b.append(arg2); } if (obj != null) { b.append(" obj="); b.append(obj); } b.append(" target="); b.append(target.getClass().getName()); } else { b.append(" barrier="); b.append(arg1); } b.append(" }"); return b.toString(); }
public void dump(String paramString, FileDescriptor paramFileDescriptor, PrintWriter paramPrintWriter, String[] paramArrayOfString) { super.dump(paramString, paramFileDescriptor, paramPrintWriter, paramArrayOfString); if (this.mTask != null) { paramPrintWriter.print(paramString); paramPrintWriter.print("mTask="); paramPrintWriter.print(this.mTask); paramPrintWriter.print(" waiting="); paramPrintWriter.println(this.mTask.waiting); } if (this.mCancellingTask != null) { paramPrintWriter.print(paramString); paramPrintWriter.print("mCancellingTask="); paramPrintWriter.print(this.mCancellingTask); paramPrintWriter.print(" waiting="); paramPrintWriter.println(this.mCancellingTask.waiting); } if (this.mUpdateThrottle != 0L) { paramPrintWriter.print(paramString); paramPrintWriter.print("mUpdateThrottle="); TimeUtils.formatDuration(this.mUpdateThrottle, paramPrintWriter); paramPrintWriter.print(" mLastLoadCompleteTime="); TimeUtils.formatDuration(this.mLastLoadCompleteTime, SystemClock.uptimeMillis(), paramPrintWriter); paramPrintWriter.println(); } }
public void dump(String s, FileDescriptor filedescriptor, PrintWriter printwriter, String as[]) { super.dump(s, filedescriptor, printwriter, as); if (c != null) { printwriter.print(s); printwriter.print("mTask="); printwriter.print(c); printwriter.print(" waiting="); printwriter.println(c.b); } if (d != null) { printwriter.print(s); printwriter.print("mCancellingTask="); printwriter.print(d); printwriter.print(" waiting="); printwriter.println(d.b); } if (e != 0L) { printwriter.print(s); printwriter.print("mUpdateThrottle="); TimeUtils.formatDuration(e, printwriter); printwriter.print(" mLastLoadCompleteTime="); TimeUtils.formatDuration(f, SystemClock.uptimeMillis(), printwriter); printwriter.println(); } }
public void dump(String s, FileDescriptor filedescriptor, PrintWriter printwriter, String as[]) { super.dump(s, filedescriptor, printwriter, as); if (mTask != null) { printwriter.print(s); printwriter.print("mTask="); printwriter.print(mTask); printwriter.print(" waiting="); printwriter.println(mTask.waiting); } if (mCancellingTask != null) { printwriter.print(s); printwriter.print("mCancellingTask="); printwriter.print(mCancellingTask); printwriter.print(" waiting="); printwriter.println(mCancellingTask.waiting); } if (mUpdateThrottle != 0L) { printwriter.print(s); printwriter.print("mUpdateThrottle="); TimeUtils.formatDuration(mUpdateThrottle, printwriter); printwriter.print(" mLastLoadCompleteTime="); TimeUtils.formatDuration(mLastLoadCompleteTime, SystemClock.uptimeMillis(), printwriter); printwriter.println(); } }
@Override public String toString() { StringBuilder result = new StringBuilder(); result.append("MediaSessionStatus{ "); result.append("timestamp="); TimeUtils.formatDuration(SystemClock.elapsedRealtime() - getTimestamp(), result); result.append(" ms ago"); result.append(", sessionState=").append(sessionStateToString(getSessionState())); result.append(", queuePaused=").append(isQueuePaused()); result.append(", extras=").append(getExtras()); result.append(" }"); return result.toString(); }
@Override public String toString() { StringBuilder result = new StringBuilder(); result.append("MediaItemStatus{ "); result.append("timestamp="); TimeUtils.formatDuration(SystemClock.elapsedRealtime() - getTimestamp(), result); result.append(" ms ago"); result.append(", playbackState=").append(playbackStateToString(getPlaybackState())); result.append(", contentPosition=").append(getContentPosition()); result.append(", contentDuration=").append(getContentDuration()); result.append(", extras=").append(getExtras()); result.append(" }"); return result.toString(); }
public String getResult() { StringBuilder stringBuilder = new StringBuilder(); TimeUtils.formatDuration(msec, stringBuilder); return stringBuilder.toString(); }