Home
last modified time | relevance | path

Searched refs:currentSize (Results 1 – 9 of 9) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/content/res/
DGrowingArrayUtils.java40 public static <T> T[] append(T[] array, int currentSize, T element) { in append() argument
41 assert currentSize <= array.length; in append() local
43 if (currentSize + 1 > array.length) { in append()
45 growSize(currentSize)); in append()
46 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
49 array[currentSize] = element; in append()
56 public static int[] append(int[] array, int currentSize, int element) { in append() argument
57 assert currentSize <= array.length; in append() local
59 if (currentSize + 1 > array.length) { in append()
60 int[] newArray = new int[growSize(currentSize)]; in append()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java40 public static <T> T[] append(T[] array, int currentSize, T element) { in append() argument
41 assert currentSize <= array.length; in append() local
43 if (currentSize + 1 > array.length) { in append()
46 (Class<T>) array.getClass().getComponentType(), growSize(currentSize)); in append()
47 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
50 array[currentSize] = element; in append()
57 public static int[] append(int[] array, int currentSize, int element) { in append() argument
58 assert currentSize <= array.length; in append() local
60 if (currentSize + 1 > array.length) { in append()
61 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in append()
[all …]
/frameworks/base/core/java/android/util/
DLongArray.java94 final int currentSize = mSize; in ensureCapacity() local
95 final int minCapacity = currentSize + count; in ensureCapacity()
97 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? in ensureCapacity()
98 MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity()
101 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
DIntArray.java114 final int currentSize = mSize; in ensureCapacity() local
115 final int minCapacity = currentSize + count; in ensureCapacity()
117 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? in ensureCapacity()
118 MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity()
121 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanDetailCache.java104 int currentSize = mMap.size(); in trim() local
105 if (currentSize < mTrimSize) { in trim()
125 for (int i = 0; i < currentSize - mTrimSize; i++) { in trim()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java475 long currentSize = 0; in waitToReceiveData() local
476 while ((currentSize = getBytesDownloaded(id)) <= expectedSize) { in waitToReceiveData()
478 expectedSize, currentSize)); in waitToReceiveData()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java512 Integer currentSize = mPackageToMemoryUsage.get(packageName); in updateMemoryUsagePerPackageLocked() local
513 final int newSize = Math.max((currentSize != null) in updateMemoryUsagePerPackageLocked()
514 ? currentSize + deltaSize : deltaSize, 0); in updateMemoryUsagePerPackageLocked()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java1057 final long currentSize = new File(path).getTotalSpace(); in resizeContainer() local
1058 if (currentSize > targetSize) { in resizeContainer()
1059 Slog.w(TAG, "Current size " + currentSize + " is larger than target size " in resizeContainer()
/frameworks/base/core/java/android/widget/
DTextView.java2034 float currentSize = Math.round(mAutoSizeMinTextSizeInPx);
2035 while (Math.round(currentSize + mAutoSizeStepGranularityInPx)
2038 currentSize += mAutoSizeStepGranularityInPx;