Home
last modified time | relevance | path

Searched refs:directMethods (Results 1 – 25 of 41) sorted by relevance

12

/external/r8/src/main/java/com/android/tools/r8/graph/
DDexProgramClass.java25 DexEncodedMethod[] directMethods, in DexProgramClass() argument
28 instanceFields, directMethods, virtualMethods, classAnnotations, origin); in DexProgramClass()
52 collectAll(indexedItems, directMethods); in collectIndexedItems()
69 collectAll(collector, directMethods); in addDependencies()
105 int numberOfMethods = directMethods().length + virtualMethods().length; in hasMethodsOrFields()
112 || hasAnnotations(directMethods) in hasAnnotations()
120 && !hasAnnotations(directMethods) in hasInternalizableAnnotation()
153 directMethods = Arrays.copyOf(directMethods, directMethods.length + 1); in addStaticMethod()
154 directMethods[directMethods.length - 1] = staticMethod; in addStaticMethod()
DDexClass.java29 public DexEncodedMethod[] directMethods; field in DexClass
36 DexEncodedMethod[] directMethods, DexEncodedMethod[] virtualMethods, in DexClass() argument
46 this.directMethods = directMethods; in DexClass()
70 public DexEncodedMethod[] directMethods() { in directMethods() method in DexClass
71 return MoreObjects.firstNonNull(directMethods, NO_METHODS); in directMethods()
79 for (DexEncodedMethod method : directMethods()) { in forEachMethod()
89 int dLen = directMethods().length; in allMethodsSorted()
92 System.arraycopy(directMethods(), 0, result, vLen, dLen); in allMethodsSorted()
110 return findTarget(directMethods(), method); in findDirectTarget()
175 for (DexEncodedMethod method : directMethods()) { in getClassInitializer()
DClassKind.java18 DexEncodedMethod[] directMethods, DexEncodedMethod[] virtualMethods); in create() argument
33 DexEncodedMethod[] directMethods, DexEncodedMethod[] virtualMethods) { in create() argument
35 annotations, staticFields, instanceFields, directMethods, virtualMethods); in create()
DDexClasspathClass.java17 DexEncodedMethod[] directMethods, DexEncodedMethod[] virtualMethods) { in DexClasspathClass() argument
19 staticFields, instanceFields, directMethods, virtualMethods, annotations, origin); in DexClasspathClass()
DDexLibraryClass.java17 DexEncodedMethod[] directMethods, DexEncodedMethod[] virtualMethods) { in DexLibraryClass() argument
19 staticFields, instanceFields, directMethods, virtualMethods, annotations, origin); in DexLibraryClass()
DDexAnnotationDirectory.java23 assert isSorted(clazz.directMethods()); in DexAnnotationDirectory()
26 new OrderedMergingIterator<>(clazz.directMethods(), clazz.virtualMethods()); in DexAnnotationDirectory()
DClassAndMemberPublicizer.java30 publicizeAllMethods(clazz.directMethods()); in run()
DJarClassFileReader.java115 private final List<DexEncodedMethod> directMethods = new ArrayList<>(); field in JarClassFileReader.CreateDexClassVisitor
262 directMethods.toArray(new DexEncodedMethod[directMethods.size()]), in visitEnd()
549 parent.directMethods.add(dexMethod); in visitEnd()
DDexApplication.java201 for (DexEncodedMethod method : clazz.directMethods()) { in disassemble()
276 for (DexEncodedMethod method : clazz.directMethods()) { in smali()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/
DImmutableClassDef.java61 @Nonnull protected final ImmutableSortedSet<? extends ImmutableMethod> directMethods; field in ImmutableClassDef
87 …this.directMethods = ImmutableMethod.immutableSetOf(Iterables.filter(methods, MethodUtil.METHOD_IS… in ImmutableClassDef()
99 @Nullable Iterable<? extends Method> directMethods, in ImmutableClassDef() argument
109 this.directMethods = ImmutableMethod.immutableSetOf(directMethods); in ImmutableClassDef()
121 @Nullable ImmutableSortedSet<? extends ImmutableMethod> directMethods, in ImmutableClassDef() argument
131 this.directMethods = ImmutableUtils.nullToEmptySortedSet(directMethods); in ImmutableClassDef()
160 …verride public ImmutableSet<? extends ImmutableMethod> getDirectMethods() { return directMethods; } in getDirectMethods()
186 return Iterators.concat(directMethods.iterator(), virtualMethods.iterator());
190 return directMethods.size() + virtualMethods.size();
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DPoolClassDef.java49 @Nonnull final ImmutableSortedSet<PoolMethod> directMethods; field in PoolClassDef
62 directMethods = ImmutableSortedSet.copyOf( in PoolClassDef()
115 return directMethods;
126 ImmutableList.of(directMethods.iterator(), virtualMethods.iterator()),
131 return directMethods.size() + virtualMethods.size();
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
DBuilderClassDef.java55 @Nonnull final SortedSet<BuilderMethod> directMethods; field in BuilderClassDef
85 …this.directMethods = ImmutableSortedSet.copyOf(Iterables.filter(methods, MethodUtil.METHOD_IS_DIRE… in BuilderClassDef()
96 @Nonnull @Override public SortedSet<BuilderMethod> getDirectMethods() { return directMethods; } in getDirectMethods()
122 ImmutableList.of(directMethods.iterator(), virtualMethods.iterator()),
127 return directMethods.size() + virtualMethods.size();
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
DClassDefinition.java111 Set<String> directMethods = writeDirectMethods(writer); in writeTo() local
112 writeVirtualMethods(writer, directMethods); in writeTo()
252 Iterable<? extends Method> directMethods; in writeDirectMethods() local
254 directMethods = ((DexBackedClassDef)classDef).getDirectMethods(false); in writeDirectMethods()
256 directMethods = classDef.getDirectMethods(); in writeDirectMethods()
259 for (Method method: directMethods) { in writeDirectMethods()
287 …private void writeVirtualMethods(IndentingWriter writer, Set<String> directMethods) throws IOExcep… in writeVirtualMethods() argument
313 } else if (directMethods.contains(methodString)) { in writeVirtualMethods()
/external/r8/src/main/java/com/android/tools/r8/ir/desugar/
DLambdaRewriter.java163 DexEncodedMethod[] directMethods = clazz.directMethods; in removeLambdaDeserializationMethods() local
164 if (directMethods != null) { in removeLambdaDeserializationMethods()
165 int methodCount = directMethods.length; in removeLambdaDeserializationMethods()
167 DexEncodedMethod encoded = directMethods[i]; in removeLambdaDeserializationMethods()
176 System.arraycopy(directMethods, 0, newMethods, 0, i); in removeLambdaDeserializationMethods()
177 System.arraycopy(directMethods, i + 1, newMethods, i, methodCount - i - 1); in removeLambdaDeserializationMethods()
178 clazz.directMethods = newMethods; in removeLambdaDeserializationMethods()
DLambdaClass.java444 DexEncodedMethod[] directMethods = implMethodHolder.directMethods; in ensureAccessibility() local
445 for (int i = 0; i < directMethods.length; i++) { in ensureAccessibility()
446 DexEncodedMethod encodedMethod = directMethods[i]; in ensureAccessibility()
464 directMethods[i] = newMethod; in ensureAccessibility()
492 accessorClass.directMethods = appendMethod( in ensureAccessibility()
493 accessorClass.directMethods, accessorEncodedMethod); in ensureAccessibility()
DInterfaceProcessor.java90 for (DexEncodedMethod direct : iface.directMethods) { in process()
109 if (remainingMethods.size() < iface.directMethods.length) { in process()
110 iface.directMethods = remainingMethods.toArray( in process()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/reflection/
DReflectionClassDef.java177 Iterator<java.lang.reflect.Method> directMethods = Iterators.filter(
185 Iterator<Method> methodIterator = Iterators.transform(directMethods,
199 Iterator<java.lang.reflect.Method> directMethods = Iterators.filter(
207 return Iterators.transform(directMethods,
/external/r8/src/test/java/com/android/tools/r8/
DR8UnreachableCodeTest.java42 assertEquals(4, clazz.directMethods().length); in UnreachableCode()
43 for (DexEncodedMethod method : clazz.directMethods()) { in UnreachableCode()
/external/r8/src/main/java/com/android/tools/r8/shaking/
DTreePruner.java81 clazz.directMethods = reachableMethods(clazz.directMethods(), clazz); in getNewProgramClasses()
91 for (DexEncodedMethod method : clazz.directMethods()) { in hasDefaultConstructor()
DSimpleClassMerger.java206 addAll(existingMethods, target.directMethods(), MethodSignatureEquivalence.get()); in merge()
209 Iterators.transform(Iterators.forArray(source.directMethods()), this::renameConstructors), in merge()
210 target.directMethods(), in merge()
260 target.directMethods = mergedDirectMethods in merge()
270 source.directMethods = null; in merge()
430 clazz.directMethods = substituteTypesIn(clazz.directMethods); in fixupTypeReferences()
DDiscardedChecker.java30 processSubItems(clazz.directMethods()); in run()
/external/r8/src/main/java/com/android/tools/r8/optimize/
DDebugStripper.java182 setIntialNameCounts(nameCounts, clazz.directMethods()); in processClass()
184 processMethods(clazz.directMethods(), naming, nameCounts); in processClass()
DVisibilityBridgeRemover.java80 identifyBridgeMethods(clazz.directMethods());
/external/r8/src/main/java/com/android/tools/r8/naming/
DMethodNameMinifier.java141 assignNamesToMethods(holder.directMethods(), state, doPrivates, renaming); in assignNamesToClassesMethods()
199 addStatesToGlobalMapForMethods(clazz.directMethods(), collectedStates, globalStateMap, in assignNamesToInterfaceMethods()
341 reserveNamesForMethods(holder.directMethods(), keepAll, state); in allocateNamingStateAndReserve()
/external/r8/src/test/java/com/android/tools/r8/maindexlist/
DMainDexListTests.java404 DexEncodedMethod[] directMethods = new DexEncodedMethod[methodCount]; in generateApplication() local
424 directMethods[i] = method; in generateApplication()
437 directMethods, in generateApplication()

12