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.java223 public static ScanRecord parseFromBytes(byte[] scanRecord) { in parseFromBytes() argument
224 if (scanRecord == null) { in parseFromBytes()
239 while (currentPos < scanRecord.length) { in parseFromBytes()
241 int length = scanRecord[currentPos++] & 0xFF; in parseFromBytes()
248 int fieldType = scanRecord[currentPos++] & 0xFF; in parseFromBytes()
251 advertiseFlag = scanRecord[currentPos] & 0xFF; in parseFromBytes()
255 parseServiceUuid(scanRecord, currentPos, in parseFromBytes()
260 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
265 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
269 parseServiceSolicitationUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
[all …]
DScanResult.java108 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() argument
111 mScanRecord = scanRecord; in ScanResult()
138 ScanRecord scanRecord, long timestampNanos) { in ScanResult() argument
147 mScanRecord = scanRecord; in ScanResult()
DScanFilter.java380 ScanRecord scanRecord = scanResult.getScanRecord(); in matches() local
383 if (scanRecord == null in matches()
390 if (mDeviceName != null && !mDeviceName.equals(scanRecord.getDeviceName())) { in matches()
396 scanRecord.getServiceUuids())) { in matches()
403 scanRecord.getServiceSolicitationUuids())) { in matches()
410 scanRecord.getServiceData(mServiceDataUuid))) { in matches()
418 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.java102 byte[] scanRecord = new byte[] { in testParser()
111 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/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java538 final ScanRecord scanRecord = result.getScanRecord(); in isDeviceDiscoverable() local
539 final int flags = scanRecord.getAdvertiseFlags(); in isDeviceDiscoverable()
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java3653 void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord); in onLeScan() argument
3791 ScanRecord scanRecord = result.getScanRecord(); in startLeScan()
3792 if (scanRecord == null) { in startLeScan()
3800 List<ParcelUuid> scanServiceUuids = scanRecord.getServiceUuids(); in startLeScan()
3809 scanRecord.getBytes()); in startLeScan()