/art/test/982-ok-no-retransform/src/art/ |
Test982.java | 29 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_RETRANSFORM); 35 Redefinition.enableCommonRetransformation(true); 36 Redefinition.doCommonClassRetransformation(Transform.class);
|
/art/test/983-source-transform-verify/src/art/ |
Test983.java | 33 Redefinition.enableCommonRetransformation(true); 34 Redefinition.doCommonClassRetransformation(Transform.class); 35 Redefinition.doCommonClassRetransformation(Object.class); 36 Redefinition.enableCommonRetransformation(false);
|
/art/test/998-redefine-use-after-free/src-ex/ |
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); 144 // Doing this redefinition after a redefinition that failed due to FAILS_VERIFICATION could 145 // cause a use-after-free of the Transform2's DexCache by the redefinition code if it happens 146 // that the native pointer of the art::DexFile created for the Transform redefinition aliase [all...] |
/art/test/932-transform-saves/src/art/ |
Test932.java | 105 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_RETRANSFORM); 115 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES_A, DEX_BYTES_A); 119 Redefinition.addCommonTransformationResult("art/Test932$Transform", CLASS_BYTES_B, DEX_BYTES_B); 120 Redefinition.enableCommonRetransformation(true); 121 Redefinition.doCommonClassRetransformation(Transform.class); 125 Redefinition.enableCommonRetransformation(false); 126 Redefinition.doCommonClassRetransformation(Transform.class);
|
/art/test/937-hello-retransform-package/src/ |
Main.java | 20 import art.Redefinition; 63 Redefinition.addCommonTransformationResult("testing/Transform", CLASS_BYTES, DEX_BYTES); 64 Redefinition.enableCommonRetransformation(true); 65 Redefinition.doCommonClassRetransformation(Transform.class);
|
/art/test/930-hello-retransform/src/art/ |
Test930.java | 67 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_RETRANSFORM); 73 Redefinition.addCommonTransformationResult("art/Test930$Transform", CLASS_BYTES, DEX_BYTES); 74 Redefinition.enableCommonRetransformation(true); 75 Redefinition.doCommonClassRetransformation(Transform.class);
|
/art/test/902-hello-transformation/src/art/ |
Test902.java | 73 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 79 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/921-hello-failure/src/ |
Main.java | 17 import art.Redefinition; 42 private static Redefinition.CommonClassDefinition mapCCD(CommonClassDefinition d) { 43 return new Redefinition.CommonClassDefinition(d.target, d.class_file_bytes, d.dex_file_bytes); 46 private static Redefinition.CommonClassDefinition[] toCCDA(CommonClassDefinition[] ds) { 47 return Arrays.stream(ds).map(Main::mapCCD).toArray(Redefinition.CommonClassDefinition[]::new); 53 Redefinition.doCommonClassRedefinition(target, classfile, dexfile); 56 Redefinition.doMultiClassRedefinition(toCCDA(defs)); 59 Redefinition.addMultiTransformationResults(toCCDA(defs)); 64 Redefinition.doCommonMultiClassRedefinition(targets, classfiles, dexfiles); 67 Redefinition.doCommonClassRetransformation(target) [all...] |
/art/test/935-non-retransformable/src/ |
Main.java | 20 import art.Redefinition; 79 Redefinition.setPopRetransformations(false); 80 Redefinition.addCommonTransformationResult("Transform", CLASS_BYTES, DEX_BYTES); 81 Redefinition.enableCommonRetransformation(true); 93 Redefinition.popTransformationFor("Transform"); 95 Redefinition.addCommonTransformationResult("Transform", new byte[0], new byte[0]); 96 Redefinition.doCommonClassRetransformation(new_loader.loadClass("Transform"));
|
/art/test/1910-transform-with-default/src/art/ |
Test1910.java | 75 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 81 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/914-hello-obsolescence/src/art/ |
Test914.java | 74 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 82 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/981-dedup-original-dex/src-art/art/ |
Test981.java | 141 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_RETRANSFORM); 181 Redefinition.addCommonTransformationResult("art/Test981$Transform", new byte[0], DEX_BYTES_1); 182 Redefinition.addCommonTransformationResult("art/Test981$Transform2", new byte[0], DEX_BYTES_2); 183 Redefinition.enableCommonRetransformation(true); 184 Redefinition.doCommonClassRetransformation(Transform.class, Transform2.class); 192 Redefinition.enableCommonRetransformation(false); 193 Redefinition.doCommonClassRedefinition(Transform.class, new byte[0], DEX_BYTES_1); 198 Redefinition.enableCommonRetransformation(true); 203 // Check that we end up with a java.lang.Long pointer if we do an 'on-load' redefinition [all...] |
/art/test/915-obsolete-2/src/art/ |
Test915.java | 111 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 119 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/917-fields-transformation/src/art/ |
Test917.java | 80 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 93 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/940-recursive-obsolete/src/art/ |
Test940.java | 94 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 102 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/942-private-recursive/src/art/ |
Test942.java | 103 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 111 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/945-obsolete-native/src/art/ |
Test945.java | 84 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 92 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/926-multi-obsolescence/src/art/ |
Test926.java | 19 import static art.Redefinition.CommonClassDefinition; 126 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 135 Redefinition.doMultiClassRedefinition(VALID_DEFINITION_T1, VALID_DEFINITION_T2);
|
/art/test/985-re-obsolete/src/art/ |
Test985.java | 180 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 188 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES_1, DEX_BYTES_1); 193 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES_2, DEX_BYTES_2);
|
/art/test/919-obsolete-fields/src/art/ |
Test919.java | 152 Redefinition.setTestConfiguration(Redefinition.Config.COMMON_REDEFINE); 160 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/934-load-transform/src/ |
Main.java | 17 import static art.Redefinition.addCommonTransformationResult; 18 import static art.Redefinition.enableCommonRetransformation; 19 import static art.Redefinition.setPopRetransformations;
|
/art/test/939-hello-transformation-bcp/src/ |
Main.java | 17 import static art.Redefinition.doCommonClassRedefinition;
|
/art/test/947-reflect-method/src/art/ |
Test947.java | 76 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/916-obsolete-jit/src/ |
Main.java | 18 import art.Redefinition; 138 // Makes sure the stack is the way we want it for the test and does the redefinition. It will 146 // Actually do the redefinition. The stack looks good. 149 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES);
|
/art/test/948-change-annotations/src/ |
Main.java | 17 import art.Redefinition; 91 Redefinition.doCommonClassRedefinition(target, class_file, dex_file);
|