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

Commit 9d81cb92 authored by Chris Manton's avatar Chris Manton
Browse files

Add le acceptlist size to dumpsys

Bug: 180781174
Test: cert
Tag: #refactor

Change-Id: I5473b335da078b21b8e9cebf06c21da150473dd2
parent 5dd39b83
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@
#include <memory>
#include <string>

#include "device/include/controller.h"
#include "gd/common/bidi_queue.h"
#include "gd/common/bind.h"
#include "gd/common/strings.h"
@@ -765,6 +766,8 @@ struct shim::legacy::Acl::impl {
    for (auto& entry : history) {
      LOG_DEBUG("%s", entry.c_str());
    }
    LOG_DEBUG("Shadow le accept list  size:%hhu",
              controller_get_interface()->get_ble_acceptlist_size());
    const auto acceptlist = shadow_acceptlist_.GetCopy();
    for (auto& entry : acceptlist) {
      LOG_DEBUG("acceptlist:%s", entry.ToString().c_str());
@@ -778,6 +781,8 @@ struct shim::legacy::Acl::impl {
    for (auto& entry : history) {
      LOG_DUMPSYS(fd, "%s", entry.c_str());
    }
    LOG_DUMPSYS(fd, "Shadow le accept list  size:%hhu",
                controller_get_interface()->get_ble_acceptlist_size());
    unsigned cnt = 0;
    auto acceptlist = shadow_acceptlist_.GetCopy();
    for (auto& entry : acceptlist) {