Tidy up uses of Integer.valueOf.

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

bug: 28078871

(cherry picked from commit a4db66765c8f9bb482d348830b562a54ac28bb5c)

Change-Id: I1e612dea34347d0ccf2bc47ca6c7219fd51a42a9
3 files changed