/** * Gets the method's descriptor. */ public String getDescriptor() { return descriptorFromProtoArray(mArgTypes, mReturnType); }
/** * Prints the list of methods in a simple human-readable format. */ static void printMethodRefs(ClassRef[] classes) { out.println("\nMethods:"); for (int i = 0; i < classes.length; i++) { MethodRef[] methods = classes[i].getMethodArray(); for (int j = 0; j < methods.length; j++) { MethodRef ref = methods[j]; out.println(descriptorToDot(ref.getDeclClassName()) + "." + ref.getName() + " : " + ref.getDescriptor()); } } }
for (int i = 0; i < methods.length; i++) { MethodRef mref = methods[i]; String declClassName = mref.getDeclClassName(); boolean constructor; constructor = mref.getName().equals("<init>"); if (constructor) { classNameOnly(declClassName) + "\">"); } else { out.println(IN3 + "<method name=\"" + mref.getName() + "\" return=\"" + descriptorToDot(mref.getReturnTypeName()) + "\">"); String[] args = mref.getArgumentTypeNames(); for (int j = 0; j < args.length; j++) { out.println(IN4 + "<parameter type=\"" +
/** * Returns the list of all method references. */ public MethodRef[] getMethodRefs() { MethodRef[] methodRefs = new MethodRef[mMethodIds.length]; for (int i = 0; i < mMethodIds.length; i++) { MethodIdItem methodId = mMethodIds[i]; methodRefs[i] = new MethodRef( classNameFromTypeIndex(methodId.classIdx), argArrayFromProtoIndex(methodId.protoIdx), returnTypeFromProtoIndex(methodId.protoIdx), mStrings[methodId.nameIdx]); } return methodRefs; }
protected Report createReport(Map<String, RandomAccessFile> dexFiles) throws IOException { Report report = new Report(); report.root = new Node("<root>"); for (Map.Entry<String, RandomAccessFile> dexFileEntry : dexFiles.entrySet()) { DexData dexData = loadDexData(dexFileEntry.getValue()); MethodRef[] methodRefs = dexData.getMethodRefs(); report.totalMethods += methodRefs.length; report.dexFileMethods.put(dexFileEntry.getKey(), methodRefs.length); for (MethodRef methodRef : methodRefs) { String packageName = Output.packageNameOnly(methodRef.getDeclClassName()); String[] packageNamePieces = splitPackageName(packageName); countMethod(packageNamePieces, report.root); } } return report; }
for (int i = 0; i < methods.length; i++) { MethodRef mref = methods[i]; String declClassName = mref.getDeclClassName(); boolean constructor; constructor = mref.getName().equals("<init>"); if (constructor) { classNameOnly(declClassName) + "\">"); } else { out.println(IN3 + "<method name=\"" + mref.getName() + "\" return=\"" + descriptorToDot(mref.getReturnTypeName()) + "\">"); String[] args = mref.getArgumentTypeNames(); for (int j = 0; j < args.length; j++) { out.println(IN4 + "<parameter type=\"" +
/** * Returns the list of all method references. */ public MethodRef[] getMethodRefs() { MethodRef[] methodRefs = new MethodRef[mMethodIds.length]; for (int i = 0; i < mMethodIds.length; i++) { MethodIdItem methodId = mMethodIds[i]; methodRefs[i] = new MethodRef( classNameFromTypeIndex(methodId.classIdx), argArrayFromProtoIndex(methodId.protoIdx), returnTypeFromProtoIndex(methodId.protoIdx), mStrings[methodId.nameIdx]); } return methodRefs; }
final String classDescriptor = methodRef.getDeclClassName(); final String packageName = includeClasses ? Output.descriptorToDot(classDescriptor).replace('$', '.') :
for (int i = 0; i < methods.length; i++) { MethodRef mref = methods[i]; String declClassName = mref.getDeclClassName(); boolean constructor; constructor = mref.getName().equals("<init>"); if (constructor) { classNameOnly(declClassName) + "\">"); } else { out.println(IN3 + "<method name=\"" + mref.getName() + "\" return=\"" + descriptorToDot(mref.getReturnTypeName()) + "\">"); String[] args = mref.getArgumentTypeNames(); for (int j = 0; j < args.length; j++) { out.println(IN4 + "<parameter type=\"" +
/** * Prints the list of methods in a simple human-readable format. */ static void printMethodRefs(ClassRef[] classes) { out.println("\nMethods:"); for (int i = 0; i < classes.length; i++) { MethodRef[] methods = classes[i].getMethodArray(); for (int j = 0; j < methods.length; j++) { MethodRef ref = methods[j]; out.println(descriptorToDot(ref.getDeclClassName()) + "." + ref.getName() + " : " + ref.getDescriptor()); } } }
/** * Returns the list of all method references. */ public MethodRef[] getMethodRefs() { MethodRef[] methodRefs = new MethodRef[mMethodIds.length]; for (int i = 0; i < mMethodIds.length; i++) { MethodIdItem methodId = mMethodIds[i]; methodRefs[i] = new MethodRef( classNameFromTypeIndex(methodId.classIdx), argArrayFromProtoIndex(methodId.protoIdx), returnTypeFromProtoIndex(methodId.protoIdx), mStrings[methodId.nameIdx]); } return methodRefs; }
/** * Gets the method's descriptor. */ public String getDescriptor() { return descriptorFromProtoArray(mArgTypes, mReturnType); }
String classDescriptor = methodRef.getDeclClassName(); String packageName = includeClasses ? Output.descriptorToDot(classDescriptor).replace('$', '.') :
for (int i = 0; i < methods.length; i++) { MethodRef mref = methods[i]; String declClassName = mref.getDeclClassName(); boolean constructor; constructor = mref.getName().equals("<init>"); if (constructor) { classNameOnly(declClassName) + "\">"); } else { out.println(IN3 + "<method name=\"" + mref.getName() + "\" return=\"" + descriptorToDot(mref.getReturnTypeName()) + "\">"); String[] args = mref.getArgumentTypeNames(); for (int j = 0; j < args.length; j++) { out.println(IN4 + "<parameter type=\"" +
/** * Prints the list of methods in a simple human-readable format. */ static void printMethodRefs(ClassRef[] classes) { out.println("\nMethods:"); for (int i = 0; i < classes.length; i++) { MethodRef[] methods = classes[i].getMethodArray(); for (int j = 0; j < methods.length; j++) { MethodRef ref = methods[j]; out.println(descriptorToDot(ref.getDeclClassName()) + "." + ref.getName() + " : " + ref.getDescriptor()); } } }
/** * Returns the list of all method references. */ public MethodRef[] getMethodRefs() { MethodRef[] methodRefs = new MethodRef[mMethodIds.length]; for (int i = 0; i < mMethodIds.length; i++) { MethodIdItem methodId = mMethodIds[i]; methodRefs[i] = new MethodRef( classNameFromTypeIndex(methodId.classIdx), argArrayFromProtoIndex(methodId.protoIdx), returnTypeFromProtoIndex(methodId.protoIdx), mStrings[methodId.nameIdx]); } return methodRefs; }
/** * Gets the method's descriptor. */ public String getDescriptor() { return descriptorFromProtoArray(mArgTypes, mReturnType); }
String classDescriptor = methodRef.getDeclClassName(); String packageName = includeClasses ? Output.descriptorToDot(classDescriptor).replace('$', '.') :
for (int i = 0; i < methods.length; i++) { MethodRef mref = methods[i]; String declClassName = mref.getDeclClassName(); boolean constructor; constructor = mref.getName().equals("<init>"); if (constructor) { classNameOnly(declClassName) + "\">"); } else { out.println(IN3 + "<method name=\"" + mref.getName() + "\" return=\"" + descriptorToDot(mref.getReturnTypeName()) + "\">"); String[] args = mref.getArgumentTypeNames(); for (int j = 0; j < args.length; j++) { out.println(IN4 + "<parameter type=\"" +
/** * Prints the list of methods in a simple human-readable format. */ static void printMethodRefs(ClassRef[] classes) { out.println("\nMethods:"); for (int i = 0; i < classes.length; i++) { MethodRef[] methods = classes[i].getMethodArray(); for (int j = 0; j < methods.length; j++) { MethodRef ref = methods[j]; out.println(descriptorToDot(ref.getDeclClassName()) + "." + ref.getName() + " : " + ref.getDescriptor()); } } }