Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/beans/
DChangeListenerMap.java59 protected abstract L[] newArray(int length); in newArray() method in ChangeListenerMap
86 L[] clone = newArray(size + 1); in add()
110 L[] clone = newArray(size); in remove()
168 return newArray(0); in getListeners()
186 return list.toArray(newArray(list.size())); in getListeners()
202 return newArray(0); in getListeners()
DPropertyChangeSupport.java518 protected PropertyChangeListener[] newArray(int length) { in newArray() method in PropertyChangeSupport.PropertyChangeListenerMap
/libcore/ojluni/src/main/java/java/text/
DChoiceFormat.java631 double[] newArray = new double[oldSize * 2]; in doubleArraySize() local
632 System.arraycopy(array, 0, newArray, 0, oldSize); in doubleArraySize()
633 return newArray; in doubleArraySize()
638 String[] newArray = new String[oldSize * 2]; in doubleArraySize() local
639 System.arraycopy(array, 0, newArray, 0, oldSize); in doubleArraySize()
640 return newArray; in doubleArraySize()
/libcore/ojluni/src/main/java/java/util/stream/
DNode.java295 T_ARR newArray(int count); in newArray() method
371 default int[] newArray(int count) { in newArray() method
444 default long[] newArray(int count) { in newArray() method
519 default double[] newArray(int count) { in newArray() method
DSpinedBuffer.java457 curChunk = newArray(1 << initialChunkPower); in OfPrimitive()
465 curChunk = newArray(1 << initialChunkPower); in OfPrimitive()
478 public abstract T_ARR newArray(int size); in newArray() method in SpinedBuffer.OfPrimitive
512 spine[i] = newArray(nextChunkSize); in ensureCapacity()
564 T_ARR result = newArray((int) size); in asPrimitiveArray()
757 public int[] newArray(int size) { in newArray() method in SpinedBuffer.OfInt
874 public long[] newArray(int size) { in newArray() method in SpinedBuffer.OfLong
993 public double[] newArray(int size) { in newArray() method in SpinedBuffer.OfDouble
DNodes.java869 T_ARR array = newArray((int) size); in asPrimitiveArray()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPriorityQueueTest.java130 Integer[] newArray = new Integer[array.length - 1]; in test_iterator_remove() local
131 for (int i = 0; i < newArray.length; i++) { in test_iterator_remove()
132 newArray[i] = iter.next(); in test_iterator_remove()
135 Arrays.sort(newArray); in test_iterator_remove()
137 assertEquals(newArray[i], integerQueue.poll()); in test_iterator_remove()
590 Integer[] newArray = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 39 }; in test_remove_Ljava_lang_Object() local
591 Arrays.sort(newArray); in test_remove_Ljava_lang_Object()
592 for (int i = 0; i < newArray.length; i++) { in test_remove_Ljava_lang_Object()
593 assertEquals(newArray[i], integerQueue.poll()); in test_remove_Ljava_lang_Object()
/libcore/ojluni/src/main/java/java/util/concurrent/
DPriorityBlockingQueue.java290 Object[] newArray = null; in tryGrow() local
304 newArray = new Object[newCap]; in tryGrow()
309 if (newArray == null) // back off if another thread is allocating in tryGrow()
312 if (newArray != null && queue == array) { in tryGrow()
313 queue = newArray; in tryGrow()
314 System.arraycopy(array, 0, newArray, 0, oldCap); in tryGrow()
/libcore/ojluni/src/main/java/java/util/
DTimSort.java156 T[] newArray = (T[])java.lang.reflect.Array.newInstance in TimSort() local
158 tmp = newArray; in TimSort()
933 T[] newArray = (T[])java.lang.reflect.Array.newInstance
935 tmp = newArray;
DComparableTimSort.java900 Object[] newArray = new Object[newSize];
901 tmp = newArray;
/libcore/json/src/main/java/org/json/
DJSONObject.java345 JSONArray newArray = new JSONArray(); in append() local
346 nameValuePairs.put(name, newArray); in append()
347 array = newArray; in append()
/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java412 char [] newArray = new char[curDate.length + pp.getIndex()]; in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() local
414 newArray[i + pp.getIndex()] = curDate[i]; in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
416 result = (Date) df.parseObject(new String(newArray), pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
/libcore/ojluni/src/main/java/java/lang/reflect/
DArray.java78 return newArray(componentType, length); in newInstance()
773 private static Object newArray(Class<?> componentType, int length) in newArray() method in Array
/libcore/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp77 jstring* newArray = new jstring[newCapacity]; in push() local
78 if (newArray == NULL) { in push()
82 memcpy(newArray, array, capacity * sizeof(jstring)); in push()
85 array = newArray; in push()