summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2019-10-24 02:59:35 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-10-24 02:59:35 +0000
commit15eebad6c1489129d00585ff6dbf01038626a8e3 (patch)
tree1567e37d1af2169032d5149532ce8a7ade64656b
parent48ddc9811e09e99ca86cb5fb8c7da2b0b5c68983 (diff)
parent7fe953e729ef95b9b4bf2790a7b22916e406857b (diff)
Merge "Adjust reportFullyDrawn documentation"
-rw-r--r--core/java/android/app/Activity.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java
index 2c57622a4df8..9872e306eb9f 100644
--- a/core/java/android/app/Activity.java
+++ b/core/java/android/app/Activity.java
@@ -2563,9 +2563,12 @@ public class Activity extends ContextThemeWrapper
}
/**
- * Report to the system that your app is now fully drawn, purely for diagnostic
- * purposes (calling it does not impact the visible behavior of the activity).
- * This is only used to help instrument application launch times, so that the
+ * Report to the system that your app is now fully drawn, for diagnostic and
+ * optimization purposes. The system may adjust optimizations to prioritize
+ * work that happens before reportFullyDrawn is called, to improve app startup.
+ * Misrepresenting the startup window by calling reportFullyDrawn too late or too
+ * early may decrease application and startup performance.<p>
+ * This is also used to help instrument application launch times, so that the
* app can report when it is fully in a usable state; without this, the only thing
* the system itself can determine is the point at which the activity's window
* is <em>first</em> drawn and displayed. To participate in app launch time