Add coverage for UnsafeIntentLaunchViolation#getIntent

Android 12 introduced a new StrictMode check to report an unsafe
Intent launch; when a violation is triggered this check will result
in an UnsafeIntentLaunchViolation. This Violation contains a
getIntent API to allow developers to obtain the Intent that triggered
the Violation. This commit updates an existing test to use an
OnVmViolationListener to obtain the Violation from the StrictMode
check to verify the getIntent method returns the expected Intent.

Test: atest StrictModeTest
Fixes: 183240148
Change-Id: I859c057bf6f584f0ef5ba0c82ebb3e815ca0e2f3
2 files changed