Tidy up uses of Integer.valueOf.

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

bug: 28078871
Change-Id: Icbb0507949b71bc0a729f2e65309dab939b3d853
3 files changed