Loading ravenwood/scripts/ravenwood-stats-collector.sh +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ collect_apis() { echo "API CVS created at $out$desc" } collect_apis $apis " (import it as 'ravenwood_supported_apis2')" collect_apis $apis " (import it as 'ravenwood_supported_apis3')" cp *keep_all.txt $keep_all_dir echo "Keep all files created at:" Loading ravenwood/tools/hoststubgen/lib/com/android/hoststubgen/dumper/ApiDumper.kt +8 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ class ApiDumper( */ fun dump() { pw.printf("PackageName,ClassName,Inherited,DeclareClass,MethodName,MethodDesc" + ",Supported,Policy,Reason,Boring\n") ",Supported,Policy,Reason,Boring,StatsLabelValue\n") classes.forEach { classNode -> shownMethods.clear() Loading @@ -73,7 +73,7 @@ class ApiDumper( methodPolicy: FilterPolicyWithReason, ) { pw.printf( "%s,%s,%d,%s,%s,%s,%d,%s,%s,%d\n", "%s,%s,%d,%s,%s,%s,%d,%s,%s,%d,%d\n", csvEscape(classPackage), csvEscape(className), if (isSuperClass) { 1 } else { 0 }, Loading @@ -84,6 +84,7 @@ class ApiDumper( methodPolicy.policy, csvEscape(methodPolicy.reason), if (computedMethodLabel == StatsLabel.SupportedButBoring) { 1 } else { 0 }, computedMethodLabel.statValue, ) } Loading Loading @@ -130,6 +131,11 @@ class ApiDumper( return StatsLabel.SupportedButBoring } // Mark ctors and clinits as boring. when (mn.name) { CTOR_NAME, CLASS_INITIALIZER_NAME -> return StatsLabel.SupportedButBoring } return methodPolicy.statsLabel } Loading ravenwood/tools/hoststubgen/src/com/android/hoststubgen/HostStubGen.kt +0 −2 Original line number Diff line number Diff line Loading @@ -36,8 +36,6 @@ class HostStubGen(val options: HostStubGenOptions) { // Load all classes. val allClasses = ClassNodes.loadClassStructures(inJar, options.inJar.get) // val stats = HostStubGenStats(allClasses) // Dump the classes, if specified. options.inputJarDumpFile.ifSet { log.iTime("Dump file created at $it") { Loading Loading
ravenwood/scripts/ravenwood-stats-collector.sh +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ collect_apis() { echo "API CVS created at $out$desc" } collect_apis $apis " (import it as 'ravenwood_supported_apis2')" collect_apis $apis " (import it as 'ravenwood_supported_apis3')" cp *keep_all.txt $keep_all_dir echo "Keep all files created at:" Loading
ravenwood/tools/hoststubgen/lib/com/android/hoststubgen/dumper/ApiDumper.kt +8 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ class ApiDumper( */ fun dump() { pw.printf("PackageName,ClassName,Inherited,DeclareClass,MethodName,MethodDesc" + ",Supported,Policy,Reason,Boring\n") ",Supported,Policy,Reason,Boring,StatsLabelValue\n") classes.forEach { classNode -> shownMethods.clear() Loading @@ -73,7 +73,7 @@ class ApiDumper( methodPolicy: FilterPolicyWithReason, ) { pw.printf( "%s,%s,%d,%s,%s,%s,%d,%s,%s,%d\n", "%s,%s,%d,%s,%s,%s,%d,%s,%s,%d,%d\n", csvEscape(classPackage), csvEscape(className), if (isSuperClass) { 1 } else { 0 }, Loading @@ -84,6 +84,7 @@ class ApiDumper( methodPolicy.policy, csvEscape(methodPolicy.reason), if (computedMethodLabel == StatsLabel.SupportedButBoring) { 1 } else { 0 }, computedMethodLabel.statValue, ) } Loading Loading @@ -130,6 +131,11 @@ class ApiDumper( return StatsLabel.SupportedButBoring } // Mark ctors and clinits as boring. when (mn.name) { CTOR_NAME, CLASS_INITIALIZER_NAME -> return StatsLabel.SupportedButBoring } return methodPolicy.statsLabel } Loading
ravenwood/tools/hoststubgen/src/com/android/hoststubgen/HostStubGen.kt +0 −2 Original line number Diff line number Diff line Loading @@ -36,8 +36,6 @@ class HostStubGen(val options: HostStubGenOptions) { // Load all classes. val allClasses = ClassNodes.loadClassStructures(inJar, options.inJar.get) // val stats = HostStubGenStats(allClasses) // Dump the classes, if specified. options.inputJarDumpFile.ifSet { log.iTime("Dump file created at $it") { Loading