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

Commit bbd3107a authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Dummy implementation for BLE scan via PendingIntent

Actual implementation under construction. This is a placeholder
for the new APIs.

Bug: 37254611
Test: N/A
Change-Id: Id2226bb919b944268ff6e4bf53d609d5808419e4
parent 36cad665
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;