Tidy up uses of Integer.valueOf.

Use parseInt when the result is assigned to an int. Allocates fewer
objects.

bug: 28078871
Change-Id: Ibfe289b772678fddb22f043b555c7bb28b70e4fa
4 files changed