Back to project page SysLog.
The source code is released under:
GNU General Public License
If you think the Android project SysLog listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package jackpal.androidterm.emulatorview; //from w w w. j a va 2s . c o m class GrowableIntArray { GrowableIntArray(int initalCapacity) { mData = new int[initalCapacity]; mLength = 0; } void append(int i) { if (mLength + 1 > mData.length) { int newLength = Math.max((mData.length * 3) >> 1, 16); int[] temp = new int[newLength]; System.arraycopy(mData, 0, temp, 0, mLength); mData = temp; } mData[mLength++] = i; } int length() { return mLength; } int at(int index) { return mData[index]; } int[] mData; int mLength; }