Add a @ScreenRecord Rule to tests to capture screen recording

Recording will be saved only if the test fails, or there is an
assumption failure.

Bug: 337070269
Test: atest CtsPackageInstallTestCases

Change-Id: I2ba37014b9c9a379717c9198ab73159c68e9ec84
10 files changed