Merge "Stop using Arrays.checkOffsetAndCount. am: 60f55a255f" into stage-aosp-master