OSDN Git Service

GD-HCI: Implement snoop rotation and options parsing
authorJack He <siyuanh@google.com>
Wed, 12 Aug 2020 09:19:14 +0000 (02:19 -0700)
committerJack He <siyuanh@google.com>
Thu, 13 Aug 2020 08:40:44 +0000 (01:40 -0700)
commitf5dcbcb1e6c5bc862f47fd6a1e6122765aa67117
treeee6b8611ec867f04d7e5593a4eda6688654954a5
parent7c1fa32241f395ee11f800d08b09bce97bc02f1f
GD-HCI: Implement snoop rotation and options parsing

* Implement btsnoop log rotation that creates a new log
  after logging 0xFFFF (65535) packets
* Implement btsnoop log mode parsing from system properties

Bug: 163733538
Test: atest bluetooth_test_gd
Tag: #gd-refactor
Change-Id: I577339bc5a6cd9f814a00916cb85099bda7b06da
16 files changed:
gd/Android.bp
gd/hal/Android.bp
gd/hal/hci_hal_android_hidl.cc
gd/hal/hci_hal_host_rootcanal.cc
gd/hal/snoop_logger.cc
gd/hal/snoop_logger.h
gd/hal/snoop_logger_test.cc [new file with mode: 0644]
gd/os/android/parameter_provider.cc
gd/os/android/system_properties.cc
gd/os/android/system_properties_test.cc
gd/os/files.h
gd/os/host/parameter_provider.cc
gd/os/linux_generic/files.cc
gd/os/parameter_provider.h
gd/storage/legacy_config_file.cc
hci/src/btsnoop.cc