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.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.java2128 public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord); in onLeScan() argument
2200 ScanRecord scanRecord = result.getScanRecord(); in startLeScan()
2201 if (scanRecord == null) { in startLeScan()
2209 List<ParcelUuid> scanServiceUuids = scanRecord.getServiceUuids(); in startLeScan()
2216 scanRecord.getBytes()); in startLeScan()
/frameworks/base/docs/html/guide/topics/connectivity/
Dbluetooth-le.jd307 byte[] scanRecord) {