android.support.v4.content.Loader.dump()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中android.support.v4.content.Loader.dump()方法的一些代码示例,展示了Loader.dump()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Loader.dump()方法的具体详情如下:
包路径:android.support.v4.content.Loader
类名称:Loader
方法名:dump

Loader.dump介绍

[英]Print the Loader's state into the given stream.
[中]将加载程序的状态打印到给定流中。

代码示例

代码示例来源:origin: com.google.android/support-v4

public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) {
    writer.print(prefix); writer.print("mId="); writer.print(mId);
        writer.print(" mArgs="); writer.println(mArgs);
    writer.print(prefix); writer.print("mCallbacks="); writer.println(mCallbacks);
    writer.print(prefix); writer.print("mLoader="); writer.println(mLoader);
    if (mLoader != null) {
      mLoader.dump(prefix + "  ", fd, writer, args);
    }
    if (mHaveData || mDeliveredData) {
      writer.print(prefix); writer.print("mHaveData="); writer.print(mHaveData);
          writer.print("  mDeliveredData="); writer.println(mDeliveredData);
      writer.print(prefix); writer.print("mData="); writer.println(mData);
    }
    writer.print(prefix); writer.print("mStarted="); writer.print(mStarted);
        writer.print(" mReportNextStart="); writer.print(mReportNextStart);
        writer.print(" mDestroyed="); writer.println(mDestroyed);
    writer.print(prefix); writer.print("mRetaining="); writer.print(mRetaining);
        writer.print(" mRetainingStarted="); writer.print(mRetainingStarted);
        writer.print(" mListenerRegistered="); writer.println(mListenerRegistered);
    if (mPendingLoader != null) {
      writer.print(prefix); writer.println("Pending Loader ");
          writer.print(mPendingLoader); writer.println(":");
      mPendingLoader.dump(prefix + "  ", fd, writer, args);
    }
  }
}

代码示例来源:origin: com.google.android/support-v4

@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();
    }
  }
}

代码示例来源:origin: kingargyle/adt-leanback-support

@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();
    }
  }
}

代码示例来源:origin: kingargyle/adt-leanback-support

public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) {
    writer.print(prefix); writer.print("mId="); writer.print(mId);
        writer.print(" mArgs="); writer.println(mArgs);
    writer.print(prefix); writer.print("mCallbacks="); writer.println(mCallbacks);
    writer.print(prefix); writer.print("mLoader="); writer.println(mLoader);
    if (mLoader != null) {
      mLoader.dump(prefix + "  ", fd, writer, args);
    }
    if (mHaveData || mDeliveredData) {
      writer.print(prefix); writer.print("mHaveData="); writer.print(mHaveData);
          writer.print("  mDeliveredData="); writer.println(mDeliveredData);
      writer.print(prefix); writer.print("mData="); writer.println(mData);
    }
    writer.print(prefix); writer.print("mStarted="); writer.print(mStarted);
        writer.print(" mReportNextStart="); writer.print(mReportNextStart);
        writer.print(" mDestroyed="); writer.println(mDestroyed);
    writer.print(prefix); writer.print("mRetaining="); writer.print(mRetaining);
        writer.print(" mRetainingStarted="); writer.print(mRetainingStarted);
        writer.print(" mListenerRegistered="); writer.println(mListenerRegistered);
    if (mPendingLoader != null) {
      writer.print(prefix); writer.println("Pending Loader ");
          writer.print(mPendingLoader); writer.println(":");
      mPendingLoader.dump(prefix + "  ", fd, writer, args);
    }
  }
}

相关文章