Home
last modified time | relevance | path

Searched refs:BtScanMode (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth.rs6 BtDiscoveryState, BtHciErrorCode, BtPinCode, BtPropertyType, BtScanMode, BtSspVariant, BtState,
918 BtScanMode::Connectable in get_connectable_internal()
919 | BtScanMode::ConnectableDiscoverable in get_connectable_internal()
920 | BtScanMode::ConnectableLimitedDiscoverable => true, in get_connectable_internal()
921 BtScanMode::None_ => false, in get_connectable_internal()
944 if mode { BtScanMode::Connectable } else { BtScanMode::None_ }, in set_connectable_internal()
962 BtScanMode::ConnectableDiscoverable => BtDiscMode::GeneralDiscoverable, in get_discoverable_mode_internal()
963 BtScanMode::ConnectableLimitedDiscoverable => BtDiscMode::LimitedDiscoverable, in get_discoverable_mode_internal()
964 BtScanMode::Connectable | BtScanMode::None_ => off_mode, in get_discoverable_mode_internal()
994 .set_adapter_property(BluetoothProperty::AdapterScanMode(BtScanMode::None_)) in scan_mode_enter_suspend()
[all …]
/packages/modules/Bluetooth/system/gd/rust/topshim/src/
Dbtif.rs318 pub enum BtScanMode { enum
325 impl From<bindings::bt_scan_mode_t> for BtScanMode { implementation
327 BtScanMode::from_u32(item).unwrap_or(BtScanMode::None_) in from()
576 AdapterScanMode(BtScanMode),
648 BluetoothProperty::AdapterScanMode(_) => mem::size_of::<BtScanMode>(), in get_len()
717 data.copy_from_slice(&BtScanMode::to_u32(sm).unwrap_or_default().to_ne_bytes()); in get_data_ptr()
816 BtScanMode::from_u32(u32_from_bytes(slice)).unwrap_or(BtScanMode::None_), in from()
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/
Dadapter_service.rs245 btif::BtScanMode::ConnectableDiscoverable in set_discovery_mode()
247 btif::BtScanMode::Connectable in set_discovery_mode()
249 btif::BtScanMode::None_ in set_discovery_mode()