Java Code Examples for org.jf.dexlib2.dexbacked.DexBackedDexFile#getProtoIdItemOffset()
The following examples show how to use
org.jf.dexlib2.dexbacked.DexBackedDexFile#getProtoIdItemOffset() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProtoIdItem.java From ZjDroid with Apache License 2.0 | 6 votes |
@Nonnull public static String asString(@Nonnull DexBackedDexFile dexFile, int protoIndex) { int offset = dexFile.getProtoIdItemOffset(protoIndex); StringBuilder sb = new StringBuilder(); sb.append("("); int parametersOffset = dexFile.readSmallUint(offset + PARAMETERS_OFFSET); sb.append(TypeListItem.asString(dexFile, parametersOffset)); sb.append(")"); int returnTypeIndex = dexFile.readSmallUint(offset + RETURN_TYPE_OFFSET); String returnType = dexFile.getType(returnTypeIndex); sb.append(returnType); return sb.toString(); }
Example 2
Source File: ProtoIdItem.java From zjdroid with Apache License 2.0 | 6 votes |
@Nonnull public static String asString(@Nonnull DexBackedDexFile dexFile, int protoIndex) { int offset = dexFile.getProtoIdItemOffset(protoIndex); StringBuilder sb = new StringBuilder(); sb.append("("); int parametersOffset = dexFile.readSmallUint(offset + PARAMETERS_OFFSET); sb.append(TypeListItem.asString(dexFile, parametersOffset)); sb.append(")"); int returnTypeIndex = dexFile.readSmallUint(offset + RETURN_TYPE_OFFSET); String returnType = dexFile.getType(returnTypeIndex); sb.append(returnType); return sb.toString(); }
Example 3
Source File: ProtoIdItem.java From HeyGirl with Apache License 2.0 | 6 votes |
@Nonnull public static String asString(@Nonnull DexBackedDexFile dexFile, int protoIndex) { int offset = dexFile.getProtoIdItemOffset(protoIndex); StringBuilder sb = new StringBuilder(); sb.append("("); int parametersOffset = dexFile.readSmallUint(offset + PARAMETERS_OFFSET); sb.append(TypeListItem.asString(dexFile, parametersOffset)); sb.append(")"); int returnTypeIndex = dexFile.readSmallUint(offset + RETURN_TYPE_OFFSET); String returnType = dexFile.getType(returnTypeIndex); sb.append(returnType); return sb.toString(); }
Example 4
Source File: ProtoIdItem.java From ZjDroid with Apache License 2.0 | 6 votes |
@Nonnull public static String asString(@Nonnull DexBackedDexFile dexFile, int protoIndex) { int offset = dexFile.getProtoIdItemOffset(protoIndex); StringBuilder sb = new StringBuilder(); sb.append("("); int parametersOffset = dexFile.readSmallUint(offset + PARAMETERS_OFFSET); sb.append(TypeListItem.asString(dexFile, parametersOffset)); sb.append(")"); int returnTypeIndex = dexFile.readSmallUint(offset + RETURN_TYPE_OFFSET); String returnType = dexFile.getType(returnTypeIndex); sb.append(returnType); return sb.toString(); }