| 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_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM); | 134 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void BluetoothAdapterAndroid::RegisterAdvertisement( | 137 void BluetoothAdapterAndroid::RegisterAdvertisement( |
| 138 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 138 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
| 139 const CreateAdvertisementCallback& callback, | 139 const CreateAdvertisementCallback& callback, |
| 140 const CreateAdvertisementErrorCallback& error_callback) { | 140 const CreateAdvertisementErrorCallback& error_callback) { |
| 141 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM); | 141 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM); |
| 142 } | 142 } |
| 143 | 143 |
| 144 BluetoothLocalGattService* BluetoothAdapterAndroid::GetGattService( |
| 145 const std::string& identifier) const { |
| 146 return nullptr; |
| 147 } |
| 148 |
| 144 void BluetoothAdapterAndroid::OnAdapterStateChanged( | 149 void BluetoothAdapterAndroid::OnAdapterStateChanged( |
| 145 JNIEnv* env, | 150 JNIEnv* env, |
| 146 const JavaParamRef<jobject>& caller, | 151 const JavaParamRef<jobject>& caller, |
| 147 const bool powered) { | 152 const bool powered) { |
| 148 NotifyAdapterStateChanged(powered); | 153 NotifyAdapterStateChanged(powered); |
| 149 } | 154 } |
| 150 | 155 |
| 151 void BluetoothAdapterAndroid::OnScanFailed( | 156 void BluetoothAdapterAndroid::OnScanFailed( |
| 152 JNIEnv* env, | 157 JNIEnv* env, |
| 153 const JavaParamRef<jobject>& caller) { | 158 const JavaParamRef<jobject>& caller) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // TODO(scheib): Support filters crbug.com/490401 | 232 // TODO(scheib): Support filters crbug.com/490401 |
| 228 NOTIMPLEMENTED(); | 233 NOTIMPLEMENTED(); |
| 229 error_callback.Run(UMABluetoothDiscoverySessionOutcome::NOT_IMPLEMENTED); | 234 error_callback.Run(UMABluetoothDiscoverySessionOutcome::NOT_IMPLEMENTED); |
| 230 } | 235 } |
| 231 | 236 |
| 232 void BluetoothAdapterAndroid::RemovePairingDelegateInternal( | 237 void BluetoothAdapterAndroid::RemovePairingDelegateInternal( |
| 233 device::BluetoothDevice::PairingDelegate* pairing_delegate) { | 238 device::BluetoothDevice::PairingDelegate* pairing_delegate) { |
| 234 } | 239 } |
| 235 | 240 |
| 236 } // namespace device | 241 } // namespace device |
| OLD | NEW |