/art/tools/dexfuzz/src/dexfuzz/program/ |
MutationSerializer.java | 31 public static String getMutationString(Mutation mutation) { 33 builder.append(mutation.mutatorClass.getCanonicalName()).append(" "); 34 builder.append(mutation.mutatableCodeIdx).append(" "); 35 builder.append(mutation.getString()); 39 public static void writeMutation(BufferedWriter writer, Mutation mutation) throws IOException { 41 writer.write(mutation.mutatorClass.getCanonicalName() + " " 42 + mutation.mutatableCodeIdx + " "); 44 // Use the mutation's own function to write out the rest of the fields 69 Mutation mutation = null; local [all...] |
Program.java | 74 * The RNG used during mutation. 122 * Tracks mutation stats. 129 private List<Mutation> mutations; 146 public Program(RawDexFile rawDexFile, List<Mutation> previousMutations, 168 mutations = new ArrayList<Mutation>(); 373 // so to make the highest mutation value the rarest, 406 Log.info("Bailing out on mutation for this method, tried too many times..."); 425 * Afterwards, call updateRawDexFile() to apply the results of mutation to the 484 for (Mutation mutation : mutations) 498 Mutation mutation = MutationSerializer.readMutation(reader); local [all...] |
/art/tools/dexfuzz/src/dexfuzz/program/mutators/ |
TryBlockShifter.java | 24 import dexfuzz.program.Mutation; 32 * mutation that this CodeMutator can perform, to allow separate 35 public static class AssociatedMutation extends Mutation { 68 // so it can create a CodeMutator and get the correct associated Mutation, as it 71 public Mutation getNewMutation() { 77 public TryBlockShifter(Random rng, MutationStats stats, List<Mutation> mutations) { 96 protected Mutation generateMutation(MutatableCode mutatableCode) { 165 AssociatedMutation mutation = new AssociatedMutation(); local 166 mutation.setup(this.getClass(), mutatableCode); 167 mutation.tryIdx = tryIdx 179 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
NewMethodCaller.java | 23 import dexfuzz.program.Mutation; 34 * mutation that this CodeMutator can perform, to allow separate 37 public static class AssociatedMutation extends Mutation { 90 // so it can create a CodeMutator and get the correct associated Mutation, as it 93 public Mutation getNewMutation() { 99 public NewMethodCaller(Random rng, MutationStats stats, List<Mutation> mutations) { 105 protected Mutation generateMutation(MutatableCode mutatableCode) { 122 AssociatedMutation mutation = new AssociatedMutation(); local 123 mutation.setup(this.getClass(), mutatableCode); 124 mutation.insertionIdx = insertionIdx 140 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
RandomInstructionGenerator.java | 24 import dexfuzz.program.Mutation; 40 * mutation that this CodeMutator can perform, to allow separate 43 public static class AssociatedMutation extends Mutation { 94 // so it can create a CodeMutator and get the correct associated Mutation, as it 97 public Mutation getNewMutation() { 103 public RandomInstructionGenerator(Random rng, MutationStats stats, List<Mutation> mutations) { 109 protected Mutation generateMutation(MutatableCode mutatableCode) { 150 AssociatedMutation mutation = new AssociatedMutation(); local 151 mutation.setup(this.getClass(), mutatableCode); 152 mutation.insertionIdx = insertionIdx 205 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
InstructionSwapper.java | 23 import dexfuzz.program.Mutation; 31 * mutation that this CodeMutator can perform, to allow separate 34 public static class AssociatedMutation extends Mutation { 54 // so it can create a CodeMutator and get the correct associated Mutation, as it 57 public Mutation getNewMutation() { 63 public InstructionSwapper(Random rng, MutationStats stats, List<Mutation> mutations) { 79 protected Mutation generateMutation(MutatableCode mutatableCode) { 135 AssociatedMutation mutation = new AssociatedMutation(); local 136 mutation.setup(this.getClass(), mutatableCode); 137 mutation.swapInsnIdx = swapInsnIdx 145 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
InstructionDeleter.java | 24 import dexfuzz.program.Mutation; 32 * mutation that this CodeMutator can perform, to allow separate 35 public static class AssociatedMutation extends Mutation { 50 // so it can create a CodeMutator and get the correct associated Mutation, as it 53 public Mutation getNewMutation() { 59 public InstructionDeleter(Random rng, MutationStats stats, List<Mutation> mutations) { 76 protected Mutation generateMutation(MutatableCode mutatableCode) { 80 AssociatedMutation mutation = new AssociatedMutation(); local 81 mutation.setup(this.getClass(), mutatableCode); 82 mutation.insnToDeleteIdx = insnIdx 89 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
InstructionDuplicator.java | 23 import dexfuzz.program.Mutation; 32 * mutation that this CodeMutator can perform, to allow separate 35 public static class AssociatedMutation extends Mutation { 50 // so it can create a CodeMutator and get the correct associated Mutation, as it 53 public Mutation getNewMutation() { 59 public InstructionDuplicator(Random rng, MutationStats stats, List<Mutation> mutations) { 65 protected Mutation generateMutation(MutatableCode mutatableCode) { 82 AssociatedMutation mutation = new AssociatedMutation(); local 83 mutation.setup(this.getClass(), mutatableCode); 84 mutation.insnToDuplicateIdx = insnIdx 91 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
ConstantValueChanger.java | 23 import dexfuzz.program.Mutation; 33 * mutation that this CodeMutator can perform, to allow separate 36 public static class AssociatedMutation extends Mutation { 56 // so it can create a CodeMutator and get the correct associated Mutation, as it 59 public Mutation getNewMutation() { 65 public ConstantValueChanger(Random rng, MutationStats stats, List<Mutation> mutations) { 101 protected Mutation generateMutation(MutatableCode mutatableCode) { 119 AssociatedMutation mutation = new AssociatedMutation(); local 120 mutation.setup(this.getClass(), mutatableCode); 121 mutation.constInsnIdx = constInsnIdx 129 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
VRegChanger.java | 23 import dexfuzz.program.Mutation; 33 * mutation that this CodeMutator can perform, to allow separate 36 public static class AssociatedMutation extends Mutation { 59 // so it can create a CodeMutator and get the correct associated Mutation, as it 62 public Mutation getNewMutation() { 68 public VRegChanger(Random rng, MutationStats stats, List<Mutation> mutations) { 108 protected Mutation generateMutation(MutatableCode mutatableCode) { 144 AssociatedMutation mutation = new AssociatedMutation(); local 145 mutation.setup(this.getClass(), mutatableCode); 146 mutation.vregInsnIdx = vregInsnIdx 155 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
NonsenseStringPrinter.java | 23 import dexfuzz.program.Mutation; 33 * mutation that this CodeMutator can perform, to allow separate 36 public static class AssociatedMutation extends Mutation { 56 // so it can create a CodeMutator and get the correct associated Mutation, as it 59 public Mutation getNewMutation() { 65 public NonsenseStringPrinter(Random rng, MutationStats stats, List<Mutation> mutations) { 71 protected Mutation generateMutation(MutatableCode mutatableCode) { 88 AssociatedMutation mutation = new AssociatedMutation(); local 89 mutation.setup(this.getClass(), mutatableCode); 90 mutation.insertionIdx = insertionIdx 98 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
SwitchBranchShifter.java | 24 import dexfuzz.program.Mutation; 33 * mutation that this CodeMutator can perform, to allow separate 36 public static class AssociatedMutation extends Mutation { 59 // so it can create a CodeMutator and get the correct associated Mutation, as it 62 public Mutation getNewMutation() { 68 public SwitchBranchShifter(Random rng, MutationStats stats, List<Mutation> mutations) { 105 protected Mutation generateMutation(MutatableCode mutatableCode) { 141 AssociatedMutation mutation = new AssociatedMutation(); local 142 mutation.setup(this.getClass(), mutatableCode); 143 mutation.switchInsnIdx = switchInsnIdx 152 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
BranchShifter.java | 24 import dexfuzz.program.Mutation; 33 * mutation that this CodeMutator can perform, to allow separate 36 public static class AssociatedMutation extends Mutation { 56 // so it can create a CodeMutator and get the correct associated Mutation, as it 59 public Mutation getNewMutation() { 65 public BranchShifter(Random rng, MutationStats stats, List<Mutation> mutations) { 107 protected Mutation generateMutation(MutatableCode mutatableCode) { 140 AssociatedMutation mutation = new AssociatedMutation(); local 141 mutation.setup(this.getClass(), mutatableCode); 142 mutation.branchInsnIdx = branchInsnIdx 150 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
CodeMutator.java | 23 import dexfuzz.program.Mutation; 45 protected List<Mutation> mutations; 66 public CodeMutator(Random rng, MutationStats stats, List<Mutation> mutations) { 75 Log.info("Set mutation likelihood to " + likelihood 84 * is expected to implement to perform its mutation. 86 * @return If mutation took place. 93 Log.info("Skipping mutation."); 97 public void forceMutate(Mutation mutation) { 98 Log.info("Forcing mutation.") 117 Mutation mutation = generateMutation(mutatableCode); local [all...] |
CmpBiasChanger.java | 23 import dexfuzz.program.Mutation; 34 * mutation that this CodeMutator can perform, to allow separate 37 public static class AssociatedMutation extends Mutation { 52 // so it can create a CodeMutator and get the correct associated Mutation, as it 55 public Mutation getNewMutation() { 61 public CmpBiasChanger(Random rng, MutationStats stats, List<Mutation> mutations) { 98 protected Mutation generateMutation(MutatableCode mutatableCode) { 103 AssociatedMutation mutation = new AssociatedMutation(); local 104 mutation.setup(this.getClass(), mutatableCode); 105 mutation.cmpBiasInsnIdx = cmpBiasInsnIdx 112 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
PoolIndexChanger.java | 23 import dexfuzz.program.Mutation; 34 * mutation that this CodeMutator can perform, to allow separate 37 public static class AssociatedMutation extends Mutation { 57 // so it can create a CodeMutator and get the correct associated Mutation, as it 60 public Mutation getNewMutation() { 66 public PoolIndexChanger(Random rng, MutationStats stats, List<Mutation> mutations) { 127 protected Mutation generateMutation(MutatableCode mutatableCode) { 166 AssociatedMutation mutation = new AssociatedMutation(); local 167 mutation.setup(this.getClass(), mutatableCode); 168 mutation.poolIndexInsnIdx = poolIndexInsnIdx 176 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
FieldFlagChanger.java | 23 import dexfuzz.program.Mutation; 36 * mutation that this CodeMutator can perform, to allow separate 39 public static class AssociatedMutation extends Mutation { 59 // so it can create a CodeMutator and get the correct associated Mutation, as it 62 public Mutation getNewMutation() { 68 public FieldFlagChanger(Random rng, MutationStats stats, List<Mutation> mutations) { 105 protected Mutation generateMutation(MutatableCode mutatableCode) { 121 AssociatedMutation mutation = new AssociatedMutation(); local 122 mutation.setup(this.getClass(), mutatableCode); 123 mutation.fieldInsnIdx = fieldInsnIdx 131 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
ConversionRepeater.java | 23 import dexfuzz.program.Mutation; 34 * mutation that this CodeMutator can perform, to allow separate 37 public static class AssociatedMutation extends Mutation { 52 // so it can create a CodeMutator and get the correct associated Mutation, as it 55 public Mutation getNewMutation() { 61 public ConversionRepeater(Random rng, MutationStats stats, List<Mutation> mutations) { 98 protected Mutation generateMutation(MutatableCode mutatableCode) { 101 AssociatedMutation mutation = new AssociatedMutation(); local 102 mutation.setup(this.getClass(), mutatableCode); 103 mutation.conversionInsnIdx = conversionInsnIdx 110 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
ValuePrinter.java | 23 import dexfuzz.program.Mutation; 33 * mutation that this CodeMutator can perform, to allow separate 36 public static class AssociatedMutation extends Mutation { 51 // so it can create a CodeMutator and get the correct associated Mutation, as it 54 public Mutation getNewMutation() { 60 public ValuePrinter(Random rng, MutationStats stats, List<Mutation> mutations) { 78 protected Mutation generateMutation(MutatableCode mutatableCode) { 99 AssociatedMutation mutation = new AssociatedMutation(); local 100 mutation.setup(this.getClass(), mutatableCode); 101 mutation.printedOutputIdx = printedOutputIdx 108 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
ArithOpChanger.java | 23 import dexfuzz.program.Mutation; 35 * mutation that this CodeMutator can perform, to allow separate 38 public static class AssociatedMutation extends Mutation { 58 // so it can create a CodeMutator and get the correct associated Mutation, as it 61 public Mutation getNewMutation() { 67 public ArithOpChanger(Random rng, MutationStats stats, List<Mutation> mutations) { 104 protected Mutation generateMutation(MutatableCode mutatableCode) { 119 AssociatedMutation mutation = new AssociatedMutation(); local 120 mutation.setup(this.getClass(), mutatableCode); 121 mutation.arithmeticInsnIdx = arithmeticInsnIdx 129 AssociatedMutation mutation = (AssociatedMutation) uncastMutation; local [all...] |
/art/tools/dexfuzz/src/dexfuzz/listeners/ |
ConsoleLoggerListener.java | 21 import dexfuzz.program.Mutation; 55 public void handleMutations(List<Mutation> mutations) { 56 for (Mutation mutation : mutations) { 57 logToConsole("Applied mutation: " + mutation.toString());
|
LogFileListener.java | 22 import dexfuzz.program.Mutation; 191 write("Mutation Stats: " + statsString); 201 write("Mutation process: FAILED"); 211 write(" Failed mutation: " + failedMutation); 271 public void handleMutations(List<Mutation> mutations) { 273 for (Mutation mutation : mutations) { 274 write(MutationSerializer.getMutationString(mutation));
|
/prebuilts/go/darwin-x86/src/net/ |
dnsmsg_test.go | 412 // (perhaps it was truncated, or it's malicious) The mutation is the
|
/prebuilts/go/linux-x86/src/net/ |
dnsmsg_test.go | 412 // (perhaps it was truncated, or it's malicious) The mutation is the
|
/external/flatbuffers/tests/ |
JavaScriptTest.js | 67 // Tests mutation first. This will verify that we did not trample any other
|