Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: device/bluetooth/bluetooth_adapter_android.cc

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: owners Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/bluetooth/bluetooth_adapter_android.h ('k') | device/bluetooth/bluetooth_adapter_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_android.h ('k') | device/bluetooth/bluetooth_adapter_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698