cppcheck performance fixes in android/

Same thing for files in android/