Add nullability annotations to some InputDevice APIs

In a previous CL, we fixed a null dereference bug. Here, we add the
nullability annotations.

Bug: 227733127
Test: build only
Change-Id: I8db92e6c95993d0e1715632fac55f3d30e3c4d37
3 files changed