Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50c0da0c authored by Henri Chataing's avatar Henri Chataing
Browse files

android/app/jni: clang-tidy fixes

Bug: 331817295
Test: m com.android.btservices
Test: WITH_TIDY_FLAGS=--fix m libbluetooth_jni-tidy
Flag: EXEMPT, no logical change
Change-Id: I0a2a6bf7918b1d2598537943ca46f4589c2b4608
parent 31dba778
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -16,14 +16,21 @@

#define LOG_TAG "BluetoothQualityReportJni"

#include <string.h>
#include <bluetooth/log.h>
#include <jni.h>
#include <nativehelper/scoped_local_ref.h>

#include <cstdint>
#include <cstring>
#include <mutex>
#include <shared_mutex>
#include <vector>

#include "com_android_bluetooth.h"
#include "hardware/bluetooth.h"
#include "hardware/bt_bqr.h"
#include "types/raw_address.h"

using bluetooth::bqr::BluetoothQualityReportCallbacks;
using bluetooth::bqr::BluetoothQualityReportInterface;

namespace android {
+11 −0
Original line number Diff line number Diff line
@@ -16,13 +16,24 @@

#define LOG_TAG "bluetooth-a2dp"

#include <bluetooth/log.h>
#include <jni.h>
#include <nativehelper/JNIHelp.h>
#include <nativehelper/scoped_local_ref.h>

#include <cerrno>
#include <cstdint>
#include <cstring>
#include <mutex>
#include <shared_mutex>
#include <vector>

#include "btif/include/btif_av.h"
#include "btif/include/btif_util.h"
#include "com_android_bluetooth.h"
#include "hardware/bluetooth.h"
#include "hardware/bt_av.h"
#include "types/raw_address.h"

namespace android {
static jmethodID method_onConnectionStateChanged;
+7 −0
Original line number Diff line number Diff line
@@ -17,14 +17,21 @@
#define LOG_TAG "BluetoothA2dpSinkServiceJni"

#include <bluetooth/log.h>
#include <jni.h>
#include <nativehelper/JNIHelp.h>
#include <nativehelper/scoped_local_ref.h>

#include <cerrno>
#include <cstdint>
#include <cstring>
#include <mutex>
#include <shared_mutex>

#include "btif/include/btif_av.h"
#include "com_android_bluetooth.h"
#include "hardware/bluetooth.h"
#include "hardware/bt_av.h"
#include "types/raw_address.h"

namespace android {
static jmethodID method_onConnectionStateChanged;
+11 −2
Original line number Diff line number Diff line
@@ -16,12 +16,21 @@

#define LOG_TAG "BluetoothAvrcpControllerJni"

#include <string.h>

#include <bluetooth/log.h>
#include <jni.h>
#include <nativehelper/JNIHelp.h>
#include <nativehelper/scoped_local_ref.h>

#include <cerrno>
#include <cstdint>
#include <cstring>
#include <mutex>
#include <shared_mutex>

#include "com_android_bluetooth.h"
#include "hardware/bluetooth.h"
#include "hardware/bt_rc.h"
#include "types/raw_address.h"

namespace android {
static jmethodID method_onConnectionStateChanged;
+12 −2
Original line number Diff line number Diff line
@@ -18,14 +18,24 @@

#include <base/functional/bind.h>
#include <base/functional/callback.h>
#include <include/hardware/avrcp/avrcp.h>
#include <bluetooth/log.h>
#include <jni.h>

#include <cerrno>
#include <cstdint>
#include <cstring>
#include <map>
#include <mutex>
#include <shared_mutex>
#include <string>
#include <utility>
#include <vector>

#include "./com_android_bluetooth.h"
#include "com_android_bluetooth.h"
#include "hardware/avrcp/avrcp.h"
#include "hardware/avrcp/avrcp_common.h"
#include "hardware/bluetooth.h"
#include "types/raw_address.h"

// TODO(b/369381361) Enfore -Wmissing-prototypes
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
Loading