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

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

Best Java code snippets using com.android.dex.MethodId.getDeclaringClassIndex (Showing top 7 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.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.dexMethodIdgetDeclaringClassIndex

Popular methods of MethodId

  • <init>
  • getNameIndex
  • getProtoIndex
  • writeTo

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • getContentResolver (Context)
  • findViewById (Activity)
  • Kernel (java.awt.image)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
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