Merge "Document functions that may panic." am: 05933f7925 am: 3c064e40ac

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1834433

Change-Id: I99d7dea61ed09963dce09174681a4e5f223ad7a8