/external/r8/src/main/java/com/android/tools/r8/optimize/ |
D | MemberRebindingAnalysis.java | 24 private final AppInfoWithLiveness appInfo; field in MemberRebindingAnalysis 28 public MemberRebindingAnalysis(AppInfoWithLiveness appInfo, GraphLense lense) { in MemberRebindingAnalysis() argument 30 this.appInfo = appInfo; in MemberRebindingAnalysis() 36 DexClass clazz = appInfo.definitionFor(target.getHolder()); in validTargetFor() 47 return appInfo.dexItemFactory.createMethod(newHolder, original.proto, original.name); in validTargetFor() 52 DexClass clazz = appInfo.definitionFor(target.getHolder()); in validTargetFor() 63 return appInfo.dexItemFactory.createField(newHolder, original.type, original.name); in validTargetFor() 68 DexClass clazz = appInfo.definitionFor(current); in firstLibraryClassForInterfaceTarget() 92 assert appInfo.definitionFor(top).isLibraryClass(); in firstLibraryClass() 93 DexClass searchClass = appInfo.definitionFor(bottom); in firstLibraryClass() [all …]
|
D | VisibilityBridgeRemover.java | 21 private final AppInfoWithSubtyping appInfo; field in VisibilityBridgeRemover 25 public VisibilityBridgeRemover(AppInfoWithSubtyping appInfo, DexApplication application) { in VisibilityBridgeRemover() argument 26 this.appInfo = appInfo; in VisibilityBridgeRemover() 43 = appInfo.lookupVirtualDefinition(target.getHolder(), target); in identifyBridgeMethods() 62 DexClass clazz = appInfo.definitionFor(type); in removeUnneededVisibilityBridges() 78 for (DexClass clazz : appInfo.classes()) {
|
D | BridgeMethodAnalysis.java | 21 private final AppInfoWithSubtyping appInfo; field in BridgeMethodAnalysis 24 public BridgeMethodAnalysis(GraphLense lense, AppInfoWithSubtyping appInfo) { in BridgeMethodAnalysis() argument 26 this.appInfo = appInfo; in BridgeMethodAnalysis() 30 for (DexClass clazz : appInfo.classes()) { in run() 50 DexEncodedMethod targetMethod = appInfo.lookupStaticTarget(target); in identifyBridgeMethods() 56 DexEncodedMethod targetMethod = appInfo.lookupSingleVirtualTarget(target); in identifyBridgeMethods()
|
/external/r8/src/main/java/com/android/tools/r8/naming/ |
D | Minifier.java | 27 private final AppInfoWithLiveness appInfo; field in Minifier 31 public Minifier(AppInfoWithLiveness appInfo, RootSet rootSet, InternalOptions options) { in Minifier() argument 32 this.appInfo = appInfo; in Minifier() 45 appInfo, rootSet, options.packagePrefix, options.classObfuscationDictionary, in run() 51 new MethodNameMinifier(appInfo, rootSet, options.obfuscationDictionary) in run() 56 new FieldNameMinifier(appInfo, rootSet, options.obfuscationDictionary).computeRenaming(); in run() 58 return new MinifiedRenaming(classRenaming, methodRenaming, fieldRenaming, appInfo); in run() 63 private final AppInfo appInfo; field in Minifier.MinifiedRenaming 68 AppInfo appInfo) { in MinifiedRenaming() argument 69 this.appInfo = appInfo; in MinifiedRenaming() [all …]
|
D | FieldNameMinifier.java | 19 private final AppInfoWithSubtyping appInfo; field in FieldNameMinifier 25 public FieldNameMinifier(AppInfoWithSubtyping appInfo, RootSet rootSet, List<String> dictionary) { in FieldNameMinifier() argument 26 this.appInfo = appInfo; in FieldNameMinifier() 32 NamingState<DexType> rootState = NamingState.createRoot(appInfo.dexItemFactory, dictionary); in computeRenaming() 37 reserveNamesInSubtypes(appInfo.dexItemFactory.objectType, rootState); in computeRenaming() 39 DexType.forAllInterfaces(appInfo.dexItemFactory, in computeRenaming() 42 renameFieldsInSubtypes(appInfo.dexItemFactory.objectType); in computeRenaming() 43 DexType.forAllInterfaces(appInfo.dexItemFactory, this::renameFieldsInSubtypes); in computeRenaming() 48 DexClass holder = appInfo.definitionFor(type); in reserveNamesInSubtypes() 69 DexClass clazz = appInfo.definitionFor(type); in renameFieldsInSubtypes()
|
D | ClassNameMinifier.java | 28 private final AppInfoWithLiveness appInfo; field in ClassNameMinifier 38 public ClassNameMinifier(AppInfoWithLiveness appInfo, RootSet rootSet, String packagePrefix, in ClassNameMinifier() argument 40 this.appInfo = appInfo; in ClassNameMinifier() 48 Iterable<DexProgramClass> classes = appInfo.classes(); in computeRenaming() 50 for (DexClass clazz : appInfo.classes()) { in computeRenaming() 56 for (DexClass clazz : appInfo.classes()) { in computeRenaming() 62 appInfo.dexItemFactory.forAllTypes(this::renameArrayTypeIfNeeded); in computeRenaming() 89 DexClass clazz = appInfo.definitionFor(type); in getOutClassForType() 94 clazz.annotations.getFirstMatching(appInfo.dexItemFactory.annotationEnclosingClass); in getOutClassForType() 144 DexClass outerClass = appInfo.definitionFor(outer); in getStateForOuterClass() [all …]
|
D | MethodNameMinifier.java | 87 private final AppInfoWithSubtyping appInfo; field in MethodNameMinifier 94 public MethodNameMinifier(AppInfoWithSubtyping appInfo, RootSet rootSet, in MethodNameMinifier() argument 96 this.appInfo = appInfo; in MethodNameMinifier() 99 this.globalState = NamingState.createRoot(appInfo.dexItemFactory, dictionary); in MethodNameMinifier() 107 reserveNamesInClasses(appInfo.dexItemFactory.objectType, in computeRenaming() 108 appInfo.dexItemFactory.objectType, in computeRenaming() 113 DexType.forAllInterfaces(appInfo.dexItemFactory, iface -> { in computeRenaming() 125 assignNamesToClassesMethods(appInfo.dexItemFactory.objectType, false, renaming); in computeRenaming() 129 assignNamesToClassesMethods(appInfo.dexItemFactory.objectType, true, renaming); in computeRenaming() 137 DexClass holder = appInfo.definitionFor(type); in assignNamesToClassesMethods() [all …]
|
/external/r8/src/main/java/com/android/tools/r8/ |
D | R8.java | 77 AppInfo appInfo, in writeApplication() argument 84 return new ApplicationWriter(application, appInfo, options, namingLens, proguardSeedsData) in writeApplication() 91 public DexApplication optimize(DexApplication application, AppInfoWithSubtyping appInfo) in optimize() argument 93 return optimize(application, appInfo, GraphLense.getIdentityLense(), in optimize() 97 public DexApplication optimize(DexApplication application, AppInfoWithSubtyping appInfo, in optimize() argument 105 timing, application, appInfo, options, printer, graphLense); in optimize() 115 new DebugStripper(application.getProguardMap(), options, appInfo.dexItemFactory); in optimize() 206 AppInfoWithSubtyping appInfo = new AppInfoWithSubtyping(application); in run() local 211 Set<DexType> missingClasses = appInfo.getMissingClasses(); in run() 224 rootSet = new RootSetBuilder(application, appInfo, options.keepRules).run(executorService); in run() [all …]
|
D | CompilationResult.java | 13 public final AppInfo appInfo; field in CompilationResult 15 public CompilationResult(AndroidApp androidApp, DexApplication dexApplication, AppInfo appInfo) { in CompilationResult() argument 18 this.appInfo = appInfo; in CompilationResult()
|
/external/r8/src/test/java/com/android/tools/r8/graph/ |
D | TargetLookupTest.java | 63 AppInfo appInfo = new AppInfo(application); in lookupDirect() local 66 assertNull(appInfo.lookupVirtualTarget(method.method.holder, method.method)); in lookupDirect() 67 assertNull(appInfo.lookupDirectTarget(method.method)); in lookupDirect() 68 assertNotNull(appInfo.lookupStaticTarget(method.method)); in lookupDirect() 122 AppInfo appInfo = new AppInfo(application); in lookupDirectSuper() local 136 assertNull(appInfo.lookupVirtualTarget(classTestSuper, methodXOnTestSuper)); in lookupDirectSuper() 137 assertNull(appInfo.lookupVirtualTarget(classTest, methodXOnTestSuper)); in lookupDirectSuper() 138 assertNull(appInfo.lookupVirtualTarget(classTest, methodXOnTest)); in lookupDirectSuper() 140 assertNull(appInfo.lookupDirectTarget(methodXOnTestSuper)); in lookupDirectSuper() 141 assertNull(appInfo.lookupDirectTarget(methodXOnTest)); in lookupDirectSuper() [all …]
|
/external/r8/src/main/java/com/android/tools/r8/shaking/ |
D | MainDexListBuilder.java | 41 private final AppInfoWithSubtyping appInfo; field in MainDexListBuilder 58 this.appInfo = new AppInfoWithSubtyping(dexApplication); in MainDexListBuilder() 61 enumTypes = appInfo.subtypes(appInfo.dexItemFactory.enumType); in MainDexListBuilder() 66 annotationTypes = appInfo.subtypes(appInfo.dexItemFactory.annotationType); in MainDexListBuilder() 103 DexClass clazz = appInfo.definitionFor(dexType); in isAnnotationWithEnum() 114 DexType valueType = proto.returnType.toBaseType(appInfo.dexItemFactory); in isAnnotationWithEnum() 131 return valueType.isSubtypeOf(appInfo.dexItemFactory.enumType, appInfo); in isEnum() 135 return valueType.isSubtypeOf(appInfo.dexItemFactory.annotationType, appInfo); in isAnnotation() 139 DexClass clazz = appInfo.definitionFor(dexType); in isProgramClass() 145 DexClass clazz = appInfo.definitionFor(type); in traceMainDexDirectDependencies()
|
D | AnnotationRemover.java | 23 private final AppInfoWithLiveness appInfo; field in AnnotationRemover 27 public AnnotationRemover(AppInfoWithLiveness appInfo, InternalOptions options) { in AnnotationRemover() argument 28 this(appInfo, !options.skipMinification, options.attributeRemoval); in AnnotationRemover() 31 public AnnotationRemover(AppInfoWithLiveness appInfo, boolean minificationEnabled, in AnnotationRemover() argument 33 this.appInfo = appInfo; in AnnotationRemover() 46 DexItemFactory factory = appInfo.dexItemFactory; in filterAnnotations() 80 return appInfo.liveTypes.contains(annotation.annotation.type); in filterAnnotations() 103 return appInfo.liveTypes.contains(annotation.annotation.type); in filterParameterAnnotations() 108 for (DexProgramClass clazz : appInfo.classes()) { in run()
|
D | TreePruner.java | 23 private final AppInfoWithLiveness appInfo; field in TreePruner 27 DexApplication application, AppInfoWithLiveness appInfo, InternalOptions options) { in TreePruner() argument 29 this.appInfo = appInfo; in TreePruner() 58 if (!appInfo.liveTypes.contains(clazz.type)) { in getNewProgramClasses() 65 if (!appInfo.instantiatedTypes.contains(clazz.type) && in getNewProgramClasses() 115 int firstUnreachable = firstUnreachableIndex(methods, appInfo.liveMethods); in reachableMethods() 125 if (appInfo.liveMethods.contains(methods[i].getKey())) { in reachableMethods() 132 } else if (appInfo.targetedMethods.contains(methods[i].getKey())) { in reachableMethods() 157 int firstUnreachable = firstUnreachableIndex(fields, appInfo.liveFields); in reachableFields() 169 if (appInfo.liveFields.contains(fields[i].getKey())) { in reachableFields()
|
D | AbstractMethodRemover.java | 22 private final AppInfoWithSubtyping appInfo; field in AbstractMethodRemover 25 public AbstractMethodRemover(AppInfoWithSubtyping appInfo) { in AbstractMethodRemover() argument 26 this.appInfo = appInfo; in AbstractMethodRemover() 31 processClass(appInfo.dexItemFactory.objectType); in run() 35 DexClass holder = appInfo.definitionFor(type); in processClass()
|
D | Enqueuer.java | 66 private final AppInfoWithSubtyping appInfo; field in Enqueuer 151 public Enqueuer(AppInfoWithSubtyping appInfo) { in Enqueuer() argument 152 this.appInfo = appInfo; in Enqueuer() 170 holder = holder.toBaseType(appInfo.dexItemFactory); in registerItemWithTarget() 277 DexClass clazz = appInfo.definitionFor(type); in registerNewInstance() 316 DexType baseType = type.toBaseType(appInfo.dexItemFactory); in registerTypeReference() 335 DexClass holder = appInfo.definitionFor(type); in markTypeAsLive() 366 annotation.annotation.type, appInfo.dexItemFactory); in handleAnnotationOfLiveType() 384 DexEncodedMethod encodedMethod = appInfo.lookupStaticTarget(method); in handleInvokeOfStaticTarget() 393 DexEncodedMethod encodedMethod = appInfo.lookupDirectTarget(method); in handleInvokeOfDirectTarget() [all …]
|
/external/r8/src/main/java/com/android/tools/r8/ir/conversion/ |
D | IRConverter.java | 57 public final AppInfo appInfo; field in IRConverter 76 AppInfo appInfo, in IRConverter() argument 83 assert appInfo != null; in IRConverter() 87 this.appInfo = appInfo; in IRConverter() 92 this.codeRewriter = new CodeRewriter(appInfo, libraryClassesWithOptimizationInfo); in IRConverter() 98 assert appInfo.withSubtyping() != null; in IRConverter() 99 this.inliner = new Inliner(appInfo.withSubtyping(), graphLense, options); in IRConverter() 100 this.outliner = new Outliner(appInfo, options); in IRConverter() 101 this.memberValuePropagation = new MemberValuePropagation(appInfo); in IRConverter() 102 this.lensCodeRewriter = new LensCodeRewriter(graphLense, appInfo.withSubtyping()); in IRConverter() [all …]
|
D | CallGraph.java | 146 public static CallGraph build(DexApplication application, AppInfoWithSubtyping appInfo, in build() argument 154 InvokeExtractor extractor = new InvokeExtractor(appInfo, graphLense, node, graph); in build() 161 graph.fillCallSiteSets(appInfo); in build() 180 private void fillCallSiteSets(AppInfoWithSubtyping appInfo) { in fillCallSiteSets() argument 182 AppInfoWithLiveness liveAppInfo = appInfo.withLiveness(); in fillCallSiteSets() 188 if (!appInfo.withLiveness().pinnedItems.contains(value.method)) { in fillCallSiteSets() 336 AppInfoWithSubtyping appInfo; field in CallGraph.InvokeExtractor 341 InvokeExtractor(AppInfoWithSubtyping appInfo, GraphLense graphLense, Node caller, in InvokeExtractor() argument 343 this.appInfo = appInfo; in InvokeExtractor() 351 DexEncodedMethod definition = appInfo.lookup(type, method); in processInvoke() [all …]
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/errorReporting/ |
D | ITNProxy.java | 48 ApplicationInfoEx appInfo = ApplicationInfoEx.getInstanceEx(); in createParameters() local 53 params.put("app.name.version", appInfo.getVersionName()); in createParameters() 54 params.put("app.eap", Boolean.toString(appInfo.isEAP())); in createParameters() 56 params.put("app.build", appInfo.getBuild().asString()); in createParameters() 57 params.put("app.version.major", appInfo.getMajorVersion()); in createParameters() 58 params.put("app.version.minor", appInfo.getMinorVersion()); in createParameters() 59 params.put("app.build.date", format(appInfo.getBuildDate())); in createParameters() 60 params.put("app.build.date.release", format(appInfo.getMajorReleaseBuildDate())); in createParameters()
|
/external/r8/src/test/java/com/android/tools/r8/shaking/ |
D | R8Shaking2LookupTest.java | 26 private AppInfoWithSubtyping appInfo; field in R8Shaking2LookupTest 32 appInfo = new AppInfoWithSubtyping(program); in readApp() 37 assertTrue(appInfo.subtypes(super_type).contains(sub_type)); in validateSubtype() 38 assertTrue(sub_type.isSubtypeOf(super_type, appInfo)); in validateSubtype() 39 assertFalse(appInfo.subtypes(sub_type).contains(super_type)); in validateSubtype() 40 assertFalse(super_type.isSubtypeOf(sub_type, appInfo)); in validateSubtype() 44 assertEquals(size, appInfo.subtypes(type).size()); in validateSubtypeSize()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiDeviceInitializationTests.cpp | 73 const VkApplicationInfo appInfo = in createInstanceTest() local 84 appInfos.push_back(appInfo); in createInstanceTest() 90 const VkApplicationInfo appInfo = in createInstanceTest() local 101 appInfos.push_back(appInfo); in createInstanceTest() 107 const VkApplicationInfo appInfo = in createInstanceTest() local 118 appInfos.push_back(appInfo); in createInstanceTest() 124 const VkApplicationInfo appInfo = in createInstanceTest() local 135 appInfos.push_back(appInfo); in createInstanceTest() 140 const VkApplicationInfo appInfo = in createInstanceTest() local 151 appInfos.push_back(appInfo); in createInstanceTest() [all …]
|
/external/r8/src/main/java/com/android/tools/r8/ir/desugar/ |
D | LambdaDescriptor.java | 95 AppInfo appInfo = rewriter.converter.appInfo; in lookupTargetMethod() local 96 DexEncodedMethod target = appInfo.lookupVirtualTarget(getImplReceiverType(), method); in lookupTargetMethod() 98 target = appInfo.lookupDirectTarget(method); in lookupTargetMethod() 106 AppInfo appInfo = rewriter.converter.appInfo; in lookupTargetMethod() local 107 DexEncodedMethod target = appInfo.lookupStaticTarget(method); in lookupTargetMethod() 113 AppInfo appInfo = rewriter.converter.appInfo; in lookupTargetMethod() local 114 DexEncodedMethod target = appInfo.lookupDirectTarget(method); in lookupTargetMethod() 120 AppInfo appInfo = rewriter.converter.appInfo; in lookupTargetMethod() local 121 DexEncodedMethod target = appInfo.lookupVirtualTarget(getImplReceiverType(), method); in lookupTargetMethod()
|
/external/r8/src/main/java/com/android/tools/r8/ir/optimize/ |
D | MemberValuePropagation.java | 31 private final AppInfo appInfo; field in MemberValuePropagation 51 public MemberValuePropagation(AppInfo appInfo) { in MemberValuePropagation() argument 52 this.appInfo = appInfo; in MemberValuePropagation() 53 this.liveSet = appInfo.withLiveness(); in MemberValuePropagation() 85 DexEncodedField staticField = appInfo.lookupStaticTarget(field.clazz, field); in constantReplacementFromProguardRule() 133 DexEncodedMethod definition = appInfo.lookup(invoke.getType(), invokedMethod); in rewriteWithConstantValues() 184 DexEncodedField target = appInfo.lookupInstanceTarget(field.getHolder(), field); in rewriteWithConstantValues() 195 DexEncodedField target = appInfo.lookupStaticTarget(field.getHolder(), field); in rewriteWithConstantValues() 199 replacement = target.valueAsConstInstruction(appInfo, staticGet.dest()); in rewriteWithConstantValues() 224 DexEncodedField target = appInfo.lookupStaticTarget(field.getHolder(), field); in rewriteWithConstantValues() [all …]
|
D | Inliner.java | 39 protected final AppInfoWithSubtyping appInfo; field in Inliner 49 public Inliner(AppInfoWithSubtyping appInfo, GraphLense graphLense, InternalOptions options) { in Inliner() argument 50 this.appInfo = appInfo; in Inliner() 57 Constraint result = instruction.inliningConstraint(appInfo, method.method.holder); in instructionAllowedForInlining() 104 methodHolder.isSubtypeOf(targetHolder, appInfo)) { in hasInliningAccess() 175 public IRCode buildIR(ValueNumberGenerator generator, AppInfoWithSubtyping appInfo, in buildIR() argument 188 new LensCodeRewriter(graphLense, appInfo).rewrite(code, target); in buildIR() 228 && appInfo.dexItemFactory in legalConstructorInline() 270 DexEncodedMethod target = appInfo.lookup(invoke.getType(), invoke.getInvokedMethod()); in performInlining() 281 .buildIR(code.valueNumberGenerator, appInfo, graphLense, options); in performInlining()
|
/external/r8/src/test/java/com/android/tools/r8/internal/ |
D | R8GMSCoreLookupTest.java | 33 private AppInfoWithSubtyping appInfo; field in R8GMSCoreLookupTest 41 appInfo = new AppInfoWithSubtyping(program); in readGMSCore() 47 assertEquals(appInfo.lookupVirtualTarget(id.holder, method.method), method); in testVirtualLookup() 50 Set<DexEncodedMethod> targets = appInfo.lookupVirtualTargets(method.method); in testVirtualLookup() 55 Set<DexEncodedMethod> targets = appInfo.lookupVirtualTargets(method.method); in testInterfaceLookup() 60 assert appInfo.subtypes(clazz.type) in testLookup()
|
/external/r8/src/main/java/com/android/tools/r8/graph/ |
D | DexType.java | 101 public boolean isSubtypeOf(DexType other, AppInfo appInfo) { in isSubtypeOf() argument 107 if (this == appInfo.dexItemFactory.objectType) { in isSubtypeOf() 110 if (other == appInfo.dexItemFactory.objectType) { in isSubtypeOf() 114 return isInterfaceSubtypeOf(this, other, appInfo); in isSubtypeOf() 118 appInfo)); in isSubtypeOf() 120 return isSubtypeOfClass(other, appInfo); in isSubtypeOf() 123 private boolean isInterfaceSubtypeOf(DexType candidate, DexType other, AppInfo appInfo) { in isInterfaceSubtypeOf() argument 124 if (candidate == other || other == appInfo.dexItemFactory.objectType) { in isInterfaceSubtypeOf() 127 DexClass candidateHolder = appInfo.definitionFor(candidate); in isInterfaceSubtypeOf() 133 if (isInterfaceSubtypeOf(iface, other, appInfo)) { in isInterfaceSubtypeOf() [all …]
|