Loading system/gd/Android.bp +6 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,7 @@ cc_binary { ":BluetoothFacade_l2cap_layer", ":BluetoothFacade_neighbor", ":BluetoothFacade_security_layer", ":BluetoothFacade_shim_layer", ], generated_headers: [ "BluetoothFacadeGeneratedStub_h", Loading Loading @@ -535,6 +536,7 @@ filegroup { "l2cap/classic/facade.proto", "l2cap/le/facade.proto", "security/facade.proto", "shim/facade/facade.proto", ], } Loading Loading @@ -577,6 +579,8 @@ genrule { "neighbor/facade/facade.pb.h", "security/facade.grpc.pb.h", "security/facade.pb.h", "shim/facade/facade.grpc.pb.h", "shim/facade/facade.pb.h", ], } Loading Loading @@ -619,6 +623,8 @@ genrule { "neighbor/facade/facade.pb.cc", "security/facade.grpc.pb.cc", "security/facade.pb.cc", "shim/facade/facade.grpc.pb.cc", "shim/facade/facade.pb.cc", ], } Loading system/gd/cert/all_cert_testcases +1 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,4 @@ DualL2capTest LeSecurityTest L2capPerformanceTest SecurityTest ShimTest system/gd/cert/gd_device.py +2 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ from l2cap.classic import facade_pb2_grpc as l2cap_facade_pb2_grpc from l2cap.le import facade_pb2_grpc as l2cap_le_facade_pb2_grpc from neighbor.facade import facade_pb2_grpc as neighbor_facade_pb2_grpc from security import facade_pb2_grpc as security_facade_pb2_grpc from shim.facade import facade_pb2_grpc as shim_facade_pb2_grpc MOBLY_CONTROLLER_CONFIG_NAME = "GdDevice" ACTS_CONTROLLER_REFERENCE_NAME = "gd_devices" Loading Loading @@ -241,6 +242,7 @@ class GdDeviceBase(ABC): self.grpc_channel) self.neighbor = neighbor_facade_pb2_grpc.NeighborFacadeStub(self.grpc_channel) self.security = security_facade_pb2_grpc.SecurityModuleFacadeStub(self.grpc_channel) self.shim = shim_facade_pb2_grpc.ShimFacadeStub(self.grpc_channel) def get_crash_snippet_and_log_tail(self): if is_subprocess_alive(self.backing_process): Loading system/gd/facade/grpc_root_server.cc +2 −11 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ #include "security/facade.h" #include "security/security_module.h" #include "shim/dumpsys.h" #include "shim/facade/facade.h" #include "shim/l2cap.h" #include "stack_manager.h" #include "storage/storage_module.h" Loading Loading @@ -113,18 +114,8 @@ class RootFacadeService : public ::bluetooth::facade::RootFacade::Service { modules.add<::bluetooth::hci::facade::LeScanningManagerFacadeModule>(); break; case BluetoothModule::SHIM: modules.add<::bluetooth::neighbor::ConnectabilityModule>(); modules.add<::bluetooth::neighbor::DiscoverabilityModule>(); modules.add<::bluetooth::neighbor::InquiryModule>(); modules.add<::bluetooth::neighbor::NameModule>(); modules.add<::bluetooth::shim::Dumpsys>(); modules.add<::bluetooth::shim::facade::ShimFacadeModule>(); modules.add<::bluetooth::shim::L2cap>(); modules.add<::bluetooth::neighbor::PageModule>(); modules.add<::bluetooth::hci::HciLayer>(); modules.add<::bluetooth::hci::LeAdvertisingManager>(); modules.add<::bluetooth::hci::LeScanningManager>(); modules.add<::bluetooth::security::SecurityModule>(); modules.add<::bluetooth::storage::StorageModule>(); break; default: return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "invalid module under test"); Loading system/gd/shim/Android.bp +6 −1 Original line number Diff line number Diff line Loading @@ -14,4 +14,9 @@ filegroup { ], } filegroup { name: "BluetoothFacade_shim_layer", srcs: [ "facade/facade.cc", ], } Loading
system/gd/Android.bp +6 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,7 @@ cc_binary { ":BluetoothFacade_l2cap_layer", ":BluetoothFacade_neighbor", ":BluetoothFacade_security_layer", ":BluetoothFacade_shim_layer", ], generated_headers: [ "BluetoothFacadeGeneratedStub_h", Loading Loading @@ -535,6 +536,7 @@ filegroup { "l2cap/classic/facade.proto", "l2cap/le/facade.proto", "security/facade.proto", "shim/facade/facade.proto", ], } Loading Loading @@ -577,6 +579,8 @@ genrule { "neighbor/facade/facade.pb.h", "security/facade.grpc.pb.h", "security/facade.pb.h", "shim/facade/facade.grpc.pb.h", "shim/facade/facade.pb.h", ], } Loading Loading @@ -619,6 +623,8 @@ genrule { "neighbor/facade/facade.pb.cc", "security/facade.grpc.pb.cc", "security/facade.pb.cc", "shim/facade/facade.grpc.pb.cc", "shim/facade/facade.pb.cc", ], } Loading
system/gd/cert/all_cert_testcases +1 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,4 @@ DualL2capTest LeSecurityTest L2capPerformanceTest SecurityTest ShimTest
system/gd/cert/gd_device.py +2 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ from l2cap.classic import facade_pb2_grpc as l2cap_facade_pb2_grpc from l2cap.le import facade_pb2_grpc as l2cap_le_facade_pb2_grpc from neighbor.facade import facade_pb2_grpc as neighbor_facade_pb2_grpc from security import facade_pb2_grpc as security_facade_pb2_grpc from shim.facade import facade_pb2_grpc as shim_facade_pb2_grpc MOBLY_CONTROLLER_CONFIG_NAME = "GdDevice" ACTS_CONTROLLER_REFERENCE_NAME = "gd_devices" Loading Loading @@ -241,6 +242,7 @@ class GdDeviceBase(ABC): self.grpc_channel) self.neighbor = neighbor_facade_pb2_grpc.NeighborFacadeStub(self.grpc_channel) self.security = security_facade_pb2_grpc.SecurityModuleFacadeStub(self.grpc_channel) self.shim = shim_facade_pb2_grpc.ShimFacadeStub(self.grpc_channel) def get_crash_snippet_and_log_tail(self): if is_subprocess_alive(self.backing_process): Loading
system/gd/facade/grpc_root_server.cc +2 −11 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ #include "security/facade.h" #include "security/security_module.h" #include "shim/dumpsys.h" #include "shim/facade/facade.h" #include "shim/l2cap.h" #include "stack_manager.h" #include "storage/storage_module.h" Loading Loading @@ -113,18 +114,8 @@ class RootFacadeService : public ::bluetooth::facade::RootFacade::Service { modules.add<::bluetooth::hci::facade::LeScanningManagerFacadeModule>(); break; case BluetoothModule::SHIM: modules.add<::bluetooth::neighbor::ConnectabilityModule>(); modules.add<::bluetooth::neighbor::DiscoverabilityModule>(); modules.add<::bluetooth::neighbor::InquiryModule>(); modules.add<::bluetooth::neighbor::NameModule>(); modules.add<::bluetooth::shim::Dumpsys>(); modules.add<::bluetooth::shim::facade::ShimFacadeModule>(); modules.add<::bluetooth::shim::L2cap>(); modules.add<::bluetooth::neighbor::PageModule>(); modules.add<::bluetooth::hci::HciLayer>(); modules.add<::bluetooth::hci::LeAdvertisingManager>(); modules.add<::bluetooth::hci::LeScanningManager>(); modules.add<::bluetooth::security::SecurityModule>(); modules.add<::bluetooth::storage::StorageModule>(); break; default: return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "invalid module under test"); Loading
system/gd/shim/Android.bp +6 −1 Original line number Diff line number Diff line Loading @@ -14,4 +14,9 @@ filegroup { ], } filegroup { name: "BluetoothFacade_shim_layer", srcs: [ "facade/facade.cc", ], }