Add a method to return the flags set for a PendingIntent

This change adds `getPendingIntentFlags` to return the flags set for a
given PendingIntentRecord in ActivityManagerInternal.

Bug: 169961135
Test: green builds
Change-Id: If43c9620e7364265f48c3c3f2ebeadc268b83ddf
3 files changed