OSDN Git Service

Dummy implementation for BLE scan via PendingIntent
authorAmith Yamasani <yamasani@google.com>
Fri, 14 Apr 2017 23:29:07 +0000 (16:29 -0700)
committerAmith Yamasani <yamasani@google.com>
Fri, 14 Apr 2017 23:29:07 +0000 (16:29 -0700)
Actual implementation under construction. This is a placeholder
for the new APIs.

Bug: 37254611
Test: N/A
Change-Id: Id2226bb919b944268ff6e4bf53d609d5808419e4

src/com/android/bluetooth/gatt/GattService.java

index 11f0a63..72c3c78 100644 (file)
@@ -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;