Refactor how we calculate offset for PIP animation

Bug: 73961893
Test: manual test
Change-Id: I0dd1ed353bdcfb31f2a9d89d5232b920b059224d
1 file changed