private void growIfNeeded() {
    if (size == values.length) {
      // Resize.
      int[] newv = new int[size * 3 / 2 + 10];
      System.arraycopy(values, 0, newv, 0, size);
      values = newv;
    }
  }
Increases size of array if needed
android/android_framework/dex-maker/src/main/java/com/android/dx/util/IntList.java