)]}'
{
  "commit": "8dfe4648925922aeff80bcdb3ebee6b89e434e1e",
  "tree": "bdecd6a5fbd3caeec784704636e5f7709351c6c5",
  "parents": [
    "6d5a5c10a5b9389cd84b5a10d5814e65eeb004aa"
  ],
  "author": {
    "name": "Yin-Chia Yeh",
    "email": "yinchiayeh@google.com",
    "time": "Mon Jun 01 11:57:45 2020 -0700"
  },
  "committer": {
    "name": "Yin-Chia Yeh",
    "email": "yinchiayeh@google.com",
    "time": "Tue Jun 09 13:57:53 2020 -0700"
  },
  "message": "Camera: update eviction logic for same owner case\n\nUpdate the eviction logic when the same owner is trying\nto open a new camera. The new expected behavior:\n   1. If the same camera is opened twice, the second\n      open will succeed and the first one would be\n      evicted.\n   2. If the owner is trying to open a camera that is\n      conflicting with any camera that\u0027s opened by\n      the same owner, the open call will fail.\n\nBefore this change, the behavior of #2 above\ncould vary (either old or new camera being evicted) on\ndifferent devices depending on how conflicting device\nis listed by camera HAL, which is not exposed to\napplication developers.\n\nAlso added new unit test to verify the eviction logic.\n\nBug: 153699385\nTest: B1 camera CTS test\nChange-Id: Id935e30f441d172ba774fc99a2714ade974668a8\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bac943047295fcdee9ac17db10102aefd9640db3",
      "old_mode": 33188,
      "old_path": "services/camera/libcameraservice/CameraService.cpp",
      "new_id": "2dbe2e559059cea2a4e69d86182078ee37a849ec",
      "new_mode": 33188,
      "new_path": "services/camera/libcameraservice/CameraService.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6a384278b880da1961146477a15bba32e8e8c884",
      "new_mode": 33188,
      "new_path": "services/camera/libcameraservice/tests/ClientManagerTest.cpp"
    },
    {
      "type": "modify",
      "old_id": "35d25bf88245e53fd368243d462d9f5d008658a6",
      "old_mode": 33188,
      "old_path": "services/camera/libcameraservice/utils/ClientManager.h",
      "new_id": "64be6c5280aef8ef289bb5e43023fa8f164329a3",
      "new_mode": 33188,
      "new_path": "services/camera/libcameraservice/utils/ClientManager.h"
    }
  ]
}
