Add missing safety comments. am: 03350bc91d am: b3327511a3 am: 1ef3979c30

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

Change-Id: Id26296c379505d03274480d4eebcbdbb72abe63a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>