/dalvik/dx/src/com/android/dx/rop/cst/ |
D | CstMethodHandle.java | 19 import com.android.dx.rop.type.Type; 44 private final int type; field in CstMethodHandle 57 public static CstMethodHandle make(int type, Constant ref) { in make() argument 58 if (isAccessor(type)) { in make() 62 } else if (isInvocation(type)) { in make() 67 throw new IllegalArgumentException("type is out of range: " + type); in make() 69 return new CstMethodHandle(type, ref); in make() 78 private CstMethodHandle(int type, Constant ref) { in CstMethodHandle() argument 79 this.type = type; in CstMethodHandle() 98 return type; in getMethodHandleType() [all …]
|
D | CstType.java | 19 import com.android.dx.rop.type.Type; 134 private final Type type; field in CstType 173 public static CstType intern(Type type) { in intern() argument 174 CstType cst = new CstType(type); in intern() 175 CstType result = interns.putIfAbsent(type, cst); in intern() 184 public CstType(Type type) { in CstType() argument 185 if (type == null) { in CstType() 189 if (type == Type.KNOWN_NULL) { in CstType() 194 this.type = type; in CstType() 205 return type == ((CstType) other).type; in equals() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
D | RegisterSpec.java | 21 import com.android.dexgen.rop.type.Type; 22 import com.android.dexgen.rop.type.TypeBearer; 47 private final TypeBearer type; field in RegisterSpec 61 private static RegisterSpec intern(int reg, TypeBearer type, in intern() argument 63 theInterningItem.set(reg, type, local); in intern() 85 public static RegisterSpec make(int reg, TypeBearer type) { in make() argument 86 return intern(reg, type, null); in make() 100 public static RegisterSpec make(int reg, TypeBearer type, in make() argument 106 return intern(reg, type, local); in make() 122 int reg, TypeBearer type, LocalItem local) { in makeLocalOptional() argument [all …]
|
/dalvik/dx/src/com/android/dx/rop/code/ |
D | RegisterSpec.java | 21 import com.android.dx.rop.type.Type; 22 import com.android.dx.rop.type.TypeBearer; 52 private final TypeBearer type; field in RegisterSpec 69 private static RegisterSpec intern(int reg, TypeBearer type, in intern() argument 72 interningItem.set(reg, type, local); in intern() 94 public static RegisterSpec make(int reg, TypeBearer type) { in make() argument 95 return intern(reg, type, null); in make() 109 public static RegisterSpec make(int reg, TypeBearer type, in make() argument 115 return intern(reg, type, local); in make() 131 int reg, TypeBearer type, LocalItem local) { in makeLocalOptional() argument [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | TypeIdsSection.java | 21 import com.android.dexgen.rop.type.Type; 63 Type type = ((CstType) cst).getClassType(); in get() local 64 IndexedItem result = typeIds.get(type); in get() 103 public TypeIdItem intern(Type type) { in intern() argument 104 if (type == null) { in intern() 110 TypeIdItem result = typeIds.get(type); in intern() 113 result = new TypeIdItem(new CstType(type)); in intern() 114 typeIds.put(type, result); in intern() 126 public TypeIdItem intern(CstType type) { in intern() argument 127 if (type == null) { in intern() [all …]
|
D | IdItem.java | 29 private final CstType type; field in IdItem 37 public IdItem(CstType type) { in IdItem() argument 38 if (type == null) { in IdItem() 42 this.type = type; in IdItem() 49 typeIds.intern(type); in addContents() 59 return type; in getDefiningClass()
|
D | ClassDefsSection.java | 21 import com.android.dexgen.rop.type.Type; 22 import com.android.dexgen.rop.type.TypeList; 74 Type type = ((CstType) cst).getClassType(); in get() local 75 IndexedItem result = classDefs.get(type); in get() 111 Type type; in add() local 114 type = clazz.getThisClass().getClassType(); in add() 122 if (classDefs.get(type) != null) { in add() 123 throw new IllegalArgumentException("already added: " + type); in add() 126 classDefs.put(type, clazz); in add() 143 for (Type type : classDefs.keySet()) { in orderItems() [all …]
|
D | MapItem.java | 35 private final ItemType type; field in MapItem 87 ItemType type = item.itemType(); in addMap() local 88 if (type != currentType) { in addMap() 93 currentType = type; in addMap() 124 private MapItem(ItemType type, Section section, Item firstItem, in MapItem() argument 128 if (type == null) { in MapItem() 148 this.type = type; in MapItem() 168 this.type = ItemType.TYPE_MAP_LIST; in MapItem() 190 sb.append(type.toHuman()); in toString() 211 int value = type.getMapValue(); in writeTo0() [all …]
|
D | ValueEncoder.java | 129 int type = constantToValueType(cst); in writeConstant() local 132 switch (type) { in writeConstant() 138 writeSignedIntegralValue(type, value); in writeConstant() 143 writeUnsignedIntegralValue(type, value); in writeConstant() 149 writeRightZeroExtendedValue(type, value); in writeConstant() 154 writeRightZeroExtendedValue(type, value); in writeConstant() 159 writeUnsignedIntegralValue(type, (long) index); in writeConstant() 164 writeUnsignedIntegralValue(type, (long) index); in writeConstant() 169 writeUnsignedIntegralValue(type, (long) index); in writeConstant() 174 writeUnsignedIntegralValue(type, (long) index); in writeConstant() [all …]
|
/dalvik/dx/src/com/android/dex/ |
D | EncodedValueReader.java | 48 private int type = MUST_READ; field in EncodedValueReader 68 this.type = knownType; in EncodedValueReader() 79 if (type == MUST_READ) { in peek() 81 type = argAndType & 0x1f; in peek() 84 return type; in peek() 99 type = MUST_READ; in readArray() 118 type = MUST_READ; in readAnnotation() 138 type = MUST_READ; in readByte() 144 type = MUST_READ; in readShort() 150 type = MUST_READ; in readChar() [all …]
|
/dalvik/dx/tests/003-magic-version-access/ |
D | expected.txt | 38 0003: type{Small} 39 0004: type{java.lang.Object} 42 this_class: type{Small} 43 super_class: type{java.lang.Object} 59 0003: type{Small} 60 0004: type{java.lang.Object} 63 this_class: type{Small} 64 super_class: type{java.lang.Object} 80 0003: type{Small} 81 0004: type{java.lang.Object} [all …]
|
/dalvik/dx/tests/006-interfaces/ |
D | expected.txt | 14 0006: type{java.lang.Object} 15 0007: type{Small} 16 0008: type{Foo} 17 0009: type{Bar} 18 000a: type{Baz} 21 this_class: type{Small} 22 super_class: type{java.lang.Object} 25 type{Foo} 26 type{Bar} 27 type{Baz}
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | TypeIdsSection.java | 23 import com.android.dx.rop.type.Type; 64 Type type = ((CstType) cst).getClassType(); in get() local 65 IndexedItem result = typeIds.get(type); in get() 108 public synchronized TypeIdItem intern(Type type) { in intern() argument 109 if (type == null) { in intern() 115 TypeIdItem result = typeIds.get(type); in intern() 118 result = new TypeIdItem(new CstType(type)); in intern() 119 typeIds.put(type, result); in intern() 131 public synchronized TypeIdItem intern(CstType type) { in intern() argument 132 if (type == null) { in intern() [all …]
|
D | IdItem.java | 29 private final CstType type; field in IdItem 37 public IdItem(CstType type) { in IdItem() argument 38 if (type == null) { in IdItem() 42 this.type = type; in IdItem() 49 typeIds.intern(type); in addContents() 59 return type; in getDefiningClass()
|
D | ClassDefsSection.java | 21 import com.android.dx.rop.type.Type; 22 import com.android.dx.rop.type.TypeList; 73 Type type = ((CstType) cst).getClassType(); in get() local 74 IndexedItem result = classDefs.get(type); in get() 110 Type type; in add() local 113 type = clazz.getThisClass().getClassType(); in add() 121 if (classDefs.get(type) != null) { in add() 122 throw new IllegalArgumentException("already added: " + type); in add() 125 classDefs.put(type, clazz); in add() 142 for (Type type : classDefs.keySet()) { in orderItems() [all …]
|
D | MapItem.java | 34 private final ItemType type; field in MapItem 86 ItemType type = item.itemType(); in addMap() local 87 if (type != currentType) { in addMap() 92 currentType = type; in addMap() 123 private MapItem(ItemType type, Section section, Item firstItem, in MapItem() argument 127 if (type == null) { in MapItem() 147 this.type = type; in MapItem() 167 this.type = ItemType.TYPE_MAP_LIST; in MapItem() 189 sb.append(type.toHuman()); in toString() 210 int value = type.getMapValue(); in writeTo0() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
D | CstType.java | 19 import com.android.dexgen.rop.type.Type; 86 private final Type type; field in CstType 125 public static CstType intern(Type type) { in intern() argument 126 CstType cst = interns.get(type); in intern() 129 cst = new CstType(type); in intern() 130 interns.put(type, cst); in intern() 152 public CstType(Type type) { in CstType() argument 153 if (type == null) { in CstType() 157 if (type == type.KNOWN_NULL) { in CstType() 162 this.type = type; in CstType() [all …]
|
/dalvik/dx/tests/010-class-attrib-InnerClasses/ |
D | expected.txt | 11 0003: type{Small} 12 0004: type{java.lang.Object} 15 0007: type{Zorch} 18 this_class: type{Small} 19 super_class: type{java.lang.Object} 29 inner_class: type{Small} 33 inner_class: type{Small} 37 inner_class: type{Small} 38 outer_class: type{Zorch} 41 inner_class: type{Zorch} [all …]
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | ExecutionStack.java | 20 import com.android.dx.rop.type.Type; 21 import com.android.dx.rop.type.TypeBearer; 98 public void makeInitialized(Type type) { in makeInitialized() argument 106 Type initializedType = type.getInitializedType(); in makeInitialized() 109 if (stack[i] == type) { in makeInitialized() 154 public void push(TypeBearer type) { in push() argument 160 type = type.getFrameType(); in push() 161 category = type.getType().getCategory(); in push() 177 stack[stackPtr] = type; in push() 274 public void change(int n, TypeBearer type) { in change() argument [all …]
|
D | OneLocalsArray.java | 21 import com.android.dx.rop.type.Type; 22 import com.android.dx.rop.type.TypeBearer; 62 TypeBearer type = locals[i]; in annotate() local 63 String s = (type == null) ? "<invalid>" : type.toString(); in annotate() 74 TypeBearer type = locals[i]; in toHuman() local 75 String s = (type == null) ? "<invalid>" : type.toString(); in toHuman() 84 public void makeInitialized(Type type) { in makeInitialized() argument 94 Type initializedType = type.getInitializedType(); in makeInitialized() 97 if (locals[i] == type) { in makeInitialized() 111 public void set(int idx, TypeBearer type) { in set() argument [all …]
|
D | ValueAwareMachine.java | 21 import com.android.dx.rop.type.Prototype; 22 import com.android.dx.rop.type.Type; 23 import com.android.dx.rop.type.TypeBearer; 151 Type type = ((TypeBearer) getAuxCst()).getType(); in run() local 152 if (type == Type.VOID) { in run() 155 setResult(type); in run() 164 Type type = ((TypeBearer) getAuxCst()).getType(); in run() local 165 if (type == Type.VOID) { in run() 168 setResult(type); in run() 173 Type type = ((CstCallSiteRef) getAuxCst()).getReturnType(); in run() local [all …]
|
/dalvik/dx/tests/100-local-mismatch/ |
D | expected.txt | 2 local variable type mismatch: attempt to set or access a value of type int using a local variable o… 4 local variable type mismatch: attempt to set or access a value of type java.lang.Object using a loc… 6 local variable type mismatch: attempt to set or access a value of type int using a local variable o… 8 local variable type mismatch: attempt to set or access a value of type java.lang.String using a loc…
|
/dalvik/dx/tests/028-class-attrib-EnclosingMethod/ |
D | expected.txt | 11 0003: type{Small} 12 0004: type{java.lang.Object} 16 this_class: type{Small} 17 super_class: type{java.lang.Object} 26 class: type{Small} 40 0003: type{Small} 41 0004: type{java.lang.Object} 48 this_class: type{Small} 49 super_class: type{java.lang.Object} 58 class: type{Small}
|
/dalvik/dx/src/com/android/dx/cf/attrib/ |
D | AttEnclosingMethod.java | 31 private final CstType type; field in AttEnclosingMethod 43 public AttEnclosingMethod(CstType type, CstNat method) { in AttEnclosingMethod() argument 46 if (type == null) { in AttEnclosingMethod() 50 this.type = type; in AttEnclosingMethod() 66 return type; in getEnclosingClass()
|
/dalvik/dx/src/com/android/dx/rop/annotation/ |
D | Annotation.java | 36 private final CstType type; field in Annotation 50 public Annotation(CstType type, AnnotationVisibility visibility) { in Annotation() argument 51 if (type == null) { in Annotation() 59 this.type = type; in Annotation() 73 if (! (type.equals(otherAnnotation.type) in equals() 84 int hash = type.hashCode(); in hashCode() 93 int result = type.compareTo(other.type); in compareTo() 140 sb.append(type.toHuman()); in toHuman() 165 return type; in getType()
|