blob: 17e533a5b32fbd4bee6a2e9928dff605940ded95 [file] [log] [blame]
Wei Wange0d4afb2014-07-29 21:34:25 -07001/*
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
17package android.bluetooth;
18
19import android.bluetooth.le.AdvertiseSettings;
20import android.bluetooth.le.ScanResult;
Jakub Pawlowskibf0faed2016-03-01 18:50:27 -080021import android.bluetooth.BluetoothGattService;
Wei Wange0d4afb2014-07-29 21:34:25 -070022import android.os.ParcelUuid;
23import android.os.RemoteException;
24
25import java.util.List;
26
27/**
28 * Wrapper class for default implementation of IBluetoothGattCallback.
29 *
30 * @hide
31 */
32public 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 Pawlowskibf0faed2016-03-01 18:50:27 -080052 public void onSearchComplete(String address, List<BluetoothGattService> services,
53 int status) throws RemoteException {
Wei Wange0d4afb2014-07-29 21:34:25 -070054 }
55
56 @Override
Jakub Pawlowskic9d13c32016-03-17 16:00:16 -070057 public void onCharacteristicRead(String address, int status, int handle, byte[] value)
Wei Wange0d4afb2014-07-29 21:34:25 -070058 throws RemoteException {
59 }
60
61 @Override
Jakub Pawlowskic9d13c32016-03-17 16:00:16 -070062 public void onCharacteristicWrite(String address, int status, int handle) throws RemoteException {
Wei Wange0d4afb2014-07-29 21:34:25 -070063 }
64
65 @Override
66 public void onExecuteWrite(String address, int status) throws RemoteException {
67 }
68
69 @Override
Jakub Pawlowskic9d13c32016-03-17 16:00:16 -070070 public void onDescriptorRead(String address, int status, int handle, byte[] value) throws RemoteException {
Wei Wange0d4afb2014-07-29 21:34:25 -070071 }
72
73 @Override
Jakub Pawlowskic9d13c32016-03-17 16:00:16 -070074 public void onDescriptorWrite(String address, int status, int handle) throws RemoteException {
Wei Wange0d4afb2014-07-29 21:34:25 -070075 }
76
77 @Override
Jakub Pawlowskic9d13c32016-03-17 16:00:16 -070078 public void onNotify(String address, int handle, byte[] value) throws RemoteException {
Wei Wange0d4afb2014-07-29 21:34:25 -070079 }
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 Viswanadhamd5324e42014-08-07 09:44:20 -070095 public void onFoundOrLost(boolean onFound, ScanResult scanResult) throws RemoteException {
Wei Wange0d4afb2014-07-29 21:34:25 -070096 }
97
Prerepa Viswanadhamdb1dbb82015-04-09 17:14:50 -070098 @Override
99 public void onScanManagerErrorCallback(int errorCode) throws RemoteException {
100 }
Wei Wange0d4afb2014-07-29 21:34:25 -0700101}