Remove obsolete launcher integration and reduce navigation jank

This commit is contained in:
Elijah Kuntz 2026-10-19 14:48:08 -07:00
parent ac0a892c5f
commit 2739b278cd
21 changed files with 394 additions and 129 deletions

View file

@ -90,7 +90,7 @@ public final class AccentSchedulingInstrumentation extends Instrumentation {
call("setMotion", new Class<?>[] {boolean.class}, true);
for (int color : new int[] {Color.RED, Color.CYAN, Color.GREEN}) {
color(color, true);
Thread.sleep(60);
Thread.sleep(200);
if (get("frame") != frame || (int) get("generation") != generation)
throw new AssertionError("passing selection composed a background");
}
@ -105,6 +105,24 @@ public final class AccentSchedulingInstrumentation extends Instrumentation {
.append("PASS: coalesced passing colors, retained final color; memorySaver=")
.append(memory)
.append('\n');
color(Color.WHITE, false);
settled();
Object settledFrame = get("frame"), settledAnimator = get("colorAnimator");
int settledGeneration = (int) get("generation");
color(Color.RED, true);
Thread.sleep(200);
color(Color.WHITE, true);
settled();
if (get("frame") != settledFrame
|| (int) get("generation") != settledGeneration
|| get("colorAnimator") != settledAnimator)
throw new AssertionError("returning to the displayed color started redundant work");
report
.append(
"PASS: returning to displayed color needs no composition or color animation;"
+ " memorySaver=")
.append(memory)
.append('\n');
color(Color.MAGENTA, true);
call("pause", new Class<?>[0]);
generation = (int) get("generation");