Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8108d6d2 authored by Wei Wang's avatar Wei Wang
Browse files

Use nanos instead of micros in BLE scan.

Change-Id: Ifdaf101f92ae4c8d2bcecf62a1942961d6610151
parent a52a1095
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -575,10 +575,8 @@ public class GattService extends ProfileService {
                if (app != null) {
                    BluetoothDevice device = BluetoothAdapter.getDefaultAdapter()
                            .getRemoteDevice(address);
                    long scanTimeNanos =
                            TimeUnit.NANOSECONDS.toMicros(SystemClock.elapsedRealtimeNanos());
                    ScanResult result = new ScanResult(device, ScanRecord.parseFromBytes(adv_data),
                            rssi, scanTimeNanos);
                            rssi, SystemClock.elapsedRealtimeNanos());
                    if (matchesFilters(client, result)) {
                        try {
                            ScanSettings settings = client.settings;