)]}'
{
  "commit": "b7637e9da12562aeee6b16cee1235cdc450c292a",
  "tree": "23b5e580d587a5dcd19434c77c2009e9aff4c6f3",
  "parents": [
    "6d604a5c5b46d42509bbacc205d2994631a16752"
  ],
  "author": {
    "name": "Michael Chan",
    "email": "michael.chan@dolby.com",
    "time": "Tue Dec 08 15:44:49 2020 +1100"
  },
  "committer": {
    "name": "Mikhail Naganov",
    "email": "mnaganov@google.com",
    "time": "Fri Jan 29 17:02:16 2021 +0000"
  },
  "message": "APM: Create multiple MSD patches\n\nThis change modifies setMsdPatch() by first renaming to setMsdPatches()\nand replaces its parameter with a pointer to DeviceVector, so that\nmultiple devices can be patched from MSD. If none are specified it will\nestablish MSD patches with all reported downstream output devices. It\ntears down existing MSD patches and creates new ones for those MSD\npatches that do not support new patch requests. We retain the existing\nMSD patches that already support new patch requests.\n\nIn getBestMsdAudioProfileFor(), ensure output profiles considered for\nevaluating the best matching audio profile is supported by the output\ndevice under consideration.\n\nRefactor by placing common code that tears down current MSD patches into\na new function called releaseMsdPatches().\n\nWhen obtaining an output, getOutputForAttrInt() returns device ID of the\ndefault device if its ID matches that of one of the output devices\nprovided by the engine.\n\nAdd testing for dual MSD patch creation by parameterizing existing MSD\ntests for single and dual MSD patch cases. Add new unit test to exercise\nsetMsdPatches and releaseMsdPatches. Make private MSD module member\nfunctions protected to enable testing.\n\nBug: 135620198\nTest: audiopolicy_tests\nChange-Id: I59a8976ce82dba04ca69347afc192e9143ef3629\nMerged-In: I59a8976ce82dba04ca69347afc192e9143ef3629\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7179355a6652a6c1dd176dbe09c2a39c92379070",
      "old_mode": 33188,
      "old_path": "services/audiopolicy/managerdefault/AudioPolicyManager.cpp",
      "new_id": "e1d806daada039a2792c4f005a5cc439c4325985",
      "new_mode": 33188,
      "new_path": "services/audiopolicy/managerdefault/AudioPolicyManager.cpp"
    },
    {
      "type": "modify",
      "old_id": "33639cd5c02711d6c5f11be81bfa1a4c2f5d40c9",
      "old_mode": 33188,
      "old_path": "services/audiopolicy/managerdefault/AudioPolicyManager.h",
      "new_id": "c1c483c79ddd55eb6fdf4a521dca8f0a72f39470",
      "new_mode": 33188,
      "new_path": "services/audiopolicy/managerdefault/AudioPolicyManager.h"
    },
    {
      "type": "modify",
      "old_id": "8bab020cab869fca35fb0988f260f8ee419d2217",
      "old_mode": 33188,
      "old_path": "services/audiopolicy/tests/AudioPolicyTestManager.h",
      "new_id": "c096427c9d0d80fd2a9990e8ce79bd4d7f94ae35",
      "new_mode": 33188,
      "new_path": "services/audiopolicy/tests/AudioPolicyTestManager.h"
    },
    {
      "type": "modify",
      "old_id": "d379239073b6b792eb5d78d5530dd40c5c603ec2",
      "old_mode": 33188,
      "old_path": "services/audiopolicy/tests/audiopolicymanager_tests.cpp",
      "new_id": "f391606f67abaf6bc67267973500a4c8a942826f",
      "new_mode": 33188,
      "new_path": "services/audiopolicy/tests/audiopolicymanager_tests.cpp"
    }
  ]
}
