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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
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_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_array.h" 9 #include "base/android/jni_array.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/metrics/sparse_histogram.h" 11 #include "base/metrics/sparse_histogram.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "device/bluetooth/bluetooth_adapter_android.h" 13 #include "device/bluetooth/bluetooth_adapter_android.h"
14 #include "device/bluetooth/bluetooth_remote_gatt_service_android.h" 14 #include "device/bluetooth/bluetooth_remote_gatt_service_android.h"
15 #include "jni/ChromeBluetoothDevice_jni.h" 15 #include "jni/ChromeBluetoothDevice_jni.h"
16 16
17 using base::android::AttachCurrentThread; 17 using base::android::AttachCurrentThread;
18 using base::android::AppendJavaStringArrayToStringVector; 18 using base::android::AppendJavaStringArrayToStringVector;
19 using base::android::JavaParamRef;
19 20
20 namespace device { 21 namespace device {
21 namespace { 22 namespace {
22 void RecordConnectionSuccessResult(int32_t status) { 23 void RecordConnectionSuccessResult(int32_t status) {
23 UMA_HISTOGRAM_SPARSE_SLOWLY("Bluetooth.Android.GATTConnection.Success.Result", 24 UMA_HISTOGRAM_SPARSE_SLOWLY("Bluetooth.Android.GATTConnection.Success.Result",
24 status); 25 status);
25 } 26 }
26 void RecordConnectionFailureResult(int32_t status) { 27 void RecordConnectionFailureResult(int32_t status) {
27 UMA_HISTOGRAM_SPARSE_SLOWLY("Bluetooth.Android.GATTConnection.Failure.Result", 28 UMA_HISTOGRAM_SPARSE_SLOWLY("Bluetooth.Android.GATTConnection.Failure.Result",
28 status); 29 status);
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 AttachCurrentThread(), j_device_.obj(), 294 AttachCurrentThread(), j_device_.obj(),
294 base::android::GetApplicationContext()); 295 base::android::GetApplicationContext());
295 } 296 }
296 297
297 void BluetoothDeviceAndroid::DisconnectGatt() { 298 void BluetoothDeviceAndroid::DisconnectGatt() {
298 Java_ChromeBluetoothDevice_disconnectGatt(AttachCurrentThread(), 299 Java_ChromeBluetoothDevice_disconnectGatt(AttachCurrentThread(),
299 j_device_.obj()); 300 j_device_.obj());
300 } 301 }
301 302
302 } // namespace device 303 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_android.cc ('k') | device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698