Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Duuid.rs101 (UuidHelper::from_string(A2DP_SINK).unwrap(), Profile::A2dpSink), in new()
102 (UuidHelper::from_string(A2DP_SOURCE).unwrap(), Profile::A2dpSource), in new()
103 (UuidHelper::from_string(ADV_AUDIO_DIST).unwrap(), Profile::AdvAudioDist), in new()
104 (UuidHelper::from_string(HSP).unwrap(), Profile::Hsp), in new()
105 (UuidHelper::from_string(HSP_AG).unwrap(), Profile::HspAg), in new()
106 (UuidHelper::from_string(HFP).unwrap(), Profile::Hfp), in new()
107 (UuidHelper::from_string(HFP_AG).unwrap(), Profile::HfpAg), in new()
108 (UuidHelper::from_string(AVRCP_CONTROLLER).unwrap(), Profile::AvrcpController), in new()
109 (UuidHelper::from_string(AVRCP_TARGET).unwrap(), Profile::AvrcpTarget), in new()
110 (UuidHelper::from_string(OBEX_OBJECT_PUSH).unwrap(), Profile::ObexObjectPush), in new()
[all …]
Dbluetooth.rs468 let mut addr = RawAddress::from_string(device.address.clone()); in set_remote_device_property()
1105 let addr = RawAddress::from_string(device.address.clone()); in create_bond()
1121 let addr = RawAddress::from_string(device.address.clone()); in cancel_bond_process()
1133 let addr = RawAddress::from_string(device.address.clone()); in remove_bond()
1162 let addr = RawAddress::from_string(device.address.clone()); in set_pin()
1191 let addr = RawAddress::from_string(device.address.clone()); in set_passkey()
1221 let addr = RawAddress::from_string(device.address.clone()); in set_pairing_confirmation()
1283 let addr = RawAddress::from_string(device.address.clone()); in get_connection_state()
1321 let addr = RawAddress::from_string(device.address.clone()); in fetch_remote_uuids()
1335 let addr = RawAddress::from_string(device.address.clone()); in sdp_search()
[all …]
Dbluetooth_media.rs482 if let Some(addr) = RawAddress::from_string(device.clone()) { in connect()
495 if let Some(addr) = RawAddress::from_string(device.clone()) { in set_active_device()
503 if let Some(addr) = RawAddress::from_string(device.clone()) { in disconnect()
543 if let Some(addr) = RawAddress::from_string(device.clone()) { in start_sco_call()
559 if let Some(addr) = RawAddress::from_string(device.clone()) { in stop_sco_call()
Dbluetooth_gatt.rs600 let address = match RawAddress::from_string(addr.clone()) { in client_connect()
623 &RawAddress::from_string(address).unwrap(), in client_disconnect()
642 &RawAddress::from_string(address).unwrap(), in client_set_preferred_phy()
650 let address = match RawAddress::from_string(addr.clone()) { in client_read_phy()
663 .refresh(client_id, &RawAddress::from_string(addr).unwrap()); in refresh_device()
816 &RawAddress::from_string(addr).unwrap(), in register_for_notification()
822 &RawAddress::from_string(addr).unwrap(), in register_for_notification()
852 .read_remote_rssi(client_id, &RawAddress::from_string(addr).unwrap()); in read_remote_rssi()
876 &RawAddress::from_string(addr).unwrap(), in connection_parameter_update()
/packages/modules/Bluetooth/system/gd/rust/topshim/tests/
Dbdaddr.rs7 assert!(RawAddress::from_string("").is_none()); in from_string_invalid()
8 assert!(RawAddress::from_string("some invalid string").is_none()); in from_string_invalid()
9 assert!(RawAddress::from_string("aa:bb:cc:dd:ee:ff:00").is_none()); in from_string_invalid()
10 assert!(RawAddress::from_string("aa:bb:cc:dd:ee").is_none()); in from_string_invalid()
11 assert!(RawAddress::from_string("aa:bb:cc:dd::ff").is_none()); in from_string_invalid()
16 let addr = RawAddress::from_string("11:22:33:aa:bb:cc"); in from_string_valid()
21 let addr = RawAddress::from_string("11:22:33:AA:BB:CC"); in from_string_valid()
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/
Dmedia_service.rs85 if let Some(addr) = RawAddress::from_string(req.address.clone()) { in a2dp_source_connect()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/
Dbtif.rs639 pub fn from_string<S: Into<String>>(addr: S) -> Option<RawAddress> { in from_string() method