/frameworks/base/core/java/android/text/ |
D | AutoGrowArray.java | 66 public ByteArray(@IntRange(from = 0) int initialCapacity) { in ByteArray() 67 if (initialCapacity == 0) { in ByteArray() 70 mValues = ArrayUtils.newUnpaddedByteArray(initialCapacity); in ByteArray() 175 public IntArray(@IntRange(from = 0) int initialCapacity) { in IntArray() 176 if (initialCapacity == 0) { in IntArray() 179 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray() 284 public FloatArray(@IntRange(from = 0) int initialCapacity) { in FloatArray() 285 if (initialCapacity == 0) { in FloatArray() 288 mValues = ArrayUtils.newUnpaddedFloatArray(initialCapacity); in FloatArray()
|
/frameworks/base/core/java/android/net/metrics/ |
D | DnsEvent.java | 50 public DnsEvent(int netId, long transports, int initialCapacity) { in DnsEvent() argument 53 eventTypes = new byte[initialCapacity]; in DnsEvent() 54 returnCodes = new byte[initialCapacity]; in DnsEvent() 55 latenciesMs = new int[initialCapacity]; in DnsEvent()
|
/frameworks/base/core/java/android/util/ |
D | LongArrayQueue.java | 44 public LongArrayQueue(int initialCapacity) { in LongArrayQueue() argument 45 if (initialCapacity == 0) { in LongArrayQueue() 48 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArrayQueue()
|
D | SparseIntArray.java | 70 public SparseIntArray(int initialCapacity) { in SparseIntArray() argument 71 if (initialCapacity == 0) { in SparseIntArray() 75 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseIntArray()
|
D | IntArray.java | 51 public IntArray(int initialCapacity) { in IntArray() argument 52 if (initialCapacity == 0) { in IntArray() 55 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray()
|
D | LongArray.java | 56 public LongArray(int initialCapacity) { in LongArray() argument 57 if (initialCapacity == 0) { in LongArray() 60 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray()
|
D | SparseLongArray.java | 63 public SparseLongArray(int initialCapacity) { in SparseLongArray() argument 64 if (initialCapacity == 0) { in SparseLongArray() 68 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseLongArray()
|
D | SparseDoubleArray.java | 64 public SparseDoubleArray(int initialCapacity) { in SparseDoubleArray() argument 65 mValues = new SparseLongArray(initialCapacity); in SparseDoubleArray()
|
D | LongSparseLongArray.java | 72 public LongSparseLongArray(int initialCapacity) { in LongSparseLongArray() argument 73 if (initialCapacity == 0) { in LongSparseLongArray() 77 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseLongArray()
|
D | SparseBooleanArray.java | 63 public SparseBooleanArray(int initialCapacity) { in SparseBooleanArray() argument 64 if (initialCapacity == 0) { in SparseBooleanArray() 68 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseBooleanArray()
|
D | LongSparseArray.java | 81 public LongSparseArray(int initialCapacity) { in LongSparseArray() argument 82 if (initialCapacity == 0) { in LongSparseArray() 86 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseArray() 87 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in LongSparseArray()
|
D | SparseArray.java | 83 public SparseArray(int initialCapacity) { in SparseArray() argument 84 if (initialCapacity == 0) { in SparseArray() 88 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in SparseArray()
|
/frameworks/base/core/java/android/database/ |
D | MatrixCursor.java | 46 public MatrixCursor(String[] columnNames, int initialCapacity) { in MatrixCursor() argument 50 if (initialCapacity < 1) { in MatrixCursor() 51 initialCapacity = 1; in MatrixCursor() 54 this.data = new Object[columnCount * initialCapacity]; in MatrixCursor()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/utils/ |
D | WatcherTest.java | 968 private void fillNew(WatchedSparseBooleanMatrix matrix, int initialCapacity, in fillNew() argument 973 if (i < initialCapacity && j < initialCapacity) { in fillNew() 1042 int initialCapacity = matrix.capacity(); in matrixShrink() local 1054 assertTrue("Matrix shrink", initialCapacity > finalCapacity); in matrixShrink() 1060 final int initialCapacity = matrix.capacity(); in matrixSetCapacity() local 1061 final int[] indexes = indexer.indexes(Math.max(initialCapacity, newCapacity)); in matrixSetCapacity() 1062 fill(matrix, initialCapacity, indexes); in matrixSetCapacity() 1065 fillNew(matrix, initialCapacity, newCapacity, indexes); in matrixSetCapacity() 1160 final int initialCapacity = 500; in testWatchedSparseBooleanMatrix_removeRangeAndShrink() local 1162 final WatchedSparseBooleanMatrix matrix = new WatchedSparseBooleanMatrix(initialCapacity); in testWatchedSparseBooleanMatrix_removeRangeAndShrink() [all …]
|
/frameworks/base/core/java/com/android/internal/infra/ |
D | AbstractMultiplePendingRequestsRemoteService.java | 51 int bindingFlags, boolean verbose, int initialCapacity) { in AbstractMultiplePendingRequestsRemoteService() argument 54 mInitialCapacity = initialCapacity; in AbstractMultiplePendingRequestsRemoteService()
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | WatchedSparseIntArray.java | 52 public WatchedSparseIntArray(int initialCapacity) { in WatchedSparseIntArray() argument 53 mStorage = new SparseIntArray(initialCapacity); in WatchedSparseIntArray()
|
D | WatchedSparseBooleanArray.java | 52 public WatchedSparseBooleanArray(int initialCapacity) { in WatchedSparseBooleanArray() argument 53 mStorage = new SparseBooleanArray(initialCapacity); in WatchedSparseBooleanArray()
|
D | WatchedSparseBooleanMatrix.java | 149 public WatchedSparseBooleanMatrix(int initialCapacity) { in WatchedSparseBooleanMatrix() argument 150 mOrder = initialCapacity; in WatchedSparseBooleanMatrix() 155 mOrder = ((initialCapacity / STEP) + 1) * STEP; in WatchedSparseBooleanMatrix() 158 throw new RuntimeException("mOrder is " + mOrder + " initCap is " + initialCapacity); in WatchedSparseBooleanMatrix()
|
D | WatchedLongSparseArray.java | 139 public WatchedLongSparseArray(int initialCapacity) { in WatchedLongSparseArray() argument 140 mStorage = new LongSparseArray(initialCapacity); in WatchedLongSparseArray()
|
D | WatchedSparseArray.java | 141 public WatchedSparseArray(int initialCapacity) { in WatchedSparseArray() argument 142 mStorage = new SparseArray(initialCapacity); in WatchedSparseArray()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | LineBreakBufferedWriter.java | 80 public LineBreakBufferedWriter(Writer out, int bufferSize, int initialCapacity) { in LineBreakBufferedWriter() argument 82 this.buffer = new char[Math.min(initialCapacity, bufferSize)]; in LineBreakBufferedWriter()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | SparseWeakArray.java | 62 public SparseWeakArray(int initialCapacity) { in SparseWeakArray() argument 63 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseWeakArray()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 858 int initialCapacity = 150; 873 for (int i = 0; i < initialCapacity - valuesCount; i++) { 883 assertEquals(initialCapacity, sensorValues.length); 884 assertEquals(initialCapacity, sensorTimestamps.length); 887 for (int i = initialCapacity - 1; i >= 1; i--) {
|
/frameworks/base/media/java/android/media/ |
D | AudioMetadata.java | 474 AutoGrowByteBuffer(@IntRange(from = 0) int initialCapacity) { in AutoGrowByteBuffer() 475 mBuffer = ByteBuffer.allocateDirect(initialCapacity); in AutoGrowByteBuffer()
|
/frameworks/ex/common/java/com/android/common/widget/ |
D | CompositeCursorAdapter.java | 74 public CompositeCursorAdapter(Context context, int initialCapacity) { in CompositeCursorAdapter() argument
|