Home
last modified time | relevance | path

Searched refs:readUshort (Results 1 – 25 of 37) sorted by relevance

12

/external/smali/dexlib2/src/test/java/org/jf/dexlib2/dexbacked/
DBaseDexBufferTest.java109 Assert.assertEquals(dexBuf.readUshort(0), 0x2211); in testReadUshort()
112 Assert.assertEquals(dexBuf.readUshort(0), 0); in testReadUshort()
115 Assert.assertEquals(dexBuf.readUshort(0), 0xffff); in testReadUshort()
118 Assert.assertEquals(dexBuf.readUshort(0), 0x8000); in testReadUshort()
121 Assert.assertEquals(dexBuf.readUshort(0), 0x7fff); in testReadUshort()
237 Assert.assertEquals(val & 0xFFFF, dexBuf.readUshort(0)); in testReadRandom()
238 Assert.assertEquals((val >> 8) & 0xFFFF, dexBuf.readUshort(1)); in testReadRandom()
239 Assert.assertEquals((val >> 16) & 0xFFFF, dexBuf.readUshort(2)); in testReadRandom()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DFieldIdItem.java57 int classIndex = dexFile.readUshort(out.getCursor()); in makeAnnotator()
60 int typeIndex = dexFile.readUshort(out.getCursor()); in makeAnnotator()
72 int classIndex = dexFile.readUshort(fieldOffset + CLASS_OFFSET);
75 int typeIndex = dexFile.readUshort(fieldOffset + TYPE_OFFSET);
DMethodIdItem.java57 int classIndex = dexFile.readUshort(out.getCursor()); in makeAnnotator()
60 int protoIndex = dexFile.readUshort(out.getCursor()); in makeAnnotator()
72 int classIndex = dexFile.readUshort(methodOffset + CLASS_OFFSET);
75 int protoIndex = dexFile.readUshort(methodOffset + PROTO_OFFSET);
DCodeItem.java91 int registers = reader.readUshort(); in makeAnnotator()
94 int inSize = reader.readUshort(); in makeAnnotator()
97 int outSize = reader.readUshort(); in makeAnnotator()
100 int triesCount = reader.readUshort(); in makeAnnotator()
167 reader.readUshort(); in makeAnnotator()
181 int instructionCount = reader.readUshort(); in makeAnnotator()
184 int handlerOffset = reader.readUshort(); in makeAnnotator()
DMethodHandleItem.java57 int methodHandleType = dexFile.readUshort(out.getCursor()); in makeAnnotator()
61 int fieldOrMethodId = dexFile.readUshort(out.getCursor()); in makeAnnotator()
DTypeListItem.java58 int typeIndex = dexFile.readUshort(out.getCursor()); in makeAnnotator()
94 int typeIndex = dexFile.readUshort(typeListOffset + 4 + i*2);
DMapItem.java57 return dexFile.readUshort(offset + TYPE_OFFSET); in getType()
82 int itemType = dexFile.readUshort(out.getCursor()); in makeAnnotator()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/instruction/
DDexBackedInstruction4rcc.java55 return dexFile.readUshort(instructionStart + 4); in getStartRegister()
62 dexFile.readUshort(instructionStart + 2)); in getReference()
73 dexFile.readUshort(instructionStart + 6)); in getReference2()
DDexBackedInstruction32x.java47 @Override public int getRegisterA() { return dexFile.readUshort(instructionStart + 2); } in getRegisterA()
48 @Override public int getRegisterB() { return dexFile.readUshort(instructionStart + 4); } in getRegisterB()
DDexBackedInstruction3rms.java53 return dexFile.readUshort(instructionStart + 4); in getStartRegister()
58 return dexFile.readUshort(instructionStart + 2); in getVtableIndex()
DDexBackedInstruction3rmi.java53 return dexFile.readUshort(instructionStart + 4); in getStartRegister()
58 return dexFile.readUshort(instructionStart + 2); in getInlineIndex()
DDexBackedInstruction3rc.java55 return dexFile.readUshort(instructionStart + 4); in getStartRegister()
62 dexFile.readUshort(instructionStart + 2)); in getReference()
DDexBackedInstruction45cc.java83 dexFile.readUshort(instructionStart + 2)); in getReference()
94 dexFile.readUshort(instructionStart + 6)); in getReference2()
DDexBackedUnknownInstruction.java49 opcode = dexFile.readUshort(instructionStart); in getOriginalOpcode()
DDexBackedInstruction22x.java48 @Override public int getRegisterB() { return dexFile.readUshort(instructionStart + 2); } in getRegisterB()
DDexBackedInstruction22cs.java60 return dexFile.readUshort(instructionStart + 2); in getFieldOffset()
DDexBackedInstruction21c.java54 …return DexBackedReference.makeReference(dexFile, opcode.referenceType, dexFile.readUshort(instruct… in getReference()
DDexBackedInstruction20bc.java56 …return DexBackedReference.makeReference(dexFile, referenceType, dexFile.readUshort(instructionStar… in getReference()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/reference/
DDexBackedMethodReference.java58 return dexFile.getType(dexFile.readUshort(methodIdItemOffset + MethodIdItem.CLASS_OFFSET)); in getDefiningClass()
79 return dexFile.getType(dexFile.readUshort(paramListStart + 2*index)); in getParameterTypes()
97 dexFile.readUshort(methodIdItemOffset + MethodIdItem.PROTO_OFFSET));
DDexBackedFieldReference.java52 return dexFile.getType(dexFile.readUshort(fieldIdItemOffset + FieldIdItem.CLASS_OFFSET)); in getDefiningClass()
64 return dexFile.getType(dexFile.readUshort(fieldIdItemOffset + FieldIdItem.TYPE_OFFSET)); in getType()
DDexBackedMethodHandleReference.java56 return dexFile.readUshort(methodHandleOffset + MethodHandleItem.METHOD_HANDLE_TYPE_OFFSET); in getMethodHandleType()
62 … int memberIndex = dexFile.readUshort(methodHandleOffset + MethodHandleItem.MEMBER_ID_OFFSET); in getMemberReference()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
DOatFile.java348 entrySize = readUshort(58);
349 entryCount = readUshort(60);
352 entrySize = readUshort(46);
353 entryCount = readUshort(48);
390 int index = readUshort(50);
513 public int getSectionIndex() { return readUshort(offset + 14); }
523 public int getSectionIndex() { return readUshort(offset + 6); }
DDexBackedTryBlock.java59 return dexFile.readUshort(tryItemOffset + CodeItem.TryItem.CODE_UNIT_COUNT_OFFSET); in getCodeUnitCount()
66 … handlersStartOffset + dexFile.readUshort(tryItemOffset + CodeItem.TryItem.HANDLER_OFFSET)); in getExceptionHandlers()
DBaseDexReader.java324 return dexBuf.readUshort(offset); in peekUshort()
327 public int readUshort() { in readUshort() method in BaseDexReader
329 int result = dexBuf.readUshort(offset); in readUshort()
377 public int readUshort(int offset) { return dexBuf.readUshort(offset); } in readUshort() method in BaseDexReader
DDexBackedMethodImplementation.java65 @Override public int getRegisterCount() { return dexFile.readUshort(codeOffset); } in getRegisterCount()
100 final int triesSize = dexFile.readUshort(codeOffset + CodeItem.TRIES_SIZE_OFFSET);

12