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: Ie9b52cbfb80ccc0ecb1a814ac0f00fce6de089d7