commit | b67d21d5ca63dac410b11b47eff665f801529382 | [log] [tgz] |
---|---|---|
author | Wei Wang <weiwa@google.com> | Thu Sep 03 11:15:05 2015 -0700 |
committer | The Android Automerger <android-build@google.com> | Thu Sep 10 17:02:23 2015 -0700 |
tree | 99e0d3e45db2e11a801f07b4bff2379d3e47582e | |
parent | 7a79010f735571e91f07a23221bffb711fe68de4 [diff] |
Fix batch scan tests for Bluetooth LE scan. Bug:23776097 Change-Id: I0920a606cdf572f6ad4882e40e1b4191e597e954
diff --git a/tests/tests/bluetooth/src/android/bluetooth/cts/BluetoothLeScanTest.java b/tests/tests/bluetooth/src/android/bluetooth/cts/BluetoothLeScanTest.java index a79df42..cc444a6 100644 --- a/tests/tests/bluetooth/src/android/bluetooth/cts/BluetoothLeScanTest.java +++ b/tests/tests/bluetooth/src/android/bluetooth/cts/BluetoothLeScanTest.java
@@ -249,7 +249,9 @@ @Override public void onBatchScanResults(List<ScanResult> results) { - mBatchScanResults = results; + // In case onBatchScanResults are called due to buffer full, we want to collect all + // scan results. + mBatchScanResults.addAll(results); } // Clear regular and batch scan results.