Searched refs:leScanCallbacks (Results 1 – 2 of 2) sorted by relevance
31 private Set<LeScanCallback> leScanCallbacks = new HashSet<LeScanCallback>(); field in ShadowBluetoothAdapter82 leScanCallbacks.add(callback); in startLeScan()88 leScanCallbacks.remove(callback); in stopLeScan()92 return Collections.unmodifiableSet(leScanCallbacks); in getLeScanCallbacks()96 if (leScanCallbacks.size() != 1) { in getSingleLeScanCallback()97 throw new IllegalStateException("There are " + leScanCallbacks.size() + " callbacks"); in getSingleLeScanCallback()99 return leScanCallbacks.iterator().next(); in getSingleLeScanCallback()
92 private Set<LeScanCallback> leScanCallbacks = new HashSet<LeScanCallback>(); field in ShadowBluetoothAdapter268 leScanCallbacks.add(callback); in startLeScan()274 leScanCallbacks.remove(callback); in stopLeScan()278 return Collections.unmodifiableSet(leScanCallbacks); in getLeScanCallbacks()282 if (leScanCallbacks.size() != 1) { in getSingleLeScanCallback()283 throw new IllegalStateException("There are " + leScanCallbacks.size() + " callbacks"); in getSingleLeScanCallback()285 return leScanCallbacks.iterator().next(); in getSingleLeScanCallback()