Home
last modified time | relevance | path

Searched refs:uhid (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/system/btif/co/
Dbta_hh_co.cc281 if (p_dev->uhid.fd < 0) { in uhid_fd_open()
282 p_dev->uhid.fd = open(dev_path, O_RDWR | O_CLOEXEC); in uhid_fd_open()
283 if (p_dev->uhid.fd < 0) { in uhid_fd_open()
289 if (p_dev->uhid.hh_keep_polling == 0) { in uhid_fd_open()
290 p_dev->uhid.hh_keep_polling = 1; in uhid_fd_open()
292 create_thread(btif_hh_poll_event_thread, &p_dev->uhid); in uhid_fd_open()
459 p_dev->uhid.fd = -1; in bta_hh_co_open()
460 p_dev->uhid.hh_keep_polling = 0; in bta_hh_co_open()
461 p_dev->uhid.link_spec = link_spec; in bta_hh_co_open()
462 p_dev->uhid.dev_handle = dev_handle; in bta_hh_co_open()
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_media.rs482 uhid: HashMap<RawAddress, UHid>, field
547 uhid: HashMap::new(), in new()
1568 if let Some(uhid) = self.uhid.get_mut(&addr) { in dispatch_hfp_callbacks()
1569 if volume == 0 && !uhid.muted { in dispatch_hfp_callbacks()
1575 uhid.volume = volume; in dispatch_hfp_callbacks()
1576 if uhid.muted { in dispatch_hfp_callbacks()
1866 if self.uhid.contains_key(&addr) { in uhid_create()
1875 self.uhid.insert( in uhid_create()
1911 if let Some(uhid) = self.uhid.get_mut(addr) { in uhid_destroy()
1913 match uhid.handle.destroy() { in uhid_destroy()
[all …]
Dbluetooth.rs25 use bt_utils::uhid::UHid;
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/
Dlib.rs9 pub mod uhid; module
/packages/modules/Bluetooth/system/gd/rust/linux/utils/
DCargo.toml33 uhid-virt = "0.0.6"
/packages/modules/Bluetooth/system/btif/src/
Dbtif_hh.cc302 toggle_os_keylockstates(p_dev->uhid.fd, keylockstates); in sync_lockstate_on_connect()
711 p_dev->uhid.ready_for_data = false; in btif_hh_remove_device()
1041 log::verbose("uhid fd={} local_vup={}", p_dev->uhid.fd, in btif_hh_upstreams_evt()
1189 if (p_dev->uhid.fd < 0) { in btif_hh_upstreams_evt()
2138 if (p_dev->dev_status != BTHH_CONN_STATE_UNKNOWN && p_dev->uhid.fd >= 0) { in cleanup()
2139 log::verbose("Closing uhid fd = {}", p_dev->uhid.fd); in cleanup()
2226 p_dev->link_spec.ToRedactedStringForLogging().c_str(), p_dev->uhid.fd, in DumpsysHid()
2228 (p_dev->uhid.ready_for_data) ? ("T") : ("F"), in DumpsysHid()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_hh.h112 btif_hh_uhid_t uhid; member