Home
last modified time | relevance | path

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

123

/external/javassist/src/main/javassist/compiler/ast/
DNewExpr.java25 protected boolean newArray; field in NewExpr
30 newArray = false; in NewExpr()
36 newArray = true; in NewExpr()
45 e.newArray = true; in makeObjectArray()
52 public boolean isArray() { return newArray; } in isArray()
75 return newArray ? "new[]" : "new"; in getTag()
/external/clang/test/Rewriter/
Dmodern-write-bf-abi.mm42 __NSArrayM *newArray = (__NSArrayM *)__CFAllocateObject2();
43 newArray->_size = count;
44 newArray->_mutations = 1;
45 newArray->_doHardRetain = (hasObjects && hasStrong);
46 newArray->_doWeakAccess = (objc_collectingEnabled() && !hasStrong);
47 newArray->_hasObjects = hasObjects;
48 newArray->_hasStrongReferences = hasStrong;
49 newArray->_list = 0;
50 return *newArray->_list;
/external/guava/guava/src/com/google/common/collect/
DObjectArrays.java43 public static <T> T[] newArray(Class<T> type, int length) { in newArray() method in ObjectArrays
44 return Platform.newArray(type, length); in newArray()
54 public static <T> T[] newArray(T[] reference, int length) { in newArray() method in ObjectArrays
55 return Platform.newArray(reference, length); in newArray()
67 T[] result = newArray(type, first.length + second.length); in concat()
83 T[] result = newArray(array, array.length + 1); in concat()
106 T[] copy = newArray(original, newLength); in arraysCopyOf()
139 array = newArray(array, size); in toArrayImpl()
DRegularImmutableList.java72 Object[] newArray = new Object[size()]; in toArray() local
73 System.arraycopy(array, offset, newArray, 0, size); in toArray()
74 return newArray; in toArray()
79 other = ObjectArrays.newArray(other, size); in toArray()
DPlatform.java64 static <T> T[] newArray(Class<T> type, int length) { in newArray() method in Platform
75 static <T> T[] newArray(T[] reference, int length) { in newArray() method in Platform
DForwardingCollection.java251 Object[] newArray = new Object[size()]; in standardToArray() local
252 return toArray(newArray); in standardToArray()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DObjectArrays.java42 public static <T> T[] newArray(T[] reference, int length) { in newArray() method in ObjectArrays
43 return Platform.newArray(reference, length); in newArray()
56 T[] result = newArray(array, array.length + 1); in concat()
79 T[] copy = newArray(original, newLength); in arraysCopyOf()
112 array = newArray(array, size); in toArrayImpl()
DPlatform.java40 static <T> T[] newArray(Class<T> type, int length) { in newArray() method in Platform
45 static <T> T[] newArray(T[] reference, int length) { in newArray() method in Platform
46 return GwtPlatform.newArray(reference, length); in newArray()
DImmutableCollection.java46 Object[] newArray = new Object[size()]; in toArray() local
47 return toArray(newArray); in toArray()
53 other = ObjectArrays.newArray(other, size); in toArray()
DGwtPlatform.java41 public static <T> T[] newArray(T[] reference, int length) { in newArray() method in GwtPlatform
/external/chromium_org/ui/webui/resources/js/cr/ui/
Darray_data_model.js138 var newArray = [];
143 newIndexes.push(newArray.length);
145 newArray.push(this.array_[this.indexes_[i]]);
154 newIndexes.push(newArray.length);
155 newArray.push(arguments[j + 2]);
159 newIndexes.push(newArray.length);
161 newArray.push(this.array_[this.indexes_[i]]);
166 this.array_ = newArray;
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/
Dfolder_shortcuts_data_model.js240 calculatePermutation_: function(oldArray, newArray) { argument
247 if (newIndex >= newArray.length) {
253 while (newIndex < newArray.length) {
256 if (oldArray[oldIndex] == newArray[newIndex]) {
263 if (this.compare(oldArray[oldIndex], newArray[newIndex]) < 0) {
/external/guava/guava-tests/test/com/google/common/collect/
DObjectArraysTest.java47 String[] empty = ObjectArrays.newArray(String.class, 0); in testNewArray_fromClass_Empty()
54 String[] array = ObjectArrays.newArray(String.class, 2); in testNewArray_fromClass_Nonempty()
62 String[][] array = ObjectArrays.newArray(String[].class, 1); in testNewArray_fromClass_OfArray()
70 String[] empty = ObjectArrays.newArray(in, 0); in testNewArray_fromArray_Empty()
75 String[] array = ObjectArrays.newArray(new String[0], 2); in testNewArray_fromArray_Nonempty()
82 String[][] array = ObjectArrays.newArray(new String[0][0], 1); in testNewArray_fromArray_OfArray()
/external/srec/shared/src/
DIntArrayList.c73 ESR_ReturnCode IntArrayListToStaticArray(IntArrayList* self, int** newArray) in IntArrayListToStaticArray() argument
77 return self->toStaticArray(self, newArray); in IntArrayListToStaticArray()
DInt8ArrayList.c96 ESR_ReturnCode Int8ArrayListToStaticArray(Int8ArrayList* self, asr_int8_t** newArray) in Int8ArrayListToStaticArray() argument
103 return self->toStaticArray(self, newArray); in Int8ArrayListToStaticArray()
/external/srec/shared/include/
DIntArrayList.h108 ESR_ReturnCode(*toStaticArray)(struct IntArrayList_t* self, int** newArray);
200 ESR_SHARED_API ESR_ReturnCode IntArrayListToStaticArray(IntArrayList* self, int** newArray);
DInt8ArrayList.h116 ESR_ReturnCode(*toStaticArray)(struct Int8ArrayList_t* self, asr_int8_t** newArray);
208 ESR_SHARED_API ESR_ReturnCode Int8ArrayListToStaticArray(Int8ArrayList* self, asr_int8_t** newArray
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DExpandedNameTable.java223 ExtendedType[] newArray = new ExtendedType[m_extendedTypes.length * 2]; in getExpandedTypeID() local
224 System.arraycopy(m_extendedTypes, 0, newArray, 0, in getExpandedTypeID()
226 m_extendedTypes = newArray; in getExpandedTypeID()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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()
587 Integer[] newArray = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 39 }; in test_remove_Ljava_lang_Object() local
588 Arrays.sort(newArray); in test_remove_Ljava_lang_Object()
589 for (int i = 0; i < newArray.length; i++) { in test_remove_Ljava_lang_Object()
590 assertEquals(newArray[i], integerQueue.poll()); in test_remove_Ljava_lang_Object()
/external/chromium_org/chrome/browser/resources/bookmark_manager/js/bmm/
Dbookmark_list.js242 var newArray = [];
244 newArray[i] = items[reorderInfo.childIds[i]];
245 newArray[i].index = i;
248 this.dataModel = new BookmarksArrayDataModel(newArray);
/external/chromium_org/chrome/browser/resources/enhanced_bookmark_manager/js/bmm/
Dbookmark_list.js242 var newArray = [];
244 newArray[i] = items[reorderInfo.childIds[i]];
245 newArray[i].index = i;
248 this.dataModel = new BookmarksArrayDataModel(newArray);
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DNamespaceMappings.java400 Object[] newArray = new Object[newMax]; in push() local
401 System.arraycopy(m_stack,0, newArray, 0, max); in push()
403 m_stack = newArray; in push()
/external/proguard/src/proguard/shrink/
DClassShrinker.java416 Clazz[] newArray = new Clazz[length]; in shrinkToNewArray() local
417 System.arraycopy(array, 0, newArray, 0, length); in shrinkToNewArray()
418 return newArray; in shrinkToNewArray()
/external/guava/guava-tests/test/com/google/common/primitives/
DBytesTest.java215 byte[] newArray = Bytes.toArray(list); in testAsList_toArray_roundTrip()
220 new byte[] { (byte) 0, (byte) 1, (byte) 2 }, newArray)); in testAsList_toArray_roundTrip()
221 newArray[1] = (byte) 5; in testAsList_toArray_roundTrip()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DTestParcelable.java26 public TestParcelable[] newArray(int size) {

123