• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.bluetooth.BluetoothGattService;
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
onClientRegistered(int status, int clientIf)35     public void onClientRegistered(int status, int clientIf) throws RemoteException {
36     }
37 
38     @Override
onClientConnectionState(int status, int clientIf, boolean connected, String address)39     public void onClientConnectionState(int status, int clientIf, boolean connected, String address)
40             throws RemoteException {
41     }
42 
43     @Override
onScanResult(ScanResult scanResult)44     public void onScanResult(ScanResult scanResult) throws RemoteException {
45     }
46 
47     @Override
onBatchScanResults(List<ScanResult> batchResults)48     public void onBatchScanResults(List<ScanResult> batchResults) throws RemoteException {
49     }
50 
51     @Override
onSearchComplete(String address, List<BluetoothGattService> services, int status)52     public void onSearchComplete(String address, List<BluetoothGattService> services,
53             int status) throws RemoteException {
54     }
55 
56     @Override
onCharacteristicRead(String address, int status, int handle, byte[] value)57     public void onCharacteristicRead(String address, int status, int handle, byte[] value)
58             throws RemoteException {
59     }
60 
61     @Override
onCharacteristicWrite(String address, int status, int handle)62     public void onCharacteristicWrite(String address, int status, int handle) throws RemoteException {
63     }
64 
65     @Override
onExecuteWrite(String address, int status)66     public void onExecuteWrite(String address, int status) throws RemoteException {
67     }
68 
69     @Override
onDescriptorRead(String address, int status, int handle, byte[] value)70     public void onDescriptorRead(String address, int status, int handle, byte[] value) throws RemoteException {
71     }
72 
73     @Override
onDescriptorWrite(String address, int status, int handle)74     public void onDescriptorWrite(String address, int status, int handle) throws RemoteException {
75     }
76 
77     @Override
onNotify(String address, int handle, byte[] value)78     public void onNotify(String address, int handle, byte[] value) throws RemoteException {
79     }
80 
81     @Override
onReadRemoteRssi(String address, int rssi, int status)82     public void onReadRemoteRssi(String address, int rssi, int status) throws RemoteException {
83     }
84 
85     @Override
onMultiAdvertiseCallback(int status, boolean isStart, AdvertiseSettings advertiseSettings)86     public void onMultiAdvertiseCallback(int status, boolean isStart,
87             AdvertiseSettings advertiseSettings) throws RemoteException {
88     }
89 
90     @Override
onConfigureMTU(String address, int mtu, int status)91     public void onConfigureMTU(String address, int mtu, int status) throws RemoteException {
92     }
93 
94     @Override
onFoundOrLost(boolean onFound, ScanResult scanResult)95     public void onFoundOrLost(boolean onFound, ScanResult scanResult) throws RemoteException {
96     }
97 
98     @Override
onScanManagerErrorCallback(int errorCode)99     public void onScanManagerErrorCallback(int errorCode) throws RemoteException {
100     }
101 }
102