/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/content/res/ |
H A D | GrowingArrayUtils.java | 34 * @param currentSize The number of elements in the array. Must be less than or equal to 40 public static <T> T[] append(T[] array, int currentSize, T element) { argument 41 assert currentSize <= array.length; 43 if (currentSize + 1 > array.length) { 45 growSize(currentSize)); 46 System.arraycopy(array, 0, newArray, 0, currentSize); 49 array[currentSize] = element; 56 public static int[] append(int[] array, int currentSize, int element) { argument 57 assert currentSize <= array.length; 59 if (currentSize 71 append(long[] array, int currentSize, long element) argument 86 append(boolean[] array, int currentSize, boolean element) argument 109 insert(T[] array, int currentSize, int index, T element) argument 129 insert(int[] array, int currentSize, int index, int element) argument 148 insert(long[] array, int currentSize, int index, long element) argument 167 insert(boolean[] array, int currentSize, int index, boolean element) argument 188 growSize(int currentSize) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | GrowingArrayUtils.java | 34 * @param currentSize The number of elements in the array. Must be less than or equal to 40 public static <T> T[] append(T[] array, int currentSize, T element) { argument 41 assert currentSize <= array.length; 43 if (currentSize + 1 > array.length) { 46 (Class<T>) array.getClass().getComponentType(), growSize(currentSize)); 47 System.arraycopy(array, 0, newArray, 0, currentSize); 50 array[currentSize] = element; 57 public static int[] append(int[] array, int currentSize, int element) { argument 58 assert currentSize <= array.length; 60 if (currentSize 72 append(long[] array, int currentSize, long element) argument 87 append(boolean[] array, int currentSize, boolean element) argument 102 append(float[] array, int currentSize, float element) argument 125 insert(T[] array, int currentSize, int index, T element) argument 146 insert(int[] array, int currentSize, int index, int element) argument 165 insert(long[] array, int currentSize, int index, long element) argument 184 insert(boolean[] array, int currentSize, int index, boolean element) argument 205 growSize(int currentSize) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | IntArray.java | 148 final int currentSize = mSize; 149 final int minCapacity = currentSize + count; 151 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? 152 MIN_CAPACITY_INCREMENT : currentSize >> 1); 155 System.arraycopy(mValues, 0, newValues, 0, currentSize);
|
H A D | LongArray.java | 134 final int currentSize = mSize; 135 final int minCapacity = currentSize + count; 137 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? 138 MIN_CAPACITY_INCREMENT : currentSize >> 1); 141 System.arraycopy(mValues, 0, newValues, 0, currentSize);
|
/frameworks/base/core/java/android/text/ |
H A D | AutoGrowArray.java | 42 private static int computeNewCapacity(int currentSize, int requested) { argument 43 final int targetCapacity = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) 44 ? MIN_CAPACITY_INCREMENT : currentSize >> 1);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | ScanDetailCache.java | 115 int currentSize = mMap.size(); 116 if (currentSize < mTrimSize) { 136 for (int i = 0; i < currentSize - mTrimSize; i++) {
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerBaseTest.java | 475 long currentSize = 0; 476 while ((currentSize = getBytesDownloaded(id)) <= expectedSize) { 478 expectedSize, currentSize));
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
H A D | AppCompatTextViewAutoSizeHelper.java | 517 float currentSize = Math.round(mAutoSizeMinTextSizeInPx); 518 while (Math.round(currentSize + mAutoSizeStepGranularityInPx) 521 currentSize += mAutoSizeStepGranularityInPx;
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsState.java | 573 Integer currentSize = mPackageToMemoryUsage.get(packageName); 574 final int newSize = Math.max((currentSize != null) 575 ? currentSize + deltaSize : deltaSize, 0);
|