Home
last modified time | relevance | path

Searched refs:intern (Results 1 – 25 of 88) sorted by relevance

1234

/dalvik/dexgen/src/com/android/dexgen/rop/cst/
DCstType.java32 public static final CstType OBJECT = intern(Type.OBJECT);
35 public static final CstType BOOLEAN = intern(Type.BOOLEAN_CLASS);
38 public static final CstType BYTE = intern(Type.BYTE_CLASS);
41 public static final CstType CHARACTER = intern(Type.CHARACTER_CLASS);
44 public static final CstType DOUBLE = intern(Type.DOUBLE_CLASS);
47 public static final CstType FLOAT = intern(Type.FLOAT_CLASS);
50 public static final CstType LONG = intern(Type.LONG_CLASS);
53 public static final CstType INTEGER = intern(Type.INTEGER_CLASS);
56 public static final CstType SHORT = intern(Type.SHORT_CLASS);
59 public static final CstType VOID = intern(Type.VOID_CLASS);
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DExceptions.java28 Type.intern("Ljava/lang/ArithmeticException;");
35 Type.intern("Ljava/lang/ArrayIndexOutOfBoundsException;");
39 Type.intern("Ljava/lang/ArrayStoreException;");
43 Type.intern("Ljava/lang/ClassCastException;");
46 public static final Type TYPE_Error = Type.intern("Ljava/lang/Error;");
53 Type.intern("Ljava/lang/IllegalMonitorStateException;");
57 Type.intern("Ljava/lang/NegativeArraySizeException;");
61 Type.intern("Ljava/lang/NullPointerException;");
/dalvik/dx/src/com/android/dx/rop/code/
DExceptions.java28 Type.intern("Ljava/lang/ArithmeticException;");
35 Type.intern("Ljava/lang/ArrayIndexOutOfBoundsException;");
39 Type.intern("Ljava/lang/ArrayStoreException;");
43 Type.intern("Ljava/lang/ClassCastException;");
46 public static final Type TYPE_Error = Type.intern("Ljava/lang/Error;");
53 Type.intern("Ljava/lang/IllegalMonitorStateException;");
57 Type.intern("Ljava/lang/NegativeArraySizeException;");
61 Type.intern("Ljava/lang/NullPointerException;");
/dalvik/dexgen/src/com/android/dexgen/rop/type/
DType.java145 intern("Ljava/lang/annotation/Annotation;");
148 public static final Type CLASS = intern("Ljava/lang/Class;");
151 public static final Type CLONEABLE = intern("Ljava/lang/Cloneable;");
154 public static final Type OBJECT = intern("Ljava/lang/Object;");
157 public static final Type SERIALIZABLE = intern("Ljava/io/Serializable;");
160 public static final Type STRING = intern("Ljava/lang/String;");
163 public static final Type THROWABLE = intern("Ljava/lang/Throwable;");
170 public static final Type BOOLEAN_CLASS = intern("Ljava/lang/Boolean;");
177 public static final Type BYTE_CLASS = intern("Ljava/lang/Byte;");
184 public static final Type CHARACTER_CLASS = intern("Ljava/lang/Character;");
[all …]
DPrototype.java53 public static Prototype intern(String descriptor) { in intern() method in Prototype
92 Type.intern(descriptor.substring(startAt, at)); in intern()
164 public static Prototype intern(String descriptor, Type definer, in intern() method in Prototype
166 Prototype base = intern(descriptor); in intern()
202 return intern(sb.toString()); in internInts()
/dalvik/dx/junit-tests/com/android/dx/rop/cst/
DCstTypeTest.java32 assertTrue(boolArray == CstType.intern(Type.BOOLEAN_ARRAY)); in checkClearInternTable()
33 CstType myClass = CstType.intern(Type.intern("Lcom/example/Foo;")); in checkClearInternTable()
38 assertTrue(boolArray == CstType.intern(Type.BOOLEAN_ARRAY)); in checkClearInternTable()
39 CstType myClass2 = CstType.intern(Type.intern("Lcom/example/Foo;")); in checkClearInternTable()
/dalvik/dx/src/com/android/dx/dex/file/
DAnnotationUtils.java41 CstType.intern(Type.intern("Ldalvik/annotation/AnnotationDefault;"));
45 CstType.intern(Type.intern("Ldalvik/annotation/EnclosingClass;"));
49 CstType.intern(Type.intern("Ldalvik/annotation/EnclosingMethod;"));
53 CstType.intern(Type.intern("Ldalvik/annotation/InnerClass;"));
57 CstType.intern(Type.intern("Ldalvik/annotation/MemberClasses;"));
61 CstType.intern(Type.intern("Ldalvik/annotation/Signature;"));
65 CstType.intern(Type.intern("Ldalvik/annotation/SourceDebugExtension;"));
69 CstType.intern(Type.intern("Ldalvik/annotation/Throws;"));
263 list.set(i, CstType.intern(types.getType(i))); in makeCstArray()
DStringIdsSection.java100 public StringIdItem intern(String string) { in intern() method in StringIdsSection
101 return intern(new StringIdItem(new CstString(string))); in intern()
110 public StringIdItem intern(CstString string) { in intern() method in StringIdsSection
111 return intern(new StringIdItem(string)); in intern()
120 public synchronized StringIdItem intern(StringIdItem string) { in intern() method in StringIdsSection
143 public synchronized void intern(CstNat nat) { in intern() method in StringIdsSection
144 intern(nat.getName()); in intern()
145 intern(nat.getDescriptor()); in intern()
DClassDefItem.java134 typeIds.intern(thisClass); in addContents()
143 byteData.intern(new EncodedArrayItem(staticValues)); in addContents()
148 typeIds.intern(superclass); in addContents()
152 interfaces = typeLists.intern(interfaces); in addContents()
156 stringIds.intern(sourceFile); in addContents()
161 annotationsDirectory = wordData.intern(annotationsDirectory); in addContents()
DDexFile.java530 stringIds.intern((CstString) cst); in internIfAppropriate()
532 typeIds.intern((CstType) cst); in internIfAppropriate()
534 methodIds.intern((CstBaseMethodRef) cst); in internIfAppropriate()
536 fieldIds.intern((CstFieldRef) cst); in internIfAppropriate()
538 fieldIds.intern(((CstEnumRef) cst).getFieldRef()); in internIfAppropriate()
540 protoIds.intern(((CstProtoRef) cst).getPrototype()); in internIfAppropriate()
542 methodHandles.intern((CstMethodHandle) cst); in internIfAppropriate()
567 return fieldIds.intern(((CstEnumRef) cst).getFieldRef()); in findItemOrNull()
DProtoIdItem.java116 typeIds.intern(prototype.getReturnType()); in addContents()
117 stringIds.intern(shortForm); in addContents()
120 parameterTypes = typeLists.intern(parameterTypes); in addContents()
DMethodAnnotationStruct.java83 methodIds.intern(method); in addContents()
84 annotations = wordData.intern(annotations); in addContents()
DFieldAnnotationStruct.java83 fieldIds.intern(field); in addContents()
84 annotations = wordData.intern(annotations); in addContents()
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DStringIdsSection.java106 public StringIdItem intern(String string) { in intern() method in StringIdsSection
108 return intern(new StringIdItem(utf8)); in intern()
117 public StringIdItem intern(CstString string) { in intern() method in StringIdsSection
119 return intern(new StringIdItem(utf8)); in intern()
128 public StringIdItem intern(CstUtf8 string) { in intern() method in StringIdsSection
129 return intern(new StringIdItem(string)); in intern()
138 public StringIdItem intern(StringIdItem string) { in intern() method in StringIdsSection
161 public void intern(CstNat nat) { in intern() method in StringIdsSection
162 intern(nat.getName()); in intern()
163 intern(nat.getDescriptor()); in intern()
DAnnotationUtils.java43 CstType.intern(Type.intern("Ldalvik/annotation/AnnotationDefault;"));
47 CstType.intern(Type.intern("Ldalvik/annotation/EnclosingClass;"));
51 CstType.intern(Type.intern("Ldalvik/annotation/EnclosingMethod;"));
55 CstType.intern(Type.intern("Ldalvik/annotation/InnerClass;"));
59 CstType.intern(Type.intern("Ldalvik/annotation/MemberClasses;"));
63 CstType.intern(Type.intern("Ldalvik/annotation/Signature;"));
67 CstType.intern(Type.intern("Ldalvik/annotation/Throws;"));
248 list.set(i, CstType.intern(types.getType(i))); in makeCstArray()
DClassDefItem.java137 typeIds.intern(thisClass); in addContents()
146 byteData.intern(new EncodedArrayItem(staticValues)); in addContents()
151 typeIds.intern(superclass); in addContents()
155 interfaces = typeLists.intern(interfaces); in addContents()
159 stringIds.intern(sourceFile); in addContents()
164 annotationsDirectory = wordData.intern(annotationsDirectory); in addContents()
DDexFile.java424 stringIds.intern((CstString) cst); in internIfAppropriate()
426 stringIds.intern((CstUtf8) cst); in internIfAppropriate()
428 typeIds.intern((CstType) cst); in internIfAppropriate()
430 methodIds.intern((CstBaseMethodRef) cst); in internIfAppropriate()
432 fieldIds.intern((CstFieldRef) cst); in internIfAppropriate()
434 fieldIds.intern(((CstEnumRef) cst).getFieldRef()); in internIfAppropriate()
DProtoIdItem.java119 typeIds.intern(prototype.getReturnType()); in addContents()
120 stringIds.intern(shortForm); in addContents()
123 parameterTypes = typeLists.intern(parameterTypes); in addContents()
DMethodAnnotationStruct.java80 methodIds.intern(method); in addContents()
81 annotations = wordData.intern(annotations); in addContents()
DFieldAnnotationStruct.java80 fieldIds.intern(field); in addContents()
81 annotations = wordData.intern(annotations); in addContents()
DIdItem.java49 typeIds.intern(type); in addContents()
/dalvik/dx/junit-tests/com/android/dx/rop/type/
DTypeTest.java31 assertTrue(boolArray == Type.intern("[Z")); in testClearInternTable()
32 Type myClass = Type.intern("Lcom/example/Foo;"); in testClearInternTable()
36 assertTrue(boolArray == Type.intern("[Z")); in testClearInternTable()
37 Type myClass2 = Type.intern("Lcom/example/Foo;"); in testClearInternTable()
/dalvik/dexgen/src/com/android/dexgen/rop/
DStdField.java48 this(CstType.intern(field.getDeclaringClass()), in StdField()
51 CstType.intern(field.getType()).getDescriptor()), in StdField()
64 this(CstType.intern(definingClass), in StdField()
66 new CstNat(new CstUtf8(name), CstType.intern(type).getDescriptor()), in StdField()
/dalvik/dx/src/com/android/dx/rop/type/
DPrototype.java58 public static Prototype intern(String descriptor) { in intern() method in Prototype
120 Type.intern(descriptor.substring(startAt, at)); in fromDescriptor()
195 public static Prototype intern(String descriptor, Type definer, in intern() method in Prototype
197 Prototype base = intern(descriptor); in intern()
233 return intern(sb.toString()); in internInts()
DType.java342 public static Type intern(String descriptor) { in intern() method in Type
365 result = intern(descriptor.substring(1)); in intern()
437 return intern(descriptor); in internReturnType()
459 return intern(name); in internClassName()
462 return intern('L' + name + ';'); in internClassName()
852 componentType = intern(descriptor.substring(1)); in getComponentType()

1234