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_adapter_android.h" | 5 #include "device/bluetooth/bluetooth_adapter_android.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 void BluetoothAdapterAndroid::CreateL2capService( | 141 void BluetoothAdapterAndroid::CreateL2capService( |
142 const BluetoothUUID& uuid, | 142 const BluetoothUUID& uuid, |
143 const ServiceOptions& options, | 143 const ServiceOptions& options, |
144 const CreateServiceCallback& callback, | 144 const CreateServiceCallback& callback, |
145 const CreateServiceErrorCallback& error_callback) { | 145 const CreateServiceErrorCallback& error_callback) { |
146 NOTIMPLEMENTED(); | 146 NOTIMPLEMENTED(); |
147 error_callback.Run("Not Implemented"); | 147 error_callback.Run("Not Implemented"); |
148 } | 148 } |
149 | 149 |
150 void BluetoothAdapterAndroid::RegisterAudioSink( | |
151 const BluetoothAudioSink::Options& options, | |
152 const AcquiredCallback& callback, | |
153 const BluetoothAudioSink::ErrorCallback& error_callback) { | |
154 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM); | |
155 } | |
156 | |
157 void BluetoothAdapterAndroid::RegisterAdvertisement( | 150 void BluetoothAdapterAndroid::RegisterAdvertisement( |
158 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 151 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
159 const CreateAdvertisementCallback& callback, | 152 const CreateAdvertisementCallback& callback, |
160 const AdvertisementErrorCallback& error_callback) { | 153 const AdvertisementErrorCallback& error_callback) { |
161 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM); | 154 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM); |
162 } | 155 } |
163 | 156 |
164 BluetoothLocalGattService* BluetoothAdapterAndroid::GetGattService( | 157 BluetoothLocalGattService* BluetoothAdapterAndroid::GetGattService( |
165 const std::string& identifier) const { | 158 const std::string& identifier) const { |
166 return nullptr; | 159 return nullptr; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 // TODO(scheib): Support filters crbug.com/490401 | 325 // TODO(scheib): Support filters crbug.com/490401 |
333 NOTIMPLEMENTED(); | 326 NOTIMPLEMENTED(); |
334 error_callback.Run(UMABluetoothDiscoverySessionOutcome::NOT_IMPLEMENTED); | 327 error_callback.Run(UMABluetoothDiscoverySessionOutcome::NOT_IMPLEMENTED); |
335 } | 328 } |
336 | 329 |
337 void BluetoothAdapterAndroid::RemovePairingDelegateInternal( | 330 void BluetoothAdapterAndroid::RemovePairingDelegateInternal( |
338 device::BluetoothDevice::PairingDelegate* pairing_delegate) { | 331 device::BluetoothDevice::PairingDelegate* pairing_delegate) { |
339 } | 332 } |
340 | 333 |
341 } // namespace device | 334 } // namespace device |
OLD | NEW |