Methods Summary |
---|
public int | describeContents()
return 0;
|
public long | getFramePostedTimeNano(int index)Get the time a frame at a given index was posted by the producer (e.g. the application).
It is either explicitly set or defaulted to the time when the render buffer was posted.
Note: A frame can be posted and still it contents being rendered
asynchronously in GL. To get the time the frame content was completely rendered and
ready to display call {@link #getFrameReadyTimeNano(int)}.
if (mFramesPostedTimeNano == null) {
throw new IndexOutOfBoundsException();
}
return mFramesPostedTimeNano[index];
|
public long | getFrameReadyTimeNano(int index)Get the time a frame at a given index was ready for presentation.
Note: A frame can be posted and still it contents being rendered
asynchronously in GL. In such a case this is the time when the frame contents were
completely rendered.
if (mFramesReadyTimeNano == null) {
throw new IndexOutOfBoundsException();
}
return mFramesReadyTimeNano[index];
|
public void | init(long refreshPeriodNano, long[] framesPostedTimeNano, long[] framesPresentedTimeNano, long[] framesReadyTimeNano)Initializes this isntance.
mRefreshPeriodNano = refreshPeriodNano;
mFramesPostedTimeNano = framesPostedTimeNano;
mFramesPresentedTimeNano = framesPresentedTimeNano;
mFramesReadyTimeNano = framesReadyTimeNano;
|
public java.lang.String | toString()
StringBuilder builder = new StringBuilder();
builder.append("WindowContentFrameStats[");
builder.append("frameCount:" + getFrameCount());
builder.append(", fromTimeNano:" + getStartTimeNano());
builder.append(", toTimeNano:" + getEndTimeNano());
builder.append(']");
return builder.toString();
|
public void | writeToParcel(android.os.Parcel parcel, int flags)
parcel.writeLong(mRefreshPeriodNano);
parcel.writeLongArray(mFramesPostedTimeNano);
parcel.writeLongArray(mFramesPresentedTimeNano);
parcel.writeLongArray(mFramesReadyTimeNano);
|