Home
last modified time | relevance | path

Searched refs:newArray (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/main/java/java/util/
DArrayList.java99 Object[] newArray = new Object[a.length]; in ArrayList() local
100 System.arraycopy(a, 0, newArray, 0, a.length); in ArrayList()
101 a = newArray; in ArrayList()
118 Object[] newArray = new Object[s + in add() local
121 System.arraycopy(a, 0, newArray, 0, s); in add()
122 array = a = newArray; in add()
154 Object[] newArray = new Object[newCapacity(s)]; in add() local
155 System.arraycopy(a, 0, newArray, 0, index); in add()
156 System.arraycopy(a, index, newArray, index + 1, s - index); in add()
157 array = a = newArray; in add()
[all …]
DUnsafeArrayList.java38 T[] newArray = (T[]) Array.newInstance(elementType, size * 2); in add() local
39 System.arraycopy(array, 0, newArray, 0, size); in add()
40 array = newArray; in add()
DComparableTimSort.java114 Object[] newArray = new Object[len < 2 * INITIAL_TMP_STORAGE_LENGTH ? in ComparableTimSort() local
116 tmp = newArray; in ComparableTimSort()
865 Object[] newArray = new Object[newSize];
866 tmp = newArray;
DTimSort.java141 T[] newArray = (T[]) new Object[len < 2 * INITIAL_TMP_STORAGE_LENGTH ? in TimSort() local
143 tmp = newArray; in TimSort()
898 T[] newArray = (T[]) new Object[newSize];
899 tmp = newArray;
DArrays.java2379 Object[] newArray = (Object[]) elem; in deepToStringImpl() local
2383 newOrigArrays[origArrays.length] = newArray; in deepToStringImpl()
2385 deepToStringImpl(newArray, newOrigArrays, sb); in deepToStringImpl()
/libcore/luni/src/main/java/java/io/
DByteArrayOutputStream.java122 byte[] newArray = new byte[count]; in toByteArray()
123 System.arraycopy(buf, 0, newArray, 0, count); in toByteArray()
124 return newArray; in toByteArray()
/libcore/luni/src/main/java/java/util/concurrent/
DPriorityBlockingQueue.java251 Object[] newArray = null; in tryGrow() local
266 newArray = new Object[newCap]; in tryGrow()
271 if (newArray == null) // back off if another thread is allocating in tryGrow()
274 if (newArray != null && queue == array) { in tryGrow()
275 queue = newArray; in tryGrow()
276 System.arraycopy(array, 0, newArray, 0, oldCap); in tryGrow()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPriorityQueueTest.java126 Integer[] newArray = new Integer[array.length - 1]; in test_iterator_remove() local
127 for (int i = 0; i < newArray.length; i++) { in test_iterator_remove()
128 newArray[i] = iter.next(); in test_iterator_remove()
131 Arrays.sort(newArray); in test_iterator_remove()
133 assertEquals(newArray[i], integerQueue.poll()); in test_iterator_remove()
586 Integer[] newArray = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 39 }; in test_remove_Ljava_lang_Object() local
587 Arrays.sort(newArray); in test_remove_Ljava_lang_Object()
588 for (int i = 0; i < newArray.length; i++) { in test_remove_Ljava_lang_Object()
589 assertEquals(newArray[i], integerQueue.poll()); in test_remove_Ljava_lang_Object()
/libcore/json/src/main/java/org/json/
DJSONObject.java335 JSONArray newArray = new JSONArray(); in append() local
336 nameValuePairs.put(name, newArray); in append()
337 array = newArray; in append()
/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java406 char [] newArray = new char[curDate.length + pp.getIndex()]; in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() local
408 newArray[i + pp.getIndex()] = curDate[i]; in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
410 result = (Date) df.parseObject(new String(newArray), pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
/libcore/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp73 jstring* newArray = new jstring[newCapacity]; in push() local
74 if (newArray == NULL) { in push()
78 memcpy(newArray, array, capacity * sizeof(jstring)); in push()
81 array = newArray; in push()
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...