Home
last modified time | relevance | path

Searched refs:scanRecord (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/bluetooth/le/
DScanRecord.java177 public static ScanRecord parseFromBytes(byte[] scanRecord) { in parseFromBytes() argument
178 if (scanRecord == null) { in parseFromBytes()
192 while (currentPos < scanRecord.length) { in parseFromBytes()
194 int length = scanRecord[currentPos++] & 0xFF; in parseFromBytes()
201 int fieldType = scanRecord[currentPos++] & 0xFF; in parseFromBytes()
204 advertiseFlag = scanRecord[currentPos] & 0xFF; in parseFromBytes()
208 parseServiceUuid(scanRecord, currentPos, in parseFromBytes()
213 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
218 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
224 extractBytes(scanRecord, currentPos, dataLength)); in parseFromBytes()
[all …]
DScanResult.java103 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() argument
106 mScanRecord = scanRecord; in ScanResult()
133 ScanRecord scanRecord, long timestampNanos) { in ScanResult() argument
142 mScanRecord = scanRecord; in ScanResult()
DScanFilter.java286 ScanRecord scanRecord = scanResult.getScanRecord(); in matches() local
289 if (scanRecord == null in matches()
296 if (mDeviceName != null && !mDeviceName.equals(scanRecord.getDeviceName())) { in matches()
302 scanRecord.getServiceUuids())) { in matches()
309 scanRecord.getServiceData(mServiceDataUuid))) { in matches()
317 scanRecord.getManufacturerSpecificData(mManufacturerId))) { in matches()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanResultTest.java41 byte[] scanRecord = new byte[] { in testScanResultParceling()
46 ScanResult result = new ScanResult(device, ScanRecord.parseFromBytes(scanRecord), rssi, in testScanResultParceling()
DScanRecordTest.java37 byte[] scanRecord = new byte[] { in testParser()
46 ScanRecord data = ScanRecord.parseFromBytes(scanRecord); in testParser()
DScanFilterTest.java43 byte[] scanRecord = new byte[] { in setUp()
55 mScanResult = new ScanResult(device, ScanRecord.parseFromBytes(scanRecord), in setUp()
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java2364 public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord); in onLeScan() argument
2432 ScanRecord scanRecord = result.getScanRecord(); in startLeScan()
2433 if (scanRecord == null) { in startLeScan()
2441 List<ParcelUuid> scanServiceUuids = scanRecord.getServiceUuids(); in startLeScan()
2448 scanRecord.getBytes()); in startLeScan()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java534 final ScanRecord scanRecord = result.getScanRecord(); in isDeviceDiscoverable() local
535 final int flags = scanRecord.getAdvertiseFlags(); in isDeviceDiscoverable()