Home
last modified time | relevance | path

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

/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()
/frameworks/testing/support/src/android/support/test/internal/runner/listener/
DSuiteAssignmentPrinter.java78 String currentSize = getTestSize(description); in testFinished() local
79 if (!assignmentSuite.equals(currentSize)) { in testFinished()
82 description.getClassName(), description.getMethodName(), currentSize, in testFinished()
/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/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp259 size_t currentSize = mBufferItemList.size(); in releaseOldestBufferLocked() local
261 assert(mBufferItemList.size() == currentSize - 1); in releaseOldestBufferLocked()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java804 final long currentSize = new File(path).getTotalSpace(); in resizeContainer() local
805 if (currentSize > targetSize) { in resizeContainer()
806 Slog.w(TAG, "Current size " + currentSize + " is larger than target size " in resizeContainer()