Stay organized with collections
Save and categorize content based on your preferences.
WindowAnimationFrameStats
class WindowAnimationFrameStats : FrameStats, Parcelable
This class contains window animation frame statistics. For example, a window animation is usually performed when the application is transitioning from one activity to another. The frame statistics are a snapshot for the time interval from getStartTimeNano()
to getEndTimeNano()
.
The key idea is that in order to provide a smooth user experience the system should run window animations at a specific time interval obtained by calling getRefreshPeriodNano()
. If the system does not render a frame every refresh period the user will see irregular window transitions. The time when the frame was actually presented on the display by calling getFramePresentedTimeNano(int)
.
Summary
Inherited constants |
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents() : indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel : the object being written is a return value, that is the result of a function such as "Parcelable someFunction() ", "void someFunction(out Parcelable) ", or "void someFunction(inout Parcelable) ". Some implementations may want to release resources at this point.
|
|
|
Inherited functions |
From class FrameStats
Long |
getEndTimeNano()
Gets the end time of the interval for which these statistics apply. The end interval is the time when the last frame was presented.
|
Int |
getFrameCount()
Gets the number of frames for which there is data.
|
Long |
getFramePresentedTimeNano(index: Int)
Get the time a frame at a given index was presented.
|
Long |
getRefreshPeriodNano()
Gets the refresh period of the display hosting the window(s) for which these statistics apply.
|
Long |
getStartTimeNano()
Gets the start time of the interval for which these statistics apply. The start interval is the time when the first frame was presented.
|
|
Public methods
describeContents
fun describeContents(): Int
Deprecated: Deprecated in Java.
toString
fun toString(): String
Deprecated: Deprecated in Java.
Return |
String |
a string representation of the object. |
writeToParcel
fun writeToParcel(
parcel: Parcel,
flags: Int
): Unit
Deprecated: Deprecated in Java.
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-04 UTC."],[],[]]