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

Commit ec70e626 authored by Amith Yamasani's avatar Amith Yamasani Committed by android-build-merger
Browse files

Dummy implementation for BLE scan via PendingIntent

am: bbd3107a

Change-Id: I95f39d146300fcaebc6a95e2e41b2b6aa9c4dd38
parents 62267f72 bbd3107a
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.bluetooth.gatt;

import android.app.AppOpsManager;
import android.app.PendingIntent;
import android.app.Service;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
@@ -365,6 +366,18 @@ public class GattService extends ProfileService {
                    callingPackage);
        }

        @Override
        public void startScanForIntent(PendingIntent intent, ScanSettings settings,
                List<ScanFilter> filters, String callingPackage) throws RemoteException {
            // TODO:
        }

        @Override
        public void stopScanForIntent(PendingIntent intent, String callingPackage)
                throws RemoteException {
            // TODO:
        }

        public void stopScan(int scannerId) {
            GattService service = getService();
            if (service == null) return;