DO NOT MERGE: Decode the input of both setStream and setResource calls first am: 51b874f628

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16375906

Change-Id: I181af4dcc8c850c9f610736e8fb0fab0f60b6012