Home
last modified time | relevance | path

Searched refs:componentType (Results 1 – 7 of 7) sorted by relevance

/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/
DImplForArray.java23 private final Type componentType; field in ImplForArray
25 public ImplForArray(Type componentType) { in ImplForArray() argument
26 this.componentType = componentType; in ImplForArray()
31 return ((ImplForType)componentType).getResolvedType(); in getGenericComponentType()
33 return componentType; in getGenericComponentType()
38 return componentType.toString() + "[]"; in toString()
/dalvik/libcore/luni-kernel/src/main/java/java/lang/reflect/
DArray.java433 public static Object newInstance(Class<?> componentType, int[] dimensions) in newInstance() argument
438 if (componentType == Void.TYPE) in newInstance()
441 if (componentType == null) in newInstance()
444 return createMultiArray(componentType, dimensions); in newInstance()
450 native private static Object createMultiArray(Class<?> componentType, in createMultiArray() argument
471 public static Object newInstance(Class<?> componentType, int size) in newInstance() argument
473 if (!componentType.isPrimitive()) in newInstance()
474 return createObjectArray(componentType, size); in newInstance()
476 if (componentType == Boolean.TYPE) in newInstance()
479 if (componentType == Byte.TYPE) in newInstance()
[all …]
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
DGenericArrayTypeTest.java51 Type componentType = ((GenericArrayType) genericType).getGenericComponentType(); in testGetGenericComponentType() local
52 assertEquals(getTypeParameter(clazz), componentType); in testGetGenericComponentType() local
53 assertInstanceOf(TypeVariable.class, componentType); in testGetGenericComponentType()
54 TypeVariable<?> componentTypeVariable = (TypeVariable<?>) componentType; in testGetGenericComponentType()
76 Type componentType = arrayType.getGenericComponentType(); in testParameterizedComponentType() local
77 assertInstanceOf(ParameterizedType.class, componentType); in testParameterizedComponentType()
78 ParameterizedType parameteriezdType = (ParameterizedType) componentType; in testParameterizedComponentType()
/dalvik/dx/src/com/android/dx/rop/type/
DType.java271 private Type componentType; field in Type
439 this.componentType = null; in Type()
787 if (componentType == null) { in getComponentType()
792 componentType = intern(descriptor.substring(1)); in getComponentType()
795 return componentType; in getComponentType()
/dalvik/libcore/luni/src/main/java/java/io/
DObjectOutputStream.java1515 Class<?> componentType, boolean unshared) throws IOException { in writeNewArray() argument
1531 if (componentType.isPrimitive()) { in writeNewArray()
1532 if (componentType == Integer.TYPE) { in writeNewArray()
1538 } else if (componentType == Byte.TYPE) { in writeNewArray()
1542 } else if (componentType == Character.TYPE) { in writeNewArray()
1548 } else if (componentType == Short.TYPE) { in writeNewArray()
1554 } else if (componentType == Boolean.TYPE) { in writeNewArray()
1560 } else if (componentType == Long.TYPE) { in writeNewArray()
1566 } else if (componentType == Float.TYPE) { in writeNewArray()
1572 } else if (componentType == Double.TYPE) { in writeNewArray()
DObjectInputStream.java1637 Class<?> componentType = arrayClass.getComponentType(); in readNewArray() local
1638 Object result = Array.newInstance(componentType, size); in readNewArray()
1646 if (componentType.isPrimitive()) { in readNewArray()
1647 if (componentType == Integer.TYPE) { in readNewArray()
1652 } else if (componentType == Byte.TYPE) { in readNewArray()
1655 } else if (componentType == Character.TYPE) { in readNewArray()
1660 } else if (componentType == Short.TYPE) { in readNewArray()
1665 } else if (componentType == Boolean.TYPE) { in readNewArray()
1670 } else if (componentType == Long.TYPE) { in readNewArray()
1675 } else if (componentType == Float.TYPE) { in readNewArray()
[all …]
/dalvik/dx/src/com/android/dx/cf/code/
DRopperMachine.java394 Type componentType = ((CstType) cst).getClassType(); in run() local
396 componentType = componentType.getComponentType(); in run()
402 if (componentType.isPrimitive()) { in run()
409 CstFieldRef.forPrimitiveType(componentType); in run()
420 new CstType(componentType)); in run()