/packages/modules/Bluetooth/framework/java/android/bluetooth/le/ |
D | ScanRecord.java | 524 public static ScanRecord parseFromBytes(byte[] scanRecord) { in parseFromBytes() argument 525 if (scanRecord == null) { in parseFromBytes() 543 while (currentPos < scanRecord.length) { in parseFromBytes() 545 int length = scanRecord[currentPos++] & 0xFF; in parseFromBytes() 552 int fieldType = scanRecord[currentPos++] & 0xFF; in parseFromBytes() 553 byte[] advertisingData = extractBytes(scanRecord, currentPos, dataLength); in parseFromBytes() 557 advertiseFlag = scanRecord[currentPos] & 0xFF; in parseFromBytes() 562 scanRecord, in parseFromBytes() 571 scanRecord, in parseFromBytes() 580 scanRecord, in parseFromBytes() [all …]
|
D | ScanResult.java | 93 BluetoothDevice device, ScanRecord scanRecord, int rssi, long timestampNanos) { in ScanResult() argument 95 mScanRecord = scanRecord; in ScanResult() 129 ScanRecord scanRecord, in ScanResult() argument 139 mScanRecord = scanRecord; in ScanResult()
|
D | ScanFilter.java | 452 ScanRecord scanRecord = scanResult.getScanRecord(); in matches() local 455 if (scanRecord == null in matches() 466 if (mDeviceName != null && !mDeviceName.equals(scanRecord.getDeviceName())) { in matches() 473 mServiceUuid, mServiceUuidMask, scanRecord.getServiceUuids())) { in matches() 482 scanRecord.getServiceSolicitationUuids())) { in matches() 489 mServiceData, mServiceDataMask, scanRecord.getServiceData(mServiceDataUuid))) { in matches() 499 scanRecord.getManufacturerSpecificData(mManufacturerId))) { in matches() 506 byte[] advertisingData = scanRecord.getAdvertisingDataMap().get(mAdvertisingDataType); in matches()
|
D | TransportBlockFilter.java | 188 ScanRecord scanRecord = scanResult.getScanRecord(); in matches() local 190 TransportDiscoveryData transportDiscoveryData = scanRecord.getTransportDiscoveryData(); in matches()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragmentTest.java | 297 ScanRecord scanRecord = mock(ScanRecord.class); in createAshaScanResult() local 300 doReturn(scanRecord).when(scanResult).getScanRecord(); in createAshaScanResult() 301 doReturn(fakeAshaServiceData).when(scanRecord).getServiceData(BluetoothUuid.HEARING_AID); in createAshaScanResult() 307 ScanRecord scanRecord = mock(ScanRecord.class); in createHasScanResult() local 308 doReturn(scanRecord).when(scanResult).getScanRecord(); in createHasScanResult() 309 doReturn(List.of(BluetoothUuid.HAS)).when(scanRecord).getServiceUuids(); in createHasScanResult() 315 ScanRecord scanRecord = mock(ScanRecord.class); in createMfiHasScanResult() local 317 doReturn(scanRecord).when(scanResult).getScanRecord(); in createMfiHasScanResult() 318 doReturn(fakeMfiServiceData).when(scanRecord).getServiceData(BluetoothUuid.MFI_HAS); in createMfiHasScanResult()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/ |
D | BleDiscoveryScanProviderTest.java | 269 ScanRecord scanRecord = in testBleScanResult_noServiceData() local 285 scanRecord, in testBleScanResult_noServiceData() 295 ScanRecord scanRecord = in testBleScanResult_serviceDataParsingFailed() local 325 scanRecord, in testBleScanResult_serviceDataParsingFailed() 335 ScanRecord scanRecord = in testBleScanResult_rssiBelowThreshold() local 366 scanRecord, in testBleScanResult_rssiBelowThreshold() 375 ScanRecord scanRecord = in testBleScanResult_success() local 413 scanRecord, in testBleScanResult_success()
|
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/le/ |
D | ScanRecordTest.java | 142 byte[] scanRecord = in testParser() 178 ScanRecord data = ScanRecord.parseFromBytes(scanRecord); in testParser() 203 byte[] scanRecord = in testParserMultipleManufacturerSpecificData() 246 ScanRecord data = ScanRecord.parseFromBytes(scanRecord); in testParserMultipleManufacturerSpecificData()
|
/packages/modules/Bluetooth/android/pandora/server/src/ |
D | Host.kt | 599 val scanRecord = result.scanRecord in scan() constant 600 checkNotNull(scanRecord) in scan() 601 val scanData = scanRecord.getAdvertisingDataMap() in scan() 602 val serviceData = scanRecord.serviceData in scan() 606 DataTypes.newBuilder().setTxPowerLevel(scanRecord.getTxPowerLevel()) in scan() 686 scanRecord.serviceSolicitationUuids ?: listOf<ParcelUuid>()) { in scan() 702 for (serviceUuid in scanRecord.serviceUuids ?: listOf<ParcelUuid>()) { in scan() 720 when (scanRecord.advertiseFlags and 0b11) { in scan() 727 val manufacturerSpecificDatas = scanRecord.getManufacturerSpecificData() in scan()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragment.java | 423 ScanRecord scanRecord = scanResult.getScanRecord(); in isAndroidCompatibleHearingAid() local 424 if (scanRecord == null) { in isAndroidCompatibleHearingAid() 431 List<ParcelUuid> uuids = scanRecord.getServiceUuids(); in isAndroidCompatibleHearingAid() 441 if (scanRecord.getServiceData(BluetoothUuid.HEARING_AID) != null in isAndroidCompatibleHearingAid() 442 || scanRecord.getServiceData(BluetoothUuid.HAS) != null) { in isAndroidCompatibleHearingAid()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/ |
D | TransitionalScanHelper.java | 174 final ScanRecord scanRecord = scanResult.getScanRecord(); 175 if (scanRecord.matchesAnyField( 177 Log.v(TAG, "Skipping data matching denylist: " + scanRecord); 404 ScanRecord scanRecord = ScanRecord.parseFromBytes(scanRecordData); in onScanResultInternal() local 415 scanRecord, in onScanResultInternal() 888 byte[] scanRecord = new byte[advertisePacketLen + scanResponsePacketLen]; in parseFullResults() 889 System.arraycopy(advertiseBytes, 0, scanRecord, 0, advertisePacketLen); in parseFullResults() 891 scanResponseBytes, 0, scanRecord, advertisePacketLen, scanResponsePacketLen); in parseFullResults() 892 Log.d(TAG, "ScanRecord : " + Arrays.toString(scanRecord)); in parseFullResults() 895 device, ScanRecord.parseFromBytes(scanRecord), rssi, timestampNanos)); in parseFullResults() [all …]
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/provider/ |
D | BleDiscoveryProviderTest.java | 139 byte[] scanRecord = new byte[] {2, 1, 6, 6, 22, 44, -2, 113, -116, 23, 2, 10, -11, 0, 0, 0, in createScanResult() 151 parseScanRecord(scanRecord), in createScanResult()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/ |
D | BassClientServiceTest.java | 913 byte[] scanRecord = getScanRecord(broadcastId); in onScanResult() 924 ScanRecord.parseFromBytes(scanRecord), in onScanResult() 1954 byte[] scanRecord = getScanRecord(TEST_BROADCAST_ID); in testSelectSource_withSameBroadcastId() 1966 ScanRecord.parseFromBytes(scanRecord), in testSelectSource_withSameBroadcastId() 1978 ScanRecord.parseFromBytes(scanRecord), in testSelectSource_withSameBroadcastId() 2002 byte[] scanRecord = in testSelectSource_wrongBassUUID() 2066 ScanRecord.parseFromBytes(scanRecord), in testSelectSource_wrongBassUUID() 2112 byte[] scanRecord = in testSelectSource_wrongPublicBroadcastUUID() 2176 ScanRecord.parseFromBytes(scanRecord), in testSelectSource_wrongPublicBroadcastUUID() 2190 byte[] scanRecord = in testSelectSource_wrongPublicBroadcastData() [all …]
|
D | BassClientStateMachineTest.java | 537 byte[] scanRecord = in parseScanRecord_withoutBaseData_callCancelActiveSync() 576 ScanRecord data = ScanRecord.parseFromBytes(scanRecord); in parseScanRecord_withoutBaseData_callCancelActiveSync() 1290 byte[] scanRecord = in sendSelectBcastSourceMessage_inConnectedState() 1344 ScanRecord record = ScanRecord.parseFromBytes(scanRecord); in sendSelectBcastSourceMessage_inConnectedState() 2057 byte[] scanRecord = in selectBcastSource_withSameBroadcastId() 2111 ScanRecord record = ScanRecord.parseFromBytes(scanRecord); in selectBcastSource_withSameBroadcastId() 2168 byte[] scanRecord = in addBcastSource_withCachedScanResults() 2222 ScanRecord record = ScanRecord.parseFromBytes(scanRecord); in addBcastSource_withCachedScanResults()
|
/packages/modules/Permission/tests/cts/permissionui/UsePermissionApp30WithBluetooth/src/android/permissionui/cts/usepermission/ |
D | AccessBluetoothOnCommand.kt | 69 observedScans.add(Base64.encodeToString(result.scanRecord!!.bytes, 0)) in call()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/ |
D | BassClientService.java | 1653 ScanRecord scanRecord = result.getScanRecord(); in startSearchingForSources() 1654 if (scanRecord == null) { in startSearchingForSources() 1658 Map<ParcelUuid, byte[]> listOfUuids = scanRecord.getServiceData(); in startSearchingForSources() 2214 ScanRecord scanRecord = scanRes.getScanRecord(); in addSelectSourceRequest() local 2215 if (scanRecord == null) { in addSelectSourceRequest() 2245 ScanRecord scanRecord = scanRes.getScanRecord(); in handleSelectSourceRequest() local 2251 Map<ParcelUuid, byte[]> listOfUuids = scanRecord.getServiceData(); in handleSelectSourceRequest() 2274 String broadcastName = checkAndParseBroadcastName(scanRecord); in handleSelectSourceRequest()
|
D | BassClientStateMachine.java | 448 ScanRecord scanRecord = scanRes.getScanRecord(); in selectSource() local 449 if (scanRecord != null) { in selectSource() 450 Map<ParcelUuid, byte[]> listOfUuids = scanRecord.getServiceData(); in selectSource() 471 String broadcastName = checkAndParseBroadcastName(scanRecord); in selectSource()
|
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/ |
D | DckGattTest.kt | 299 assertThat(scanResult.scanRecord?.serviceUuids).contains(ParcelUuid(CCC_DK_UUID)) in testGattConnect_fromUuidScan()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothAdapter.java | 4184 void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord); in onLeScan() argument 4265 ScanRecord scanRecord = result.getScanRecord(); in startLeScan() 4266 if (scanRecord == null) { in startLeScan() 4274 List<ParcelUuid> scanServiceUuids = scanRecord.getServiceUuids(); in startLeScan() 4284 result.getDevice(), result.getRssi(), scanRecord.getBytes()); in startLeScan()
|