Home
last modified time | relevance | path

Searched refs:dimensions (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldAndroidArrayTest.java75 int[] dimensions = {3, 2, 1}; in testMultiInt() local
76 Object intIntIntArray = Array.newInstance(Integer.TYPE, dimensions); in testMultiInt()
93 int[] dimensions = {1, 2, 3}; in testMulti() local
94 Object strStrStrArray = Array.newInstance(String.class, dimensions); in testMulti()
/libcore/ojluni/src/main/java/java/lang/reflect/
DArray.java113 public static Object newInstance(Class<?> componentType, int... dimensions) in newInstance() argument
116 if (dimensions.length <= 0 || dimensions.length > 255) { in newInstance()
117 throw new IllegalArgumentException("Bad number of dimensions: " + dimensions.length); in newInstance()
125 return createMultiArray(componentType, dimensions); in newInstance()
812 private static native Object createMultiArray(Class<?> componentType, int[] dimensions) in createMultiArray() argument
/libcore/luni/src/main/java/libcore/reflect/
DTypes.java100 int dimensions = 0; in appendTypeName() local
103 dimensions++; in appendTypeName()
106 for (int d = 0; d < dimensions; d++) { in appendTypeName()
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DArray.annotated.java38 …nstance(@libcore.util.NonNull java.lang.Class<?> componentType, int... dimensions) throws java.lan… in newInstance() argument
/libcore/ojluni/src/main/java/java/lang/
DClass.java1909 int dimensions = 0; in getTypeName() local
1911 dimensions++; in getTypeName()
1914 return cl.getName() + "[]".repeat(dimensions); in getTypeName()