/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | uuid.rs | 119 (Uuid::from_string(A2DP_SINK).unwrap(), Profile::A2dpSink), 120 (Uuid::from_string(A2DP_SOURCE).unwrap(), Profile::A2dpSource), 121 (Uuid::from_string(ADV_AUDIO_DIST).unwrap(), Profile::AdvAudioDist), 122 (Uuid::from_string(BAS).unwrap(), Profile::Bas), 123 (Uuid::from_string(DIS).unwrap(), Profile::Dis), 124 (Uuid::from_string(HSP).unwrap(), Profile::Hsp), 125 (Uuid::from_string(HSP_AG).unwrap(), Profile::HspAg), 126 (Uuid::from_string(HFP).unwrap(), Profile::Hfp), 127 (Uuid::from_string(HFP_AG).unwrap(), Profile::HfpAg), 128 (Uuid::from_string(AVRCP_CONTROLLER).unwrap(), Profile::AvrcpController), [all …]
|
D | bluetooth_admin.rs | 123 .filter_map(|v| Uuid::from_string(v.as_str()?)) in load_config_from_json() 344 let a2dp_sink_uuid = Uuid::from_string(a2dp_sink_str).unwrap(); in test_config() 345 let a2dp_source_uuid = Uuid::from_string(a2dp_source_str).unwrap(); in test_config()
|
D | dis.rs | 74 Uuid::from_string(PNP_ID_CHAR_UUID).expect("PNP ID uuid is malformed"), in handle_callbacks() 89 Uuid::from_string(PNP_ID_CHAR_UUID).expect("PNP ID uuid is malformed"); in handle_callbacks()
|
D | bluetooth_adv.rs | 302 service_data.iter().filter_map(|(s, d)| Uuid::from_string(s).map(|s| (s, d))) in append_service_data() 2116 let uuid_16 = Uuid::from_string("0000fef3-0000-1000-8000-00805f9b34fb").unwrap(); in test_append_service_uuids() 2123 let uuid_32 = Uuid::from_string("00112233-0000-1000-8000-00805f9b34fb").unwrap(); in test_append_service_uuids() 2130 let uuid_128 = Uuid::from_string("00010203-0405-0607-0809-0a0b0c0d0e0f").unwrap(); in test_append_service_uuids() 2147 let uuid_16_2 = Uuid::from_string("0000aabb-0000-1000-8000-00805f9b34fb").unwrap(); in test_append_service_uuids() 2159 let uuid_16 = Uuid::from_string("0000fef3-0000-1000-8000-00805f9b34fb").unwrap(); in test_append_solicit_uuids() 2160 let uuid_32 = Uuid::from_string("00112233-0000-1000-8000-00805f9b34fb").unwrap(); in test_append_solicit_uuids() 2161 let uuid_128 = Uuid::from_string("00010203-0405-0607-0809-0a0b0c0d0e0f").unwrap(); in test_append_solicit_uuids()
|
D | bluetooth_gatt.rs | 2420 let Some(uuid) = Uuid::from_string(app_uuid.clone()) else { in register_client() 2485 let uuid = Uuid::from_string(uuid); in discover_service_by_uuid() 2498 let Some(uuid) = Uuid::from_string(uuid) else { return }; in btif_gattc_discover_service_by_uuid() 2535 let Some(uuid) = Uuid::from_string(uuid) else { return }; in read_using_characteristic_uuid() 2732 let Some(uuid) = Uuid::from_string(app_uuid.clone()) else { in register_server() 4321 let uuid = Uuid::from_string("abcdef"); in test_uuid_from_string() 4324 let uuid = Uuid::from_string("0123456789abcdef0123456789abcdef"); in test_uuid_from_string() 4340 let uuid1 = Uuid::from_string("00000000000000000000000000000001").unwrap(); in test_context_map_clients() 4360 let uuid2 = Uuid::from_string("00000000000000000000000000000002").unwrap(); in test_context_map_clients() 4395 map.add_connection(client_id, 3, &RawAddress::from_string("aa:bb:cc:dd:ee:ff").unwrap()); in test_context_map_connections() [all …]
|
D | battery_service.rs | 299 match (Uuid::from_string(uuid::BAS), Uuid::from_string(CHARACTERISTIC_BATTERY_LEVEL)) { in get_battery_level_handle()
|
D | bluetooth.rs | 1228 .map(|v| Uuid::from_string(v).unwrap()) in handle_delayed_actions()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/tests/ |
D | bdaddr.rs | 7 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/linux/client/src/ |
D | command_handler.rs | 704 let addr = RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?; in cmd_battery() 779 address: RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?, in cmd_bond() 806 address: RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?, in cmd_bond() 814 address: RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?, in cmd_bond() 838 address: RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?, in cmd_device() 857 address: RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?, in cmd_device() 876 address: RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?, in cmd_device() 951 address: RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?, in cmd_device() 974 address: RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?, in cmd_device() 993 address: RawAddress::from_string(get_arg(args, 1)?).ok_or("Invalid Address")?, in cmd_device() [all …]
|
D | dbus_iface.rs | 364 Ok(RawAddress::from_string(data.clone()).ok_or_else(|| { in from_dbus()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/ |
D | hf_client_service.rs | 50 if let Some(addr) = RawAddress::from_string(bt_addr) { in start_slc() 76 if let Some(addr) = RawAddress::from_string(bt_addr) { in stop_slc() 102 if let Some(addr) = RawAddress::from_string(bt_addr) { in connect_audio() 128 if let Some(addr) = RawAddress::from_string(bt_addr) { in disconnect_audio()
|
D | hfp_service.rs | 70 if let Some(addr) = RawAddress::from_string(bt_addr) { in start_slc() 89 if let Some(addr) = RawAddress::from_string(bt_addr) { in stop_slc() 113 if let Some(addr) = RawAddress::from_string(bt_addr) { in connect_audio() 142 if let Some(addr) = RawAddress::from_string(bt_addr) { in disconnect_audio() 161 if let Some(addr) = RawAddress::from_string(bt_addr) { in set_volume()
|
D | security_service.rs | 34 let raw_address = RawAddress::from_string(req.address).unwrap(); in remove_bond() 62 if let Some(addr) = RawAddress::from_string(bt_addr) { in create_bond()
|
D | media_service.rs | 85 if let Some(addr) = RawAddress::from_string(req.address.clone()) { in a2dp_source_connect()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/ |
D | btif.rs | 490 pub fn from_string<S: Into<String>>(raw: S) -> Option<Self> { in from_string() method 984 pub fn from_string<S: Into<String>>(addr: S) -> Option<RawAddress> { in from_string() method 1597 format!("{}", DisplayAddress(&RawAddress::from_string("00:00:00:00:00:00").unwrap())), in test_display_address() 1601 format!("{}", DisplayAddress(&RawAddress::from_string("ff:ff:ff:ff:ff:ff").unwrap())), in test_display_address() 1605 format!("{}", DisplayAddress(&RawAddress::from_string("1a:2b:1a:2b:1a:2b").unwrap())), in test_display_address() 1609 format!("{}", DisplayAddress(&RawAddress::from_string("3C:4D:3C:4D:3C:4D").unwrap())), in test_display_address() 1613 format!("{}", DisplayAddress(&RawAddress::from_string("11:35:11:35:11:35").unwrap())), in test_display_address() 1620 let uuid_16 = Uuid::from_string("0000fef3-0000-1000-8000-00805f9b34fb").unwrap(); in test_get_shortest_slice() 1623 let uuid_32 = Uuid::from_string("00112233-0000-1000-8000-00805f9b34fb").unwrap(); in test_get_shortest_slice() 1626 let uuid_128 = Uuid::from_string("00112233-4455-6677-8899-aabbccddeeff").unwrap(); in test_get_shortest_slice()
|
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/ |
D | iface_bluetooth.rs | 451 Ok(RawAddress::from_string(data.clone()).ok_or_else(|| { in from_dbus()
|