Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first" am: 4c5f09cab3

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

Change-Id: If81af003f6b9c82e42076a38196787e7ba9dea6a