Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/bluetooth/le/
DScanRecord.java175 public static ScanRecord parseFromBytes(byte[] scanRecord) { in parseFromBytes() argument
176 if (scanRecord == null) { in parseFromBytes()
190 while (currentPos < scanRecord.length) { in parseFromBytes()
192 int length = scanRecord[currentPos++] & 0xFF; in parseFromBytes()
199 int fieldType = scanRecord[currentPos++] & 0xFF; in parseFromBytes()
202 advertiseFlag = scanRecord[currentPos] & 0xFF; in parseFromBytes()
206 parseServiceUuid(scanRecord, currentPos, in parseFromBytes()
211 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
216 parseServiceUuid(scanRecord, currentPos, dataLength, in parseFromBytes()
222 extractBytes(scanRecord, currentPos, dataLength)); in parseFromBytes()
[all …]
DScanFilter.java282 ScanRecord scanRecord = scanResult.getScanRecord(); in matches() local
285 if (scanRecord == null in matches()
292 if (mDeviceName != null && !mDeviceName.equals(scanRecord.getDeviceName())) { in matches()
298 scanRecord.getServiceUuids())) { in matches()
305 scanRecord.getServiceData(mServiceDataUuid))) { in matches()
313 scanRecord.getManufacturerSpecificData(mManufacturerId))) { in matches()
DScanResult.java51 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() argument
54 mScanRecord = scanRecord; in ScanResult()
/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.java2237 public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord); in onLeScan() argument
2309 ScanRecord scanRecord = result.getScanRecord(); in startLeScan()
2310 if (scanRecord == null) { in startLeScan()
2318 List<ParcelUuid> scanServiceUuids = scanRecord.getServiceUuids(); in startLeScan()
2325 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()
/frameworks/base/docs/html/guide/topics/connectivity/
Dbluetooth-le.jd307 byte[] scanRecord) {