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 #include "device/bluetooth/bluetooth_device_android.h" | 5 #include "device/bluetooth/bluetooth_device_android.h" |
6 | 6 |
7 #include "base/android/context_utils.h" | 7 #include "base/android/context_utils.h" |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 bool BluetoothDeviceAndroid::IsConnectable() const { | 120 bool BluetoothDeviceAndroid::IsConnectable() const { |
121 NOTIMPLEMENTED(); | 121 NOTIMPLEMENTED(); |
122 return false; | 122 return false; |
123 } | 123 } |
124 | 124 |
125 bool BluetoothDeviceAndroid::IsConnecting() const { | 125 bool BluetoothDeviceAndroid::IsConnecting() const { |
126 NOTIMPLEMENTED(); | 126 NOTIMPLEMENTED(); |
127 return false; | 127 return false; |
128 } | 128 } |
129 | 129 |
130 base::Optional<int8_t> BluetoothDeviceAndroid::GetInquiryRSSI() const { | |
131 NOTIMPLEMENTED(); | |
132 return base::nullopt; | |
133 } | |
134 | |
135 base::Optional<int8_t> BluetoothDeviceAndroid::GetInquiryTxPower() const { | |
136 NOTIMPLEMENTED(); | |
137 return base::nullopt; | |
138 } | |
139 | |
140 bool BluetoothDeviceAndroid::ExpectingPinCode() const { | 130 bool BluetoothDeviceAndroid::ExpectingPinCode() const { |
141 NOTIMPLEMENTED(); | 131 NOTIMPLEMENTED(); |
142 return false; | 132 return false; |
143 } | 133 } |
144 | 134 |
145 bool BluetoothDeviceAndroid::ExpectingPasskey() const { | 135 bool BluetoothDeviceAndroid::ExpectingPasskey() const { |
146 NOTIMPLEMENTED(); | 136 NOTIMPLEMENTED(); |
147 return false; | 137 return false; |
148 } | 138 } |
149 | 139 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 void BluetoothDeviceAndroid::CreateGattConnectionImpl() { | 263 void BluetoothDeviceAndroid::CreateGattConnectionImpl() { |
274 Java_ChromeBluetoothDevice_createGattConnectionImpl( | 264 Java_ChromeBluetoothDevice_createGattConnectionImpl( |
275 AttachCurrentThread(), j_device_, base::android::GetApplicationContext()); | 265 AttachCurrentThread(), j_device_, base::android::GetApplicationContext()); |
276 } | 266 } |
277 | 267 |
278 void BluetoothDeviceAndroid::DisconnectGatt() { | 268 void BluetoothDeviceAndroid::DisconnectGatt() { |
279 Java_ChromeBluetoothDevice_disconnectGatt(AttachCurrentThread(), j_device_); | 269 Java_ChromeBluetoothDevice_disconnectGatt(AttachCurrentThread(), j_device_); |
280 } | 270 } |
281 | 271 |
282 } // namespace device | 272 } // namespace device |
OLD | NEW |