diff options
author | 2024-11-06 19:48:43 -0800 | |
---|---|---|
committer | 2024-11-07 11:27:23 -0800 | |
commit | df850d2a664e71d27f88d545e41f5432cb96bf39 (patch) | |
tree | 22f87f44d067a47cdedbb7099fcad1406eab881d | |
parent | a0f0f3034546e8ee4ee5cc313dbb8147f6e97553 (diff) |
cpplint: fix and enable whitespace/ending_newline
Bug: 364967694
Test: m .
Flag: Exempt refactor
Change-Id: Ie7050f0c432d1d82f68cb1c6fdde0af8d72700a6
96 files changed, 95 insertions, 97 deletions
diff --git a/CPPLINT.cfg b/CPPLINT.cfg index cc062661c7..23248637ae 100644 --- a/CPPLINT.cfg +++ b/CPPLINT.cfg @@ -9,8 +9,6 @@ filter=-whitespace/newline # TODO: b/364967694 re-enable the warning filter=-whitespace/blank_line # TODO: b/364967694 re-enable the warning -filter=-whitespace/ending_newline -# TODO: b/364967694 re-enable the warning filter=-readability/check # TODO: b/364967694 re-enable the warning filter=-runtime/int @@ -9,7 +9,7 @@ okamil@google.com #{LAST_RESORT_SUGGESTION} # Per-file ownership # Build files / test_config / presubmit / preupload / linter file -per-file PREUPLOAD.cfg,TEST_MAPPING,*.bp,*.xml,.clang-tidy,pyrightconfig.json=file:/OWNERS_build +per-file *.cfg,.cfg,TEST_MAPPING,*.bp,*.xml,.clang-tidy,pyrightconfig.json=file:/OWNERS_build # ChromeOS team owns Linux build files # - build.py is used for Linux build diff --git a/system/audio_bluetooth_hw/device_port_proxy_hidl.h b/system/audio_bluetooth_hw/device_port_proxy_hidl.h index 640ff95fb1..edc3e2a3ed 100644 --- a/system/audio_bluetooth_hw/device_port_proxy_hidl.h +++ b/system/audio_bluetooth_hw/device_port_proxy_hidl.h @@ -115,4 +115,4 @@ public: } // namespace hidl } // namespace audio } // namespace bluetooth -} // namespace android
\ No newline at end of file +} // namespace android diff --git a/system/bta/le_audio/broadcaster/broadcast_configuration_provider.cc b/system/bta/le_audio/broadcaster/broadcast_configuration_provider.cc index 3f6c2ae600..03e0e4ad4f 100644 --- a/system/bta/le_audio/broadcaster/broadcast_configuration_provider.cc +++ b/system/bta/le_audio/broadcaster/broadcast_configuration_provider.cc @@ -76,4 +76,4 @@ BroadcastConfiguration GetBroadcastConfig( return lc3_mono_16_2_2; } } // namespace broadcaster -} // namespace bluetooth::le_audio
\ No newline at end of file +} // namespace bluetooth::le_audio diff --git a/system/bta/le_audio/le_audio_log_history.h b/system/bta/le_audio/le_audio_log_history.h index 5fa17350e2..1e85affc0a 100644 --- a/system/bta/le_audio/le_audio_log_history.h +++ b/system/bta/le_audio/le_audio_log_history.h @@ -75,4 +75,4 @@ public: const std::string& msg) = 0; virtual void AddLogHistory(const std::string& tag, int group_id, const RawAddress& addr, const std::string& msg, const std::string& extra) = 0; -};
\ No newline at end of file +}; diff --git a/system/bta/le_audio/storage_helper.h b/system/bta/le_audio/storage_helper.h index 0f196024f7..85418457c9 100644 --- a/system/bta/le_audio/storage_helper.h +++ b/system/bta/le_audio/storage_helper.h @@ -31,4 +31,4 @@ bool SerializeAses(const LeAudioDevice* leAudioDevice, std::vector<uint8_t>& out bool DeserializeAses(LeAudioDevice* leAudioDevice, const std::vector<uint8_t>& in); bool SerializeHandles(const LeAudioDevice* leAudioDevice, std::vector<uint8_t>& out); bool DeserializeHandles(LeAudioDevice* leAudioDevice, const std::vector<uint8_t>& in); -} // namespace bluetooth::le_audio
\ No newline at end of file +} // namespace bluetooth::le_audio diff --git a/system/btif/include/btif_keystore.h b/system/btif/include/btif_keystore.h index 460f3b8a4a..83133a6eb8 100644 --- a/system/btif/include/btif_keystore.h +++ b/system/btif/include/btif_keystore.h @@ -22,4 +22,4 @@ namespace bluetooth_keystore { BluetoothKeystoreInterface* getBluetoothKeystoreInterface(); } // namespace bluetooth_keystore -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/btif/include/btif_metrics_logging.h b/system/btif/include/btif_metrics_logging.h index 00e3a33772..d68eddce5e 100644 --- a/system/btif/include/btif_metrics_logging.h +++ b/system/btif/include/btif_metrics_logging.h @@ -66,4 +66,4 @@ int save_metric_id_from_metric_id_allocator(const RawAddress&); void forget_device_from_metric_id_allocator(const RawAddress&); -bool is_valid_id_from_metric_id_allocator(const int id);
\ No newline at end of file +bool is_valid_id_from_metric_id_allocator(const int id); diff --git a/system/common/address_obfuscator.h b/system/common/address_obfuscator.h index 3caff715ca..4f60b4c6b9 100644 --- a/system/common/address_obfuscator.h +++ b/system/common/address_obfuscator.h @@ -73,4 +73,4 @@ private: }; } // namespace common -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/common/id_generator.h b/system/common/id_generator.h index e404ff4585..7c6425aeef 100644 --- a/system/common/id_generator.h +++ b/system/common/id_generator.h @@ -45,4 +45,4 @@ private: }; template <std::size_t N> -int IdGenerator<N>::ALL_USED = -1;
\ No newline at end of file +int IdGenerator<N>::ALL_USED = -1; diff --git a/system/common/id_generator_unittest.cc b/system/common/id_generator_unittest.cc index d56ee1971f..7b090cf365 100644 --- a/system/common/id_generator_unittest.cc +++ b/system/common/id_generator_unittest.cc @@ -34,4 +34,4 @@ TEST(IdGeneratorTest, sanity_test) { generator.Release(2); ASSERT_EQ(0, generator.GetNext()); ASSERT_EQ(2, generator.GetNext()); -}
\ No newline at end of file +} diff --git a/system/device/include/device_iot_conf_defs.h b/system/device/include/device_iot_conf_defs.h index 4132deab54..09c576d9ae 100644 --- a/system/device/include/device_iot_conf_defs.h +++ b/system/device/include/device_iot_conf_defs.h @@ -104,4 +104,4 @@ #define IOT_CONF_BYTE_NUM_1 1 #define IOT_CONF_BYTE_NUM_2 2 #define IOT_CONF_BYTE_NUM_3 3 -#define IOT_CONF_BYTE_NUM_4 4
\ No newline at end of file +#define IOT_CONF_BYTE_NUM_4 4 diff --git a/system/device/include/interop_database.h b/system/device/include/interop_database.h index b6c0ae1994..8e7196f0fc 100644 --- a/system/device/include/interop_database.h +++ b/system/device/include/interop_database.h @@ -48,4 +48,4 @@ typedef struct { uint16_t vendor_id; uint16_t product_id; interop_feature_t feature; -} interop_hid_multitouch_t;
\ No newline at end of file +} interop_hid_multitouch_t; diff --git a/system/embdrv/encoder_for_aptx/src/CBStruct.h b/system/embdrv/encoder_for_aptx/src/CBStruct.h index eb968d6650..7be8943979 100644 --- a/system/embdrv/encoder_for_aptx/src/CBStruct.h +++ b/system/embdrv/encoder_for_aptx/src/CBStruct.h @@ -37,4 +37,4 @@ typedef struct circularBuffer_t { #ifdef _GCC #pragma GCC visibility pop #endif -#endif // CBSTRUCT_H
\ No newline at end of file +#endif // CBSTRUCT_H diff --git a/system/gd/common/audit_log.h b/system/gd/common/audit_log.h index 7ce403e931..b129bc7411 100644 --- a/system/gd/common/audit_log.h +++ b/system/gd/common/audit_log.h @@ -25,4 +25,4 @@ void LogConnectionAdminAuditEvent(const char* action, const hci::Address& addres hci::ErrorCode status); } // namespace common -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/common/byte_array.h b/system/gd/common/byte_array.h index 29c58d8d8d..b7183c4d2d 100644 --- a/system/gd/common/byte_array.h +++ b/system/gd/common/byte_array.h @@ -74,4 +74,4 @@ public: }; } // namespace common -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/common/list_map.h b/system/gd/common/list_map.h index 802602bde7..1b63302806 100644 --- a/system/gd/common/list_map.h +++ b/system/gd/common/list_map.h @@ -200,4 +200,4 @@ private: }; } // namespace common -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/common/numbers.h b/system/gd/common/numbers.h index 826615a71f..e31bebbee3 100644 --- a/system/gd/common/numbers.h +++ b/system/gd/common/numbers.h @@ -44,4 +44,4 @@ bool IsNumberInNumericLimits(InputType input) { } } // namespace common -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/common/numbers_test.cc b/system/gd/common/numbers_test.cc index ee1b92a87b..bf4159f934 100644 --- a/system/gd/common/numbers_test.cc +++ b/system/gd/common/numbers_test.cc @@ -34,4 +34,4 @@ TEST(NumbersTest, test_is_number_in_numeric_limits) { ASSERT_FALSE(IsNumberInNumericLimits<int8_t>(int32_t(-129))); } -} // namespace testing
\ No newline at end of file +} // namespace testing diff --git a/system/gd/common/type_helper.h b/system/gd/common/type_helper.h index 74991fbade..2f4a9d74fe 100644 --- a/system/gd/common/type_helper.h +++ b/system/gd/common/type_helper.h @@ -28,4 +28,4 @@ template <template <typename...> class TemplateType, typename... Args> struct is_specialization_of<TemplateType<Args...>, TemplateType> : std::true_type {}; } // namespace common -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/hci/enum_helper.h b/system/gd/hci/enum_helper.h index b9b307d726..43ac2f92a1 100644 --- a/system/gd/hci/enum_helper.h +++ b/system/gd/hci/enum_helper.h @@ -93,4 +93,4 @@ std::optional<hci::LegacyScanMode> FromLegacyConfigString(const std::string& str return static_cast<hci::LegacyScanMode>(*raw_value); } -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/hci/hci_metrics_logging.h b/system/gd/hci/hci_metrics_logging.h index ffa07fda50..4e1d9b72f4 100644 --- a/system/gd/hci/hci_metrics_logging.h +++ b/system/gd/hci/hci_metrics_logging.h @@ -44,4 +44,4 @@ void log_remote_device_information(const Address& address, uint32_t connection_handle, ErrorCode status, storage::StorageModule* storage_module); } // namespace hci -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/hci/link_key.cc b/system/gd/hci/link_key.cc index 2a9204f690..78ea1a48ea 100644 --- a/system/gd/hci/link_key.cc +++ b/system/gd/hci/link_key.cc @@ -22,4 +22,4 @@ namespace hci { const LinkKey kExampleLinkKey{{0x4C, 0x68, 0x38, 0x41, 0x39, 0xf5, 0x74, 0xd8, 0x36, 0xbc, 0xf3, 0x4e, 0x9d, 0xfb, 0x01, 0xbf}}; } -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/hci/link_key.h b/system/gd/hci/link_key.h index ed873e6e77..fc55c0cacc 100644 --- a/system/gd/hci/link_key.h +++ b/system/gd/hci/link_key.h @@ -27,4 +27,4 @@ using LinkKey = common::ByteArray<16>; extern const LinkKey kExampleLinkKey; } // namespace hci -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/hci/remote_name_request.h b/system/gd/hci/remote_name_request.h index d8018d2841..c8553c7c2f 100644 --- a/system/gd/hci/remote_name_request.h +++ b/system/gd/hci/remote_name_request.h @@ -73,4 +73,4 @@ public: }; } // namespace hci -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/metrics/chromeos/metrics_allowlist.cc b/system/gd/metrics/chromeos/metrics_allowlist.cc index 47cec3af45..1beb3c80a4 100644 --- a/system/gd/metrics/chromeos/metrics_allowlist.cc +++ b/system/gd/metrics/chromeos/metrics_allowlist.cc @@ -344,4 +344,4 @@ bool IsChipsetInfoInAllowList(int vendor_id, int product_id, int transport, } } // namespace metrics -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/metrics/chromeos/metrics_allowlist.h b/system/gd/metrics/chromeos/metrics_allowlist.h index 07e00a0509..6bd1530558 100644 --- a/system/gd/metrics/chromeos/metrics_allowlist.h +++ b/system/gd/metrics/chromeos/metrics_allowlist.h @@ -25,4 +25,4 @@ bool IsChipsetInfoInAllowList(int vendor_id, int product_id, int transport, const char* chipset_string, uint64_t* hval); } // namespace metrics -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/metrics/counter_metrics.h b/system/gd/metrics/counter_metrics.h index 69dd5df043..a677041d16 100644 --- a/system/gd/metrics/counter_metrics.h +++ b/system/gd/metrics/counter_metrics.h @@ -45,4 +45,4 @@ private: }; } // namespace metrics -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/os/android/parameter_provider.cc b/system/gd/os/android/parameter_provider.cc index 5f137a0252..c8507ddf32 100644 --- a/system/gd/os/android/parameter_provider.cc +++ b/system/gd/os/android/parameter_provider.cc @@ -117,4 +117,4 @@ void ParameterProvider::SetCommonCriteriaConfigCompareResult(int result) { } } // namespace os -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/os/bt_keystore.h b/system/gd/os/bt_keystore.h index be0975009b..68005acdea 100644 --- a/system/gd/os/bt_keystore.h +++ b/system/gd/os/bt_keystore.h @@ -22,4 +22,4 @@ namespace bluetooth_keystore { BluetoothKeystoreInterface* getBluetoothKeystoreInterface(); } // namespace bluetooth_keystore -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/os/files.h b/system/gd/os/files.h index e10d792f62..34a9f2f5b9 100644 --- a/system/gd/os/files.h +++ b/system/gd/os/files.h @@ -53,4 +53,4 @@ std::optional<std::chrono::time_point<std::chrono::system_clock, std::chrono::na FileCreatedTime(const std::string& path); } // namespace os -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/os/host/system_properties.cc b/system/gd/os/host/system_properties.cc index 7918aae2ce..5b28659612 100644 --- a/system/gd/os/host/system_properties.cc +++ b/system/gd/os/host/system_properties.cc @@ -54,4 +54,4 @@ bool IsRootCanalEnabled() { return false; } int GetAndroidVendorReleaseVersion() { return 0; } } // namespace os -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/os/linux_generic/files_test.cc b/system/gd/os/linux_generic/files_test.cc index ee58ae5c47..5d85d76fba 100644 --- a/system/gd/os/linux_generic/files_test.cc +++ b/system/gd/os/linux_generic/files_test.cc @@ -84,4 +84,4 @@ TEST(FilesTest, write_read_empty_string_test) { TEST(FilesTest, read_non_existing_file_test) { EXPECT_FALSE(ReadSmallFile("/woof")); } -} // namespace testing
\ No newline at end of file +} // namespace testing diff --git a/system/gd/os/parameter_provider.h b/system/gd/os/parameter_provider.h index cdb9d3f9f1..df8a8ee900 100644 --- a/system/gd/os/parameter_provider.h +++ b/system/gd/os/parameter_provider.h @@ -59,4 +59,4 @@ public: }; } // namespace os -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/os/rand.h b/system/gd/os/rand.h index e2b0b649fd..04e29d30f4 100644 --- a/system/gd/os/rand.h +++ b/system/gd/os/rand.h @@ -41,4 +41,4 @@ inline uint32_t GenerateRandom() { } } // namespace os -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/os/system_properties_common_test.cc b/system/gd/os/system_properties_common_test.cc index ac276d7fad..1550e0ad19 100644 --- a/system/gd/os/system_properties_common_test.cc +++ b/system/gd/os/system_properties_common_test.cc @@ -60,4 +60,4 @@ TEST(SystemPropertiesTest, getUint32BaseHex) { ASSERT_EQ(bluetooth::os::GetSystemPropertyUint32Base(property, 1, 10), 0u); // if parsed as a dec } -} // namespace testing
\ No newline at end of file +} // namespace testing diff --git a/system/gd/packet/custom_field_fixed_size_interface.h b/system/gd/packet/custom_field_fixed_size_interface.h index 76cdcaf138..1bf1335d27 100644 --- a/system/gd/packet/custom_field_fixed_size_interface.h +++ b/system/gd/packet/custom_field_fixed_size_interface.h @@ -39,4 +39,4 @@ public: }; } // namespace packet -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/storage/classic_device.cc b/system/gd/storage/classic_device.cc index 0a204e5d5c..f2104a9c07 100644 --- a/system/gd/storage/classic_device.cc +++ b/system/gd/storage/classic_device.cc @@ -49,4 +49,4 @@ bool ClassicDevice::IsPaired() const { } } // namespace storage -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/storage/config_cache_helper_test.cc b/system/gd/storage/config_cache_helper_test.cc index 1627023d1c..e149c3777c 100644 --- a/system/gd/storage/config_cache_helper_test.cc +++ b/system/gd/storage/config_cache_helper_test.cc @@ -135,4 +135,4 @@ TEST(ConfigCacheHelperTest, set_get_bin_test) { ASSERT_THAT(ConfigCacheHelper(config).GetBin("A", "B"), Optional(ContainerEq(data2))); } -} // namespace testing
\ No newline at end of file +} // namespace testing diff --git a/system/gd/storage/le_device.cc b/system/gd/storage/le_device.cc index 4abf3c470c..3cbbb7839f 100644 --- a/system/gd/storage/le_device.cc +++ b/system/gd/storage/le_device.cc @@ -49,4 +49,4 @@ bool LeDevice::IsPaired() const { } } // namespace storage -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/storage/le_device.h b/system/gd/storage/le_device.h index 9d5dd0132b..835519929e 100644 --- a/system/gd/storage/le_device.h +++ b/system/gd/storage/le_device.h @@ -104,4 +104,4 @@ struct hash<bluetooth::storage::LeDevice> { return addr_hash ^ (pointer_hash_1 << 1) ^ (pointer_hash_2 << 2); } }; -} // namespace std
\ No newline at end of file +} // namespace std diff --git a/system/gd/storage/legacy_config_file.h b/system/gd/storage/legacy_config_file.h index 38375a03f3..2a5a8bf9b0 100644 --- a/system/gd/storage/legacy_config_file.h +++ b/system/gd/storage/legacy_config_file.h @@ -37,4 +37,4 @@ private: }; } // namespace storage -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/storage/legacy_config_file_test.cc b/system/gd/storage/legacy_config_file_test.cc index 6cec332d5c..b52891793f 100644 --- a/system/gd/storage/legacy_config_file_test.cc +++ b/system/gd/storage/legacy_config_file_test.cc @@ -188,4 +188,4 @@ TEST(LegacyConfigFileTest, duplicate_section_and_key_test) { EXPECT_TRUE(std::filesystem::remove(temp_config)); } -} // namespace testing
\ No newline at end of file +} // namespace testing diff --git a/system/gd/storage/mutation.cc b/system/gd/storage/mutation.cc index 559a0415d9..e091344f36 100644 --- a/system/gd/storage/mutation.cc +++ b/system/gd/storage/mutation.cc @@ -48,4 +48,4 @@ void Mutation::Commit() { } } // namespace storage -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/storage/mutation.h b/system/gd/storage/mutation.h index 493faddace..4f24e7725b 100644 --- a/system/gd/storage/mutation.h +++ b/system/gd/storage/mutation.h @@ -38,4 +38,4 @@ private: }; } // namespace storage -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/storage/mutation_entry.cc b/system/gd/storage/mutation_entry.cc index f1c930e576..5d610e70ef 100644 --- a/system/gd/storage/mutation_entry.cc +++ b/system/gd/storage/mutation_entry.cc @@ -47,4 +47,4 @@ MutationEntry::MutationEntry(EntryType entry_type_param, PropertyType property_t } } // namespace storage -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/storage/mutation_entry.h b/system/gd/storage/mutation_entry.h index 120b99ea20..cc1a3d09ed 100644 --- a/system/gd/storage/mutation_entry.h +++ b/system/gd/storage/mutation_entry.h @@ -117,4 +117,4 @@ private: }; } // namespace storage -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/gd/storage/mutation_test.cc b/system/gd/storage/mutation_test.cc index 9a0dada790..1a1a3e82ff 100644 --- a/system/gd/storage/mutation_test.cc +++ b/system/gd/storage/mutation_test.cc @@ -126,4 +126,4 @@ TEST(MutationTest, add_to_different_configs) { ASSERT_THAT(memory_only_config.GetProperty("A", "D"), Optional(StrEq("Hello"))); } -} // namespace testing
\ No newline at end of file +} // namespace testing diff --git a/system/gd/storage/serializable.h b/system/gd/storage/serializable.h index 263539d822..ef26d3a4f4 100644 --- a/system/gd/storage/serializable.h +++ b/system/gd/storage/serializable.h @@ -50,4 +50,4 @@ public: }; } // namespace storage -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/osi/include/properties.h b/system/osi/include/properties.h index c170c18331..975574e294 100644 --- a/system/osi/include/properties.h +++ b/system/osi/include/properties.h @@ -56,4 +56,4 @@ bool osi_property_get_bool(const char* key, bool default_value); // Helper function that returns the value of |key| coerced into a vector of // uint32_t. If the property is not set, then the |default_value| is used. std::vector<uint32_t> osi_property_get_uintlist(const char* key, - std::vector<uint32_t> default_value);
\ No newline at end of file + std::vector<uint32_t> default_value); diff --git a/system/packet/avrcp/avrcp_reject_packet.cc b/system/packet/avrcp/avrcp_reject_packet.cc index 91ea3cb3fe..cea6517560 100644 --- a/system/packet/avrcp/avrcp_reject_packet.cc +++ b/system/packet/avrcp/avrcp_reject_packet.cc @@ -43,4 +43,4 @@ bool RejectBuilder::Serialize(const std::shared_ptr<::bluetooth::Packet>& pkt) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/avrcp_reject_packet.h b/system/packet/avrcp/avrcp_reject_packet.h index b735edb686..c2b332c07f 100644 --- a/system/packet/avrcp/avrcp_reject_packet.h +++ b/system/packet/avrcp/avrcp_reject_packet.h @@ -38,4 +38,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/capabilities_packet.h b/system/packet/avrcp/capabilities_packet.h index 9ef34dbf0c..795569163c 100644 --- a/system/packet/avrcp/capabilities_packet.h +++ b/system/packet/avrcp/capabilities_packet.h @@ -130,4 +130,4 @@ public: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/change_path.h b/system/packet/avrcp/change_path.h index 8be60b0ea7..c343fa500b 100644 --- a/system/packet/avrcp/change_path.h +++ b/system/packet/avrcp/change_path.h @@ -92,4 +92,4 @@ private: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/get_current_player_application_setting_value.h b/system/packet/avrcp/get_current_player_application_setting_value.h index b00e1af2a1..9a9f6bd358 100644 --- a/system/packet/avrcp/get_current_player_application_setting_value.h +++ b/system/packet/avrcp/get_current_player_application_setting_value.h @@ -78,4 +78,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/get_folder_items.h b/system/packet/avrcp/get_folder_items.h index c13b8ab1cc..479c9d268b 100644 --- a/system/packet/avrcp/get_folder_items.h +++ b/system/packet/avrcp/get_folder_items.h @@ -124,4 +124,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/get_play_status_packet.h b/system/packet/avrcp/get_play_status_packet.h index b725bfecaa..3a22db08c2 100644 --- a/system/packet/avrcp/get_play_status_packet.h +++ b/system/packet/avrcp/get_play_status_packet.h @@ -75,4 +75,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/get_total_number_of_items.h b/system/packet/avrcp/get_total_number_of_items.h index 9f0a8810b4..a2db62adf6 100644 --- a/system/packet/avrcp/get_total_number_of_items.h +++ b/system/packet/avrcp/get_total_number_of_items.h @@ -68,4 +68,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/list_player_application_setting_attributes.h b/system/packet/avrcp/list_player_application_setting_attributes.h index 800e73cac5..127468e662 100644 --- a/system/packet/avrcp/list_player_application_setting_attributes.h +++ b/system/packet/avrcp/list_player_application_setting_attributes.h @@ -43,4 +43,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/list_player_application_setting_values.h b/system/packet/avrcp/list_player_application_setting_values.h index c1a2d4227b..d7d6b27d4a 100644 --- a/system/packet/avrcp/list_player_application_setting_values.h +++ b/system/packet/avrcp/list_player_application_setting_values.h @@ -73,4 +73,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/pass_through_packet.h b/system/packet/avrcp/pass_through_packet.h index 050ed91919..6e7301cf85 100644 --- a/system/packet/avrcp/pass_through_packet.h +++ b/system/packet/avrcp/pass_through_packet.h @@ -73,4 +73,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/play_item.h b/system/packet/avrcp/play_item.h index 32a2760575..6c46ebdf47 100644 --- a/system/packet/avrcp/play_item.h +++ b/system/packet/avrcp/play_item.h @@ -73,4 +73,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/register_notification_packet.h b/system/packet/avrcp/register_notification_packet.h index cc6ed1bc01..4d35d7cb0f 100644 --- a/system/packet/avrcp/register_notification_packet.h +++ b/system/packet/avrcp/register_notification_packet.h @@ -164,4 +164,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/set_absolute_volume.h b/system/packet/avrcp/set_absolute_volume.h index 17125938df..86e1394d12 100644 --- a/system/packet/avrcp/set_absolute_volume.h +++ b/system/packet/avrcp/set_absolute_volume.h @@ -75,4 +75,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/set_addressed_player.h b/system/packet/avrcp/set_addressed_player.h index b764f5660c..85b64c5ebf 100644 --- a/system/packet/avrcp/set_addressed_player.h +++ b/system/packet/avrcp/set_addressed_player.h @@ -69,4 +69,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/set_browsed_player.h b/system/packet/avrcp/set_browsed_player.h index 15ccc7bba3..42659caa1a 100644 --- a/system/packet/avrcp/set_browsed_player.h +++ b/system/packet/avrcp/set_browsed_player.h @@ -75,4 +75,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/set_player_application_setting_value.h b/system/packet/avrcp/set_player_application_setting_value.h index e60b5c45f7..1138527e52 100644 --- a/system/packet/avrcp/set_player_application_setting_value.h +++ b/system/packet/avrcp/set_player_application_setting_value.h @@ -73,4 +73,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/avrcp/vendor_packet.h b/system/packet/avrcp/vendor_packet.h index fb28df6136..14f63173b3 100644 --- a/system/packet/avrcp/vendor_packet.h +++ b/system/packet/avrcp/vendor_packet.h @@ -82,4 +82,4 @@ protected: }; } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/base/packet_builder.h b/system/packet/base/packet_builder.h index a7f996e278..37d4a5f59e 100644 --- a/system/packet/base/packet_builder.h +++ b/system/packet/base/packet_builder.h @@ -58,4 +58,4 @@ private: bool AddPayloadOctets(const std::shared_ptr<Packet>& pkt, size_t octets, uint64_t value); }; -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/include/avrcp_packet.h b/system/packet/include/avrcp_packet.h index 773d8fb214..8bddd94e97 100644 --- a/system/packet/include/avrcp_packet.h +++ b/system/packet/include/avrcp_packet.h @@ -34,4 +34,4 @@ #include "avrcp/set_absolute_volume.h" #include "avrcp/set_addressed_player.h" #include "avrcp/set_browsed_player.h" -#include "avrcp/vendor_packet.h"
\ No newline at end of file +#include "avrcp/vendor_packet.h" diff --git a/system/packet/include/packet.h b/system/packet/include/packet.h index 01368af70b..33c31b1710 100644 --- a/system/packet/include/packet.h +++ b/system/packet/include/packet.h @@ -18,4 +18,4 @@ #include "base/iterator.h" #include "base/packet.h" -#include "base/packet_builder.h"
\ No newline at end of file +#include "base/packet_builder.h" diff --git a/system/packet/tests/avrcp/avrcp_browse_packet_test.cc b/system/packet/tests/avrcp/avrcp_browse_packet_test.cc index d5a382514b..2a49eda443 100644 --- a/system/packet/tests/avrcp/avrcp_browse_packet_test.cc +++ b/system/packet/tests/avrcp/avrcp_browse_packet_test.cc @@ -114,4 +114,4 @@ TEST(AvrcpBrowsePacketTest, invalidTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/avrcp_packet_test.cc b/system/packet/tests/avrcp/avrcp_packet_test.cc index 222609a0df..5995d92697 100644 --- a/system/packet/tests/avrcp/avrcp_packet_test.cc +++ b/system/packet/tests/avrcp/avrcp_packet_test.cc @@ -112,4 +112,4 @@ TEST(AvrcpPacketTest, payloadBoundsTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/avrcp_reject_packet_test.cc b/system/packet/tests/avrcp/avrcp_reject_packet_test.cc index 1a98875651..0c6aa1ff1c 100644 --- a/system/packet/tests/avrcp/avrcp_reject_packet_test.cc +++ b/system/packet/tests/avrcp/avrcp_reject_packet_test.cc @@ -38,4 +38,4 @@ TEST(RejectPacketBuilderTest, buildPacketTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/change_path_packet_test.cc b/system/packet/tests/avrcp/change_path_packet_test.cc index 49281b7c31..ef6414db23 100644 --- a/system/packet/tests/avrcp/change_path_packet_test.cc +++ b/system/packet/tests/avrcp/change_path_packet_test.cc @@ -80,4 +80,4 @@ TEST(ChangePathRequestBuilder, builderTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/get_capabilities_packet_test.cc b/system/packet/tests/avrcp/get_capabilities_packet_test.cc index 114992d891..d448b4c587 100644 --- a/system/packet/tests/avrcp/get_capabilities_packet_test.cc +++ b/system/packet/tests/avrcp/get_capabilities_packet_test.cc @@ -128,4 +128,4 @@ TEST(GetCapabilityResponseBuilder, eventsSupportedBuilderTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/get_current_player_application_setting_value_test.cc b/system/packet/tests/avrcp/get_current_player_application_setting_value_test.cc index 8c9a775d0e..935ff9142e 100644 --- a/system/packet/tests/avrcp/get_current_player_application_setting_value_test.cc +++ b/system/packet/tests/avrcp/get_current_player_application_setting_value_test.cc @@ -70,4 +70,4 @@ TEST(GetCurrentPlayerApplicationSettingValueResponseBuilderTest, builderTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/get_folder_items_packet_test.cc b/system/packet/tests/avrcp/get_folder_items_packet_test.cc index 9ad3396a29..f4c37341f8 100644 --- a/system/packet/tests/avrcp/get_folder_items_packet_test.cc +++ b/system/packet/tests/avrcp/get_folder_items_packet_test.cc @@ -246,4 +246,4 @@ TEST(GetFolderItemsRequestBuilderTest, builderTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/get_play_status_packet_test.cc b/system/packet/tests/avrcp/get_play_status_packet_test.cc index 80c38f6bb9..43a238afc6 100644 --- a/system/packet/tests/avrcp/get_play_status_packet_test.cc +++ b/system/packet/tests/avrcp/get_play_status_packet_test.cc @@ -37,4 +37,4 @@ TEST(GetPlayStatusResponseBuilderTest, builderTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/get_total_number_of_items_packet_test.cc b/system/packet/tests/avrcp/get_total_number_of_items_packet_test.cc index 9982ec399c..feaf289f88 100644 --- a/system/packet/tests/avrcp/get_total_number_of_items_packet_test.cc +++ b/system/packet/tests/avrcp/get_total_number_of_items_packet_test.cc @@ -69,4 +69,4 @@ TEST(GetTotalNumberOfItemsRequestTest, invalidTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/list_player_application_setting_attributes_test.cc b/system/packet/tests/avrcp/list_player_application_setting_attributes_test.cc index 48269951ee..4c9ba0c54b 100644 --- a/system/packet/tests/avrcp/list_player_application_setting_attributes_test.cc +++ b/system/packet/tests/avrcp/list_player_application_setting_attributes_test.cc @@ -38,4 +38,4 @@ TEST(ListPlayerApplicationSettingAttributesResponseBuilderTest, builderTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/list_player_application_setting_values_test.cc b/system/packet/tests/avrcp/list_player_application_setting_values_test.cc index 54ed1d5012..a755d6066b 100644 --- a/system/packet/tests/avrcp/list_player_application_setting_values_test.cc +++ b/system/packet/tests/avrcp/list_player_application_setting_values_test.cc @@ -68,4 +68,4 @@ TEST(ListPlayerApplicationSettingValuesResponseBuilderTest, builderTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/pass_through_packet_test.cc b/system/packet/tests/avrcp/pass_through_packet_test.cc index 4587b35e29..e182197b66 100644 --- a/system/packet/tests/avrcp/pass_through_packet_test.cc +++ b/system/packet/tests/avrcp/pass_through_packet_test.cc @@ -70,4 +70,4 @@ TEST(PassThroughPacketTest, invalidTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/set_absolute_volume_packet_test.cc b/system/packet/tests/avrcp/set_absolute_volume_packet_test.cc index 8be462ecd7..8f14a81cbb 100644 --- a/system/packet/tests/avrcp/set_absolute_volume_packet_test.cc +++ b/system/packet/tests/avrcp/set_absolute_volume_packet_test.cc @@ -71,4 +71,4 @@ TEST(SetAbsoluteVolumeResponseTest, invalidTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/set_browsed_player_packet_test.cc b/system/packet/tests/avrcp/set_browsed_player_packet_test.cc index 3e3a8bbfcd..402d705d17 100644 --- a/system/packet/tests/avrcp/set_browsed_player_packet_test.cc +++ b/system/packet/tests/avrcp/set_browsed_player_packet_test.cc @@ -68,4 +68,4 @@ TEST(SetBrowsedPlayerRequestTest, invalidTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/set_player_application_setting_value_test.cc b/system/packet/tests/avrcp/set_player_application_setting_value_test.cc index 3fa8d650b2..10c7c29878 100644 --- a/system/packet/tests/avrcp/set_player_application_setting_value_test.cc +++ b/system/packet/tests/avrcp/set_player_application_setting_value_test.cc @@ -70,4 +70,4 @@ TEST(SetPlayerApplicationSettingValueResponseBuilderBuilderTest, builderTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/avrcp/vendor_packet_test.cc b/system/packet/tests/avrcp/vendor_packet_test.cc index c826f12992..021a21e9a7 100644 --- a/system/packet/tests/avrcp/vendor_packet_test.cc +++ b/system/packet/tests/avrcp/vendor_packet_test.cc @@ -134,4 +134,4 @@ TEST_F(VendorPacketTest, invalidTest) { } } // namespace avrcp -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/base/packet_builder_test.cc b/system/packet/tests/base/packet_builder_test.cc index f4c862e8d3..d0d554ae9b 100644 --- a/system/packet/tests/base/packet_builder_test.cc +++ b/system/packet/tests/base/packet_builder_test.cc @@ -69,4 +69,4 @@ TEST(PacketBuilderTest, addPayloadOctetsTest) { } } -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/packet/tests/base/packet_test.cc b/system/packet/tests/base/packet_test.cc index 09e172c4ed..48d82fb2c0 100644 --- a/system/packet/tests/base/packet_test.cc +++ b/system/packet/tests/base/packet_test.cc @@ -123,4 +123,4 @@ TEST(PacketTest, memoryFreeTest) { ASSERT_TRUE(data_ptr.expired()); } -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/stack/acl/acl.h b/system/stack/acl/acl.h index 1bcedb8085..f740409958 100644 --- a/system/stack/acl/acl.h +++ b/system/stack/acl/acl.h @@ -335,4 +335,4 @@ public: tACL_CONN* btm_acl_for_bda(const RawAddress& bd_addr, tBT_TRANSPORT transport); -void btm_acl_encrypt_change(uint16_t handle, uint8_t status, uint8_t encr_enable);
\ No newline at end of file +void btm_acl_encrypt_change(uint16_t handle, uint8_t status, uint8_t encr_enable); diff --git a/system/stack/include/btu_hcif.h b/system/stack/include/btu_hcif.h index 0053d9703d..fb94188c56 100644 --- a/system/stack/include/btu_hcif.h +++ b/system/stack/include/btu_hcif.h @@ -33,4 +33,4 @@ void btu_hcif_send_cmd_with_cb(const base::Location& posted_from, uint16_t opcod namespace bluetooth::legacy::testing { void btu_hcif_hdl_command_status(uint16_t opcode, uint8_t status, const uint8_t* p_cmd); void btu_hcif_process_event(uint8_t /* controller_id */, const BT_HDR* p_msg); -} // namespace bluetooth::legacy::testing
\ No newline at end of file +} // namespace bluetooth::legacy::testing diff --git a/system/stack/test/ad_parser_unittest.cc b/system/stack/test/ad_parser_unittest.cc index 2ef0ebf178..30f253b9c8 100644 --- a/system/stack/test/ad_parser_unittest.cc +++ b/system/stack/test/ad_parser_unittest.cc @@ -199,4 +199,4 @@ TEST(AdvertiseDataParserTest, GetFieldByTypeInLoop) { match_no++; } EXPECT_EQ(match_no, 3); -}
\ No newline at end of file +} diff --git a/system/stack/test/common/mock_btif_storage.h b/system/stack/test/common/mock_btif_storage.h index 3b20838756..cc7da1cf7d 100644 --- a/system/stack/test/common/mock_btif_storage.h +++ b/system/stack/test/common/mock_btif_storage.h @@ -42,4 +42,4 @@ public: void SetMockBtifStorageInterface(MockBtifStorageInterface* mock_btif_storage_interface); } // namespace manager -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth diff --git a/system/test/mock/mock_common_os_utils.h b/system/test/mock/mock_common_os_utils.h index 4c8d345b9f..ac620cdb58 100644 --- a/system/test/mock/mock_common_os_utils.h +++ b/system/test/mock/mock_common_os_utils.h @@ -50,4 +50,4 @@ extern struct is_bluetooth_uid is_bluetooth_uid; } // namespace mock } // namespace test -// END mockcify generation
\ No newline at end of file +// END mockcify generation diff --git a/system/test/mock/mock_osi_mutex.h b/system/test/mock/mock_osi_mutex.h index 45144253ec..fcee6fe42d 100644 --- a/system/test/mock/mock_osi_mutex.h +++ b/system/test/mock/mock_osi_mutex.h @@ -56,4 +56,4 @@ extern struct mutex_global_unlock mutex_global_unlock; } // namespace mock } // namespace test -// END mockcify generation
\ No newline at end of file +// END mockcify generation diff --git a/system/types/remote_version_type.h b/system/types/remote_version_type.h index 1585dabf34..307a9ef102 100644 --- a/system/types/remote_version_type.h +++ b/system/types/remote_version_type.h @@ -35,4 +35,4 @@ struct tREMOTE_VERSION_INFO { } }; -using remote_version_info = tREMOTE_VERSION_INFO;
\ No newline at end of file +using remote_version_info = tREMOTE_VERSION_INFO; |