[PiP2] Add PipResizeAnimatorTest

Added the PipResizeAnimatorTest for PipResizeAnimator class.
PipResizeAnimator 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:PipResizeAnimatorTest
Change-Id: I28996ee7f5ae080278d712c50555162f3a9c3383
2 files changed