Stop using Arrays.checkOffsetAndCount.

Start using ArrayUtils.throwsIfOutOfBounds instead. The Arrays method
is going to be removed.

Bug: 78447530
Test: tradefed.sh run commandAndExit template/local_min --template:map test=DownloadProviderTests
Change-Id: I973f0b145d1dfd98b43ba429393b2324122ba374
1 file changed