Home
last modified time | relevance | path

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

/dalvik/vm/native/
Djava_lang_reflect_Array.c35 ArrayObject* newArray; in Dalvik_java_lang_reflect_Array_createObjectArray() local
43 newArray = dvmAllocObjectArray(elementClass, length, ALLOC_DEFAULT); in Dalvik_java_lang_reflect_Array_createObjectArray()
44 if (newArray == NULL) { in Dalvik_java_lang_reflect_Array_createObjectArray()
48 dvmReleaseTrackedAlloc((Object*) newArray, NULL); in Dalvik_java_lang_reflect_Array_createObjectArray()
50 RETURN_PTR(newArray); in Dalvik_java_lang_reflect_Array_createObjectArray()
71 ArrayObject* newArray; in Dalvik_java_lang_reflect_Array_createMultiArray() local
130 newArray = dvmAllocMultiArray(arrayClass, numDim-1, dimensions); in Dalvik_java_lang_reflect_Array_createMultiArray()
131 if (newArray == NULL) { in Dalvik_java_lang_reflect_Array_createMultiArray()
136 dvmReleaseTrackedAlloc((Object*) newArray, NULL); in Dalvik_java_lang_reflect_Array_createMultiArray()
137 RETURN_PTR(newArray); in Dalvik_java_lang_reflect_Array_createMultiArray()
/dalvik/vm/mterp/c/
DOP_NEW_ARRAY.c4 ArrayObject* newArray; in HANDLE_OPCODE() local
29 newArray = dvmAllocArrayByClass(arrayClass, length, ALLOC_DONT_TRACK); in HANDLE_OPCODE()
30 if (newArray == NULL) in HANDLE_OPCODE()
32 SET_REGISTER(vdst, (u4) newArray); in HANDLE_OPCODE()
DgotoTargets.c14 ArrayObject* newArray; in GOTO_TARGET() local
75 newArray = dvmAllocArrayByClass(arrayClass, vsrc1, ALLOC_DONT_TRACK); in GOTO_TARGET()
76 if (newArray == NULL) in GOTO_TARGET()
82 contents = (u4*) newArray->contents; in GOTO_TARGET()
98 retval.l = newArray; in GOTO_TARGET()
/dalvik/vm/oo/
DArray.c44 ArrayObject* newArray; in dvmAllocArray() local
62 newArray = dvmMalloc(size, allocFlags); in dvmAllocArray()
63 if (newArray != NULL) { in dvmAllocArray()
64 DVM_OBJECT_INIT(&newArray->obj, arrayClass); in dvmAllocArray()
65 newArray->length = length; in dvmAllocArray()
69 hprofFillInStackTrace(&newArray->obj); in dvmAllocArray()
74 return newArray; in dvmAllocArray()
141 ArrayObject* newArray = NULL; in dvmAllocObjectArray() local
148 newArray = dvmAllocArray(arrayClass, length, kObjectArrayRefWidth, in dvmAllocObjectArray()
153 return newArray; in dvmAllocObjectArray()
[all …]
/dalvik/libcore/luni/src/main/java/java/util/
DArrayList.java377 E[] newArray = newElementArray(size + increment); in growAtEnd()
379 System.arraycopy(array, firstIndex, newArray, 0, size); in growAtEnd()
383 array = newArray; in growAtEnd()
407 E[] newArray = newElementArray(size + increment); in growAtFront() local
409 System.arraycopy(array, firstIndex, newArray, newArray.length in growAtFront()
412 firstIndex = newArray.length - size; in growAtFront()
413 lastIndex = newArray.length; in growAtFront()
414 array = newArray; in growAtFront()
426 E[] newArray = newElementArray(size + increment); in growForInsert() local
430 System.arraycopy(array, location + firstIndex, newArray, newFirst in growForInsert()
[all …]
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;
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;
DArrays.java2995 Object[] newArray = (Object[]) elem;
2999 newOrigArrays[origArrays.length] = newArray;
3001 deepToStringImpl(newArray, newOrigArrays, sb);
/dalvik/libcore/luni/src/main/java/java/io/
DByteArrayOutputStream.java138 byte[] newArray = new byte[count]; in toByteArray()
139 System.arraycopy(buf, 0, newArray, 0, count); in toByteArray()
140 return newArray; in toByteArray()
/dalvik/libcore/luni/src/test/java/tests/api/java/util/
DPriorityQueueTest.java157 Integer[] newArray = new Integer[array.length - 1]; in test_iterator_remove() local
158 for (int i = 0; i < newArray.length; i++) { in test_iterator_remove()
159 newArray[i] = iter.next(); in test_iterator_remove()
162 Arrays.sort(newArray); in test_iterator_remove()
164 assertEquals(newArray[i], integerQueue.poll()); in test_iterator_remove()
789 Integer[] newArray = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 39 }; in test_remove_Ljava_lang_Object() local
790 Arrays.sort(newArray); in test_remove_Ljava_lang_Object()
791 for (int i = 0; i < newArray.length; i++) { in test_remove_Ljava_lang_Object()
792 assertEquals(newArray[i], integerQueue.poll()); in test_remove_Ljava_lang_Object()
/dalvik/vm/reflect/
DAnnotation.c546 ArrayObject* newArray; in processAnnotationValue() local
552 newArray = dvmAllocArrayByClass(gDvm.classJavaLangObjectArray, in processAnnotationValue()
554 if (newArray == NULL) { in processAnnotationValue()
558 pObj = (Object**)newArray->contents; in processAnnotationValue()
564 dvmReleaseTrackedAlloc((Object*)newArray, self); in processAnnotationValue()
572 elemObj = (Object*) newArray; in processAnnotationValue()
662 ArrayObject* newArray; in convertReturnType() local
664 newArray = dvmAllocArrayByClass(methodReturn, length, ALLOC_DEFAULT); in convertReturnType()
665 if (newArray == NULL) { in convertReturnType()
671 if (!dvmCopyObjectArray(newArray, srcArray, dstElemClass)) { in convertReturnType()
[all …]
/dalvik/vm/mterp/armv5te/
DOP_FILLED_NEW_ARRAY.S53 add r0, r0, #offArrayObject_contents @ r0<- newArray->contents
/dalvik/vm/mterp/out/
DInterpC-allstubs.c1704 ArrayObject* newArray; in HANDLE_OPCODE() local
1729 newArray = dvmAllocArrayByClass(arrayClass, length, ALLOC_DONT_TRACK); in HANDLE_OPCODE()
1730 if (newArray == NULL) in HANDLE_OPCODE()
1732 SET_REGISTER(vdst, (u4) newArray); in HANDLE_OPCODE()
3039 ArrayObject* newArray; in GOTO_TARGET() local
3100 newArray = dvmAllocArrayByClass(arrayClass, vsrc1, ALLOC_DONT_TRACK); in GOTO_TARGET()
3101 if (newArray == NULL) in GOTO_TARGET()
3107 contents = (u4*) newArray->contents; in GOTO_TARGET()
3123 retval.l = newArray; in GOTO_TARGET()
DInterpC-portstd.c1768 ArrayObject* newArray; in INTERP_FUNC_NAME() local
1793 newArray = dvmAllocArrayByClass(arrayClass, length, ALLOC_DONT_TRACK); in INTERP_FUNC_NAME()
1794 if (newArray == NULL) in INTERP_FUNC_NAME()
1796 SET_REGISTER(vdst, (u4) newArray); in INTERP_FUNC_NAME()
3020 ArrayObject* newArray; in INTERP_FUNC_NAME() local
3081 newArray = dvmAllocArrayByClass(arrayClass, vsrc1, ALLOC_DONT_TRACK); in INTERP_FUNC_NAME()
3082 if (newArray == NULL) in INTERP_FUNC_NAME()
3088 contents = (u4*) newArray->contents; in INTERP_FUNC_NAME()
3104 retval.l = newArray; in INTERP_FUNC_NAME()
DInterpC-x86.c1189 ArrayObject* newArray; in GOTO_TARGET() local
1250 newArray = dvmAllocArrayByClass(arrayClass, vsrc1, ALLOC_DONT_TRACK); in GOTO_TARGET()
1251 if (newArray == NULL) in GOTO_TARGET()
1257 contents = (u4*) newArray->contents; in GOTO_TARGET()
1273 retval.l = newArray; in GOTO_TARGET()
DInterpC-portdbg.c2048 ArrayObject* newArray; in INTERP_FUNC_NAME() local
2073 newArray = dvmAllocArrayByClass(arrayClass, length, ALLOC_DONT_TRACK); in INTERP_FUNC_NAME()
2074 if (newArray == NULL) in INTERP_FUNC_NAME()
2076 SET_REGISTER(vdst, (u4) newArray); in INTERP_FUNC_NAME()
3300 ArrayObject* newArray; in INTERP_FUNC_NAME() local
3361 newArray = dvmAllocArrayByClass(arrayClass, vsrc1, ALLOC_DONT_TRACK); in INTERP_FUNC_NAME()
3362 if (newArray == NULL) in INTERP_FUNC_NAME()
3368 contents = (u4*) newArray->contents; in INTERP_FUNC_NAME()
3384 retval.l = newArray; in INTERP_FUNC_NAME()
DInterpAsm-x86.S6566 leal offArrayObject_contents(%eax),%eax # eax<- newArray->contents
6671 leal offArrayObject_contents(%eax),%eax # eax<- newArray->contents
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
DDateFormatTest.java996 char [] newArray = new char[curDate.length + pp.getIndex()]; in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() local
998 newArray[i + pp.getIndex()] = curDate[i]; in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
1000 result = (Date) df.parseObject(new String(newArray), pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()