)]}'
{
  "commit": "adb9fc91665d3fe294e7ad4f3c883c8db38bd0c1",
  "tree": "19e198a93e89efc4ebba26475c8c047afc65228d",
  "parents": [
    "463c17e17398adb1f32eea6dfadcc6e8dec7bcf6"
  ],
  "author": {
    "name": "Siarhei Vishniakou",
    "email": "svv@google.com",
    "time": "Fri May 26 10:46:09 2023 -0700"
  },
  "committer": {
    "name": "Siarhei Vishniakou",
    "email": "svv@google.com",
    "time": "Tue Jun 06 08:28:37 2023 -0700"
  },
  "message": "Add tests for pointer stuck in TouchState\n\nAdd two tests that reproduce the conditions necessary for the pointer to\nbe stuck inside TouchState.\n\nIn both cases, this is caused by calling\nsynthesizeCancelationEventsForConnectionLocked without also changing the\nTouchState. That makes TouchState and InputState out of sync.\n\nCurrently, this setup does not cause a crash, but rather, just drops\nsome of the touches unexpectedly.\n\nThese tests are added as documentation of the current behaviour. When\nthe situation is fixed in the future, the tests would need to be\nupdated. If we wanted the tests to fail, we could crash the dispatcher\nwhenever InputState detects an inconsistent stream. A similar solution\nwill be done eventually by enabling the InputVerifier for all outgoing\nstreams.\n\nBug: 281806933\nTest: m inputflinger_tests \u0026\u0026 adb sync data \u0026\u0026 adb shell -t data/nativetest64/inputflinger_tests/inputflinger_tests\nChange-Id: Iaa949f2aa8dd2a7db9e8fd8bb365430e805cda79\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b625a1b95b38aff57cd04a5c1a8c1d06e8d91a65",
      "old_mode": 33188,
      "old_path": "services/inputflinger/dispatcher/Entry.cpp",
      "new_id": "a670ebe04e48d68e44b6af86f9cdad2240e5140c",
      "new_mode": 33188,
      "new_path": "services/inputflinger/dispatcher/Entry.cpp"
    },
    {
      "type": "modify",
      "old_id": "6eb63bab17bf8e0fd416ec7cd9e24ceb122ab785",
      "old_mode": 33188,
      "old_path": "services/inputflinger/tests/InputDispatcher_test.cpp",
      "new_id": "905331cc951a94f724934afdb2f4ae84c2ba11c1",
      "new_mode": 33188,
      "new_path": "services/inputflinger/tests/InputDispatcher_test.cpp"
    }
  ]
}
