Home
last modified time | relevance | path

Searched refs:readSmallUint (Results 1 – 25 of 33) sorted by relevance

12

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/util/
DAnnotationsDirectory.java102 final int size = dexFile.readSmallUint(annotationSetOffset); in getAnnotations()
107 … int annotationOffset = dexFile.readSmallUint(annotationSetOffset + 4 + (4*index)); in getAnnotations()
122 final int size = dexFile.readSmallUint(annotationSetListOffset);
128 … int annotationSetOffset = dexFile.readSmallUint(annotationSetListOffset + 4 + index * 4);
159 return dexFile.readSmallUint(directoryOffset + FIELD_COUNT_OFFSET);
163 return dexFile.readSmallUint(directoryOffset + METHOD_COUNT_OFFSET);
167 return dexFile.readSmallUint(directoryOffset + PARAMETER_COUNT_OFFSET);
172 return getAnnotations(dexFile, dexFile.readSmallUint(directoryOffset));
219 this.currentItemIndex = dexFile.readSmallUint(startOffset);
226 currentItemIndex = dexFile.readSmallUint(startOffset + (currentIndex*8));
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DHeaderItem.java93 return dexFile.readSmallUint(CHECKSUM_OFFSET); in getChecksum()
101 return dexFile.readSmallUint(MAP_OFFSET); in getMapOffset()
105 return dexFile.readSmallUint(HEADER_SIZE_OFFSET); in getHeaderSize()
109 return dexFile.readSmallUint(STRING_COUNT_OFFSET); in getStringCount()
113 return dexFile.readSmallUint(STRING_START_OFFSET); in getStringOffset()
117 return dexFile.readSmallUint(TYPE_COUNT_OFFSET); in getTypeCount()
121 return dexFile.readSmallUint(TYPE_START_OFFSET); in getTypeOffset()
125 return dexFile.readSmallUint(PROTO_COUNT_OFFSET); in getProtoCount()
129 return dexFile.readSmallUint(PROTO_START_OFFSET); in getProtoOffset()
133 return dexFile.readSmallUint(FIELD_COUNT_OFFSET); in getFieldCount()
[all …]
DAnnotationDirectoryItem.java59 int classAnnotationsOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
63 int fieldsSize = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
66 int annotatedMethodsSize = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
69 int annotatedParameterSize = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
78 int fieldIndex = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
80 int annotationOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
93 int methodIndex = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
95 int annotationOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
108 int methodIndex = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
110 int annotationOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
DMapItem.java66 return dexFile.readSmallUint(offset + SIZE_OFFSET); in getItemCount()
70 return dexFile.readSmallUint(offset + OFFSET_OFFSET); in getOffset()
87 int size = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
90 int offset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
96 int mapItemCount = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
DClassDefItem.java71 int classIndex = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
82 int interfacesOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
89 int annotationsOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
96 int classDataOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
104 int staticValuesOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
123 int typeIndex = dexFile.readSmallUint(offset + CLASS_OFFSET); in asString()
DProtoIdItem.java57 int shortyIndex = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
60 int returnTypeIndex = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
63 int parametersOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
87 int parametersOffset = dexFile.readSmallUint(offset + PARAMETERS_OFFSET);
91 int returnTypeIndex = dexFile.readSmallUint(offset + RETURN_TYPE_OFFSET);
DAnnotationSetItem.java54 int size = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
58 int annotationOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
DAnnotationSetRefList.java54 int size = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
58 int annotationSetOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
DOdexHeaderItem.java116 return bdb.readSmallUint(DEX_OFFSET); in getDexOffset()
121 return bdb.readSmallUint(DEPENDENCIES_OFFSET); in getDependenciesOffset()
DTypeListItem.java54 int size = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
92 int size = dexFile.readSmallUint(typeListOffset);
DFieldIdItem.java63 int nameIndex = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
78 int nameIndex = dexFile.readSmallUint(fieldOffset + NAME_OFFSET);
DMethodIdItem.java63 int nameIndex = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
78 int nameIndex = dexFile.readSmallUint(methodOffset + NAME_OFFSET);
DCallSiteIdItem.java57 int callSiteOffset = dexFile.readSmallUint(out.getCursor()); in makeAnnotator()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/dexbacked/
DBaseDexBufferTest.java46 Assert.assertEquals(0x44332211, dexBuf.readSmallUint(0)); in testReadSmallUintSuccess()
49 Assert.assertEquals(0, dexBuf.readSmallUint(0)); in testReadSmallUintSuccess()
52 Assert.assertEquals(0x7fffffff, dexBuf.readSmallUint(0)); in testReadSmallUintSuccess()
58 dexBuf.readSmallUint(0); in testReadSmallUintTooLarge1()
64 dexBuf.readSmallUint(0); in testReadSmallUintTooLarge2()
70 dexBuf.readSmallUint(0); in testReadSmallUintTooLarge3()
76 Assert.assertEquals(0x44332211, dexBuf.readSmallUint(0)); in testReadOptionalUintSuccess()
79 Assert.assertEquals(0, dexBuf.readSmallUint(0)); in testReadOptionalUintSuccess()
82 Assert.assertEquals(0x7fffffff, dexBuf.readSmallUint(0)); in testReadOptionalUintSuccess()
91 dexBuf.readSmallUint(0); in testReadOptionalUintTooLarge1()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
DDexBackedDexFile.java90 stringCount = readSmallUint(HeaderItem.STRING_COUNT_OFFSET); in DexBackedDexFile()
91 stringStartOffset = readSmallUint(HeaderItem.STRING_START_OFFSET); in DexBackedDexFile()
92 typeCount = readSmallUint(HeaderItem.TYPE_COUNT_OFFSET); in DexBackedDexFile()
93 typeStartOffset = readSmallUint(HeaderItem.TYPE_START_OFFSET); in DexBackedDexFile()
94 protoCount = readSmallUint(HeaderItem.PROTO_COUNT_OFFSET); in DexBackedDexFile()
95 protoStartOffset = readSmallUint(HeaderItem.PROTO_START_OFFSET); in DexBackedDexFile()
96 fieldCount = readSmallUint(HeaderItem.FIELD_COUNT_OFFSET); in DexBackedDexFile()
97 fieldStartOffset = readSmallUint(HeaderItem.FIELD_START_OFFSET); in DexBackedDexFile()
98 methodCount = readSmallUint(HeaderItem.METHOD_COUNT_OFFSET); in DexBackedDexFile()
99 methodStartOffset = readSmallUint(HeaderItem.METHOD_START_OFFSET); in DexBackedDexFile()
[all …]
DOatFile.java280 return readSmallUint(headerOffset + 20);
288 return readSmallUint(headerOffset + fieldOffset);
334 return headerOffset + readSmallUint(headerOffset + (6 * 4));
351 offset = readSmallUint(32);
406 …ll public String getName() { return getSectionNameStringTable().getString(readSmallUint(offset)); }
418 @Override public int getOffset() { return readSmallUint(offset + 16); }
419 @Override public int getSize() { return readSmallUint(offset + 20); }
420 @Override public int getLink() { return readSmallUint(offset + 24); }
421 @Override public int getEntrySize() { return readSmallUint(offset + 36); }
429 @Override public int getLink() { return readSmallUint(offset + 40); }
[all …]
DDexBackedClassDef.java77 … int classDataOffset = dexFile.readSmallUint(classDefOffset + ClassDefItem.CLASS_DATA_OFFSET); in DexBackedClassDef()
98 return dexFile.getType(dexFile.readSmallUint(classDefOffset + ClassDefItem.CLASS_OFFSET)); in getType()
109 return dexFile.readSmallUint(classDefOffset + ClassDefItem.ACCESS_FLAGS_OFFSET); in getAccessFlags()
121 …final int interfacesOffset = dexFile.readSmallUint(classDefOffset + ClassDefItem.INTERFACES_OFFSET… in getInterfaces()
123 final int size = dexFile.readSmallUint(interfacesOffset); in getInterfaces()
156 dexFile.readSmallUint(classDefOffset + ClassDefItem.STATIC_VALUES_OFFSET);
402 …int annotationsDirectoryOffset = dexFile.readSmallUint(classDefOffset + ClassDefItem.ANNOTATIONS_O…
473 dexFile.readSmallUint(classDefOffset + ClassDefItem.STATIC_VALUES_OFFSET);
480 … int classDataOffset = dexFile.readSmallUint(classDefOffset + ClassDefItem.CLASS_DATA_OFFSET);
DDexBackedMethod.java118 …return dexFile.getString(dexFile.readSmallUint(getMethodIdItemOffset() + MethodIdItem.NAME_OFFSET)… in getName()
124 …return dexFile.getType(dexFile.readSmallUint(getProtoIdItemOffset() + ProtoIdItem.RETURN_TYPE_OFFS… in getReturnType()
168 … final int parameterCount = dexFile.readSmallUint(parametersOffset + TypeListItem.SIZE_OFFSET);
214 … parametersOffset = dexFile.readSmallUint(getProtoIdItemOffset() + ProtoIdItem.PARAMETERS_OFFSET);
DDexBackedMethodImplementation.java69 … int instructionsSize = dexFile.readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET); in getInstructions()
102 … int instructionsSize = dexFile.readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET);
167 lastOffset += dexFile.readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET) * 2;
DBaseDexReader.java309 public int readSmallUint() { in readSmallUint() method in BaseDexReader
311 int result = dexBuf.readSmallUint(o); in readSmallUint()
376 public int readSmallUint(int offset) { return dexBuf.readSmallUint(offset); } in readSmallUint() method in BaseDexReader
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/reference/
DDexBackedMethodReference.java64 … return dexFile.getString(dexFile.readSmallUint(methodIdItemOffset + MethodIdItem.NAME_OFFSET)); in getName()
71 …final int parametersOffset = dexFile.readSmallUint(protoIdItemOffset + ProtoIdItem.PARAMETERS_OFFS… in getParameterTypes()
73 … final int parameterCount = dexFile.readSmallUint(parametersOffset + TypeListItem.SIZE_OFFSET); in getParameterTypes()
91 … return dexFile.getType(dexFile.readSmallUint(protoIdItemOffset + ProtoIdItem.RETURN_TYPE_OFFSET));
DDexBackedMethodProtoReference.java56 …final int parametersOffset = dexFile.readSmallUint(protoIdItemOffset + ProtoIdItem.PARAMETERS_OFFS… in getParameterTypes()
58 … final int parameterCount = dexFile.readSmallUint(parametersOffset + TypeListItem.SIZE_OFFSET); in getParameterTypes()
75 … return dexFile.getType(dexFile.readSmallUint(protoIdItemOffset + ProtoIdItem.RETURN_TYPE_OFFSET));
DDexBackedFieldReference.java58 … return dexFile.getString(dexFile.readSmallUint(fieldIdItemOffset + FieldIdItem.NAME_OFFSET)); in getName()
DDexBackedStringReference.java68 int stringDataOffset = dexFile.readSmallUint(stringOffset); in getSize()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/instruction/
DDexBackedInstruction31c.java55 dexFile.readSmallUint(instructionStart + 2)); in getReference()

12