/frameworks/base/core/java/com/android/internal/util/ |
D | GrowingArrayUtils.java | 45 public static <T> T[] append(T[] array, int currentSize, T element) { in append() argument 46 assert currentSize <= array.length; in append() local 48 if (currentSize + 1 > array.length) { in append() 51 (Class<T>) array.getClass().getComponentType(), growSize(currentSize)); in append() 52 System.arraycopy(array, 0, newArray, 0, currentSize); in append() 55 array[currentSize] = element; in append() 63 public static int[] append(int[] array, int currentSize, int element) { in append() argument 64 assert currentSize <= array.length; in append() local 66 if (currentSize + 1 > array.length) { in append() 67 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in append() [all …]
|
D | ImageUtils.java | 188 public static int calculateSampleSize(Size currentSize, Size requestedSize) { in calculateSampleSize() argument 191 if (currentSize.getHeight() > requestedSize.getHeight() in calculateSampleSize() 192 || currentSize.getWidth() > requestedSize.getWidth()) { in calculateSampleSize() 193 final int halfHeight = currentSize.getHeight() / 2; in calculateSampleSize() 194 final int halfWidth = currentSize.getWidth() / 2; in calculateSampleSize()
|
/frameworks/base/core/java/android/util/ |
D | IntArray.java | 160 final int currentSize = mSize; in ensureCapacity() local 161 final int minCapacity = currentSize + count; in ensureCapacity() 163 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? in ensureCapacity() 164 MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity() 167 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
|
D | LongArray.java | 137 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/jni/ |
D | com_android_internal_content_FileSystemUtils.cpp | 312 uint64_t currentSize = 0; in punchHolesInZip() local 313 while (currentSize < extraFieldLen) { in punchHolesInZip() 314 uint64_t end = currentSize; in punchHolesInZip() 321 if (__builtin_sub_overflow(end, currentSize, &punchLen)) { in punchHolesInZip() 329 if (__builtin_add_overflow(extraFieldStart, currentSize, &punchOffset)) { in punchHolesInZip() 338 currentSize = end; in punchHolesInZip() 339 ++currentSize; in punchHolesInZip()
|
/frameworks/base/core/java/android/text/ |
D | AutoGrowArray.java | 42 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/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
D | TypefaceSerializationPerfTest.java | 139 long currentSize = Debug.getNativeHeapAllocatedSize(); in testDeserializeFontMap_memory() local 140 heapDiff = currentSize - baselineSize; in testDeserializeFontMap_memory() 142 currentSize, baselineSize, heapDiff)); in testDeserializeFontMap_memory()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/ |
D | BiometricViewSizeBinder.kt | 112 var currentSize: PromptSize? = null in <lambda>() variable 450 size.isMedium && currentSize.isSmall -> { in <lambda>() 471 size.isLarge && currentSize.isMedium -> { in <lambda>() 482 currentSize = size in <lambda>() 512 var currentSize: PromptSize? = null in <lambda>() variable 537 if (currentSize == null && size.isSmall) { in <lambda>() 540 if ((currentSize.isSmall && size.isMedium) || size.isSmall) { in <lambda>() 578 size.isMedium && currentSize.isSmall -> { in <lambda>() 602 size.isMedium && currentSize.isNullOrNotSmall -> { in <lambda>() 639 currentSize = size in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/data/repository/ |
D | DisplayStateRepositoryTest.kt | 119 val currentSize by collectLastValue(underTest.currentDisplaySize) in updatesCurrentSize_whenDisplayStateChanges() constant 130 assertThat(currentSize).isEqualTo(Size(100, 200)) in updatesCurrentSize_whenDisplayStateChanges() 140 assertThat(currentSize).isEqualTo(Size(200, 100)) in updatesCurrentSize_whenDisplayStateChanges()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/ |
D | ScreenDecorationsLogger.kt | 194 fun logDisplaySizeChanged(currentSize: Point, newSize: Point) { in logDisplaySizeChanged() 199 str1 = currentSize.flattenToString() in logDisplaySizeChanged()
|
/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/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/ |
D | DeviceCapabilityInfo.java | 205 int currentSize = mMmtelAssociatedUris.size(); in updateMmTelAssociatedUri() local 206 logd("updateMmTelAssociatedUri: size from " + originalSize + " to " + currentSize); in updateMmTelAssociatedUri() 279 int currentSize = mRcsAssociatedUris.size(); in updateRcsAssociatedUri() local 280 logd("updateRcsAssociatedUri: size from " + originalSize + " to " + currentSize); in updateRcsAssociatedUri()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderSessionImpl.java | 285 private static int calcSize(int currentSize, int neededSize, int measuredSize, in calcSize() argument 289 currentSize += neededSize - measuredSize; in calcSize() 291 if (currentSize < measuredSize) { in calcSize() 293 currentSize = measuredSize; in calcSize() 296 currentSize = neededSize; in calcSize() 298 return currentSize; in calcSize()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ChooserListAdapter.java | 681 int currentSize = mServiceTargets.size(); in insertServiceTarget() local 683 for (int i = 0; i < Math.min(currentSize, mChooserListCommunicator.getMaxRankedTargets()); in insertServiceTarget() 695 if (currentSize < mChooserListCommunicator.getMaxRankedTargets()) { in insertServiceTarget()
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | DepthCompositeStream.cpp | 863 auto currentSize = currentWidth * currentHeight; in getMatchingDepthSize() local 865 if ((fabs(aspectRatio - currentRatio) <= arTol) && (currentSize > oldSize)) { in getMatchingDepthSize()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsState.java | 1244 final int currentSize = mPackageToMemoryUsage.getOrDefault(packageName, 0); 1251 return Math.max(currentSize + deltaSize, 0);
|