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.java199 public static ScanRecord parseFromBytes(byte[] scanRecord) { in parseFromBytes() argument
200 if (scanRecord == null) { in parseFromBytes()
215 while (currentPos < scanRecord.length) { in parseFromBytes()
217 int length = scanRecord[currentPos++] & 0xFF; in parseFromBytes()
224 int fieldType = scanRecord[currentPos++] & 0xFF; in parseFromBytes()
227 advertiseFlag = scanRecord[currentPos] & 0xFF; in parseFromBytes()
231 parseServiceUuid(scanRecord, currentPos, in parseFromBytes()
236 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
241 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
245 parseServiceSolicitationUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
[all …]
DScanResult.java105 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() argument
108 mScanRecord = scanRecord; in ScanResult()
135 ScanRecord scanRecord, long timestampNanos) { in ScanResult() argument
144 mScanRecord = scanRecord; in ScanResult()
DScanFilter.java330 ScanRecord scanRecord = scanResult.getScanRecord(); in matches() local
333 if (scanRecord == null in matches()
340 if (mDeviceName != null && !mDeviceName.equals(scanRecord.getDeviceName())) { in matches()
346 scanRecord.getServiceUuids())) { in matches()
353 scanRecord.getServiceSolicitationUuids())) { in matches()
360 scanRecord.getServiceData(mServiceDataUuid))) { in matches()
368 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/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()
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java3118 void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord); in onLeScan() argument
3194 ScanRecord scanRecord = result.getScanRecord(); in startLeScan()
3195 if (scanRecord == null) { in startLeScan()
3203 List<ParcelUuid> scanServiceUuids = scanRecord.getServiceUuids(); in startLeScan()
3212 scanRecord.getBytes()); in startLeScan()