)]}'
{
  "commit": "5bd3d2d11dd58f296522d5bb134c260defaf622e",
  "tree": "f4e8bc41771303eae5eb11b88b2cf1c3938e0a87",
  "parents": [
    "133e9fcc795f5ae65b884948ca3376c4fec358c0"
  ],
  "author": {
    "name": "Francois Gaffie",
    "email": "francois.gaffie@renault.com",
    "time": "Wed May 06 18:37:04 2020 +0200"
  },
  "committer": {
    "name": "Eric Laurent",
    "email": "elaurent@google.com",
    "time": "Thu Jan 14 09:23:24 2021 +0000"
  },
  "message": "AudioPolicy: remove devices while Sw bridge established\n\nWhen devices are disconnected while involved in a SwBridge,\nthe connectAudioSource function may be called while the cache\nof the engine has not yet been updated with availability of devices.\n\nThis CL forces to retrieve sinkDevices from engine without using\nthe cache.\n\nIt also ensures that Audio Source using Direct Output are also\nre routed while sink device has been made UNAVAILABLE then AVAILABLE\nagain. In this case, no SwOutput will keep track of the AudioSource.\nOrphans Audio Source shall be handled independantly.\n\nSo far, robustness cases added to the following test.\nIn some case, fallback on speaker is allowed, in other,\ndevice none is selected while given sink has been made unavailable:\n\nTest: So far: adb shell /data/nativetest64/AudioPolicyEmulatorTests/AudioPolicyEmulatorTests --gtest_filter\u003dAudioPatchTest/AudioModeBridgingTest.\nadb shell /data/nativetest64/AudioPolicyEmulatorTests/AudioPolicyEmulatorTests --gtest_filter\u003dAudioSourceTest/AudioSourceBridgingTest.UsingAudioSourceAPI/\n\nSigned-off-by: Francois Gaffie \u003cfrancois.gaffie@renault.com\u003e\nChange-Id: I2663d10f08de3191de4d95bc81749ede9b8a360f\nMerged-In: I2663d10f08de3191de4d95bc81749ede9b8a360f\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "beaa979b02126be0d97bdf1b63b5d72abbc1de9d",
      "old_mode": 33188,
      "old_path": "services/audiopolicy/managerdefault/AudioPolicyManager.cpp",
      "new_id": "d1825b93b5d4198a300badbb82d7db0be75e5293",
      "new_mode": 33188,
      "new_path": "services/audiopolicy/managerdefault/AudioPolicyManager.cpp"
    },
    {
      "type": "modify",
      "old_id": "2a024c9109ce5bf10013da25277d51e8b547e23c",
      "old_mode": 33188,
      "old_path": "services/audiopolicy/managerdefault/AudioPolicyManager.h",
      "new_id": "70eb4458dc417fa6a6aa6aa2a9728d572f72a33d",
      "new_mode": 33188,
      "new_path": "services/audiopolicy/managerdefault/AudioPolicyManager.h"
    }
  ]
}
