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

Commit 3b987a67 authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Merge changes I859edea0,Ib4679782,I428e06e6 am: c552bd3d

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1712795

Change-Id: I04a88bcef2f4fdc9a99c690af7742bb58b3bf82c
parents a6ba28be c552bd3d
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -140,6 +140,7 @@ cc_defaults {
                "android.hardware.bluetooth@1.0",
                "android.hardware.bluetooth@1.0",
                "android.hardware.bluetooth@1.1",
                "android.hardware.bluetooth@1.1",
                "android.system.suspend.control-V1-ndk",
                "android.system.suspend.control-V1-ndk",
                "android.system.suspend@1.0",
                "libbinder_ndk",
                "libbinder_ndk",
                "libcutils",
                "libcutils",
                "libhidlbase",
                "libhidlbase",
@@ -260,6 +261,7 @@ cc_binary {
                "android.hardware.bluetooth@1.0",
                "android.hardware.bluetooth@1.0",
                "android.hardware.bluetooth@1.1",
                "android.hardware.bluetooth@1.1",
                "android.system.suspend.control-V1-ndk",
                "android.system.suspend.control-V1-ndk",
                "android.system.suspend@1.0",
                "libbinder_ndk",
                "libbinder_ndk",
                "libhidlbase",
                "libhidlbase",
                "libutils",
                "libutils",
@@ -311,6 +313,7 @@ cc_test {
                "android.hardware.bluetooth@1.0",
                "android.hardware.bluetooth@1.0",
                "android.hardware.bluetooth@1.1",
                "android.hardware.bluetooth@1.1",
                "android.system.suspend.control-V1-ndk",
                "android.system.suspend.control-V1-ndk",
                "android.system.suspend@1.0",
                "libbinder_ndk",
                "libbinder_ndk",
                "libhidlbase",
                "libhidlbase",
                "libutils",
                "libutils",
@@ -392,6 +395,7 @@ cc_test {
                "android.hardware.bluetooth@1.0",
                "android.hardware.bluetooth@1.0",
                "android.hardware.bluetooth@1.1",
                "android.hardware.bluetooth@1.1",
                "android.system.suspend.control-V1-ndk",
                "android.system.suspend.control-V1-ndk",
                "android.system.suspend@1.0",
                "libbinder_ndk",
                "libbinder_ndk",
                "libhidlbase",
                "libhidlbase",
                "libutils",
                "libutils",
@@ -661,6 +665,7 @@ genrule {
        "hci/hci_acl_manager.fbs",
        "hci/hci_acl_manager.fbs",
        "l2cap/classic/l2cap_classic_module.fbs",
        "l2cap/classic/l2cap_classic_module.fbs",
        "shim/dumpsys.fbs",
        "shim/dumpsys.fbs",
        "os/wakelock_manager.fbs",
    ],
    ],
    out: [
    out: [
        "activity_attribution.bfbs",
        "activity_attribution.bfbs",
@@ -669,6 +674,7 @@ genrule {
        "dumpsys_data.bfbs",
        "dumpsys_data.bfbs",
        "hci_acl_manager.bfbs",
        "hci_acl_manager.bfbs",
        "l2cap_classic_module.bfbs",
        "l2cap_classic_module.bfbs",
        "wakelock_manager.bfbs",
    ],
    ],
}
}


@@ -685,6 +691,7 @@ genrule {
        "hci/hci_acl_manager.fbs",
        "hci/hci_acl_manager.fbs",
        "l2cap/classic/l2cap_classic_module.fbs",
        "l2cap/classic/l2cap_classic_module.fbs",
        "shim/dumpsys.fbs",
        "shim/dumpsys.fbs",
        "os/wakelock_manager.fbs",
    ],
    ],
    out: [
    out: [
        "activity_attribution_generated.h",
        "activity_attribution_generated.h",
@@ -693,6 +700,7 @@ genrule {
        "hci_acl_manager_generated.h",
        "hci_acl_manager_generated.h",
        "init_flags_generated.h",
        "init_flags_generated.h",
        "l2cap_classic_module_generated.h",
        "l2cap_classic_module_generated.h",
        "wakelock_manager_generated.h",
    ],
    ],
}
}


+2 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,7 @@ include "common/init_flags.fbs";
include "l2cap/classic/l2cap_classic_module.fbs";
include "l2cap/classic/l2cap_classic_module.fbs";
include "hci/hci_acl_manager.fbs";
include "hci/hci_acl_manager.fbs";
include "module_unittest.fbs";
include "module_unittest.fbs";
include "os/wakelock_manager.fbs";
include "shim/dumpsys.fbs";
include "shim/dumpsys.fbs";


namespace bluetooth;
namespace bluetooth;
@@ -13,6 +14,7 @@ attribute "privacy";
table DumpsysData {
table DumpsysData {
    title:string;
    title:string;
    init_flags:common.InitFlagsData (privacy:"Any");
    init_flags:common.InitFlagsData (privacy:"Any");
    wakelock_manager_data:bluetooth.os.WakelockManagerData (privacy:"Any");
    shim_dumpsys_data:bluetooth.shim.DumpsysModuleData (privacy:"Any");
    shim_dumpsys_data:bluetooth.shim.DumpsysModuleData (privacy:"Any");
    l2cap_classic_dumpsys_data:bluetooth.l2cap.classic.L2capClassicModuleData (privacy:"Any");
    l2cap_classic_dumpsys_data:bluetooth.l2cap.classic.L2capClassicModuleData (privacy:"Any");
    hci_acl_manager_dumpsys_data:bluetooth.hci.AclManagerData (privacy:"Any");
    hci_acl_manager_dumpsys_data:bluetooth.hci.AclManagerData (privacy:"Any");
+4 −0
Original line number Original line Diff line number Diff line
@@ -18,9 +18,11 @@
#include "module.h"
#include "module.h"
#include "common/init_flags.h"
#include "common/init_flags.h"
#include "dumpsys/init_flags.h"
#include "dumpsys/init_flags.h"
#include "os/wakelock_manager.h"


using ::bluetooth::os::Handler;
using ::bluetooth::os::Handler;
using ::bluetooth::os::Thread;
using ::bluetooth::os::Thread;
using ::bluetooth::os::WakelockManager;


namespace bluetooth {
namespace bluetooth {


@@ -139,6 +141,7 @@ void ModuleDumper::DumpState(std::string* output) const {
  auto title = builder.CreateString(title_);
  auto title = builder.CreateString(title_);


  auto init_flags_offset = dumpsys::InitFlags::Dump(&builder);
  auto init_flags_offset = dumpsys::InitFlags::Dump(&builder);
  auto wakelock_offset = WakelockManager::Get().GetDumpsysData(&builder);


  std::queue<DumpsysDataFinisher> queue;
  std::queue<DumpsysDataFinisher> queue;
  for (auto it = module_registry_.start_order_.rbegin(); it != module_registry_.start_order_.rend(); it++) {
  for (auto it = module_registry_.start_order_.rbegin(); it != module_registry_.start_order_.rend(); it++) {
@@ -150,6 +153,7 @@ void ModuleDumper::DumpState(std::string* output) const {
  DumpsysDataBuilder data_builder(builder);
  DumpsysDataBuilder data_builder(builder);
  data_builder.add_title(title);
  data_builder.add_title(title);
  data_builder.add_init_flags(init_flags_offset);
  data_builder.add_init_flags(init_flags_offset);
  data_builder.add_wakelock_manager_data(wakelock_offset);


  while (!queue.empty()) {
  while (!queue.empty()) {
    queue.front()(&data_builder);
    queue.front()(&data_builder);
+5 −0
Original line number Original line Diff line number Diff line
@@ -13,6 +13,7 @@ filegroup {
        "android/metrics.cc",
        "android/metrics.cc",
        "android/parameter_provider.cc",
        "android/parameter_provider.cc",
        "android/system_properties.cc",
        "android/system_properties.cc",
        "android/wakelock_native.cc",
    ],
    ],
}
}


@@ -20,6 +21,7 @@ filegroup {
    name: "BluetoothOsTestSources_android",
    name: "BluetoothOsTestSources_android",
    srcs: [
    srcs: [
        "android/system_properties_test.cc",
        "android/system_properties_test.cc",
        "android/wakelock_native_test.cc",
    ],
    ],
}
}


@@ -29,6 +31,7 @@ filegroup {
        "host/metrics.cc",
        "host/metrics.cc",
        "host/parameter_provider.cc",
        "host/parameter_provider.cc",
        "host/system_properties.cc",
        "host/system_properties.cc",
        "host/wakelock_native.cc",
    ],
    ],
}
}


@@ -50,6 +53,7 @@ filegroup {
        "linux_generic/repeating_alarm.cc",
        "linux_generic/repeating_alarm.cc",
        "linux_generic/reactive_semaphore.cc",
        "linux_generic/reactive_semaphore.cc",
        "linux_generic/thread.cc",
        "linux_generic/thread.cc",
        "linux_generic/wakelock_manager.cc",
    ],
    ],
}
}


@@ -63,6 +67,7 @@ filegroup {
        "linux_generic/reactor_unittest.cc",
        "linux_generic/reactor_unittest.cc",
        "linux_generic/repeating_alarm_unittest.cc",
        "linux_generic/repeating_alarm_unittest.cc",
        "linux_generic/thread_unittest.cc",
        "linux_generic/thread_unittest.cc",
        "linux_generic/wakelock_manager_unittest.cc",
    ],
    ],
}
}


+2 −0
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@ source_set("BluetoothOsSources_linux") {
    "linux/metrics.cc",
    "linux/metrics.cc",
    "linux/parameter_provider.cc",
    "linux/parameter_provider.cc",
    "linux/system_properties.cc",
    "linux/system_properties.cc",
    "linux/wakelock_native.cc",
  ]
  ]


  configs += [ "//bt/gd:gd_defaults" ]
  configs += [ "//bt/gd:gd_defaults" ]
@@ -32,6 +33,7 @@ source_set("BluetoothOsSources_linux_generic") {
    "linux_generic/reactor.cc",
    "linux_generic/reactor.cc",
    "linux_generic/repeating_alarm.cc",
    "linux_generic/repeating_alarm.cc",
    "linux_generic/thread.cc",
    "linux_generic/thread.cc",
    "linux_generic/wakelock_manager.cc",
  ]
  ]


  configs += [ "//bt/gd:gd_defaults" ]
  configs += [ "//bt/gd:gd_defaults" ]
Loading