Home
last modified time | relevance | path

Searched refs:Redefinition (Results 1 – 25 of 184) sorted by relevance

12345678

/art/test/932-transform-saves/src/art/
DTest932.java105 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/
DMain.java17 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/
DDexCacheSmash.java17 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/
DTest983.java39 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/
DTest1991.java68 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/
DTest930.java67 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/
DTest981.java141 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/
DMain.java20 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/
DTest2004.java103 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/
DTest982.java29 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/
DTest2003.java112 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/
DMain.java20 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/
DMain.java17 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/
DTest2009.java90 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/
DTest1993.java66 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/
DTest1994.java79 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/
DTest1990.java114 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run()
120 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest()
/art/test/902-hello-transformation/src/art/
DTest902.java73 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/
DTest1992.java80 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/
DMain.java17 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/
DTest1997.java73 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run()
80 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest()
/art/test/985-re-obsolete/src/art/
DTest985.java180 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/
DTest1978.java183 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/
DTest1999.java74 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/
DTest1910.java75 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); in run()
81 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES); in doTest()

12345678