Home
last modified time | relevance | path

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

12345678910>>...12

/aosp_15_r20/tools/netsim/src/hci/
H A Dbluetooth_facade.cc45 namespace rootcanal::log { namespace
52 void IncrTx(uint32_t send_id, rootcanal::Phy::Type phy_type);
53 void IncrRx(uint32_t receive_id, rootcanal::Phy::Type phy_type);
56 using namespace rootcanal;
58 using rootcanal::PhyDevice;
59 using rootcanal::PhyLayer;
77 const std::list<std::shared_ptr<rootcanal::PhyDevice>> &phy_devices) { in Contains()
102 class SimTestModel : public rootcanal::TestModel {
104 using rootcanal::TestModel::TestModel;
106 std::unique_ptr<rootcanal::PhyLayer> CreatePhyLayer( in CreatePhyLayer()
[all …]
H A Dhci_packet_transport.cc39 * Connects hci packets between packet_hub and rootcanal.
43 uint32_t chip_id, std::shared_ptr<rootcanal::AsyncManager> async_manager) in HciPacketTransport()
56 rootcanal::PhyDevice::Identifier rootcanal_id) { in Connect()
61 // Called by HCITransport (rootcanal)
62 void HciPacketTransport::Send(rootcanal::PacketType packet_type, in Send()
65 // rootcanal::PacketType to HCIPacket_PacketType is safe. in Send()
76 // Called by HCITransport (rootcanal)
78 rootcanal::PacketCallback packetCallback, in RegisterCallbacks()
79 rootcanal::CloseCallback closeCallback) { in RegisterCallbacks()
85 // Called by HCITransport (rootcanal)
[all …]
H A Dhci_packet_transport.h28 using rootcanal::CloseCallback;
29 using rootcanal::PacketCallback;
34 * Connects Rootcanal's HciTransport to the packet_hub.
37 class HciPacketTransport : public rootcanal::HciTransport {
39 HciPacketTransport(uint32_t, std::shared_ptr<rootcanal::AsyncManager>);
42 static void Add(rootcanal::PhyDevice::Identifier id,
45 static void Remove(rootcanal::PhyDevice::Identifier id);
50 * Moves HCI packets between packet_hub and rootcanal HciTransport
52 void Connect(rootcanal::PhyDevice::Identifier rootcanal_id);
54 void Send(rootcanal::PacketType packet_type,
[all …]
/aosp_15_r20/device/google/cuttlefish/host/commands/run_cvd/launch/
Droot_canal.cpp34 class RootCanal : public CommandSource { class
36 INJECT(RootCanal(const CuttlefishConfig& config, in INJECT()
45 Command rootcanal(ProcessRestarterBinary()); in Commands() local
46 rootcanal.AddParameter("-when_killed"); in Commands()
47 rootcanal.AddParameter("-when_dumped"); in Commands()
48 rootcanal.AddParameter("-when_exited_with_failure"); in Commands()
49 rootcanal.AddParameter("--"); in Commands()
50 rootcanal.AddParameter(RootCanalBinary()); in Commands()
53 rootcanal.AddParameter("--test_port=", config_.rootcanal_test_port()); in Commands()
54 rootcanal.AddParameter("--hci_port=", config_.rootcanal_hci_port()); in Commands()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/tools/rootcanal/desktop/
Dtest_environment.h38 namespace rootcanal {
45 using rootcanal::AsyncManager;
46 using rootcanal::Device;
47 using rootcanal::Phy;
63 rootcanal::AsyncManager async_manager_;
64 rootcanal::TestChannelTransport test_channel_transport_;
75 rootcanal::AsyncUserId socket_user_id_{};
80 int tcp_port, rootcanal::ControllerProperties properties);
87 rootcanal::TestModel test_model_{
89 [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;
76 rootcanal::configuration::Configuration* config = new rootcanal::configuration::Configuration(); in TestEnvironment()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/tools/rootcanal/include/
Dlog.h25 namespace rootcanal::log {
53 rootcanal::log::Log(rootcanal::log::Verbosity::kDebug, __FILE__, __LINE__, __VA_ARGS__)
56 rootcanal::log::Log(rootcanal::log::Verbosity::kInfo, __FILE__, __LINE__, __VA_ARGS__)
59 rootcanal::log::Log(rootcanal::log::Verbosity::kWarning, __FILE__, __LINE__, __VA_ARGS__)
62 rootcanal::log::Log(rootcanal::log::Verbosity::kError, __FILE__, __LINE__, __VA_ARGS__)
65 rootcanal::log::Log(rootcanal::log::Verbosity::kFatal, __FILE__, __LINE__, __VA_ARGS__)
69 (rootcanal::log::Log(rootcanal::log::Verbosity::kFatal, __FILE__, __LINE__, \
75 (rootcanal::log::Log(rootcanal::log::Verbosity::kFatal, __FILE__, __LINE__, \
79 } // namespace rootcanal::log
/aosp_15_r20/packages/modules/Bluetooth/tools/rootcanal/hal/
Dbluetooth_hci.h44 using rootcanal::Device;
45 using rootcanal::Phy;
87 rootcanal::AsyncManager async_manager_;
95 std::shared_ptr<rootcanal::DualModeController> controller_;
97 rootcanal::TestChannelTransport test_channel_transport_;
98 rootcanal::TestChannelTransport remote_hci_transport_;
99 rootcanal::TestChannelTransport remote_link_layer_transport_;
101 rootcanal::AsyncUserId user_id_ = async_manager_.GetNextUserId();
102 rootcanal::TestModel test_model_{
104 [this](rootcanal::AsyncUserId user_id, std::chrono::milliseconds delay,
[all …]
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;
165 size_t low_energy_phy_index = test_model_.AddPhy(rootcanal::Phy::Type::LOW_ENERGY); in initialize_impl()
166 size_t classic_phy_index = test_model_.AddPhy(rootcanal::Phy::Type::BR_EDR); in initialize_impl()
184 test_model_.AddHciConnection(HciDevice::Create(transport, rootcanal::ControllerProperties())); in initialize_impl()
/aosp_15_r20/tools/netsim/rust/proto/src/
H A Dconfiguration.rs21 //! Generated file from `rootcanal/configuration.proto`
28 // @@protoc_insertion_point(message:rootcanal.configuration.ControllerFeatures)
31 …// @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_extended_advertisi…
33 …// @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_periodic_advertisi…
35 // @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.ll_privacy)
37 // @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_2m_phy)
39 // @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_coded_phy)
41 …// @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_connected_isochron…
44 …// @@protoc_insertion_point(special_field:rootcanal.configuration.ControllerFeatures.special_field…
354 // @@protoc_insertion_point(message:rootcanal.configuration.ControllerQuirks)
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
D__init__.py26 from mmi2grpc._rootcanal import RootCanal
72 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)
219 …elf._hap = HAPProxy(grpc.insecure_channel(f'localhost:{self.pandora_server_port}'), 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()
/aosp_15_r20/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 …]
/aosp_15_r20/packages/modules/Bluetooth/tools/rootcanal/
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 …]
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).
/aosp_15_r20/tools/netsim/proto/
H A DAndroid.bp32 " -Ipackages/modules/Bluetooth/tools/rootcanal/proto" +
40 ":rootcanal-protos",
78 "packages/modules/Bluetooth/tools/rootcanal/proto",
91 ":rootcanal-protos",
105 "packages/modules/Bluetooth/tools/rootcanal/proto",
117 ":rootcanal-protos",
129 " -Ipackages/modules/Bluetooth/tools/rootcanal/proto" +
135 " $(locations :rootcanal-protos) &&" +
140 ":rootcanal-protos",
154 "rootcanal/configuration_pb2.py",
/aosp_15_r20/packages/modules/Bluetooth/tools/rootcanal/model/controller/vendor_commands/
Dle_apcf.cc28 namespace rootcanal::apcf { namespace
133 } // namespace rootcanal::apcf
135 namespace rootcanal { namespace
162 apcf_scanner_.filters.push_back(rootcanal::apcf::Filter{ in LeApcfAddFilteringParameters()
213 rootcanal::apcf::BroadcasterAddressFilter{ in LeApcfBroadcasterAddress()
237 rootcanal::apcf::GapDataFilter{ in LeApcfServiceUuid()
262 rootcanal::apcf::GapDataFilter{ in LeApcfServiceSolicitationUuid()
286 rootcanal::apcf::GapDataFilter{ in LeApcfLocalName()
313 rootcanal::apcf::GapDataFilter{ in LeApcfManufacturerData()
337 rootcanal::apcf::GapDataFilter{ in LeApcfServiceData()
[all …]
/aosp_15_r20/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
/aosp_15_r20/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
H A DRootcanalUtils.java103 CLog.w("Could not kill rootcanal HAL during cleanup"); in finished()
106 CLog.w("Could not kill rootcanal HAL during cleanup: " + e.getMessage()); in finished()
112 * Replace existing HAL with RootCanal HAL on current device.
127 assertFalse("rootcanal set up called more than once", device.doesFileExist(LOCK_FILENAME)); in enableRootcanal()
165 // Rootcanal expects certain libraries to be in /vendor and not /system so copy them over in enableRootcanal()
224 // Reenable Bluetooth and enable RootCanal control channel in enableRootcanal()
432 CLog.d("Rootcanal controller initialized; testPort=%d, hciPort=%d", testPort, hciPort); in RootcanalController()
444 * Create a new HCI device by connecting to rootcanal's HCI socket.
456 * Send one command to rootcanal test channel.
458 * <p>Send `help` command for list of accepted commands from Rootcanal.
[all …]
/aosp_15_r20/out/soong/raw-aosp_shiba/e0/
De0967e1902c5e1fac6bedcfe701e05e81cd54852106 from: "packages/modules/Bluetooth/tools/rootcanal/proto/rootcanal/configuration.proto"
107 to: "packages/modules/Bluetooth/tools/rootcanal/proto/rootcanal/configuration.proto"
138rootcanal/proto -Iexternal/protobuf/src --plugin=protoc-gen-grpc=__SBOX_SANDBOX_DIR__/tools/…
184 from: "out/rootcanal/configuration_pb2.py"
185 …to: "out/soong/.intermediates/tools/netsim/proto/netsim-python-src/gen/rootcanal/configuration_pb2…
/aosp_15_r20/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 …]
/aosp_15_r20/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dtest_command_handler.cc28 #include "rootcanal/configuration.pb.h"
32 namespace rootcanal { namespace
240 rootcanal::configuration::ControllerPreset preset = in SetDeviceConfiguration()
241 rootcanal::configuration::ControllerPreset::DEFAULT; in SetDeviceConfiguration()
244 preset = rootcanal::configuration::ControllerPreset::DEFAULT; in SetDeviceConfiguration()
246 preset = rootcanal::configuration::ControllerPreset::LAIRD_BL654; in SetDeviceConfiguration()
248 preset = rootcanal::configuration::ControllerPreset::CSR_RCK_PTS_DONGLE; in SetDeviceConfiguration()
255 rootcanal::configuration::Controller configuration; in SetDeviceConfiguration()
307 } // namespace rootcanal
/aosp_15_r20/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
/aosp_15_r20/external/pandora/bt-test-interfaces/.github/workflows/
Dpython.yml66 pip install rootcanal
69 - name: Rootcanal
70 run: nohup python -m rootcanal > rootcanal.log &
75 - name: Rootcanal Logs
76 run: cat rootcanal.log
/aosp_15_r20/external/pandora/avatar/.github/workflows/
Davatar.yml82 pip install rootcanal==1.3.0
84 - name: Rootcanal
85 run: nohup python -m rootcanal > rootcanal.log &
90 - name: Rootcanal Logs
91 run: cat rootcanal.log

12345678910>>...12