Tabnine Logo
MethodId.getNameIndex
Code IndexAdd Tabnine to your IDE (free)

How to use
getNameIndex
method
in
com.android.dex.MethodId

Best Java code snippets using com.android.dex.MethodId.getNameIndex (Showing top 13 results out of 315)

origin: skylot/jadx

private MethodInfo(DexNode dex, int mthIndex) {
  MethodId mthId = dex.getMethodId(mthIndex);
  name = dex.getString(mthId.getNameIndex());
  alias = name;
  aliasFromPreset = false;
  declClass = ClassInfo.fromDex(dex, mthId.getDeclaringClassIndex());
  ProtoId proto = dex.getProtoId(mthId.getProtoIndex());
  retType = dex.getType(proto.getReturnTypeIndex());
  args = dex.readParamList(proto.getParametersOffset());
  shortId = makeSignature(true);
}
origin: com.android.tools.build/builder

/**
 * Returns the methods with {@code memberNameIndex} declared by {@code
 * declaringType} and its subtypes.
 */
private Set<Integer> getMethodIds(Dex dex, Set<Integer> memberNameIndexes, int declaringType) {
  Set<Integer> subtypes = findAssignableTypes(dex, declaringType);
  Set<Integer> methods = new HashSet<Integer>();
  int methodIndex = 0;
  for (MethodId method : dex.methodIds()) {
    if (memberNameIndexes.contains(method.getNameIndex())
        && subtypes.contains(method.getDeclaringClassIndex())) {
      methods.add(methodIndex);
    }
    methodIndex++;
  }
  return methods;
}
origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Returns the methods with {@code memberNameIndex} declared by {@code
 * declaringType} and its subtypes.
 */
private Set<Integer> getMethodIds(Dex dex, Set<Integer> memberNameIndexes, int declaringType) {
  Set<Integer> subtypes = findAssignableTypes(dex, declaringType);
  Set<Integer> methods = new HashSet<Integer>();
  int methodIndex = 0;
  for (MethodId method : dex.methodIds()) {
    if (memberNameIndexes.contains(method.getNameIndex())
        && subtypes.contains(method.getDeclaringClassIndex())) {
      methods.add(methodIndex);
    }
    methodIndex++;
  }
  return methods;
}
origin: com.android/dx

/**
 * Returns the methods with {@code memberNameIndex} declared by {@code
 * declaringType} and its subtypes.
 */
private Set<Integer> getMethodIds(Dex dex, Set<Integer> memberNameIndexes, int declaringType) {
  Set<Integer> subtypes = findAssignableTypes(dex, declaringType);
  Set<Integer> methods = new HashSet<Integer>();
  int methodIndex = 0;
  for (MethodId method : dex.methodIds()) {
    if (memberNameIndexes.contains(method.getNameIndex())
        && subtypes.contains(method.getDeclaringClassIndex())) {
      methods.add(methodIndex);
    }
    methodIndex++;
  }
  return methods;
}
origin: com.jakewharton.android.repackaged/dalvik-dx

private String location() {
  String className = dex.typeNames().get(currentClass.getTypeIndex());
  if (currentMethod != null) {
    MethodId methodId = dex.methodIds().get(currentMethod.getMethodIndex());
    return className + "." + dex.strings().get(methodId.getNameIndex());
  } else {
    return className;
  }
}
origin: com.android/dx

private String location() {
  String className = dex.typeNames().get(currentClass.getTypeIndex());
  if (currentMethod != null) {
    MethodId methodId = dex.methodIds().get(currentMethod.getMethodIndex());
    return className + "." + dex.strings().get(methodId.getNameIndex());
  } else {
    return className;
  }
}
origin: com.android.tools.build/builder

private String location() {
  String className = dex.typeNames().get(currentClass.getTypeIndex());
  if (currentMethod != null) {
    MethodId methodId = dex.methodIds().get(currentMethod.getMethodIndex());
    return className + "." + dex.strings().get(methodId.getNameIndex());
  } else {
    return className;
  }
}
origin: com.android.tools.build/builder

private String location() {
  String className = dex.typeNames().get(currentClass.getTypeIndex());
  if (currentMethod != null) {
    MethodId methodId = dex.methodIds().get(currentMethod.getMethodIndex());
    return className + "." + dex.strings().get(methodId.getNameIndex());
  } else {
    return className;
  }
}
origin: com.jakewharton.android.repackaged/dalvik-dx

private String location() {
  String className = dex.typeNames().get(currentClass.getTypeIndex());
  if (currentMethod != null) {
    MethodId methodId = dex.methodIds().get(currentMethod.getMethodIndex());
    return className + "." + dex.strings().get(methodId.getNameIndex());
  } else {
    return className;
  }
}
origin: com.android/dx

private String location() {
  String className = dex.typeNames().get(currentClass.getTypeIndex());
  if (currentMethod != null) {
    MethodId methodId = dex.methodIds().get(currentMethod.getMethodIndex());
    return className + "." + dex.strings().get(methodId.getNameIndex());
  } else {
    return className;
  }
}
origin: com.android.tools.build/builder

public MethodId adjust(MethodId methodId) {
  return new MethodId(target,
      adjustType(methodId.getDeclaringClassIndex()),
      adjustProto(methodId.getProtoIndex()),
      adjustString(methodId.getNameIndex()));
}
origin: com.jakewharton.android.repackaged/dalvik-dx

public MethodId adjust(MethodId methodId) {
  return new MethodId(target,
      adjustType(methodId.getDeclaringClassIndex()),
      adjustProto(methodId.getProtoIndex()),
      adjustString(methodId.getNameIndex()));
}
origin: com.android/dx

public MethodId adjust(MethodId methodId) {
  return new MethodId(target,
      adjustType(methodId.getDeclaringClassIndex()),
      adjustProto(methodId.getProtoIndex()),
      adjustString(methodId.getNameIndex()));
}
com.android.dexMethodIdgetNameIndex

Popular methods of MethodId

  • <init>
  • getDeclaringClassIndex
  • getProtoIndex
  • writeTo

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JPanel (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now