Searched refs:componentType (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/main/java/libcore/reflect/
H A DGenericArrayTypeImpl.java24 private final Type componentType; field in class:GenericArrayTypeImpl
26 public GenericArrayTypeImpl(Type componentType) { argument
27 this.componentType = componentType;
32 return ((ParameterizedTypeImpl)componentType).getResolvedType();
34 return componentType;
53 return componentType.toString() + "[]";
H A DAnnotationAccess.java673 Class<?> componentType = type.getComponentType();
674 Object array = Array.newInstance(componentType, size);
676 Array.set(array, i, decodeValue(context, componentType, dex, reader));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DGenericArrayTypeTest.java39 Type componentType = ((GenericArrayType) genericType).getGenericComponentType();
40 assertEquals(getTypeParameter(clazz), componentType);
41 assertInstanceOf(TypeVariable.class, componentType);
42 TypeVariable<?> componentTypeVariable = (TypeVariable<?>) componentType;
58 Type componentType = arrayType.getGenericComponentType();
59 assertInstanceOf(ParameterizedType.class, componentType);
60 ParameterizedType parameteriezdType = (ParameterizedType) componentType;
/libcore/luni/src/test/java/dalvik/system/
H A DVMRuntimeTest.java27 private void doTestNewNonMovableArray(Class<?> componentType, int step, int maxLength) { argument
30 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, -1);
36 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, Integer.MIN_VALUE);
43 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, i);
45 assertEquals(array.getClass().getComponentType(), componentType);
81 private void doTestNewUnpaddedArray(Class<?> componentType, int step, int maxLength) { argument
84 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, -1);
90 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, Integer.MIN_VALUE);
97 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, i);
99 assertEquals(array.getClass().getComponentType(), componentType);
[all...]
/libcore/luni/src/main/java/java/lang/reflect/
H A DArray.java315 * dimensions. Equivalent to {@code new componentType[d0][d1]...[dn]} for a
325 public static Object newInstance(Class<?> componentType, int... dimensions) throws NegativeArraySizeException, IllegalArgumentException { argument
329 if (componentType == void.class) {
332 if (componentType == null) {
333 throw new NullPointerException("componentType == null");
335 return createMultiArray(componentType, dimensions);
341 private static native Object createMultiArray(Class<?> componentType, int[] dimensions) throws NegativeArraySizeException; argument
345 * Equivalent to {@code new componentType[size]}.
352 public static Object newInstance(Class<?> componentType, int size) throws NegativeArraySizeException { argument
353 if (!componentType
380 createObjectArray(Class<?> componentType, int length) argument
[all...]
/libcore/libart/src/main/java/dalvik/system/
H A DVMRuntime.java253 public native Object newNonMovableArray(Class<?> componentType, int length); argument
258 * componentType and the memory allocator implementation.
260 public native Object newUnpaddedArray(Class<?> componentType, int minLength); argument
/libcore/luni/src/main/java/java/io/
H A DObjectOutputStream.java1094 * component type {@code componentType} into the receiver. It is
1103 * @param componentType
1112 Class<?> componentType, boolean unshared) throws IOException {
1126 if (componentType.isPrimitive()) {
1127 if (componentType == int.class) {
1133 } else if (componentType == byte.class) {
1137 } else if (componentType == char.class) {
1143 } else if (componentType == short.class) {
1149 } else if (componentType == boolean.class) {
1155 } else if (componentType
1111 writeNewArray(Object array, Class<?> arrayClass, ObjectStreamClass arrayClDesc, Class<?> componentType, boolean unshared) argument
[all...]
H A DObjectInputStream.java1429 Class<?> componentType = arrayClass.getComponentType();
1430 Object result = Array.newInstance(componentType, size);
1438 if (componentType.isPrimitive()) {
1439 if (componentType == int.class) {
1444 } else if (componentType == byte.class) {
1447 } else if (componentType == char.class) {
1452 } else if (componentType == short.class) {
1457 } else if (componentType == boolean.class) {
1462 } else if (componentType == long.class) {
1467 } else if (componentType
[all...]
/libcore/libart/src/main/java/java/lang/
H A DClass.java134 private transient Class<?> componentType; field in class:Class
438 return componentType;
1472 return c.isArray() && componentType.isAssignableFrom(c.componentType);
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 272 milliseconds