summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-11-18 14:49:28 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-11-18 15:11:20 +0800
commit59c2e7cf8a88cf6a30737819a4d5cbef76ffd80c (patch)
tree4ae13eb42b65d3c8643de575eb665852a5178f13 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parente12c50e04242730a54d0abae5e4efc55e5835bea (diff)
Add a new launch type for hot start with relaunched activity
An existing activity may be relaunched when moving from background to front if the current configuration is changed and the activity cannot handle the change. The relaunch type was reported as a hot start because its process is alive and the original activity exists. But the relaunch needs to destroy the original activity and create a new instance, which may even take longer time than a warm start. So the case should be separated from hot start. Also: - Make WaitResult#launchState is always populated by ActivityMetricsLogger, so "am start -W" can get consistent launch type. - Remove dead code in ActivityRecord#ensureActivityConfiguration that it already early returns if !attachedToProcess. Bug: 172528316 Test: atest ActivityMetricsLaunchObserverTests#testLaunchState Change-Id: I3ef64ce1e23b2f13d42fa2b12bc31c0cdb4652fc
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions