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;
21 import android.os.ParcelUuid;
22 import android.os.RemoteException;
23 
24 import java.util.List;
25 
26 /**
27  * Wrapper class for default implementation of IBluetoothGattCallback.
28  *
29  * @hide
30  */
31 public class BluetoothGattCallbackWrapper extends IBluetoothGattCallback.Stub {
32 
33     @Override
onClientRegistered(int status, int clientIf)34     public void onClientRegistered(int status, int clientIf) throws RemoteException {
35     }
36 
37     @Override
onClientConnectionState(int status, int clientIf, boolean connected, String address)38     public void onClientConnectionState(int status, int clientIf, boolean connected, String address)
39             throws RemoteException {
40     }
41 
42     @Override
onScanResult(ScanResult scanResult)43     public void onScanResult(ScanResult scanResult) throws RemoteException {
44     }
45 
46     @Override
onBatchScanResults(List<ScanResult> batchResults)47     public void onBatchScanResults(List<ScanResult> batchResults) throws RemoteException {
48     }
49 
50     @Override
onGetService(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid)51     public void onGetService(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid)
52             throws RemoteException {
53     }
54 
55     @Override
onGetIncludedService(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid, int inclSrvcType, int inclSrvcInstId, ParcelUuid inclSrvcUuid)56     public void onGetIncludedService(String address, int srvcType, int srvcInstId,
57             ParcelUuid srvcUuid, int inclSrvcType, int inclSrvcInstId, ParcelUuid inclSrvcUuid)
58             throws RemoteException {
59     }
60 
61     @Override
onGetCharacteristic(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, int charProps)62     public void onGetCharacteristic(String address, int srvcType, int srvcInstId,
63             ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, int charProps)
64             throws RemoteException {
65     }
66 
67     @Override
onGetDescriptor(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, int descrInstId, ParcelUuid descrUuid)68     public void onGetDescriptor(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid,
69             int charInstId, ParcelUuid charUuid, int descrInstId, ParcelUuid descrUuid)
70             throws RemoteException {
71     }
72 
73     @Override
onSearchComplete(String address, int status)74     public void onSearchComplete(String address, int status) throws RemoteException {
75     }
76 
77     @Override
onCharacteristicRead(String address, int status, int srvcType, int srvcInstId, ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, byte[] value)78     public void onCharacteristicRead(String address, int status, int srvcType, int srvcInstId,
79             ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, byte[] value)
80             throws RemoteException {
81     }
82 
83     @Override
onCharacteristicWrite(String address, int status, int srvcType, int srvcInstId, ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid)84     public void onCharacteristicWrite(String address, int status, int srvcType, int srvcInstId,
85             ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid) throws RemoteException {
86     }
87 
88     @Override
onExecuteWrite(String address, int status)89     public void onExecuteWrite(String address, int status) throws RemoteException {
90     }
91 
92     @Override
onDescriptorRead(String address, int status, int srvcType, int srvcInstId, ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, int descrInstId, ParcelUuid descrUuid, byte[] value)93     public void onDescriptorRead(String address, int status, int srvcType, int srvcInstId,
94             ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, int descrInstId,
95             ParcelUuid descrUuid, byte[] value) throws RemoteException {
96     }
97 
98     @Override
onDescriptorWrite(String address, int status, int srvcType, int srvcInstId, ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, int descrInstId, ParcelUuid descrUuid)99     public void onDescriptorWrite(String address, int status, int srvcType, int srvcInstId,
100             ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, int descrInstId,
101             ParcelUuid descrUuid) throws RemoteException {
102     }
103 
104     @Override
onNotify(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid, int charInstId, ParcelUuid charUuid, byte[] value)105     public void onNotify(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid,
106             int charInstId, ParcelUuid charUuid, byte[] value) throws RemoteException {
107     }
108 
109     @Override
onReadRemoteRssi(String address, int rssi, int status)110     public void onReadRemoteRssi(String address, int rssi, int status) throws RemoteException {
111     }
112 
113     @Override
onMultiAdvertiseCallback(int status, boolean isStart, AdvertiseSettings advertiseSettings)114     public void onMultiAdvertiseCallback(int status, boolean isStart,
115             AdvertiseSettings advertiseSettings) throws RemoteException {
116     }
117 
118     @Override
onConfigureMTU(String address, int mtu, int status)119     public void onConfigureMTU(String address, int mtu, int status) throws RemoteException {
120     }
121 
122     @Override
onFoundOrLost(boolean onFound, ScanResult scanResult)123     public void onFoundOrLost(boolean onFound, ScanResult scanResult) throws RemoteException {
124     }
125 
126     @Override
onScanManagerErrorCallback(int errorCode)127     public void onScanManagerErrorCallback(int errorCode) throws RemoteException {
128     }
129 }
130