@Test public void testOnBatchScanResults() throws Exception { List<ScanResult> scanResults = new ArrayList<>(); scanResults.add(mMockScanResult1); scanResults.add(mMockScanResult2); scanResults.add(null); mBleScanner.onBatchScanResults(scanResults); verify(mMockListener, times(1)).onBatchScanResults(scanResults); }
@Override public void onBatchScanResults(List<ScanResult> scanResults) { if (mListener != null) { mListener.onBatchScanResults(scanResults); } else { Log.wtf(TAG, "No listener"); } }
BleScanner extends ScanCallback { @Override public void onBatchScanResults(List<ScanResult> scanResults) { if (mListener != null) { mListener.onBatchScanResults(scanResults); } else { Log.wtf(TAG, "No listener"); } } }
BleScanner extends ScanCallback { @Override public void onBatchScanResults(List<ScanResult> scanResults) { if (mListener != null) { mListener.onBatchScanResults(scanResults); } else { Log.wtf(TAG, "No listener"); } } BleScanner(Listener listener, BluetoothAdapter bluetoothAdapter);  BleScanner(Listener listener, BluetoothAdapter bluetoothAdapter,
                      ScanSettings.Builder builder, DiscoveryManagerSettings settings); }
BleScanner extends ScanCallback { @Override public void onBatchScanResults(List<ScanResult> scanResults) { if (mListener != null) { mListener.onBatchScanResults(scanResults); } else { Log.wtf(TAG, "No listener"); } } BleScanner(Listener listener, BluetoothAdapter bluetoothAdapter);  BleScanner(Listener listener, BluetoothAdapter bluetoothAdapter,
                      ScanSettings.Builder builder, DiscoveryManagerSettings settings); boolean isStarted(); synchronized boolean start(); synchronized void stop(boolean notifyStateChanged); void clearScanFilters(); void addScanFilter(ScanFilter scanFilter); void setScanSettings(ScanSettings scanSettings); @TargetApi(23) void applyAdditionalMarshmallowSettings(ScanSettings.Builder scanSettingsBuilder); @Override void onBatchScanResults(List<ScanResult> scanResults); @Override void onScanFailed(int errorCode); @Override void onScanResult(int callbackType, ScanResult scanResult); }
BleScanner extends ScanCallback { @Override public void onBatchScanResults(List<ScanResult> scanResults) { if (mListener != null) { mListener.onBatchScanResults(scanResults); } else { Log.wtf(TAG, "No listener"); } } BleScanner(Listener listener, BluetoothAdapter bluetoothAdapter);  BleScanner(Listener listener, BluetoothAdapter bluetoothAdapter,
                      ScanSettings.Builder builder, DiscoveryManagerSettings settings); boolean isStarted(); synchronized boolean start(); synchronized void stop(boolean notifyStateChanged); void clearScanFilters(); void addScanFilter(ScanFilter scanFilter); void setScanSettings(ScanSettings scanSettings); @TargetApi(23) void applyAdditionalMarshmallowSettings(ScanSettings.Builder scanSettingsBuilder); @Override void onBatchScanResults(List<ScanResult> scanResults); @Override void onScanFailed(int errorCode); @Override void onScanResult(int callbackType, ScanResult scanResult);  }