Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4b302631 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

[PiP2] Add PipAlphaAnimatorTest

Added the PipAlphaAnimatorTest for PipAlphaAnimator class.
PipAlphaAnimator class is optimized for testing as well in this change

- Allow supplying SurfaceControlTransactionFactory for testing purpose
- Use the local animation listener since they are implementation details
- Switch over to AnimatorListenerAdapter to avoid unnecessary,
  un-testable functions such as onAnimationRepeat

Flag: com.android.wm.shell.enable_pip2
Bug: 376133026
Test: atest WMShellUnitTests:PipAlphaAnimatorTest
Change-Id: I1339cf352c810ea3f66402babc04b6caffed5360
parent 0b7fa745
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment