code: public void resizeKeys(int numKeys)
      {
          int n = numKeys * mFloatsPerKey;
          if (mKeys.length == n)
          {
              return;
          }
          float[] newKeys = new float[n];
          n = Math.min(n, mKeys.length);
  
          System.arraycopy(mKeys, 0, newKeys, 0, n);
          mKeys = newKeys;
          mFloatInterpolator.setKeyData(mKeys);
      }
docs: Resize the key data area.
  This function will truncate the keys if the
  initial setting was too large.
  
  @oaran numKeys the desired number of keys