Loading ravenwood/TEST_MAPPING +1 −4 Original line number Diff line number Diff line Loading @@ -7,10 +7,7 @@ { "name": "hoststubgen-invoke-test" }, { "name": "RavenwoodMockitoTest_device" }, { "name": "RavenwoodBivalentTest_device" }, // Running ravenizer on device side tests is unsupported: b/411506416 // { "name": "RavenwoodBivalentTest_device_ravenizer" }, { "name": "RavenwoodBivalentTest_device_ravenizer" }, { "name": "RavenwoodBivalentInstTest_nonself_inst" }, { "name": "RavenwoodBivalentInstTest_self_inst_device" }, Loading ravenwood/tests/bivalenttest/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -128,5 +128,6 @@ android_test { defaults: ["ravenwood-bivalent-device-defaults"], ravenizer: { enabled: true, flags: ["--no-jdk-patch"], }, } ravenwood/tools/hoststubgen/lib/com/android/hoststubgen/HostStubGenClassProcessor.kt +3 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,9 @@ class HostStubGenClassProcessor( // Connect to the base visitor var outVisitor: ClassVisitor = base if (!options.disableJdkPatch.get) { outVisitor = JdkPatchVisitor(outVisitor) } if (options.enableClassChecker.get) { outVisitor = CheckClassAdapter(outVisitor) Loading ravenwood/tools/hoststubgen/lib/com/android/hoststubgen/HostStubGenClassProcessorOptions.kt +5 −2 Original line number Diff line number Diff line Loading @@ -62,6 +62,8 @@ open class HostStubGenClassProcessorOptions( val throwExceptionType: SetOnce<String> = SetOnce("java.lang.UnsupportedOperationException"), val disableJdkPatch: SetOnce<Boolean> = SetOnce(false), val enableClassChecker: SetOnce<Boolean> = SetOnce(false), val enablePreTrace: SetOnce<Boolean> = SetOnce(false), val enablePostTrace: SetOnce<Boolean> = SetOnce(false), Loading Loading @@ -136,8 +138,9 @@ open class HostStubGenClassProcessorOptions( "--delete-finals" -> deleteFinals.set(true) "--throw-exception" -> throwExceptionType.set(nextArg()) "--throw-exception" -> throwExceptionType.set(nextArg()) "--no-jdk-patch" -> disableJdkPatch.set(true) // Following options are for debugging. "--enable-class-checker" -> enableClassChecker.set(true) Loading Loading
ravenwood/TEST_MAPPING +1 −4 Original line number Diff line number Diff line Loading @@ -7,10 +7,7 @@ { "name": "hoststubgen-invoke-test" }, { "name": "RavenwoodMockitoTest_device" }, { "name": "RavenwoodBivalentTest_device" }, // Running ravenizer on device side tests is unsupported: b/411506416 // { "name": "RavenwoodBivalentTest_device_ravenizer" }, { "name": "RavenwoodBivalentTest_device_ravenizer" }, { "name": "RavenwoodBivalentInstTest_nonself_inst" }, { "name": "RavenwoodBivalentInstTest_self_inst_device" }, Loading
ravenwood/tests/bivalenttest/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -128,5 +128,6 @@ android_test { defaults: ["ravenwood-bivalent-device-defaults"], ravenizer: { enabled: true, flags: ["--no-jdk-patch"], }, }
ravenwood/tools/hoststubgen/lib/com/android/hoststubgen/HostStubGenClassProcessor.kt +3 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,9 @@ class HostStubGenClassProcessor( // Connect to the base visitor var outVisitor: ClassVisitor = base if (!options.disableJdkPatch.get) { outVisitor = JdkPatchVisitor(outVisitor) } if (options.enableClassChecker.get) { outVisitor = CheckClassAdapter(outVisitor) Loading
ravenwood/tools/hoststubgen/lib/com/android/hoststubgen/HostStubGenClassProcessorOptions.kt +5 −2 Original line number Diff line number Diff line Loading @@ -62,6 +62,8 @@ open class HostStubGenClassProcessorOptions( val throwExceptionType: SetOnce<String> = SetOnce("java.lang.UnsupportedOperationException"), val disableJdkPatch: SetOnce<Boolean> = SetOnce(false), val enableClassChecker: SetOnce<Boolean> = SetOnce(false), val enablePreTrace: SetOnce<Boolean> = SetOnce(false), val enablePostTrace: SetOnce<Boolean> = SetOnce(false), Loading Loading @@ -136,8 +138,9 @@ open class HostStubGenClassProcessorOptions( "--delete-finals" -> deleteFinals.set(true) "--throw-exception" -> throwExceptionType.set(nextArg()) "--throw-exception" -> throwExceptionType.set(nextArg()) "--no-jdk-patch" -> disableJdkPatch.set(true) // Following options are for debugging. "--enable-class-checker" -> enableClassChecker.set(true) Loading