Cleanup: use nullptr instead of NULL

Also fix to return nullptr instead of JNI_FALSE.

Bug: 179485697
Test: build
Change-Id: I14e0bb59fe1207abcb5b292e1e18bf62d60a88de
3 files changed