Update PIP CTS to call proper APIs

This ensures that the test checks for both boolean return values
and exceptions.

Original change by winsonc@google.com

Bug: 72571371
Test: cts-tradefed run cts-dev -m CtsAppTestCases
-t android.app.cts.PipActivityTest
Test: cts-tradefed run cts-dev -m CtsAppTestCases
-t android.app.cts.PipNotSupportedActivityTest

Change-Id: I31b431e3b0a3a2843294a92ee49fa90b2035aac1
2 files changed