Home
last modified time | relevance | path

Searched refs:hci_interface (Results 1 – 12 of 12) sorted by relevance

/aosp12/system/bt/gd/rust/linux/mgmt/src/bin/btmanagerd/
H A Dstate_machine.rs64 hci_interface: i32, in start_bluetooth()
199 fn start(&mut self, hci_interface: String); in start()
200 fn stop(&mut self, hci_interface: String); in stop()
223 fn stop(&mut self, hci_interface: String) { in stop()
271 hci_interface: i32, field
298 hci_interface: 0, in new()
309 self.hci_interface = hci_interface; in action_start_bluetooth()
320 if self.hci_interface != hci_interface { in action_stop_bluetooth()
321 … println!("We are running hci{} but attempting to stop hci{}", self.hci_interface, hci_interface); in action_stop_bluetooth()
340 if self.hci_interface != hci_interface { in action_on_bluetooth_started()
[all …]
H A Dmain.rs44 |mut ctx, cr, (hci_interface,): (i32,)| { in main()
47 println!("Incoming Start call for hci {}!", hci_interface); in main()
49 let result = proxy.start_bluetooth(hci_interface).await; in main()
59 … b.method_with_cr_async("Stop", ("hci_interface",), (), |mut ctx, cr, (hci_interface,) : (i32,)| { in main()
64 let result = proxy.stop_bluetooth(hci_interface).await; in main()
/aosp12/system/bt/hci/src/
H A Dhci_layer_linux.cc101 static int hci_interface; variable
177 hci_interface = strtol(prop_value, NULL, 10); in hci_initialize()
179 hci_interface = strtol(prop_value + 3, NULL, 10); in hci_initialize()
180 if (errno) hci_interface = 0; in hci_initialize()
182 LOG(INFO) << "Using interface hci" << +hci_interface; in hci_initialize()
197 LOG(FATAL) << "HCI interface hci" << +hci_interface << " not found"; in hci_initialize()
203 addr.hci_dev = hci_interface; in hci_initialize()
343 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) { in wait_hcidev()
354 if (cc->index[i] == hci_interface) goto end; in wait_hcidev()
H A Dhci_inject.cc51 static bool hci_inject_open(const hci_t* hci_interface);
68 static bool hci_inject_open(const hci_t* hci_interface) { in hci_inject_open() argument
76 CHECK(hci_interface != NULL); in hci_inject_open()
78 hci = hci_interface; in hci_inject_open()
/aosp12/system/bt/vendor_libs/linux/interface/
H A Dbluetooth_hci.cc76 int hci_interface = 0; in openBtHci() local
87 if (waitHciDev(hci_interface)) { in openBtHci()
88 ALOGE( "HCI interface (%d) not found", hci_interface); in openBtHci()
95 addr.hci_dev = hci_interface; in openBtHci()
115 int BluetoothHci::waitHciDev(int hci_interface) { in waitHciDev() argument
176 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) { in waitHciDev()
187 if (cc->index[i] == hci_interface) goto end; in waitHciDev()
H A Dbluetooth_hci.h68 int waitHciDev(int hci_interface);
/aosp12/system/bt/gd/hal/
H A Dhci_hal_host.cc88 int waitHciDev(int hci_interface) { in waitHciDev() argument
147 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) { in waitHciDev()
159 if (cc->index[i] == hci_interface) { in waitHciDev()
180 int hci_interface = 0; // Assume we only have HCI 0 in ConnectToSocket() local
182 if (waitHciDev(hci_interface) != 0) { in ConnectToSocket()
190 addr.hci_dev = hci_interface; in ConnectToSocket()
/aosp12/system/bt/hci/include/
H A Dhci_inject.h28 bool (*open)(const hci_t* hci_interface);
H A Dvendor.h54 bool (*open)(const uint8_t* local_bdaddr, const hci_t* hci_interface);
/aosp12/system/bt/stack/btm/
H A Dbtm_ble_multi_adv.cc168 : hci_interface(interface), weak_factory_(this) { in BleAdvertisingManagerImpl()
169 hci_interface->ReadInstanceCount( in BleAdvertisingManagerImpl()
213 auto hci_interface = instance_weakptr.get()->GetHciInterface(); in ConfigureRpa() local
217 hci_interface->Enable(false, p_inst->inst_id, 0x00, 0x00, in ConfigureRpa()
222 hci_interface->SetRandomAddress( in ConfigureRpa()
234 hci_interface->Enable(true, p_inst->inst_id, 0x00, 0x00, in ConfigureRpa()
1004 BleAdvertiserHciInterface* GetHciInterface() { return hci_interface; } in GetHciInterface()
1006 BleAdvertiserHciInterface* hci_interface = nullptr; member in __anonac04e2a80110::BleAdvertisingManagerImpl
/aosp12/system/bt/device/include/
H A Dcontroller.h126 const hci_t* hci_interface,
/aosp12/system/bt/device/src/
H A Dcontroller.cc846 const hci_t* hci_interface, in controller_get_test_interface() argument
849 local_hci = hci_interface; in controller_get_test_interface()