Home
last modified time | relevance | path

Searched refs:TypeProto (Results 1 – 14 of 14) sorted by relevance

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/util/
DTypeProtoUtils.java34 import org.jf.dexlib2.analysis.TypeProto;
55 public static Iterable<TypeProto> getSuperclassChain(@Nonnull final TypeProto typeProto) { in getSuperclassChain()
56 return new Iterable<TypeProto>() { in getSuperclassChain()
58 @Override public Iterator<TypeProto> iterator() { in getSuperclassChain()
59 return new Iterator<TypeProto>() { in getSuperclassChain()
60 @Nullable private TypeProto type = getSuperclassAsTypeProto(typeProto); in getSuperclassChain()
66 @Override public TypeProto next() { in getSuperclassChain()
67 TypeProto type = this.type; in getSuperclassChain()
85 public static TypeProto getSuperclassAsTypeProto(@Nonnull TypeProto type) {
98 public static boolean extendsFrom(@Nonnull TypeProto candidate, @Nonnull String possibleSuper) {
[all …]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/util/
DSuperclassChainTest.java41 import org.jf.dexlib2.analysis.TypeProto;
62 TypeProto objectClassProto = classPath.getClass("Ljava/lang/Object;"); in testGetSuperclassChain()
63 TypeProto oneClassProto = classPath.getClass("Ltest/one;"); in testGetSuperclassChain()
64 TypeProto twoClassProto = classPath.getClass("Ltest/two;"); in testGetSuperclassChain()
65 TypeProto threeClassProto = classPath.getClass("Ltest/three;"); in testGetSuperclassChain()
68 ImmutableList.<TypeProto>of(), in testGetSuperclassChain()
72 ImmutableList.<TypeProto>of(objectClassProto), in testGetSuperclassChain()
76 ImmutableList.<TypeProto>of(oneClassProto, objectClassProto), in testGetSuperclassChain()
80 ImmutableList.<TypeProto>of(twoClassProto, oneClassProto, objectClassProto), in testGetSuperclassChain()
93 TypeProto unknownClassProto = classPath.getUnknownClass(); in testGetSuperclassChain_Unresolved()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassPath.java53 @Nonnull private final TypeProto unknownClass;
131 public TypeProto getClass(@Nonnull CharSequence type) { in getClass()
135 … private final CacheLoader<String, TypeProto> classLoader = new CacheLoader<String, TypeProto>() {
136 @Override public TypeProto load(String type) throws Exception {
145 …@Nonnull private LoadingCache<String, TypeProto> loadedClasses = CacheBuilder.newBuilder().build(c…
159 public TypeProto getUnknownClass() { in getUnknownClass()
DArrayProto.java45 public class ArrayProto implements TypeProto {
100 public TypeProto getCommonSuperclass(@Nonnull TypeProto other) { in getCommonSuperclass()
112 TypeProto thisClass = classPath.getClass(elementType); in getCommonSuperclass()
113 TypeProto otherClass = classPath.getClass(((ArrayProto)other).elementType); in getCommonSuperclass()
114 TypeProto mergedClass = thisClass.getCommonSuperclass(otherClass); in getCommonSuperclass()
DTypeProto.java41 public interface TypeProto { interface
47 @Nonnull TypeProto getCommonSuperclass(@Nonnull TypeProto other); in getCommonSuperclass()
DPrimitiveProto.java42 public class PrimitiveProto implements TypeProto {
57 @Nonnull @Override public TypeProto getCommonSuperclass(@Nonnull TypeProto other) { in getCommonSuperclass()
DUnknownClassProto.java41 public class UnknownClassProto implements TypeProto {
54 @Nonnull @Override public TypeProto getCommonSuperclass(@Nonnull TypeProto other) { in getCommonSuperclass()
DRegisterType.java44 @Nullable public final TypeProto type;
46 private RegisterType(byte category, @Nullable TypeProto type) { in RegisterType()
279 TypeProto mergedType = null; in merge()
281 TypeProto type = this.type; in merge()
311 public static RegisterType getRegisterType(byte category, @Nullable TypeProto typeProto) { in getRegisterType()
DAnalyzedMethodUtil.java44 …public static boolean canAccess(@Nonnull TypeProto type, @Nonnull Method virtualMethod, boolean ch… in canAccess()
DClassProto.java60 public class ClassProto implements TypeProto {
376 public TypeProto getCommonSuperclass(@Nonnull TypeProto other) { in getCommonSuperclass()
414 List<TypeProto> thisChain = Lists.<TypeProto>newArrayList(this); in getCommonSuperclass()
417 List<TypeProto> otherChain = Lists.newArrayList(other); in getCommonSuperclass()
425 TypeProto typeProto = thisChain.get(i); in getCommonSuperclass()
DMethodAnalyzer.java1175 TypeProto stringClass = classPath.getClass("Ljava/lang/String;");
1181 TypeProto classClass = classPath.getClass("Ljava/lang/Class;");
1200 TypeProto commonSuperclass = newType.type.getCommonSuperclass(originalType.type);
1688 TypeProto objectRegisterTypeProto = objectRegisterType.type;
1691 TypeProto classTypeProto = classPath.getClass(objectRegisterTypeProto.getType());
1795 TypeProto objectRegisterTypeProto = objectRegisterType.type;
1806 TypeProto typeProto = classPath.getClass(method.getDefiningClass());
1807 TypeProto superType;
1970 TypeProto typeProto = classPath.getClass(methodRef.getDefiningClass());
DCustomInlineMethodResolver.java120 TypeProto typeProto = classPath.getClass(className); in parseAndResolveInlineMethod()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/
DCommonSuperclassTest.java103 TypeProto commonSuperclassProto = classPath.getClass(commonSuperclass); in superclassTest()
104 TypeProto type1Proto = classPath.getClass(type1); in superclassTest()
105 TypeProto type2Proto = classPath.getClass(type2); in superclassTest()
/external/protobuf/src/google/protobuf/
Dtype.proto40 option java_outer_classname = "TypeProto";