Home
last modified time | relevance | path

Searched refs:programClass (Results 1 – 25 of 146) sorted by relevance

123456

/external/proguard/src/proguard/optimize/peephole/
DClassMerger.java112 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
122 visitProgramClass0(programClass); in visitProgramClass()
127 System.err.println(" Class = ["+programClass.getName()+"]"); in visitProgramClass()
133 programClass.accept(new ClassPrinter()); in visitProgramClass()
141 public void visitProgramClass0(ProgramClass programClass) in visitProgramClass0() argument
143 if (!programClass.equals(targetClass) && in visitProgramClass0()
146 !KeepMarker.isKept(programClass) && in visitProgramClass0()
150 getTargetClass(programClass) == null && in visitProgramClass0()
155 (programClass.getAccessFlags() & ClassConstants.INTERNAL_ACC_ANNOTATTION) == 0 && in visitProgramClass0()
162 ((programClass.getAccessFlags() & in visitProgramClass0()
[all …]
DTargetClassChanger.java59 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
62 programClass.constantPoolEntriesAccept(this); in visitProgramClass()
65 programClass.fieldsAccept(this); in visitProgramClass()
66 programClass.methodsAccept(this); in visitProgramClass()
69 programClass.attributesAccept(this); in visitProgramClass()
72 Clazz targetClass = ClassMerger.getTargetClass(programClass); in visitProgramClass()
78 programClass.u2thisClass = in visitProgramClass()
79 addNewClassConstant(programClass, in visitProgramClass()
80 programClass.getName(), in visitProgramClass()
81 programClass); in visitProgramClass()
[all …]
DClassFinalizer.java63 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
69 if ((programClass.u2accessFlags & (ClassConstants.INTERNAL_ACC_FINAL | in visitProgramClass()
72 !KeepMarker.isKept(programClass) && in visitProgramClass()
73 programClass.subClasses == null) in visitProgramClass()
75 programClass.u2accessFlags |= ClassConstants.INTERNAL_ACC_FINAL; in visitProgramClass()
80 extraClassVisitor.visitProgramClass(programClass); in visitProgramClass()
/external/proguard/src/proguard/classfile/editor/
DMemberAdder.java97 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 …]
DAttributeSorter.java43 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()
DConstantPoolSorter.java50 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()
DNameAndTypeShrinker.java56 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
60 programClass.constantPoolEntriesAccept(this); in visitProgramClass()
64 programClass.attributesAccept(this); in visitProgramClass()
69 shrinkConstantPool(programClass.constantPool, in visitProgramClass()
70 programClass.u2constantPoolCount); in visitProgramClass()
73 if (newConstantPoolCount < programClass.u2constantPoolCount) in visitProgramClass()
75 programClass.u2constantPoolCount = newConstantPoolCount; in visitProgramClass()
79 constantPoolRemapper.visitProgramClass(programClass); in visitProgramClass()
/external/proguard/src/proguard/shrink/
DUsagePrinter.java90 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 …]
DClassShrinker.java70 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
74 programClass.u2interfacesCount = in visitProgramClass()
75 shrinkConstantIndexArray(programClass.constantPool, in visitProgramClass()
76 programClass.u2interfaces, in visitProgramClass()
77 programClass.u2interfacesCount); in visitProgramClass()
81 shrinkConstantPool(programClass.constantPool, in visitProgramClass()
82 programClass.u2constantPoolCount); in visitProgramClass()
84 programClass.u2fieldsCount = in visitProgramClass()
85 shrinkArray(programClass.fields, in visitProgramClass()
86 programClass.u2fieldsCount); in visitProgramClass()
[all …]
DUsageMarker.java80 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
82 if (shouldBeMarkedAsUsed(programClass)) in visitProgramClass()
85 markAsUsed(programClass); in visitProgramClass()
87 markProgramClassBody(programClass); in visitProgramClass()
92 protected void markProgramClassBody(ProgramClass programClass) in markProgramClassBody() argument
95 markConstant(programClass, programClass.u2thisClass); in markProgramClassBody()
98 if (programClass.u2superClass != 0) in markProgramClassBody()
100 markConstant(programClass, programClass.u2superClass); in markProgramClassBody()
104 programClass.hierarchyAccept(false, false, true, false, in markProgramClassBody()
108 programClass.methodAccept(ClassConstants.INTERNAL_METHOD_NAME_CLINIT, in markProgramClassBody()
[all …]
DShortestUsageMarker.java51 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 …]
DShortestUsagePrinter.java93 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 …]
DInterfaceUsageMarker.java63 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/classfile/visitor/
DSimpleClassPrinter.java77 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 …]
DMemberToClassVisitor.java48 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()
DClassPrinter.java91 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
94 println(visitorInfo(programClass) + " " + in visitProgramClass()
95 "Program class: " + programClass.getName()); in visitProgramClass()
97 println("Superclass: " + programClass.getSuperName()); in visitProgramClass()
98 …r version: 0x" + Integer.toHexString(ClassUtil.internalMajorClassVersion(programClass.u4version))); in visitProgramClass()
99 …r version: 0x" + Integer.toHexString(ClassUtil.internalMinorClassVersion(programClass.u4version))); in visitProgramClass()
100 println(" = target " + ClassUtil.externalClassVersion(programClass.u4version)); in visitProgramClass()
101 println("Access flags: 0x" + Integer.toHexString(programClass.u2accessFlags)); in visitProgramClass()
103 … ((programClass.u2accessFlags & ClassConstants.INTERNAL_ACC_ANNOTATTION) != 0 ? "@ " : "") + in visitProgramClass()
104 ClassUtil.externalClassAccessFlags(programClass.u2accessFlags) + in visitProgramClass()
[all …]
/external/proguard/src/proguard/obfuscate/
DMappingPrinter.java70 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 …]
DAttributeShrinker.java47 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()
DClassRenamer.java48 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/attribute/visitor/
DAllAttributeVisitor.java74 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/optimize/
DMemberDescriptorSpecializer.java71 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/io/
DProgramClassReader.java74 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
77 programClass.u4magic = dataInput.readInt(); in visitProgramClass()
79 ClassUtil.checkMagicNumber(programClass.u4magic); in visitProgramClass()
85 programClass.u4version = ClassUtil.internalClassVersion(u2majorVersion, in visitProgramClass()
88 ClassUtil.checkVersionNumbers(programClass.u4version); in visitProgramClass()
91 programClass.u2constantPoolCount = dataInput.readUnsignedShort(); in visitProgramClass()
93 programClass.constantPool = new Constant[programClass.u2constantPoolCount]; in visitProgramClass()
94 for (int index = 1; index < programClass.u2constantPoolCount; index++) in visitProgramClass()
97 constant.accept(programClass, this); in visitProgramClass()
98 programClass.constantPool[index] = constant; in visitProgramClass()
[all …]
/external/proguard/src/proguard/classfile/util/
DClassSubHierarchyInitializer.java37 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
40 addSubclass(programClass, programClass.getSuperClass()); in visitProgramClass()
43 for (int index = 0; index < programClass.u2interfacesCount; index++) in visitProgramClass()
45 addSubclass(programClass, programClass.getInterface(index)); in visitProgramClass()
/external/proguard/src/proguard/
DDescriptorKeepChecker.java98 public void visitProgramField(ProgramClass programClass, ProgramField programField) in visitProgramField() argument
109 public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) in visitProgramMethod() argument
111 referencingClass = programClass; in visitProgramMethod()
126 if (ClassUtil.isInternalClassType(programMethod.getDescriptor(programClass))) in visitProgramMethod()
144 public void visitProgramClass(ProgramClass programClass) in visitProgramClass() argument
146 if (!KeepMarker.isKept(programClass)) in visitProgramClass()
149 programClass.getName(), in visitProgramClass()
162 ClassUtil.externalClassName(programClass.getName()) + in visitProgramClass()
/external/proguard/src/proguard/preverify/
DCodePreverifier.java102 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.INTERNAL_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 …]

123456