Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java43 public static <T> T[] append(T[] array, int currentSize, T element) { in append() argument
44 assert currentSize <= array.length; in append() local
46 if (currentSize + 1 > array.length) { in append()
49 (Class<T>) array.getClass().getComponentType(), growSize(currentSize)); in append()
50 System.arraycopy(array, 0, newArray, 0, currentSize); in append()
53 array[currentSize] = element; in append()
61 public static int[] append(int[] array, int currentSize, int element) { in append() argument
62 assert currentSize <= array.length; in append() local
64 if (currentSize + 1 > array.length) { in append()
65 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in append()
[all …]
DImageUtils.java174 public static int calculateSampleSize(Size currentSize, Size requestedSize) { in calculateSampleSize() argument
177 if (currentSize.getHeight() > requestedSize.getHeight() in calculateSampleSize()
178 || currentSize.getWidth() > requestedSize.getWidth()) { in calculateSampleSize()
179 final int halfHeight = currentSize.getHeight() / 2; in calculateSampleSize()
180 final int halfWidth = currentSize.getWidth() / 2; in calculateSampleSize()
/frameworks/base/core/java/android/util/
DIntArray.java150 final int currentSize = mSize; in ensureCapacity() local
151 final int minCapacity = currentSize + count; in ensureCapacity()
153 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? in ensureCapacity()
154 MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity()
157 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
DLongArray.java137 final int currentSize = mSize; in ensureCapacity() local
138 final int minCapacity = currentSize + count; in ensureCapacity()
140 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? in ensureCapacity()
141 MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity()
144 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
/frameworks/base/core/java/android/text/
DAutoGrowArray.java42 private static int computeNewCapacity(int currentSize, int requested) { in computeNewCapacity() argument
43 final int targetCapacity = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) in computeNewCapacity()
44 ? MIN_CAPACITY_INCREMENT : currentSize >> 1); in computeNewCapacity()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanDetailCache.java115 int currentSize = mMap.size(); in trim() local
116 if (currentSize < mTrimSize) { in trim()
136 for (int i = 0; i < currentSize - mTrimSize; i++) { in trim()
/frameworks/ml/nn/common/operations/
DConcatenation.cpp114 const auto currentSize = getNumberOfElements(context->getInputShape(i)); in concatenation() local
115 inputs_uint8[i].resize(currentSize); in concatenation()
116 if (currentSize != 0) { in concatenation()
/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.java597 Integer currentSize = mPackageToMemoryUsage.get(packageName); in updateMemoryUsagePerPackageLocked() local
598 final int newSize = Math.max((currentSize != null) in updateMemoryUsagePerPackageLocked()
599 ? currentSize + deltaSize : deltaSize, 0); in updateMemoryUsagePerPackageLocked()
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp755 auto currentSize = currentWidth * currentHeight; in getMatchingDepthSize() local
757 if ((fabs(aspectRatio - currentRatio) <= arTol) && (currentSize > oldSize)) { in getMatchingDepthSize()
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java3035 int currentSize = mServiceTargets.size();
3037 for (int i = 0; i < Math.min(currentSize, MAX_SERVICE_TARGETS); i++) {
3048 if (currentSize < MAX_SERVICE_TARGETS) {