Loading libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationRunner.java +3 −1 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.view.RemoteAnimationTarget; import android.window.IBackAnimationRunner; import android.window.IOnBackInvokedCallback; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.jank.Cuj.CujType; import com.android.wm.shell.common.InteractionJankMonitorUtils; Loading Loading @@ -108,7 +109,8 @@ public class BackAnimationRunner { } } private boolean shouldMonitorCUJ(RemoteAnimationTarget[] apps) { @VisibleForTesting boolean shouldMonitorCUJ(RemoteAnimationTarget[] apps) { return apps.length > 0 && mCujType != NO_CUJ; } Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/BackAnimationControllerTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -596,6 +596,7 @@ public class BackAnimationControllerTest extends ShellTestCase { // Set up the monitoring objects. doNothing().when(runner).onAnimationStart(anyInt(), any(), any(), any(), any()); doReturn(false).when(animationRunner).shouldMonitorCUJ(any()); doReturn(runner).when(animationRunner).getRunner(); doReturn(callback).when(animationRunner).getCallback(); Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationRunner.java +3 −1 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.view.RemoteAnimationTarget; import android.window.IBackAnimationRunner; import android.window.IOnBackInvokedCallback; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.jank.Cuj.CujType; import com.android.wm.shell.common.InteractionJankMonitorUtils; Loading Loading @@ -108,7 +109,8 @@ public class BackAnimationRunner { } } private boolean shouldMonitorCUJ(RemoteAnimationTarget[] apps) { @VisibleForTesting boolean shouldMonitorCUJ(RemoteAnimationTarget[] apps) { return apps.length > 0 && mCujType != NO_CUJ; } Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/BackAnimationControllerTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -596,6 +596,7 @@ public class BackAnimationControllerTest extends ShellTestCase { // Set up the monitoring objects. doNothing().when(runner).onAnimationStart(anyInt(), any(), any(), any(), any()); doReturn(false).when(animationRunner).shouldMonitorCUJ(any()); doReturn(runner).when(animationRunner).getRunner(); doReturn(callback).when(animationRunner).getCallback(); Loading