/art/test/932-transform-saves/src/art/ |
D | Test932.java | 105 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_RETRANSFORM); in run() 115 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES_A, DEX_BYTES_A); in doTest() 119 Redefinition.addCommonTransformationResult("art/Test932$Transform", CLASS_BYTES_B, DEX_BYTES_B); in doTest() 120 Redefinition.enableCommonRetransformation(true); in doTest() 121 Redefinition.doCommonClassRetransformation(Transform.class); in doTest() 125 Redefinition.enableCommonRetransformation(false); in doTest() 126 Redefinition.doCommonClassRetransformation(Transform.class); in doTest()
|
/art/test/921-hello-failure/src/ |
D | Main.java | 17 import art.Redefinition; 42 private static Redefinition.CommonClassDefinition mapCCD(CommonClassDefinition d) { in mapCCD() 43 return new Redefinition.CommonClassDefinition(d.target, d.class_file_bytes, d.dex_file_bytes); in mapCCD() 46 private static Redefinition.CommonClassDefinition[] toCCDA(CommonClassDefinition[] ds) { in toCCDA() 47 return Arrays.stream(ds).map(Main::mapCCD).toArray(Redefinition.CommonClassDefinition[]::new); in toCCDA() 53 Redefinition.doCommonClassRedefinition(target, classfile, dexfile); in doCommonClassRedefinition() 56 Redefinition.doMultiClassRedefinition(toCCDA(defs)); in doMultiClassRedefinition() 59 Redefinition.addMultiTransformationResults(toCCDA(defs)); in addMultiTransformationResults() 64 Redefinition.doCommonMultiClassRedefinition(targets, classfiles, dexfiles); in doCommonMultiClassRedefinition() 67 Redefinition.doCommonClassRetransformation(target); in doCommonClassRetransformation() [all …]
|
/art/test/998-redefine-use-after-free/src-ex/ |
D | DexCacheSmash.java | 17 import art.Redefinition; 38 static final Redefinition.CommonClassDefinition TRANSFORM_INITIAL = 39 new Redefinition.CommonClassDefinition(Transform.class, 108 static final Redefinition.CommonClassDefinition TRANSFORM2_INVALID = 109 new Redefinition.CommonClassDefinition(Transform2.class, 137 Redefinition.doMultiClassRedefinition(TRANSFORM2_INVALID); in run() 153 Redefinition.doMultiClassRedefinition(TRANSFORM_INITIAL); in run()
|
/art/test/983-source-transform-verify/src/art/ |
D | Test983.java | 39 Redefinition.enableCommonRetransformation(true); in doTest() 40 Redefinition.doCommonClassRetransformation(Transform.class); in doTest() 41 Redefinition.doCommonClassRetransformation(Object.class); in doTest() 43 Redefinition.doCommonClassRetransformation(ClassLoader.class); in doTest() 44 Redefinition.enableCommonRetransformation(false); in doTest()
|
/art/test/1991-hello-structural-retransform/src/art/ |
D | Test1991.java | 68 Redefinition.setTestConfiguration(Redefinition.Config.STRUCTURAL_TRANSFORM); in run() 74 Redefinition.addCommonTransformationResult("art/Test1991$Transform", new byte[0], DEX_BYTES); in doTest() 75 Redefinition.enableCommonRetransformation(true); in doTest() 76 Redefinition.doCommonClassRetransformation(Transform.class); in doTest()
|
/art/test/930-hello-retransform/src/art/ |
D | Test930.java | 67 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_RETRANSFORM); in run() 73 Redefinition.addCommonTransformationResult("art/Test930$Transform", CLASS_BYTES, DEX_BYTES); in doTest() 74 Redefinition.enableCommonRetransformation(true); in doTest() 75 Redefinition.doCommonClassRetransformation(Transform.class); in doTest()
|
/art/test/981-dedup-original-dex/src-art/art/ |
D | Test981.java | 141 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_RETRANSFORM); in run() 181 Redefinition.addCommonTransformationResult("art/Test981$Transform", new byte[0], DEX_BYTES_1); in doTest() 182 Redefinition.addCommonTransformationResult("art/Test981$Transform2", new byte[0], DEX_BYTES_2); in doTest() 183 Redefinition.enableCommonRetransformation(true); in doTest() 184 Redefinition.doCommonClassRetransformation(Transform.class, Transform2.class); in doTest() 192 Redefinition.enableCommonRetransformation(false); in doTest() 193 Redefinition.doCommonClassRedefinition(Transform.class, new byte[0], DEX_BYTES_1); in doTest() 198 Redefinition.enableCommonRetransformation(true); in doTest() 204 Redefinition.addCommonTransformationResult("Transform3", new byte[0], DEX_BYTES_3_FINAL); in doTest() 205 Redefinition.enableCommonRetransformation(true); in doTest()
|
/art/test/935-non-retransformable/src/ |
D | Main.java | 20 import art.Redefinition; 79 Redefinition.setPopRetransformations(false); in main() 80 Redefinition.addCommonTransformationResult("Transform", CLASS_BYTES, DEX_BYTES); in main() 81 Redefinition.enableCommonRetransformation(true); in main() 93 Redefinition.popTransformationFor("Transform"); in main() 95 Redefinition.addCommonTransformationResult("Transform", new byte[0], new byte[0]); in main() 96 Redefinition.doCommonClassRetransformation(new_loader.loadClass("Transform")); in main()
|
/art/test/2004-double-virtual-structural-abstract/src/art/ |
D | Test2004.java | 103 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 109 Redefinition.doMultiStructuralClassRedefinition( in doTest() 110 new Redefinition.CommonClassDefinition(SubTransform.class, null, SUBTRANSFORM_DEX_BYTES), in doTest() 111 new Redefinition.CommonClassDefinition(Transform.class, null, TRANSFORM_DEX_BYTES)); in doTest()
|
/art/test/982-ok-no-retransform/src/art/ |
D | Test982.java | 29 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_RETRANSFORM); in run() 35 Redefinition.enableCommonRetransformation(true); in doTest() 36 Redefinition.doCommonClassRetransformation(Transform.class); in doTest()
|
/art/test/2003-double-virtual-structural/src/art/ |
D | Test2003.java | 112 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 120 Redefinition.doMultiStructuralClassRedefinition( in doTest() 121 new Redefinition.CommonClassDefinition(SubTransform.class, null, SUBTRANSFORM_DEX_BYTES), in doTest() 122 new Redefinition.CommonClassDefinition(Transform.class, null, TRANSFORM_DEX_BYTES)); in doTest()
|
/art/test/937-hello-retransform-package/src/ |
D | Main.java | 20 import art.Redefinition; 63 Redefinition.addCommonTransformationResult("testing/Transform", CLASS_BYTES, DEX_BYTES); in doTest() 64 Redefinition.enableCommonRetransformation(true); in doTest() 65 Redefinition.doCommonClassRetransformation(Transform.class); in doTest()
|
/art/test/1950-unprepared-transform/src/ |
D | Main.java | 17 import art.Redefinition; 63 Redefinition.addCommonTransformationResult("Transform", CLASS_BYTES, DEX_BYTES); in doClassLoad() 89 doRedefine = (c) -> { Redefinition.doCommonClassRetransformation(c); }; in testCurrentThread() 110 Redefinition.doCommonClassRetransformation(loaded[0]); in testRemoteThread() 140 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_RETRANSFORM); in main() 141 Redefinition.setPopRetransformations(false); in main() 142 Redefinition.enableCommonRetransformation(true); in main()
|
/art/test/2009-structural-local-ref/src-art/art/ |
D | Test2009.java | 90 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 108 Redefinition.doCommonStructuralClassRedefinition(ifields, DEX_BYTES); in doTest() 117 Redefinition.doCommonStructuralClassRedefinition(sfields, DEX_BYTES); in doTest() 126 Redefinition.doCommonStructuralClassRedefinition(imeths, DEX_BYTES); in doTest() 135 Redefinition.doCommonStructuralClassRedefinition(smeths, DEX_BYTES); in doTest()
|
/art/test/1993-fallback-non-structural/src/art/ |
D | Test1993.java | 66 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 72 Redefinition.isStructurallyModifiable(Transform.class)); in doTest() 74 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest()
|
/art/test/1994-final-virtual-structural/src/art/ |
D | Test1994.java | 79 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 85 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest()
|
/art/test/1990-structural-bad-verify/src/art/ |
D | Test1990.java | 114 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 120 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest()
|
/art/test/902-hello-transformation/src/art/ |
D | Test902.java | 73 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 79 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES); in doTest()
|
/art/test/1992-retransform-no-such-field/src/art/ |
D | Test1992.java | 80 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 86 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES); in doTest()
|
/art/test/1938-transform-abstract-single-impl/src/ |
D | Main.java | 17 import art.Redefinition; 77 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in main() 88 Redefinition.doCommonClassRedefinition(TransformAbstract.class, CLASS_BYTES, DEX_BYTES); in main()
|
/art/test/1997-structural-shadow-method/src/art/ |
D | Test1997.java | 73 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 80 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest()
|
/art/test/985-re-obsolete/src/art/ |
D | Test985.java | 180 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 188 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES_1, DEX_BYTES_1); in doTest() 193 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES_2, DEX_BYTES_2); in doTest()
|
/art/test/1978-regular-obsolete-then-structural-obsolescence/src/art/ |
D | Test1978.java | 183 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 198 Redefinition.doCommonClassRedefinition( in doTest() 203 Redefinition.doCommonStructuralClassRedefinition(Transform.class, STRUCTURAL_DEX_BYTES); in doTest()
|
/art/test/1999-virtual-structural/src/art/ |
D | Test1999.java | 74 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 82 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest()
|
/art/test/1910-transform-with-default/src/art/ |
D | Test1910.java | 75 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run() 81 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES); in doTest()
|