Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.bluetooth; |
| 18 | |
| 19 | import android.bluetooth.le.AdvertiseSettings; |
| 20 | import android.bluetooth.le.ScanResult; |
Jakub Pawlowski | bf0faed | 2016-03-01 18:50:27 -0800 | [diff] [blame] | 21 | import android.bluetooth.BluetoothGattService; |
Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 22 | import android.os.ParcelUuid; |
| 23 | import android.os.RemoteException; |
| 24 | |
| 25 | import java.util.List; |
| 26 | |
| 27 | /** |
| 28 | * Wrapper class for default implementation of IBluetoothGattCallback. |
| 29 | * |
| 30 | * @hide |
| 31 | */ |
| 32 | public class BluetoothGattCallbackWrapper extends IBluetoothGattCallback.Stub { |
| 33 | |
| 34 | @Override |
| 35 | public void onClientRegistered(int status, int clientIf) throws RemoteException { |
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public void onClientConnectionState(int status, int clientIf, boolean connected, String address) |
| 40 | throws RemoteException { |
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | public void onScanResult(ScanResult scanResult) throws RemoteException { |
| 45 | } |
| 46 | |
| 47 | @Override |
| 48 | public void onBatchScanResults(List<ScanResult> batchResults) throws RemoteException { |
| 49 | } |
| 50 | |
| 51 | @Override |
Jakub Pawlowski | bf0faed | 2016-03-01 18:50:27 -0800 | [diff] [blame] | 52 | public void onSearchComplete(String address, List<BluetoothGattService> services, |
| 53 | int status) throws RemoteException { |
Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | @Override |
Jakub Pawlowski | c9d13c3 | 2016-03-17 16:00:16 -0700 | [diff] [blame] | 57 | public void onCharacteristicRead(String address, int status, int handle, byte[] value) |
Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 58 | throws RemoteException { |
| 59 | } |
| 60 | |
| 61 | @Override |
Jakub Pawlowski | c9d13c3 | 2016-03-17 16:00:16 -0700 | [diff] [blame] | 62 | public void onCharacteristicWrite(String address, int status, int handle) throws RemoteException { |
Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | @Override |
| 66 | public void onExecuteWrite(String address, int status) throws RemoteException { |
| 67 | } |
| 68 | |
| 69 | @Override |
Jakub Pawlowski | c9d13c3 | 2016-03-17 16:00:16 -0700 | [diff] [blame] | 70 | public void onDescriptorRead(String address, int status, int handle, byte[] value) throws RemoteException { |
Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | @Override |
Jakub Pawlowski | c9d13c3 | 2016-03-17 16:00:16 -0700 | [diff] [blame] | 74 | public void onDescriptorWrite(String address, int status, int handle) throws RemoteException { |
Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | @Override |
Jakub Pawlowski | c9d13c3 | 2016-03-17 16:00:16 -0700 | [diff] [blame] | 78 | public void onNotify(String address, int handle, byte[] value) throws RemoteException { |
Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | @Override |
| 82 | public void onReadRemoteRssi(String address, int rssi, int status) throws RemoteException { |
| 83 | } |
| 84 | |
| 85 | @Override |
| 86 | public void onMultiAdvertiseCallback(int status, boolean isStart, |
| 87 | AdvertiseSettings advertiseSettings) throws RemoteException { |
| 88 | } |
| 89 | |
| 90 | @Override |
| 91 | public void onConfigureMTU(String address, int mtu, int status) throws RemoteException { |
| 92 | } |
| 93 | |
| 94 | @Override |
Prerepa Viswanadham | d5324e4 | 2014-08-07 09:44:20 -0700 | [diff] [blame] | 95 | public void onFoundOrLost(boolean onFound, ScanResult scanResult) throws RemoteException { |
Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 96 | } |
| 97 | |
Prerepa Viswanadham | db1dbb8 | 2015-04-09 17:14:50 -0700 | [diff] [blame] | 98 | @Override |
| 99 | public void onScanManagerErrorCallback(int errorCode) throws RemoteException { |
| 100 | } |
Wei Wang | e0d4afb | 2014-07-29 21:34:25 -0700 | [diff] [blame] | 101 | } |