summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Henri Chataing <henrichataing@google.com> 2024-04-11 16:55:42 -0700
committer Henri Chataing <henrichataing@google.com> 2024-04-19 18:03:42 +0000
commit290353a4aff64d47427711773ce3fd01a99a6562 (patch)
tree5b5f61bb1ff2c51be858ab58ec379bc78f002647
parent04864c398f686ff2bdbed199c89a3d3291a5c5a4 (diff)
system: Remove include directives for <stdio.h>
Test: m com.android.btservices Bug: 305066880 Flag: EXEMPT, mechanical refactor Change-Id: I44e5106562fbbeb70a49c5640626e123ee7b568e
-rw-r--r--system/btif/co/bta_hh_co.cc1
-rw-r--r--system/btif/src/bluetooth.cc1
-rw-r--r--system/btif/src/btif_bqr.cc1
-rw-r--r--system/btif/src/btif_debug_conn.cc1
-rw-r--r--system/btif/src/btif_dm.cc1
-rw-r--r--system/btif/src/btif_gatt.cc1
-rw-r--r--system/btif/src/btif_gatt_server.cc1
-rw-r--r--system/btif/src/btif_gatt_test.cc1
-rw-r--r--system/btif/src/btif_gatt_util.cc5
-rw-r--r--system/btif/src/btif_sock_thread.cc1
-rw-r--r--system/btif/src/btif_sock_util.cc1
-rw-r--r--system/btif/src/btif_util.cc1
-rw-r--r--system/device/src/device_iot_config.cc1
-rw-r--r--system/device/src/device_iot_config_int.cc1
-rw-r--r--system/device/src/interop.cc1
-rw-r--r--system/embdrv/g722/g722_decode.cc1
-rw-r--r--system/embdrv/g722/g722_encode.cc1
-rw-r--r--system/embdrv/sbc/decoder/include/oi_codec_sbc_private.h1
-rw-r--r--system/embdrv/sbc/decoder/sbcdecoder_fuzzer.c2
-rw-r--r--system/embdrv/sbc/decoder/srce/decoder-private.c1
-rw-r--r--system/embdrv/sbc/decoder/srce/framing.c1
-rw-r--r--system/gd/dumpsys/bundler/bundler.cc1
-rw-r--r--system/gd/hal/snoop_logger_socket.cc1
-rw-r--r--system/gd/hal/snoop_logger_socket_thread.cc1
-rw-r--r--system/gd/packet/parser/test/variable.cc1
-rw-r--r--system/gd/security/ecc/p_256_ecc_pp.cc5
-rw-r--r--system/gd/stack_manager.cc1
-rw-r--r--system/main/shim/le_scanning_manager.cc1
-rw-r--r--system/main/shim/stack.cc1
-rw-r--r--system/osi/src/config.cc1
-rw-r--r--system/osi/src/osi.cc1
-rw-r--r--system/stack/a2dp/a2dp_aac_encoder.cc1
-rw-r--r--system/stack/a2dp/a2dp_aac_encoder_linux.cc1
-rw-r--r--system/stack/a2dp/a2dp_sbc_encoder.cc1
-rw-r--r--system/stack/a2dp/a2dp_vendor_aptx_encoder.cc1
-rw-r--r--system/stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc1
-rw-r--r--system/stack/a2dp/a2dp_vendor_ldac_decoder.cc1
-rw-r--r--system/stack/a2dp/a2dp_vendor_ldac_encoder.cc1
-rw-r--r--system/stack/a2dp/a2dp_vendor_opus_encoder.cc1
-rw-r--r--system/stack/bnep/bnep_utils.cc1
-rw-r--r--system/stack/btm/btm_inq.cc1
-rw-r--r--system/stack/gatt/gatt_db.cc1
-rw-r--r--system/stack/hid/hidd_api.cc1
-rw-r--r--system/stack/hid/hidh_api.cc1
-rw-r--r--system/stack/l2cap/l2c_fcr.cc1
-rw-r--r--system/stack/l2cap/l2c_utils.cc3
-rw-r--r--system/stack/test/a2dp/a2dp_aac_unittest.cc1
-rw-r--r--system/stack/test/a2dp/a2dp_opus_unittest.cc1
-rw-r--r--system/stack/test/a2dp/a2dp_sbc_unittest.cc1
-rw-r--r--system/stack/test/a2dp/a2dp_vendor_ldac_unittest.cc1
-rw-r--r--system/stack/test/gatt/gatt_sr_test.cc1
-rw-r--r--system/test/headless/get_options.cc1
-rw-r--r--system/test/headless/main.cc1
-rw-r--r--system/test/mock/mock_osi_config.h1
-rw-r--r--system/test/mock/mock_stack_btm_dev.cc1
-rw-r--r--system/test/mock/mock_stack_btm_inq.h1
-rw-r--r--system/test/mock/mock_stack_gatt_api.h1
-rw-r--r--system/test/mock/mock_stack_hidd_api.cc1
-rw-r--r--system/test/mock/mock_stack_sdp_db.cc2
-rw-r--r--system/test/suite/adapter/bluetooth_test.cc1
-rw-r--r--system/udrv/ulinux/uipc.cc1
61 files changed, 7 insertions, 66 deletions
diff --git a/system/btif/co/bta_hh_co.cc b/system/btif/co/bta_hh_co.cc
index 375f34f8d4..f2f557ad01 100644
--- a/system/btif/co/bta_hh_co.cc
+++ b/system/btif/co/bta_hh_co.cc
@@ -24,7 +24,6 @@
#include <poll.h>
#include <pthread.h>
#include <stdint.h>
-#include <stdio.h>
#include <string.h>
#include <unistd.h>
diff --git a/system/btif/src/bluetooth.cc b/system/btif/src/bluetooth.cc
index 39553d9caf..5e73e1bacc 100644
--- a/system/btif/src/bluetooth.cc
+++ b/system/btif/src/bluetooth.cc
@@ -45,7 +45,6 @@
#include <hardware/bt_sdp.h>
#include <hardware/bt_sock.h>
#include <hardware/bt_vc.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/system/btif/src/btif_bqr.cc b/system/btif/src/btif_bqr.cc
index 42f5b8fe60..c474d4f641 100644
--- a/system/btif/src/btif_bqr.cc
+++ b/system/btif/src/btif_bqr.cc
@@ -19,7 +19,6 @@
#include <statslog_bt.h>
#endif
#include <bluetooth/log.h>
-#include <stdio.h>
#include <sys/stat.h>
#include <cerrno>
diff --git a/system/btif/src/btif_debug_conn.cc b/system/btif/src/btif_debug_conn.cc
index fdddb7265a..c73d7cccd8 100644
--- a/system/btif/src/btif_debug_conn.cc
+++ b/system/btif/src/btif_debug_conn.cc
@@ -18,7 +18,6 @@
#include "btif/include/btif_debug_conn.h"
-#include <stdio.h>
#include <time.h>
#include "common/time_util.h"
diff --git a/system/btif/src/btif_dm.cc b/system/btif/src/btif_dm.cc
index ccb81393e5..216fc04ddd 100644
--- a/system/btif/src/btif_dm.cc
+++ b/system/btif/src/btif_dm.cc
@@ -41,7 +41,6 @@
#include <hardware/bt_le_audio.h>
#include <hardware/bt_vc.h>
#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
diff --git a/system/btif/src/btif_gatt.cc b/system/btif/src/btif_gatt.cc
index 1bd5767328..3e77e98737 100644
--- a/system/btif/src/btif_gatt.cc
+++ b/system/btif/src/btif_gatt.cc
@@ -30,7 +30,6 @@
#include <hardware/bluetooth.h>
#include <hardware/bt_gatt.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/system/btif/src/btif_gatt_server.cc b/system/btif/src/btif_gatt_server.cc
index f45a681585..43fdf6ed40 100644
--- a/system/btif/src/btif_gatt_server.cc
+++ b/system/btif/src/btif_gatt_server.cc
@@ -32,7 +32,6 @@
#include <hardware/bluetooth.h>
#include <hardware/bt_gatt.h>
#include <hardware/bt_gatt_types.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/system/btif/src/btif_gatt_test.cc b/system/btif/src/btif_gatt_test.cc
index e8ac0276c8..39cb28a73d 100644
--- a/system/btif/src/btif_gatt_test.cc
+++ b/system/btif/src/btif_gatt_test.cc
@@ -21,7 +21,6 @@
#include <bluetooth/log.h>
#include <hardware/bluetooth.h>
#include <hardware/bt_gatt.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/system/btif/src/btif_gatt_util.cc b/system/btif/src/btif_gatt_util.cc
index 00cc6da68d..2ea31d90cf 100644
--- a/system/btif/src/btif_gatt_util.cc
+++ b/system/btif/src/btif_gatt_util.cc
@@ -18,17 +18,16 @@
#define LOG_TAG "bt_btif_gatt"
-#include <algorithm>
-
#include "btif_gatt_util.h"
#include <bluetooth/log.h>
#include <hardware/bluetooth.h>
#include <hardware/bt_gatt.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <algorithm>
+
#include "bta/include/bta_api_data_types.h"
#include "bta/include/bta_sec_api.h"
#include "btif_storage.h"
diff --git a/system/btif/src/btif_sock_thread.cc b/system/btif/src/btif_sock_thread.cc
index 885287ed8f..59a4dff65a 100644
--- a/system/btif/src/btif_sock_thread.cc
+++ b/system/btif/src/btif_sock_thread.cc
@@ -34,7 +34,6 @@
#include <features.h>
#include <poll.h>
#include <pthread.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/select.h>
diff --git a/system/btif/src/btif_sock_util.cc b/system/btif/src/btif_sock_util.cc
index 536f824d9e..ccdf71d155 100644
--- a/system/btif/src/btif_sock_util.cc
+++ b/system/btif/src/btif_sock_util.cc
@@ -26,7 +26,6 @@
#include <hardware/bt_sock.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
diff --git a/system/btif/src/btif_util.cc b/system/btif/src/btif_util.cc
index a72231a0b5..67f576cafc 100644
--- a/system/btif/src/btif_util.cc
+++ b/system/btif/src/btif_util.cc
@@ -33,7 +33,6 @@
#include <ctype.h>
#include <hardware/bt_av.h>
#include <netinet/in.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string>
diff --git a/system/device/src/device_iot_config.cc b/system/device/src/device_iot_config.cc
index a4123c6acf..2311281c37 100644
--- a/system/device/src/device_iot_config.cc
+++ b/system/device/src/device_iot_config.cc
@@ -22,7 +22,6 @@
#include <bluetooth/log.h>
#include <ctype.h>
-#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
diff --git a/system/device/src/device_iot_config_int.cc b/system/device/src/device_iot_config_int.cc
index bf038a74d9..9217147c3e 100644
--- a/system/device/src/device_iot_config_int.cc
+++ b/system/device/src/device_iot_config_int.cc
@@ -21,7 +21,6 @@
#include "device_iot_config_int.h"
#include <bluetooth/log.h>
-#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
diff --git a/system/device/src/interop.cc b/system/device/src/interop.cc
index 47e4d8fcc2..fb8c31b97b 100644
--- a/system/device/src/interop.cc
+++ b/system/device/src/interop.cc
@@ -27,7 +27,6 @@
#include <fcntl.h>
#include <hardware/bluetooth.h>
#include <pthread.h>
-#include <stdio.h>
#include <string.h> // For memcmp
#include <sys/stat.h>
#include <unistd.h>
diff --git a/system/embdrv/g722/g722_decode.cc b/system/embdrv/g722/g722_decode.cc
index 4d812ac9a5..356e6db34b 100644
--- a/system/embdrv/g722/g722_decode.cc
+++ b/system/embdrv/g722/g722_decode.cc
@@ -23,7 +23,6 @@
/*! \file */
-#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <stdlib.h>
diff --git a/system/embdrv/g722/g722_encode.cc b/system/embdrv/g722/g722_encode.cc
index 817f5c00df..c68a4a19e3 100644
--- a/system/embdrv/g722/g722_encode.cc
+++ b/system/embdrv/g722/g722_encode.cc
@@ -25,7 +25,6 @@
/*! \file */
-#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/system/embdrv/sbc/decoder/include/oi_codec_sbc_private.h b/system/embdrv/sbc/decoder/include/oi_codec_sbc_private.h
index 7775670d11..7d4e5ec421 100644
--- a/system/embdrv/sbc/decoder/include/oi_codec_sbc_private.h
+++ b/system/embdrv/sbc/decoder/include/oi_codec_sbc_private.h
@@ -43,7 +43,6 @@ Function prototypes and macro definitions used internally by the codec.
#endif
#ifdef CODEC_DEBUG
-#include <stdio.h>
#define ERROR(x) \
do { \
printf x; \
diff --git a/system/embdrv/sbc/decoder/sbcdecoder_fuzzer.c b/system/embdrv/sbc/decoder/sbcdecoder_fuzzer.c
index 9b23ccc475..e63d93ac35 100644
--- a/system/embdrv/sbc/decoder/sbcdecoder_fuzzer.c
+++ b/system/embdrv/sbc/decoder/sbcdecoder_fuzzer.c
@@ -1,5 +1,5 @@
#include <stddef.h>
-#include <stdio.h>
+
#include "oi_codec_sbc.h"
#define CODEC_DATA_WORDS(numChannels, numBuffers) \
diff --git a/system/embdrv/sbc/decoder/srce/decoder-private.c b/system/embdrv/sbc/decoder/srce/decoder-private.c
index cba8e96dbc..47ddb72d0b 100644
--- a/system/embdrv/sbc/decoder/srce/decoder-private.c
+++ b/system/embdrv/sbc/decoder/srce/decoder-private.c
@@ -34,7 +34,6 @@ This file drives SBC decoding.
@{
*/
-#include <stdio.h>
#include "oi_bitstream.h"
#include "oi_codec_sbc_private.h"
diff --git a/system/embdrv/sbc/decoder/srce/framing.c b/system/embdrv/sbc/decoder/srce/framing.c
index 7c1c08775e..d581bdb6ef 100644
--- a/system/embdrv/sbc/decoder/srce/framing.c
+++ b/system/embdrv/sbc/decoder/srce/framing.c
@@ -98,7 +98,6 @@ const OI_BYTE crc8_narrow[256] = {
#endif
#if defined(OI_DEBUG) || defined(PRINT_SAMPLES) || defined(PRINT_SCALEFACTORS)
-#include <stdio.h>
#endif
#ifdef USE_WIDE_CRC
diff --git a/system/gd/dumpsys/bundler/bundler.cc b/system/gd/dumpsys/bundler/bundler.cc
index f2e6559a37..1f688bb93d 100644
--- a/system/gd/dumpsys/bundler/bundler.cc
+++ b/system/gd/dumpsys/bundler/bundler.cc
@@ -16,7 +16,6 @@
#include "bundler.h"
#include <assert.h>
-#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/system/gd/hal/snoop_logger_socket.cc b/system/gd/hal/snoop_logger_socket.cc
index c3a912ebaa..3005713bf5 100644
--- a/system/gd/hal/snoop_logger_socket.cc
+++ b/system/gd/hal/snoop_logger_socket.cc
@@ -24,7 +24,6 @@
#include <netinet/in.h>
#include <pthread.h>
#include <stdbool.h>
-#include <stdio.h>
#include <string.h>
#include <sys/prctl.h>
#include <sys/socket.h>
diff --git a/system/gd/hal/snoop_logger_socket_thread.cc b/system/gd/hal/snoop_logger_socket_thread.cc
index 472397589e..3ea45bbaa3 100644
--- a/system/gd/hal/snoop_logger_socket_thread.cc
+++ b/system/gd/hal/snoop_logger_socket_thread.cc
@@ -24,7 +24,6 @@
#include <netinet/in.h>
#include <pthread.h>
#include <stdbool.h>
-#include <stdio.h>
#include <string.h>
#include <sys/prctl.h>
#include <sys/socket.h>
diff --git a/system/gd/packet/parser/test/variable.cc b/system/gd/packet/parser/test/variable.cc
index 23443bf22b..aba8aae74c 100644
--- a/system/gd/packet/parser/test/variable.cc
+++ b/system/gd/packet/parser/test/variable.cc
@@ -18,7 +18,6 @@
#include "variable.h"
-#include <stdio.h>
#include <sstream>
namespace bluetooth {
diff --git a/system/gd/security/ecc/p_256_ecc_pp.cc b/system/gd/security/ecc/p_256_ecc_pp.cc
index ecb805c534..9a97551da2 100644
--- a/system/gd/security/ecc/p_256_ecc_pp.cc
+++ b/system/gd/security/ecc/p_256_ecc_pp.cc
@@ -23,9 +23,10 @@
*
******************************************************************************/
#include "security/ecc/p_256_ecc_pp.h"
-#include <stdio.h>
+
#include <stdlib.h>
#include <string.h>
+
#include "security/ecc/multprecision.h"
namespace bluetooth {
@@ -261,4 +262,4 @@ bool ECC_ValidatePoint(const Point& pt) {
} // namespace ecc
} // namespace security
-} // namespace bluetooth \ No newline at end of file
+} // namespace bluetooth
diff --git a/system/gd/stack_manager.cc b/system/gd/stack_manager.cc
index 5d82a63ceb..764d07b843 100644
--- a/system/gd/stack_manager.cc
+++ b/system/gd/stack_manager.cc
@@ -17,7 +17,6 @@
#include "stack_manager.h"
#include <bluetooth/log.h>
-#include <stdio.h>
#include <chrono>
#include <future>
diff --git a/system/main/shim/le_scanning_manager.cc b/system/main/shim/le_scanning_manager.cc
index c023c6f625..9b9a9455ae 100644
--- a/system/main/shim/le_scanning_manager.cc
+++ b/system/main/shim/le_scanning_manager.cc
@@ -22,7 +22,6 @@
#include <base/threading/thread.h>
#include <bluetooth/log.h>
#include <hardware/bluetooth.h>
-#include <stdio.h>
#include "btif/include/btif_common.h"
#include "hci/address.h"
diff --git a/system/main/shim/stack.cc b/system/main/shim/stack.cc
index 008bf8bedc..69210377d7 100644
--- a/system/main/shim/stack.cc
+++ b/system/main/shim/stack.cc
@@ -20,7 +20,6 @@
#include <bluetooth/log.h>
#include <fcntl.h>
-#include <stdio.h>
#include <unistd.h>
#include <string>
diff --git a/system/osi/src/config.cc b/system/osi/src/config.cc
index 5cdc4bcde7..71b2b22bfa 100644
--- a/system/osi/src/config.cc
+++ b/system/osi/src/config.cc
@@ -23,7 +23,6 @@
#include <ctype.h>
#include <fcntl.h>
#include <libgen.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
diff --git a/system/osi/src/osi.cc b/system/osi/src/osi.cc
index 0fd3b0c0b7..be921a35f7 100644
--- a/system/osi/src/osi.cc
+++ b/system/osi/src/osi.cc
@@ -22,7 +22,6 @@
#include <bluetooth/log.h>
#include <fcntl.h>
-#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
diff --git a/system/stack/a2dp/a2dp_aac_encoder.cc b/system/stack/a2dp/a2dp_aac_encoder.cc
index 2021ed886c..355f250ad2 100644
--- a/system/stack/a2dp/a2dp_aac_encoder.cc
+++ b/system/stack/a2dp/a2dp_aac_encoder.cc
@@ -21,7 +21,6 @@
#include <aacenc_lib.h>
#include <bluetooth/log.h>
#include <inttypes.h>
-#include <stdio.h>
#include <string.h>
#include "a2dp_aac.h"
diff --git a/system/stack/a2dp/a2dp_aac_encoder_linux.cc b/system/stack/a2dp/a2dp_aac_encoder_linux.cc
index 2fd572e0de..b329d57c5d 100644
--- a/system/stack/a2dp/a2dp_aac_encoder_linux.cc
+++ b/system/stack/a2dp/a2dp_aac_encoder_linux.cc
@@ -18,7 +18,6 @@
#include <bluetooth/log.h>
#include <inttypes.h>
-#include <stdio.h>
#include <string.h>
#include <string>
diff --git a/system/stack/a2dp/a2dp_sbc_encoder.cc b/system/stack/a2dp/a2dp_sbc_encoder.cc
index fab6f23bd0..e80cdb950f 100644
--- a/system/stack/a2dp/a2dp_sbc_encoder.cc
+++ b/system/stack/a2dp/a2dp_sbc_encoder.cc
@@ -23,7 +23,6 @@
#include <bluetooth/log.h>
#include <limits.h>
-#include <stdio.h>
#include <string.h>
#include "a2dp_sbc.h"
diff --git a/system/stack/a2dp/a2dp_vendor_aptx_encoder.cc b/system/stack/a2dp/a2dp_vendor_aptx_encoder.cc
index f39b205a04..a204ed3018 100644
--- a/system/stack/a2dp/a2dp_vendor_aptx_encoder.cc
+++ b/system/stack/a2dp/a2dp_vendor_aptx_encoder.cc
@@ -21,7 +21,6 @@
#include <bluetooth/log.h>
#include <dlfcn.h>
#include <inttypes.h>
-#include <stdio.h>
#include <string.h>
#include "a2dp_vendor.h"
diff --git a/system/stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc b/system/stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc
index a399c2461f..66bcfaf25e 100644
--- a/system/stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc
+++ b/system/stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc
@@ -21,7 +21,6 @@
#include <bluetooth/log.h>
#include <dlfcn.h>
#include <inttypes.h>
-#include <stdio.h>
#include <string.h>
#include "a2dp_vendor.h"
diff --git a/system/stack/a2dp/a2dp_vendor_ldac_decoder.cc b/system/stack/a2dp/a2dp_vendor_ldac_decoder.cc
index 45e0b18c23..ab72832583 100644
--- a/system/stack/a2dp/a2dp_vendor_ldac_decoder.cc
+++ b/system/stack/a2dp/a2dp_vendor_ldac_decoder.cc
@@ -23,7 +23,6 @@
#include <ldacBT.h>
#include <ldacBT_bco_for_fluoride.h>
#include <pthread.h>
-#include <stdio.h>
#include <string.h>
#include "a2dp_vendor_ldac.h"
diff --git a/system/stack/a2dp/a2dp_vendor_ldac_encoder.cc b/system/stack/a2dp/a2dp_vendor_ldac_encoder.cc
index c4ef815e59..6a94926e23 100644
--- a/system/stack/a2dp/a2dp_vendor_ldac_encoder.cc
+++ b/system/stack/a2dp/a2dp_vendor_ldac_encoder.cc
@@ -26,7 +26,6 @@
#include <dlfcn.h>
#include <inttypes.h>
#include <ldacBT_abr.h>
-#include <stdio.h>
#include <string.h>
#include "a2dp_vendor_ldac.h"
diff --git a/system/stack/a2dp/a2dp_vendor_opus_encoder.cc b/system/stack/a2dp/a2dp_vendor_opus_encoder.cc
index 212cd7a592..b678617e67 100644
--- a/system/stack/a2dp/a2dp_vendor_opus_encoder.cc
+++ b/system/stack/a2dp/a2dp_vendor_opus_encoder.cc
@@ -21,7 +21,6 @@
#include <bluetooth/log.h>
#include <dlfcn.h>
#include <opus.h>
-#include <stdio.h>
#include <string.h>
#include "a2dp_vendor.h"
diff --git a/system/stack/bnep/bnep_utils.cc b/system/stack/bnep/bnep_utils.cc
index dcbb7c052c..9676a6071b 100644
--- a/system/stack/bnep/bnep_utils.cc
+++ b/system/stack/bnep/bnep_utils.cc
@@ -23,7 +23,6 @@
******************************************************************************/
#include <bluetooth/log.h>
-#include <stdio.h>
#include <string.h>
#include "bnep_int.h"
diff --git a/system/stack/btm/btm_inq.cc b/system/stack/btm/btm_inq.cc
index df6bead44c..b0619ced7c 100644
--- a/system/stack/btm/btm_inq.cc
+++ b/system/stack/btm/btm_inq.cc
@@ -28,7 +28,6 @@
#include <android_bluetooth_flags.h>
#include <bluetooth/log.h>
#include <stddef.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/system/stack/gatt/gatt_db.cc b/system/stack/gatt/gatt_db.cc
index df68362e11..19daa95848 100644
--- a/system/stack/gatt/gatt_db.cc
+++ b/system/stack/gatt/gatt_db.cc
@@ -23,7 +23,6 @@
******************************************************************************/
#include <bluetooth/log.h>
-#include <stdio.h>
#include <string.h>
#include "gatt_int.h"
diff --git a/system/stack/hid/hidd_api.cc b/system/stack/hid/hidd_api.cc
index 602f9a7153..3669a80466 100644
--- a/system/stack/hid/hidd_api.cc
+++ b/system/stack/hid/hidd_api.cc
@@ -29,7 +29,6 @@
#include <bluetooth/log.h>
#include <frameworks/proto_logging/stats/enums/bluetooth/enums.pb.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/system/stack/hid/hidh_api.cc b/system/stack/hid/hidh_api.cc
index 24f0f18078..b78dcc0a28 100644
--- a/system/stack/hid/hidh_api.cc
+++ b/system/stack/hid/hidh_api.cc
@@ -28,7 +28,6 @@
#include <bluetooth/log.h>
#include <frameworks/proto_logging/stats/enums/bluetooth/enums.pb.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/system/stack/l2cap/l2c_fcr.cc b/system/stack/l2cap/l2c_fcr.cc
index 00684daa6c..7780bf8e77 100644
--- a/system/stack/l2cap/l2c_fcr.cc
+++ b/system/stack/l2cap/l2c_fcr.cc
@@ -24,7 +24,6 @@
******************************************************************************/
#include <bluetooth/log.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/system/stack/l2cap/l2c_utils.cc b/system/stack/l2cap/l2c_utils.cc
index fbe7ba8c1e..1f633945ef 100644
--- a/system/stack/l2cap/l2c_utils.cc
+++ b/system/stack/l2cap/l2c_utils.cc
@@ -24,7 +24,6 @@
#define LOG_TAG "l2c_utils"
#include <bluetooth/log.h>
-#include <stdio.h>
#include <string.h>
#include "hal/snoop_logger.h"
@@ -3600,4 +3599,4 @@ uint16_t le_result_to_l2c_conn(uint16_t result) {
* Description API functions call this function to flush data.
*
******************************************************************************/
-void l2c_acl_flush(uint16_t handle) { btm_acl_flush(handle); } \ No newline at end of file
+void l2c_acl_flush(uint16_t handle) { btm_acl_flush(handle); }
diff --git a/system/stack/test/a2dp/a2dp_aac_unittest.cc b/system/stack/test/a2dp/a2dp_aac_unittest.cc
index 9323214ffc..2ae209b966 100644
--- a/system/stack/test/a2dp/a2dp_aac_unittest.cc
+++ b/system/stack/test/a2dp/a2dp_aac_unittest.cc
@@ -18,7 +18,6 @@
#include <bluetooth/log.h>
#include <gtest/gtest.h>
-#include <stdio.h>
#include <cstdint>
#include <string>
diff --git a/system/stack/test/a2dp/a2dp_opus_unittest.cc b/system/stack/test/a2dp/a2dp_opus_unittest.cc
index 6ca8a45689..e9feb0efd6 100644
--- a/system/stack/test/a2dp/a2dp_opus_unittest.cc
+++ b/system/stack/test/a2dp/a2dp_opus_unittest.cc
@@ -15,7 +15,6 @@
*/
#include <gtest/gtest.h>
-#include <stdio.h>
#include <chrono>
#include <cstdint>
diff --git a/system/stack/test/a2dp/a2dp_sbc_unittest.cc b/system/stack/test/a2dp/a2dp_sbc_unittest.cc
index cdd513b76a..9aacf700b0 100644
--- a/system/stack/test/a2dp/a2dp_sbc_unittest.cc
+++ b/system/stack/test/a2dp/a2dp_sbc_unittest.cc
@@ -17,7 +17,6 @@
#include "stack/include/a2dp_sbc.h"
#include <gtest/gtest.h>
-#include <stdio.h>
#include <chrono>
#include <cstdint>
diff --git a/system/stack/test/a2dp/a2dp_vendor_ldac_unittest.cc b/system/stack/test/a2dp/a2dp_vendor_ldac_unittest.cc
index 96a6461d0f..ea8575df35 100644
--- a/system/stack/test/a2dp/a2dp_vendor_ldac_unittest.cc
+++ b/system/stack/test/a2dp/a2dp_vendor_ldac_unittest.cc
@@ -17,7 +17,6 @@
#include "stack/include/a2dp_vendor_ldac.h"
#include <gtest/gtest.h>
-#include <stdio.h>
#include "common/init_flags.h"
#include "common/time_util.h"
diff --git a/system/stack/test/gatt/gatt_sr_test.cc b/system/stack/test/gatt/gatt_sr_test.cc
index 8772bc745d..5ec359780f 100644
--- a/system/stack/test/gatt/gatt_sr_test.cc
+++ b/system/stack/test/gatt/gatt_sr_test.cc
@@ -15,7 +15,6 @@
*/
#include <gtest/gtest.h>
-#include <stdio.h>
#include <cstdint>
diff --git a/system/test/headless/get_options.cc b/system/test/headless/get_options.cc
index b11944f6b0..79817e1dfe 100644
--- a/system/test/headless/get_options.cc
+++ b/system/test/headless/get_options.cc
@@ -17,7 +17,6 @@
#include "test/headless/get_options.h"
#include <getopt.h>
-#include <stdio.h>
#include <unistd.h>
#include <list>
diff --git a/system/test/headless/main.cc b/system/test/headless/main.cc
index 6cba5ac02b..658a60ed32 100644
--- a/system/test/headless/main.cc
+++ b/system/test/headless/main.cc
@@ -18,7 +18,6 @@
#include <bluetooth/log.h>
#include <fcntl.h>
-#include <stdio.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <unistd.h>
diff --git a/system/test/mock/mock_osi_config.h b/system/test/mock/mock_osi_config.h
index 672dc1c49f..5b3cd4355b 100644
--- a/system/test/mock/mock_osi_config.h
+++ b/system/test/mock/mock_osi_config.h
@@ -29,7 +29,6 @@
#include <base/files/file_util.h>
#include <fcntl.h>
#include <libgen.h>
-#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
diff --git a/system/test/mock/mock_stack_btm_dev.cc b/system/test/mock/mock_stack_btm_dev.cc
index 2359382921..bab842520a 100644
--- a/system/test/mock/mock_stack_btm_dev.cc
+++ b/system/test/mock/mock_stack_btm_dev.cc
@@ -22,7 +22,6 @@
#include "test/mock/mock_stack_btm_dev.h"
#include <stddef.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string>
diff --git a/system/test/mock/mock_stack_btm_inq.h b/system/test/mock/mock_stack_btm_inq.h
index 139fc36823..205ab037da 100644
--- a/system/test/mock/mock_stack_btm_inq.h
+++ b/system/test/mock/mock_stack_btm_inq.h
@@ -28,7 +28,6 @@
// Original included files, if any
#include <stddef.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/system/test/mock/mock_stack_gatt_api.h b/system/test/mock/mock_stack_gatt_api.h
index ea487e1b60..d9c5afaa1a 100644
--- a/system/test/mock/mock_stack_gatt_api.h
+++ b/system/test/mock/mock_stack_gatt_api.h
@@ -29,7 +29,6 @@
// Original included files, if any
#include <base/strings/string_number_conversions.h>
-#include <stdio.h>
#include <string>
diff --git a/system/test/mock/mock_stack_hidd_api.cc b/system/test/mock/mock_stack_hidd_api.cc
index 581f952902..afff3e5515 100644
--- a/system/test/mock/mock_stack_hidd_api.cc
+++ b/system/test/mock/mock_stack_hidd_api.cc
@@ -19,7 +19,6 @@
* Functions generated:16
*/
-#include <stdio.h>
#include <stdlib.h>
#include "stack/include/hidd_api.h"
diff --git a/system/test/mock/mock_stack_sdp_db.cc b/system/test/mock/mock_stack_sdp_db.cc
index f009c982f5..76b68c2cf9 100644
--- a/system/test/mock/mock_stack_sdp_db.cc
+++ b/system/test/mock/mock_stack_sdp_db.cc
@@ -19,8 +19,6 @@
* Functions generated:14
*/
-#include <stdio.h>
-
#include "stack/sdp/sdpint.h"
#include "test/common/mock_functions.h"
diff --git a/system/test/suite/adapter/bluetooth_test.cc b/system/test/suite/adapter/bluetooth_test.cc
index 1f003bbf3f..126ca290a0 100644
--- a/system/test/suite/adapter/bluetooth_test.cc
+++ b/system/test/suite/adapter/bluetooth_test.cc
@@ -19,7 +19,6 @@
#include "adapter/bluetooth_test.h"
#include <binder/ProcessState.h>
-#include <stdio.h>
#include <mutex>
diff --git a/system/udrv/ulinux/uipc.cc b/system/udrv/ulinux/uipc.cc
index 7de87c992f..126139d487 100644
--- a/system/udrv/ulinux/uipc.cc
+++ b/system/udrv/ulinux/uipc.cc
@@ -31,7 +31,6 @@
#include <bluetooth/log.h>
#include <fcntl.h>
#include <poll.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>