commit | 65b47f5f999c40c95010b235969503e4e2989566 | [log] [tgz] |
---|---|---|
author | Myles Watson <mylesgw@google.com> | Thu Jan 26 12:59:06 2023 -0800 |
committer | Myles Watson <mylesgw@google.com> | Tue Jan 31 14:42:57 2023 -0800 |
tree | d2562132e6d730aeacb7482fce188db9b905f60c | |
parent | 506089a8e9d3dcef61e3e96190cc438b13be8fe2 [diff] |
BluetoothHAL: Reset the chip on open(), close once Sending a reset and discarding extra packets helps ensure that tests are hermetic for devices that do not power off the chip with rfkill. Add a mutex to make sure that close only gets called once. Bug: 266221125 Test: atest VtsHalBluetoothTargetTest Change-Id: Ifb259a675202aa5399a8c7570ba8c4df2083e10e