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

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

Change-Id: Ia733525c6d0f6ba128e6762a19ea76e398ff1a1c