)]}'
{
  "commit": "37242c82244e56acf73458b83706d6b11e8b1289",
  "tree": "a2f6a9cb9d5759d49d24671670df221846c7bcf2",
  "parents": [
    "1a1094a3b32f221d41a1740277ffaf766c62c15c"
  ],
  "author": {
    "name": "Paul Ramirez",
    "email": "peramirez@google.com",
    "time": "Fri Oct 18 23:16:43 2024 +0000"
  },
  "committer": {
    "name": "Paul Ramirez",
    "email": "peramirez@google.com",
    "time": "Fri Oct 25 01:51:53 2024 +0000"
  },
  "message": "Do not resample when frameTime is not available\n\nLegacyResampler still resamples MotionEvents even when requestedFrameTime is\nstd::nullopt. The problem is that if the parameter requestedFrameTime\nis std::nullopt, it is reassigned inside consumeBatchedInputEvents to\nstd::numeric_limits\u003cnsecs_t\u003e::max(). In spite of using max() as a\nplaceholder to indicate that everything should be consumed, it is still a valid time, and resampler uses it to resample MotionEvent. To fix this issue, having a valid requestedFrameTime should also be a condition to resample MotionEvents.\n\nBug: 374375203\nFlag: EXEMPT refactor\nTest: TEST\u003dlibinput_tests; m $TEST \u0026\u0026 $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST\nChange-Id: I6e53bdd0a35d359da8b50f10dd4aad9bddc8aa3f\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "228347d8181e511f77e5eba52590dd0ad490a9b7",
      "old_mode": 33188,
      "old_path": "include/input/InputConsumerNoResampling.h",
      "new_id": "2e346bb7cd05bc52b1f05d2fab44cfc2678b1a14",
      "new_mode": 33188,
      "new_path": "include/input/InputConsumerNoResampling.h"
    },
    {
      "type": "modify",
      "old_id": "9665de799f33eccede951416122091387558dfe1",
      "old_mode": 33188,
      "old_path": "libs/input/InputConsumerNoResampling.cpp",
      "new_id": "d3653cfc45a33e44a753e58370a09ac8bbb1bb04",
      "new_mode": 33188,
      "new_path": "libs/input/InputConsumerNoResampling.cpp"
    },
    {
      "type": "modify",
      "old_id": "883ca82fe08294fa419d867610501fc607c1898f",
      "old_mode": 33188,
      "old_path": "libs/input/tests/InputConsumerResampling_test.cpp",
      "new_id": "a7feeeb301238a72c9a2e3755e05d32f5779ac86",
      "new_mode": 33188,
      "new_path": "libs/input/tests/InputConsumerResampling_test.cpp"
    },
    {
      "type": "modify",
      "old_id": "6a3bbe5b36656133ef61196088471a90a7aab591",
      "old_mode": 33188,
      "old_path": "libs/input/tests/InputConsumer_test.cpp",
      "new_id": "06e19bb644270c165c2a7c9fbc1cb9624a7069fb",
      "new_mode": 33188,
      "new_path": "libs/input/tests/InputConsumer_test.cpp"
    }
  ]
}
