Java 类android.support.v4.util.TimeUtils 实例源码

项目:letv    文件:AsyncTaskLoader.java   
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();
    }
}
项目:boohee_v5.6    文件:AsyncTaskLoader.java   
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();
    }
}
项目:ShoppingMall    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:CodenameOne    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:adt-leanback-support    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:generator-android    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:informant-droid    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:android-recipes-app    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:bitcast    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:V.FlyoutTest    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:guideshow    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:IntranetEpitechV2    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:RHITMobile-Android    文件:AsyncLoader.java   
@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();
    }
}
项目:MoSeS--Client-    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:android.support.v4    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:mobile-client    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:Joszolgalat_Android_App    文件:AsyncTaskLoader.java   
@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();
    }
}
项目:XinFramework    文件:PresenterMessage.java   
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();
}
项目:FMTech    文件:AsyncTaskLoader.java   
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();
  }
}
项目:MiBandDecompiled    文件:AsyncTaskLoader.java   
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();
    }
}
项目:MyCTFWriteUps    文件:AsyncTaskLoader.java   
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();
    }
}
项目:cwac-mediarouter    文件:MediaSessionStatus.java   
@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();
}
项目:cwac-mediarouter    文件:MediaItemStatus.java   
@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();
}
项目:GenericDao    文件:TimeMeasure.java   
public String getResult() {
    StringBuilder stringBuilder = new StringBuilder();
    TimeUtils.formatDuration(msec, stringBuilder);
    return stringBuilder.toString();
}