)]}'
{
  "commit": "d0b1aed2dd4067dcdba7c449ff0b08da2109af09",
  "tree": "325d366655005b068679d8b90a7ce7882c209f8f",
  "parents": [
    "af72f6cf8762bbebe472b8562df116efe4327a9c"
  ],
  "author": {
    "name": "Jiakai Zhang",
    "email": "jiakaiz@google.com",
    "time": "Wed Jun 29 16:27:27 2022 +0100"
  },
  "committer": {
    "name": "TreeHugger Robot",
    "email": "treehugger-gerrit@google.com",
    "time": "Fri Jul 01 21:38:25 2022 +0000"
  },
  "message": "Fix the legacy version of `GetDexOptNeeded`.\n\n- when `profile_changed` is true but the target compiler filter is worse\n  than the current:\n  - Before: returns kDex2OatForFilter\n  - After: returns kNoDexOptNeeded\n- when `downgrade` is true but there is no usable odex/vdex files:\n  - Before: returns kDex2OatFromScratch\n  - After: return kNoDexOptNeeded\n- when `profile_changed` and `downgrade` are both true:\n  - Before: kDex2OatForFilter\n  - After: the same as `profile_changed` is false and `downgrade` is\n    true.\n- when the usable vdex file is in the DM file:\n  - Before: returns kDex2OatForFilter with an arbitrary sign\n  - After: returns kDex2OatFromScratch\n\nBug: 229268202\nTest: m test-art-host-gtest-art_dex2oat_tests\nIgnore-AOSP-First: Will cherry-pick later.\n\nChange-Id: I752d860adb8c026c762e8878ac060211df22670d\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3d6d832047e4a1323603f92e839793d356d01967",
      "old_mode": 33188,
      "old_path": "runtime/oat_file_assistant.cc",
      "new_id": "4943bf39e82cde158db4fe2d2872fe2c3abc0bd2",
      "new_mode": 33188,
      "new_path": "runtime/oat_file_assistant.cc"
    },
    {
      "type": "modify",
      "old_id": "f82e0b187994c0194a9bc091be4afb6ffe9df904",
      "old_mode": 33188,
      "old_path": "runtime/oat_file_assistant_test.cc",
      "new_id": "d00e588efd40240d39784b7309acb9dc67ae3b29",
      "new_mode": 33188,
      "new_path": "runtime/oat_file_assistant_test.cc"
    }
  ]
}
