/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
D | GrowingArrayUtils.java | 40 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/ |
D | GrowingArrayUtils.java | 40 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/ |
D | LongArray.java | 130 final int currentSize = mSize; in ensureCapacity() local 131 final int minCapacity = currentSize + count; in ensureCapacity() 133 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? in ensureCapacity() 134 MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity() 137 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
|
D | IntArray.java | 148 final int currentSize = mSize; in ensureCapacity() local 149 final int minCapacity = currentSize + count; in ensureCapacity() 151 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? in ensureCapacity() 152 MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity() 155 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScanDetailCache.java | 117 int currentSize = mMap.size(); in trim() local 118 if (currentSize < mTrimSize) { in trim() 138 for (int i = 0; i < currentSize - mTrimSize; i++) { in trim()
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
D | DownloadManagerBaseTest.java | 475 long currentSize = 0; in waitToReceiveData() local 476 while ((currentSize = getBytesDownloaded(id)) <= expectedSize) { in waitToReceiveData() 478 expectedSize, currentSize)); in waitToReceiveData()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | AppCompatTextViewAutoSizeHelper.java | 515 float currentSize = Math.round(mAutoSizeMinTextSizeInPx); in setupAutoSizeText() local 516 while (Math.round(currentSize + mAutoSizeStepGranularityInPx) in setupAutoSizeText() 519 currentSize += mAutoSizeStepGranularityInPx; in setupAutoSizeText()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsState.java | 512 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/ |
D | PackageInstallerSession.java | 1378 final long currentSize = new File(path).getTotalSpace(); in resizeContainer() local 1379 if (currentSize > targetSize) { in resizeContainer() 1380 Slog.w(TAG, "Current size " + currentSize + " is larger than target size " in resizeContainer()
|
/frameworks/base/core/java/android/widget/ |
D | TextView.java | 2053 float currentSize = Math.round(mAutoSizeMinTextSizeInPx); 2054 while (Math.round(currentSize + mAutoSizeStepGranularityInPx) 2057 currentSize += mAutoSizeStepGranularityInPx;
|