Home
last modified time | relevance | path

Searched refs:leScanCallbacks (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBluetoothAdapter.java31 private Set<LeScanCallback> leScanCallbacks = new HashSet<LeScanCallback>(); field in ShadowBluetoothAdapter
82 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()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBluetoothAdapter.java92 private Set<LeScanCallback> leScanCallbacks = new HashSet<LeScanCallback>(); field in ShadowBluetoothAdapter
268 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()