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

Commit 3cfcead9 authored by Wei Wang's avatar Wei Wang Committed by Android (Google) Code Review
Browse files

Merge "Use nanos instead of micros in BLE scan." into lmp-dev

parents 9d00064d 8108d6d2
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;