/external/proguard/src/proguard/optimize/peephole/ |
D | ClassMerger.java | 114 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 124 visitProgramClass0(programClass); in visitProgramClass() 129 System.err.println(" Class = ["+programClass.getName()+"]"); in visitProgramClass() 135 programClass.accept(new ClassPrinter()); in visitProgramClass() 143 public void visitProgramClass0(ProgramClass programClass) in visitProgramClass0() argument 145 if (!programClass.equals(targetClass) && in visitProgramClass0() 148 !KeepMarker.isKept(programClass) && in visitProgramClass0() 152 getTargetClass(programClass) == null && in visitProgramClass0() 157 (programClass.getAccessFlags() & ClassConstants.ACC_ANNOTATTION) == 0 && in visitProgramClass0() 159 (!DETAILS || print(programClass, "Package visibility?")) && in visitProgramClass0() [all …]
|
D | TargetClassChanger.java | 59 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 65 programClass.constantPoolEntriesAccept(this); in visitProgramClass() 68 programClass.fieldsAccept(this); in visitProgramClass() 69 programClass.methodsAccept(this); in visitProgramClass() 72 programClass.attributesAccept(this); in visitProgramClass() 77 for (int index = 0; index < programClass.u2interfacesCount; index++) in visitProgramClass() 79 Clazz interfaceClass = programClass.getInterface(index); in visitProgramClass() 81 (programClass.equals(interfaceClass) || in visitProgramClass() 82 containsInterfaceClass(programClass, in visitProgramClass() 89 delete = new boolean[programClass.u2interfacesCount]; in visitProgramClass() [all …]
|
D | ClassFinalizer.java | 63 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 69 if ((programClass.u2accessFlags & (ClassConstants.ACC_FINAL | in visitProgramClass() 72 !KeepMarker.isKept(programClass) && in visitProgramClass() 73 programClass.subClasses == null) in visitProgramClass() 75 programClass.u2accessFlags |= ClassConstants.ACC_FINAL; in visitProgramClass() 80 extraClassVisitor.visitProgramClass(programClass); in visitProgramClass()
|
/external/proguard/src/proguard/classfile/editor/ |
D | MemberAdder.java | 97 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument 150 …emberAdder: copying field ["+programClass+"."+programField.getName(programClass)+" "+programField.… in visitProgramField() 156 constantAdder.addConstant(programClass, programField.u2nameIndex), in visitProgramField() 157 … constantAdder.addConstant(programClass, programField.u2descriptorIndex), in visitProgramField() 168 programField.attributesAccept(programClass, in visitProgramField() 184 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument 186 String name = programMethod.getName(programClass); in visitProgramMethod() 187 String descriptor = programMethod.getDescriptor(programClass); in visitProgramMethod() 200 …pping abstract method ["+programClass.getName()+"."+programMethod.getName(programClass)+programMet… in visitProgramMethod() 215 …dder: updating method ["+programClass.getName()+"."+programMethod.getName(programClass)+programMet… in visitProgramMethod() [all …]
|
D | AccessFixer.java | 52 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 55 ((MyAccessFixer)classVisitor).referencingClass = programClass; in visitProgramClass() 58 super.visitProgramClass(programClass); in visitProgramClass() 74 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument 77 super.visitProgramMember(programClass, programMethod); in visitProgramMethod() 83 !ClassUtil.isInitializer(programMethod.getName(programClass))) in visitProgramMethod() 85 programClass.hierarchyAccept(false, true, false, false, in visitProgramMethod() 86 new NamedMethodVisitor(programMethod.getName(programClass), in visitProgramMethod() 87 programMethod.getDescriptor(programClass), in visitProgramMethod() 156 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument [all …]
|
D | ConstantPoolSorter.java | 50 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 52 int constantPoolCount = programClass.u2constantPoolCount; in visitProgramClass() 66 Constant constant = programClass.constantPool[oldIndex]; in visitProgramClass() 70 new ComparableConstant(programClass, oldIndex, constant); in visitProgramClass() 112 System.arraycopy(newConstantPool, 0, programClass.constantPool, 0, newLength); in visitProgramClass() 115 Arrays.fill(programClass.constantPool, newLength, constantPoolCount, null); in visitProgramClass() 117 programClass.u2constantPoolCount = newLength; in visitProgramClass() 121 constantPoolRemapper.visitProgramClass(programClass); in visitProgramClass()
|
D | AttributeSorter.java | 43 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 46 Arrays.sort(programClass.attributes, 0, programClass.u2attributesCount, this); in visitProgramClass() 49 programClass.fieldsAccept(this); in visitProgramClass() 50 programClass.methodsAccept(this); in visitProgramClass() 56 public void visitProgramMember(ProgramClass programClass, ProgramMember programMember) in visitProgramMember() argument 62 programMember.attributesAccept(programClass, this); in visitProgramMember()
|
/external/proguard/src/proguard/shrink/ |
D | ClassShrinker.java | 72 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 76 if (programClass.u2interfacesCount > 0) in visitProgramClass() 78 new InterfaceDeleter(shrinkFlags(programClass.constantPool, in visitProgramClass() 79 programClass.u2interfaces, in visitProgramClass() 80 programClass.u2interfacesCount)) in visitProgramClass() 81 .visitProgramClass(programClass); in visitProgramClass() 86 shrinkConstantPool(programClass.constantPool, in visitProgramClass() 87 programClass.u2constantPoolCount); in visitProgramClass() 89 programClass.u2fieldsCount = in visitProgramClass() 90 shrinkArray(programClass.fields, in visitProgramClass() [all …]
|
D | UsagePrinter.java | 90 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 92 if (usageMarker.isUsed(programClass)) in visitProgramClass() 96 className = programClass.getName(); in visitProgramClass() 98 programClass.fieldsAccept(this); in visitProgramClass() 99 programClass.methodsAccept(this); in visitProgramClass() 105 ps.println(ClassUtil.externalClassName(programClass.getName())); in visitProgramClass() 112 ps.println(ClassUtil.externalClassName(programClass.getName())); in visitProgramClass() 120 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument 129 programField.getName(programClass), in visitProgramField() 130 programField.getDescriptor(programClass))); in visitProgramField() [all …]
|
D | UsageMarker.java | 81 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 83 if (shouldBeMarkedAsUsed(programClass)) in visitProgramClass() 86 markAsUsed(programClass); in visitProgramClass() 88 markProgramClassBody(programClass); in visitProgramClass() 93 protected void markProgramClassBody(ProgramClass programClass) in markProgramClassBody() argument 96 markConstant(programClass, programClass.u2thisClass); in markProgramClassBody() 99 if (programClass.u2superClass != 0) in markProgramClassBody() 101 markConstant(programClass, programClass.u2superClass); in markProgramClassBody() 105 programClass.hierarchyAccept(false, false, true, false, in markProgramClassBody() 109 programClass.methodAccept(ClassConstants.METHOD_NAME_CLINIT, in markProgramClassBody() [all …]
|
D | ShortestUsageMarker.java | 51 protected void markProgramClassBody(ProgramClass programClass) in markProgramClassBody() argument 55 currentUsageMark = new ShortestUsageMark(getShortestUsageMark(programClass), in markProgramClassBody() 58 programClass); in markProgramClassBody() 60 super.markProgramClassBody(programClass); in markProgramClassBody() 66 protected void markProgramFieldBody(ProgramClass programClass, ProgramField programField) in markProgramFieldBody() argument 73 programClass, in markProgramFieldBody() 76 super.markProgramFieldBody(programClass, programField); in markProgramFieldBody() 82 protected void markProgramMethodBody(ProgramClass programClass, ProgramMethod programMethod) in markProgramMethodBody() argument 89 programClass, in markProgramMethodBody() 92 super.markProgramMethodBody(programClass, programMethod); in markProgramMethodBody() [all …]
|
D | ShortestUsagePrinter.java | 93 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 96 ps.println(ClassUtil.externalClassName(programClass.getName())); in visitProgramClass() 99 printReason(programClass); in visitProgramClass() 115 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument 118 String name = programField.getName(programClass); in visitProgramField() 119 String type = programField.getDescriptor(programClass); in visitProgramField() 121 ps.println(ClassUtil.externalClassName(programClass.getName()) + in visitProgramField() 131 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument 134 String name = programMethod.getName(programClass); in visitProgramMethod() 135 String type = programMethod.getDescriptor(programClass); in visitProgramMethod() [all …]
|
D | InterfaceUsageMarker.java | 63 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 65 boolean classUsed = usageMarker.isUsed(programClass); in visitProgramClass() 66 boolean classPossiblyUsed = usageMarker.isPossiblyUsed(programClass); in visitProgramClass() 74 programClass.interfaceConstantsAccept(this); in visitProgramClass() 87 usageMarker.markAsUsed(programClass); in visitProgramClass() 90 programClass.thisClassConstantAccept(this); in visitProgramClass() 93 programClass.superClassConstantAccept(this); in visitProgramClass() 98 usageMarker.markAsUnused(programClass); in visitProgramClass()
|
/external/proguard/src/proguard/obfuscate/ |
D | MappingPrinter.java | 70 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 72 String name = programClass.getName(); in visitProgramClass() 73 String newName = ClassObfuscator.newClassName(programClass); in visitProgramClass() 81 programClass.fieldsAccept(this); in visitProgramClass() 82 programClass.methodsAccept(this); in visitProgramClass() 88 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument 96 programField.getName(programClass), in visitProgramField() 97 programField.getDescriptor(programClass)) + in visitProgramField() 104 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument 108 String name = programMethod.getName(programClass); in visitProgramMethod() [all …]
|
D | AttributeShrinker.java | 47 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 50 programClass.u2attributesCount = in visitProgramClass() 51 shrinkArray(programClass.attributes, in visitProgramClass() 52 programClass.u2attributesCount); in visitProgramClass() 55 programClass.fieldsAccept(this); in visitProgramClass() 56 programClass.methodsAccept(this); in visitProgramClass() 57 programClass.attributesAccept(this); in visitProgramClass() 69 public void visitProgramMember(ProgramClass programClass, ProgramMember programMember) in visitProgramMember() argument 77 programMember.attributesAccept(programClass, this); in visitProgramMember()
|
D | ClassRenamer.java | 48 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 51 programClass.thisClassConstantAccept(this); in visitProgramClass() 54 programClass.fieldsAccept(this); in visitProgramClass() 55 programClass.methodsAccept(this); in visitProgramClass() 71 public void visitProgramMember(ProgramClass programClass, in visitProgramMember() argument 75 String name = programMember.getName(programClass); in visitProgramMember() 81 new ConstantPoolEditor(programClass).addUtf8Constant(newName); in visitProgramMember()
|
/external/proguard/src/proguard/classfile/visitor/ |
D | SimpleClassPrinter.java | 77 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 81 programClass.getAccessFlags() : in visitProgramClass() 83 programClass.getName())); in visitProgramClass() 99 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument 103 programClass.getAccessFlags() : in visitProgramField() 105 programClass.getName()) + in visitProgramField() 111 programField.getName(programClass), in visitProgramField() 112 programField.getDescriptor(programClass))); in visitProgramField() 116 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument 120 programClass.getAccessFlags() : in visitProgramMethod() [all …]
|
D | MemberToClassVisitor.java | 48 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument 50 if (!programClass.equals(lastVisitedClass)) in visitProgramField() 52 classVisitor.visitProgramClass(programClass); in visitProgramField() 54 lastVisitedClass = programClass; in visitProgramField() 59 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument 61 if (!programClass.equals(lastVisitedClass)) in visitProgramMethod() 63 classVisitor.visitProgramClass(programClass); in visitProgramMethod() 65 lastVisitedClass = programClass; in visitProgramMethod()
|
D | ClassPrinter.java | 98 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 101 println(visitorInfo(programClass) + " " + in visitProgramClass() 102 "Program class: " + programClass.getName()); in visitProgramClass() 104 println("Superclass: " + programClass.getSuperName()); in visitProgramClass() 105 …r version: 0x" + Integer.toHexString(ClassUtil.internalMajorClassVersion(programClass.u4version))); in visitProgramClass() 106 …r version: 0x" + Integer.toHexString(ClassUtil.internalMinorClassVersion(programClass.u4version))); in visitProgramClass() 107 println(" = target " + ClassUtil.externalClassVersion(programClass.u4version)); in visitProgramClass() 108 println("Access flags: 0x" + Integer.toHexString(programClass.u2accessFlags)); in visitProgramClass() 110 ((programClass.u2accessFlags & ClassConstants.ACC_ANNOTATTION) != 0 ? "@ " : "") + in visitProgramClass() 111 ClassUtil.externalClassAccessFlags(programClass.u2accessFlags) + in visitProgramClass() [all …]
|
/external/proguard/src/proguard/optimize/ |
D | MemberDescriptorSpecializer.java | 71 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument 81 …escriptorSpecializer: "+programClass.getName()+"."+programField.getName(programClass)+" "+programF… in visitProgramField() 90 extraParameterMemberVisitor.visitProgramField(programClass, programField); in visitProgramField() 97 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument 106 ClassUtil.internalMethodParameterCount(programMethod.getDescriptor(programClass)); in visitProgramMethod() 121 …DescriptorSpecializer: "+programClass.getName()+"."+programMethod.getName(programClass)+programMet… in visitProgramMethod() 130 … extraParameterMemberVisitor.visitProgramMethod(programClass, programMethod); in visitProgramMethod()
|
/external/proguard/src/proguard/classfile/attribute/visitor/ |
D | AllAttributeVisitor.java | 74 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 76 programClass.attributesAccept(attributeVisitor); in visitProgramClass() 81 programClass.fieldsAccept(this); in visitProgramClass() 82 programClass.methodsAccept(this); in visitProgramClass() 83 programClass.attributesAccept(this); in visitProgramClass() 93 public void visitProgramMember(ProgramClass programClass, ProgramMember programMember) in visitProgramMember() argument 95 programMember.attributesAccept(programClass, attributeVisitor); in visitProgramMember() 100 programMember.attributesAccept(programClass, this); in visitProgramMember() 105 public void visitLibraryMember(LibraryClass programClass, LibraryMember programMember) {} in visitLibraryMember() argument
|
/external/proguard/src/proguard/preverify/ |
D | CodePreverifier.java | 102 ProgramClass programClass = (ProgramClass)clazz; in visitCodeAttribute0() local 129 correspondingVerificationTypes(programClass, in visitCodeAttribute0() 137 correspondingVerificationTypes(programClass, in visitCodeAttribute0() 154 correspondingVerificationTypes(programClass, in visitCodeAttribute0() 161 if (method.getName(programClass).equals(ClassConstants.METHOD_NAME_INIT)) in visitCodeAttribute0() 196 new ClassPrinter().visitProgramMethod(programClass, programMethod); in visitCodeAttribute0() 208 …new AttributesEditor(programClass, programMethod, codeAttribute, true).deleteAttribute(stackMapAtt… in visitCodeAttribute0() 236 new ConstantPoolEditor(programClass).addUtf8Constant(stackMapAttributeName); in visitCodeAttribute0() 239 …new AttributesEditor(programClass, programMethod, codeAttribute, true).addAttribute(stackMapAttrib… in visitCodeAttribute0() 243 …System.out.println("Preverifier ["+programClass.getName()+"."+programMethod.getName(programClass)+… in visitCodeAttribute0() [all …]
|
/external/proguard/src/proguard/classfile/io/ |
D | ProgramClassReader.java | 81 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 84 programClass.u4magic = dataInput.readInt(); in visitProgramClass() 86 ClassUtil.checkMagicNumber(programClass.u4magic); in visitProgramClass() 92 programClass.u4version = ClassUtil.internalClassVersion(u2majorVersion, in visitProgramClass() 95 ClassUtil.checkVersionNumbers(programClass.u4version); in visitProgramClass() 98 programClass.u2constantPoolCount = dataInput.readUnsignedShort(); in visitProgramClass() 100 programClass.constantPool = new Constant[programClass.u2constantPoolCount]; in visitProgramClass() 101 for (int index = 1; index < programClass.u2constantPoolCount; index++) in visitProgramClass() 104 constant.accept(programClass, this); in visitProgramClass() 105 programClass.constantPool[index] = constant; in visitProgramClass() [all …]
|
/external/proguard/src/proguard/ |
D | DescriptorKeepChecker.java | 97 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument 108 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument 110 referencingClass = programClass; in visitProgramMethod() 125 if (ClassUtil.isInternalClassType(programMethod.getDescriptor(programClass))) in visitProgramMethod() 143 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 145 if (!KeepMarker.isKept(programClass)) in visitProgramClass() 148 programClass.getName(), in visitProgramClass() 161 ClassUtil.externalClassName(programClass.getName()) + in visitProgramClass()
|
/external/proguard/src/proguard/optimize/evaluation/ |
D | SimpleEnumDescriptorSimplifier.java | 60 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument 64 System.out.println("SimpleEnumDescriptorSimplifier: "+programClass.getName()); in visitProgramClass() 68 programClass.fieldsAccept(this); in visitProgramClass() 69 programClass.methodsAccept(this); in visitProgramClass() 75 programClass.constantPoolEntriesAccept(this); in visitProgramClass() 161 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument 164 String descriptor = programField.getDescriptor(programClass); in visitProgramField() 169 String name = programField.getName(programClass); in visitProgramField() 174 …System.out.println("SimpleEnumDescriptorSimplifier: ["+programClass.getName()+"."+name+" "+descrip… in visitProgramField() 178 new ConstantPoolEditor(programClass); in visitProgramField() [all …]
|