OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 const base::android::JavaParamRef<jobject>& caller); | 98 const base::android::JavaParamRef<jobject>& caller); |
99 | 99 |
100 // Creates or updates device with advertised UUID information when a device is | 100 // Creates or updates device with advertised UUID information when a device is |
101 // discovered during a scan. | 101 // discovered during a scan. |
102 void CreateOrUpdateDeviceOnScan( | 102 void CreateOrUpdateDeviceOnScan( |
103 JNIEnv* env, | 103 JNIEnv* env, |
104 const base::android::JavaParamRef<jobject>& caller, | 104 const base::android::JavaParamRef<jobject>& caller, |
105 const base::android::JavaParamRef<jstring>& address, | 105 const base::android::JavaParamRef<jstring>& address, |
106 const base::android::JavaParamRef<jobject>& | 106 const base::android::JavaParamRef<jobject>& |
107 bluetooth_device_wrapper, // Java Type: bluetoothDeviceWrapper | 107 bluetooth_device_wrapper, // Java Type: bluetoothDeviceWrapper |
| 108 int32_t rssi, |
108 const base::android::JavaParamRef<jobjectArray>& | 109 const base::android::JavaParamRef<jobjectArray>& |
109 advertised_uuids); // Java Type: String[] | 110 advertised_uuids, // Java Type: String[] |
| 111 int32_t tx_power); |
110 | 112 |
111 protected: | 113 protected: |
112 BluetoothAdapterAndroid(); | 114 BluetoothAdapterAndroid(); |
113 ~BluetoothAdapterAndroid() override; | 115 ~BluetoothAdapterAndroid() override; |
114 | 116 |
115 // BluetoothAdapter: | 117 // BluetoothAdapter: |
116 void AddDiscoverySession( | 118 void AddDiscoverySession( |
117 BluetoothDiscoveryFilter* discovery_filter, | 119 BluetoothDiscoveryFilter* discovery_filter, |
118 const base::Closure& callback, | 120 const base::Closure& callback, |
119 const DiscoverySessionErrorCallback& error_callback) override; | 121 const DiscoverySessionErrorCallback& error_callback) override; |
(...skipping 21 matching lines...) Expand all Loading... |
141 // Note: This should remain the last member so it'll be destroyed and | 143 // Note: This should remain the last member so it'll be destroyed and |
142 // invalidate its weak pointers before any other members are destroyed. | 144 // invalidate its weak pointers before any other members are destroyed. |
143 base::WeakPtrFactory<BluetoothAdapterAndroid> weak_ptr_factory_; | 145 base::WeakPtrFactory<BluetoothAdapterAndroid> weak_ptr_factory_; |
144 | 146 |
145 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterAndroid); | 147 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterAndroid); |
146 }; | 148 }; |
147 | 149 |
148 } // namespace device | 150 } // namespace device |
149 | 151 |
150 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 152 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ |
OLD | NEW |