Loading core/java/android/util/ArrayMap.java +4 −0 Original line number Diff line number Diff line Loading @@ -461,6 +461,7 @@ public final class ArrayMap<K, V> implements Map<K, V> { public K keyAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return (K)mArray[index << 1]; Loading @@ -480,6 +481,7 @@ public final class ArrayMap<K, V> implements Map<K, V> { public V valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return (V)mArray[(index << 1) + 1]; Loading @@ -500,6 +502,7 @@ public final class ArrayMap<K, V> implements Map<K, V> { public V setValueAt(int index, V value) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } index = (index << 1) + 1; Loading Loading @@ -703,6 +706,7 @@ public final class ArrayMap<K, V> implements Map<K, V> { public V removeAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } Loading core/java/android/util/ArraySet.java +2 −0 Original line number Diff line number Diff line Loading @@ -368,6 +368,7 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { public E valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return valueAtUnchecked(index); Loading Loading @@ -545,6 +546,7 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { public E removeAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } final Object old = mArray[index]; Loading core/java/android/util/LongSparseArray.java +4 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,7 @@ public class LongSparseArray<E> implements Cloneable { public void removeAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mValues[index] != DELETED) { Loading Loading @@ -249,6 +250,7 @@ public class LongSparseArray<E> implements Cloneable { public long keyAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading Loading @@ -278,6 +280,7 @@ public class LongSparseArray<E> implements Cloneable { public E valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading @@ -300,6 +303,7 @@ public class LongSparseArray<E> implements Cloneable { public void setValueAt(int index, E value) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading core/java/android/util/LongSparseLongArray.java +2 −0 Original line number Diff line number Diff line Loading @@ -179,6 +179,7 @@ public class LongSparseLongArray implements Cloneable { public long keyAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return mKeys[index]; Loading @@ -203,6 +204,7 @@ public class LongSparseLongArray implements Cloneable { public long valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return mValues[index]; Loading core/java/android/util/SparseArray.java +4 −0 Original line number Diff line number Diff line Loading @@ -176,6 +176,7 @@ public class SparseArray<E> implements Cloneable { public void removeAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mValues[index] != DELETED) { Loading Loading @@ -290,6 +291,7 @@ public class SparseArray<E> implements Cloneable { public int keyAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading Loading @@ -319,6 +321,7 @@ public class SparseArray<E> implements Cloneable { public E valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading @@ -341,6 +344,7 @@ public class SparseArray<E> implements Cloneable { public void setValueAt(int index, E value) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading Loading
core/java/android/util/ArrayMap.java +4 −0 Original line number Diff line number Diff line Loading @@ -461,6 +461,7 @@ public final class ArrayMap<K, V> implements Map<K, V> { public K keyAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return (K)mArray[index << 1]; Loading @@ -480,6 +481,7 @@ public final class ArrayMap<K, V> implements Map<K, V> { public V valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return (V)mArray[(index << 1) + 1]; Loading @@ -500,6 +502,7 @@ public final class ArrayMap<K, V> implements Map<K, V> { public V setValueAt(int index, V value) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } index = (index << 1) + 1; Loading Loading @@ -703,6 +706,7 @@ public final class ArrayMap<K, V> implements Map<K, V> { public V removeAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } Loading
core/java/android/util/ArraySet.java +2 −0 Original line number Diff line number Diff line Loading @@ -368,6 +368,7 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { public E valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return valueAtUnchecked(index); Loading Loading @@ -545,6 +546,7 @@ public final class ArraySet<E> implements Collection<E>, Set<E> { public E removeAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } final Object old = mArray[index]; Loading
core/java/android/util/LongSparseArray.java +4 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,7 @@ public class LongSparseArray<E> implements Cloneable { public void removeAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mValues[index] != DELETED) { Loading Loading @@ -249,6 +250,7 @@ public class LongSparseArray<E> implements Cloneable { public long keyAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading Loading @@ -278,6 +280,7 @@ public class LongSparseArray<E> implements Cloneable { public E valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading @@ -300,6 +303,7 @@ public class LongSparseArray<E> implements Cloneable { public void setValueAt(int index, E value) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading
core/java/android/util/LongSparseLongArray.java +2 −0 Original line number Diff line number Diff line Loading @@ -179,6 +179,7 @@ public class LongSparseLongArray implements Cloneable { public long keyAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return mKeys[index]; Loading @@ -203,6 +204,7 @@ public class LongSparseLongArray implements Cloneable { public long valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } return mValues[index]; Loading
core/java/android/util/SparseArray.java +4 −0 Original line number Diff line number Diff line Loading @@ -176,6 +176,7 @@ public class SparseArray<E> implements Cloneable { public void removeAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mValues[index] != DELETED) { Loading Loading @@ -290,6 +291,7 @@ public class SparseArray<E> implements Cloneable { public int keyAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading Loading @@ -319,6 +321,7 @@ public class SparseArray<E> implements Cloneable { public E valueAt(int index) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading @@ -341,6 +344,7 @@ public class SparseArray<E> implements Cloneable { public void setValueAt(int index, E value) { if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { // The array might be slightly bigger than mSize, in which case, indexing won't fail. // Check if exception should be thrown outside of the critical path. throw new ArrayIndexOutOfBoundsException(index); } if (mGarbage) { Loading