Home
last modified time | relevance | path

Searched refs:scanCallback (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DNearbyManager.java203 @NonNull ScanCallback scanCallback) { in startScan() argument
205 Objects.requireNonNull(scanCallback, "scanCallback must not be null"); in startScan()
210 WeakReference<ScanListenerTransport> reference = sScanListeners.get(scanCallback); in startScan()
213 transport = new ScanListenerTransport(scanRequest.getScanType(), scanCallback, in startScan()
224 sScanListeners.put(scanCallback, new WeakReference<>(transport)); in startScan()
245 public void stopScan(@NonNull ScanCallback scanCallback) { in stopScan() argument
246 Preconditions.checkArgument(scanCallback != null, in stopScan()
251 scanCallback); in stopScan()
373 ScanListenerTransport(@ScanRequest.ScanType int scanType, ScanCallback scanCallback, in ScanListenerTransport() argument
375 Preconditions.checkArgument(scanCallback != null, in ScanListenerTransport()
[all …]
/packages/modules/Permission/tests/cts/permissionui/UsePermissionApp30WithBluetooth/src/android/permissionui/cts/usepermission/
DAccessBluetoothOnCommand.kt52 var scanCallback: ScanCallback? = null in call() variable
65 scanCallback = in call()
86 scanner.startScan(scanCallback) in call()
111 scanner!!.stopScan(scanCallback) in call()
/packages/modules/Connectivity/nearby/tests/integration/untrusted/src/android/nearby/integration/untrusted/
DNearbyManagerTest.kt67 val scanCallback = object : ScanCallback { in testNearbyManagerStartScan_fromUnTrustedApp_throwsException() constant
76 nearbyManager.startScan(scanRequest, /* executor */ { it.run() }, scanCallback) in testNearbyManagerStartScan_fromUnTrustedApp_throwsException()
84 val scanCallback = object : ScanCallback { in testNearbyManagerStopScan_fromUnTrustedApp_logsError() constant
93 nearbyManager.stopScan(scanCallback) in testNearbyManagerStopScan_fromUnTrustedApp_logsError()
/packages/modules/Permission/tests/cts/permission/AppThatRequestBluetoothPermission30/src/android/permission/cts/appthatrequestpermission/
DAccessBluetoothOnCommand.java55 ScanCallback scanCallback = null; in call() local
65 scanCallback = new ScanCallback() { in call()
86 scanner.startScan(scanCallback); in call()
114 scanner.stopScan(scanCallback); in call()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/
DAnomalyActions.java75 ScanCallback scanCallback = new ScanCallback() { in doUnoptimizedBleScan() local
92 bleScanner.startScan(null, scanSettings, scanCallback); in doUnoptimizedBleScan()
98 bleScanner.stopScan(scanCallback); in doUnoptimizedBleScan()
/packages/modules/Connectivity/nearby/tests/integration/privileged/src/android/nearby/integration/privileged/
DNearbyManagerTest.kt61 val scanCallback = object : ScanCallback { in testNearbyManagerStartScanStopScan_fromPrivilegedApp_succeed() constant
71 nearbyManager.startScan(scanRequest, /* executor */ { it.run() }, scanCallback) in testNearbyManagerStartScanStopScan_fromPrivilegedApp_succeed()
72 nearbyManager.stopScan(scanCallback) in testNearbyManagerStartScanStopScan_fromPrivilegedApp_succeed()
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/
DGattServerConnectWithScanTest.java203 ScanCallback scanCallback = in scanBumbleDevice() local
218 mLeScanner.startScan(List.of(scanFilter), scanSettings, scanCallback); in scanBumbleDevice() local
223 mLeScanner.stopScan(scanCallback); in scanBumbleDevice()
DLeScanningTest.java353 ScanCallback scanCallback = in startScanning() local
388 mLeScanner.startScan(List.of(scanFilter), scanSettings, scanCallback); in startScanning() local
393 mLeScanner.stopScan(scanCallback); in startScanning()
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java132 ScanCallback scanCallback = new ScanCallback() { in testBleScanInterrupted() local
161 bleScanner.startScan(null, scanSettings, scanCallback); in testBleScanInterrupted()
236 ScanCallback scanCallback = new ScanCallback() { in performBleScan() local
253 bleScanner.startScan(scanFilters, scanSettings, scanCallback); in performBleScan()
259 bleScanner.stopScan(scanCallback); in performBleScan()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/
DBleDiscoveryProvider.java209 android.bluetooth.le.ScanCallback scanCallback) { in startScan() argument
217 bluetoothLeScanner.startScan(scanFilters, scanSettings, scanCallback); in startScan()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DBluetoothLeScanner.java439 ScanCallback scanCallback) { in BleScanCallbackWrapper() argument
445 mScanCallback = scanCallback; in BleScanCallbackWrapper()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothAdapter.java4256 ScanCallback scanCallback = in startLeScan() local
4303 scanner.startScan(filters, settings, scanCallback); in startLeScan()
4305 mLeScanClients.put(callback, scanCallback); in startLeScan()
4330 ScanCallback scanCallback = mLeScanClients.remove(callback); in stopLeScan() local
4331 if (scanCallback == null) { in stopLeScan()
4337 scanner.stopScan(scanCallback); in stopLeScan()