Home
last modified time | relevance | path

Searched full:rootcanal (Results 1 – 25 of 160) sorted by relevance

1234567

/packages/modules/Bluetooth/tools/rootcanal/include/
Dlog.h25 namespace rootcanal::log {
54 rootcanal::log::Log(rootcanal::log::Verbosity::kDebug, __FILE__, __LINE__, \
58 rootcanal::log::Log(rootcanal::log::Verbosity::kInfo, __FILE__, __LINE__, \
62 rootcanal::log::Log(rootcanal::log::Verbosity::kWarning, __FILE__, __LINE__, \
66 rootcanal::log::Log(rootcanal::log::Verbosity::kError, __FILE__, __LINE__, \
70 rootcanal::log::Log(rootcanal::log::Verbosity::kFatal, __FILE__, __LINE__, \
75 (rootcanal::log::Log(rootcanal::log::Verbosity::kFatal, __FILE__, \
81 (rootcanal::log::Log(rootcanal::log::Verbosity::kFatal, __FILE__, \
86 } // namespace rootcanal::log
/packages/modules/Bluetooth/tools/rootcanal/desktop/
Dtest_environment.h38 namespace rootcanal {
45 using rootcanal::AsyncManager;
46 using rootcanal::Device;
47 using rootcanal::Phy;
65 rootcanal::AsyncManager async_manager_;
66 rootcanal::TestChannelTransport test_channel_transport_;
77 rootcanal::AsyncUserId socket_user_id_{};
83 int tcp_port, rootcanal::ControllerProperties properties);
90 rootcanal::TestModel test_model_{
92 [this](rootcanal::AsyncUserId user_id, std::chrono::milliseconds delay,
[all …]
Dtest_environment.cc46 #include "rootcanal/configuration.pb.h"
48 namespace rootcanal { namespace
50 using rootcanal::AsyncTaskId;
51 using rootcanal::BaseBandSniffer;
52 using rootcanal::HciDevice;
53 using rootcanal::HciSniffer;
54 using rootcanal::HciSocketTransport;
55 using rootcanal::LinkLayerSocketDevice;
56 using rootcanal::TaskCallback;
79 rootcanal::configuration::Configuration* config = in TestEnvironment()
[all …]
Droot_canal_main.cc38 using rootcanal::AsyncManager;
39 using rootcanal::TestEnvironment;
40 using namespace rootcanal;
52 "prevent rootcanal from reusing device addresses");
98 rootcanal::log::SetLogColorEnable(FLAGS_enable_log_color); in main()
100 INFO("starting rootcanal"); in main()
/packages/modules/Bluetooth/tools/rootcanal/hal/
Dbluetooth_hci.h44 using rootcanal::Device;
45 using rootcanal::Phy;
89 rootcanal::AsyncManager async_manager_;
97 std::shared_ptr<rootcanal::DualModeController> controller_;
99 rootcanal::TestChannelTransport test_channel_transport_;
100 rootcanal::TestChannelTransport remote_hci_transport_;
101 rootcanal::TestChannelTransport remote_link_layer_transport_;
103 rootcanal::AsyncUserId user_id_ = async_manager_.GetNextUserId();
104 rootcanal::TestModel test_model_{
106 [this](rootcanal::AsyncUserId user_id, std::chrono::milliseconds delay,
[all …]
DAndroid.bp35 "//platform_testing/libraries/sts-common-util/host-side/rootcanal",
52 "libbt-rootcanal",
71 "//platform_testing/libraries/sts-common-util/host-side/rootcanal",
85 "libbt-rootcanal",
Dbluetooth_hci.cc40 using rootcanal::AsyncTaskId;
41 using rootcanal::DualModeController;
42 using rootcanal::HciDevice;
43 using rootcanal::HciSocketTransport;
44 using rootcanal::LinkLayerSocketDevice;
45 using rootcanal::TaskCallback;
177 test_model_.AddPhy(rootcanal::Phy::Type::LOW_ENERGY); in initialize_impl()
178 size_t classic_phy_index = test_model_.AddPhy(rootcanal::Phy::Type::BR_EDR); in initialize_impl()
203 HciDevice::Create(transport, rootcanal::ControllerProperties())); in initialize_impl()
/packages/modules/Bluetooth/system/blueberry/tests/topshim/lib/
Dtopshim_base_test.py57 if 'rootcanal' not in info['controller_configs']:
61 rootcanal = os.path.join(get_gd_root(), "root-canal")
62 info['rootcanal'] = rootcanal
63 info['rootcanal_exist'] = os.path.isfile(rootcanal)
64 if not os.path.isfile(rootcanal):
70 rootcanal_config = info['controller_configs']['rootcanal']
81 …rootcanal_cmd = [rootcanal, str(rootcanal_test_port), str(rootcanal_hci_port), str(rootcanal_link_…
104 tag="rootcanal",
130 logging.error("rootcanal stopped with code: %d" % return_code)
145 crash_detail += "rootcanal crashed:\n\n%s\n\n" % rootcanal_crash
[all …]
/packages/modules/Bluetooth/tools/rootcanal/
DREADME.md3 RootCanal is a virtual Bluetooth Controller. RootCanal aims reducing the
9 The emulation of Bluetooth features on RootCanal _is limited to features
11 of HCI commands and events is thus critical to RootCanal's goal, while accurate
18 RootCanal is natively integrated in the Cuttlefish and Goldfish emulators.
24 RootCanal can be built and started as a standalone tool.
56 RootCanal's implementation.
60 All RootCanal instances expose four TCP ports:
75 to RootCanal. You can connect to it using [scripts/test_channel.py](scripts/test_channel.py).
DCMakeLists.txt2 set(ROOTCANAL_ROOT ${AOSP_ROOT}/packages/modules/Bluetooth/tools/rootcanal)
158 PROTOS ${ROOTCANAL_ROOT}/proto/rootcanal/configuration.proto
161 PROTOC_OUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/proto/rootcanal)
170 add_library(libbt-rootcanal.headers INTERFACE)
171 target_include_directories(libbt-rootcanal.headers INTERFACE ${ROOTCANAL_ROOT})
172 target_link_libraries(libbt-rootcanal.headers
174 android_license(TARGET "libbt-rootcanal.headers" LIBNAME None SPDX Apache-2.0
190 TARGET libbt-rootcanal
238 libbt-rootcanal
242 libbt-rootcanal
[all …]
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
D__init__.py42 from mmi2grpc._rootcanal import RootCanal
73 self.rootcanal = None
97 self.rootcanal = RootCanal(port=self.rootcanal_control_port)
98 self.rootcanal.move_in_range()
108 self.rootcanal.close()
109 self.rootcanal = None
198 self.rootcanal,
209 …f._gatt = GATTProxy(grpc.insecure_channel(f"localhost:{self.pandora_server_port}"), self.rootcanal)
214 …elf._gap = GAPProxy(grpc.insecure_channel(f"localhost:{self.pandora_server_port}"), self.rootcanal)
222 self.rootcanal,
[all …]
Dhid.py27 def __init__(self, channel, rootcanal): argument
31 self.rootcanal = rootcanal
41 self.rootcanal.move_in_range()
62 self.rootcanal.move_out_of_range()
90 self.rootcanal.move_in_range()
100 self.rootcanal.move_in_range()
183 self.rootcanal.move_out_of_range()
198 self.rootcanal.move_in_range()
/packages/modules/Bluetooth/tools/rootcanal/rust/
DCMakeLists.txt24 corrosion_set_env_vars(rootcanal-rs
30 android_license(TARGET rootcanal-rs LIBNAME None SPDX None LICENSE None LOCAL None)
39 # Enable lmp in rootcanal.
40 target_link_libraries(libbt-rootcanal PUBLIC rootcanal-rs)
41 target_include_directories(libbt-rootcanal
/packages/modules/Bluetooth/tools/rootcanal/proto/
DAndroid.bp2 name: "rootcanal-protos",
4 "rootcanal/configuration.proto",
9 // RootCanal configuration file / parameter.
18 "packages/modules/Bluetooth/tools/rootcanal/proto",
24 srcs: [":rootcanal-protos"],
/packages/modules/Bluetooth/system/gd/hal/
Dhci_hal_host.h25 // Singleton object to store runtime configuration for rootcanal
33 // Get the listening TCP port for rootcanal HCI socket
38 // Set the listening TCP port for rootcanal HCI socket
43 // Get the server address for rootcanal HCI socket
48 // Set the server address for rootcanal HCI socket
/packages/modules/Bluetooth/tools/rootcanal/model/controller/vendor_commands/
Dle_apcf.cc28 namespace rootcanal::apcf { namespace
147 } // namespace rootcanal::apcf
149 namespace rootcanal { namespace
178 apcf_scanner_.filters.push_back(rootcanal::apcf::Filter{ in LeApcfAddFilteringParameters()
233 rootcanal::apcf::BroadcasterAddressFilter{ in LeApcfBroadcasterAddress()
258 rootcanal::apcf::GapDataFilter{ in LeApcfServiceUuid()
283 rootcanal::apcf::GapDataFilter{ in LeApcfServiceSolicitationUuid()
309 rootcanal::apcf::GapDataFilter{ in LeApcfLocalName()
336 rootcanal::apcf::GapDataFilter{ in LeApcfManufacturerData()
363 rootcanal::apcf::GapDataFilter{ in LeApcfServiceData()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dgd_base_test.py158 if 'rootcanal' in self.controller_configs:
161 rootcanal = os.path.join(get_gd_root(), "root-canal")
162 … asserts.assert_true(os.path.isfile(rootcanal), "Root canal does not exist at %s" % rootcanal)
167 rootcanal_config = self.controller_configs['rootcanal']
178 rootcanal, '-test_port',
191 … asserts.assert_true(self.rootcanal_process, msg="Cannot start root-canal at " + str(rootcanal))
197 tag="rootcanal",
220 logging.error("rootcanal stopped with code: %d" % return_code)
292 crash_detail += "rootcanal crashed:\n\n%s\n\n" % rootcanal_crash
299 crash_detail += "rootcanal log tail:\n\n%s\n\n" % rootcanal_log_tail
/packages/modules/Bluetooth/framework/tests/bumble/src/
Dbumble_server.py41 if '<rootcanal-port>' in transport:
42 transport = transport.replace('<rootcanal-port>', str(rootcanal_port))
61 …parser.add_argument('--rootcanal-port', type=int, default=ROOTCANAL_PORT_CUTTLEFISH, help='Rootcan…
64 default='tcp-client:127.0.0.1:<rootcanal-port>',
65 help='HCI transport (default: tcp-client:127.0.0.1:<rootcanal-port>)')
/packages/modules/Bluetooth/tools/rootcanal/test/controller/le/
Drpa_generation_test.cc21 namespace rootcanal { namespace
32 std::array<uint8_t, rootcanal::LinkLayerController::kIrkSize> irk = { in TEST_F()
37 AddressWithType rpa{rootcanal::LinkLayerController::generate_rpa(irk), in TEST_F()
44 } // namespace rootcanal
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dtest_command_handler.cc28 #include "rootcanal/configuration.pb.h"
32 namespace rootcanal { namespace
253 rootcanal::configuration::ControllerPreset preset = in SetDeviceConfiguration()
254 rootcanal::configuration::ControllerPreset::DEFAULT; in SetDeviceConfiguration()
257 preset = rootcanal::configuration::ControllerPreset::DEFAULT; in SetDeviceConfiguration()
259 preset = rootcanal::configuration::ControllerPreset::LAIRD_BL654; in SetDeviceConfiguration()
261 preset = rootcanal::configuration::ControllerPreset::CSR_RCK_PTS_DONGLE; in SetDeviceConfiguration()
269 rootcanal::configuration::Controller configuration; in SetDeviceConfiguration()
321 } // namespace rootcanal
Dphy_layer.h26 namespace rootcanal {
28 using rootcanal::PhyDevice;
59 std::list<std::shared_ptr<rootcanal::PhyDevice>> phy_devices_;
62 } // namespace rootcanal
/packages/modules/Bluetooth/tools/rootcanal/model/devices/
Dscripted_beacon.h26 using android::bluetooth::rootcanal::model::devices::ScriptedBeaconBleAdProto::
29 namespace rootcanal {
72 android::bluetooth::rootcanal::model::devices::ScriptedBeaconBleAdProto::
75 } // namespace rootcanal
/packages/modules/Bluetooth/tools/rootcanal/py/
Dcontroller.py30 rootcanal = cdll.LoadLibrary("lib_rootcanal_ffi.so") variable
31 rootcanal.ffi_controller_new.restype = c_void_p
62 rootcanal.ffi_generate_rpa(c_char_p(irk), rpa_type.from_buffer(rpa))
68 """Binder class over RootCanal's ffi interfaces.
93 … self.instance = rootcanal.ffi_controller_new(c_char_p(address.address), self.send_hci_callback,
107 rootcanal.ffi_controller_delete(c_void_p(self.instance))
133rootcanal.ffi_controller_receive_hci(c_void_p(self.instance), c_int(Idc.Cmd), c_char_p(data), c_in…
138rootcanal.ffi_controller_receive_hci(c_void_p(self.instance), c_int(Idc.Iso), c_char_p(data), c_in…
143rootcanal.ffi_controller_receive_ll(c_void_p(self.instance), c_char_p(data), c_int(len(data)), c_i…
157rootcanal.ffi_controller_receive_ll(c_void_p(self.instance), c_char_p(data), c_int(len(data)), c_i…
[all …]
/packages/modules/Bluetooth/tools/rootcanal/proto/rootcanal/
Dconfiguration.proto17 package rootcanal.configuration;
55 // in RootCanal, unimplemented commands will return a Command Status or
71 // Activate assertion checks in RootCanal for missing RootCanal features
/packages/modules/Bluetooth/system/blueberry/tests/gd/
Drust_host_config.yaml5 rootcanal:
19 - "--rootcanal-port=$(rootcanal_port)"
30 - "--rootcanal-port=$(rootcanal_port)"

1234567