Home
last modified time | relevance | path

Searched refs:remote_address (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbattery_service.rs76 fn get_battery_info(&self, remote_address: RawAddress) -> Option<BatterySet>; in get_battery_info()
80 fn refresh_battery_info(&self, remote_address: RawAddress) -> bool; in refresh_battery_info()
89 remote_address: RawAddress, in on_battery_service_status_updated()
94 fn on_battery_info_updated(&mut self, remote_address: RawAddress, battery_info: BatterySet); in on_battery_info_updated()
239 fn set_battery_info(&mut self, remote_address: &RawAddress, value: &Vec<u8>) -> BatterySet { in set_battery_info()
242 debug!("BAS received battery level for {}: {}", DisplayAddress(&remote_address), level); in set_battery_info()
243 let battery_set = self.battery_sets.entry(*remote_address).or_insert_with(|| { in set_battery_info()
245 *remote_address, in set_battery_info()
258 fn init_device(&self, remote_address: RawAddress, transport: BtTransport) { in init_device()
263 debug!("Attempting GATT connection to {}", DisplayAddress(&remote_address)); in init_device()
[all …]
Dbattery_manager.rs41 fn on_battery_info_updated(&mut self, remote_address: RawAddress, battery_set: BatterySet); in on_battery_info_updated()
57 fn get_battery_information(&self, remote_address: RawAddress) -> Option<BatterySet>; in get_battery_information()
82 pub fn handle_battery_updated(&mut self, remote_address: RawAddress, battery_set: BatterySet) { in handle_battery_updated()
84 callback.on_battery_info_updated(remote_address, battery_set.clone()) in handle_battery_updated()
101 fn get_battery_information(&self, remote_address: RawAddress) -> Option<BatterySet> { in get_battery_information()
102 self.battery_provider_manager.lock().unwrap().get_battery_info(remote_address) in get_battery_information()
Dbattery_provider_manager.rs60 pub fn get_battery_info(&self, remote_address: RawAddress) -> Option<BatterySet> { in get_battery_info()
61 self.battery_info.get(&remote_address)?.pick_best() in get_battery_info()
Dlib.rs437 Message::BatteryProviderManagerBatteryUpdated(remote_address, battery_set) => { in dispatch()
441 .handle_battery_updated(remote_address, battery_set); in dispatch()
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dle_impl.h107 AddressWithType remote_address, in le_acl_connection()
111 : remote_address_(remote_address), in le_acl_connection()
113 assembler_(new acl_manager::assembler(remote_address, queue_down_end, handler)) {} in le_acl_connection()
241 const AddressWithType& remote_address, in add()
250 std::forward_as_tuple(remote_address, std::move(pending_connection), queue_end, handler)); in add()
345 AddressWithType remote_address; in on_le_connection_complete() local
360 remote_address = AddressWithType(address, peer_address_type); in on_le_connection_complete()
385 remote_address = AddressWithType(address, remote_address_type); in on_le_connection_complete()
391 const bool in_filter_accept_list = is_device_in_accept_list(remote_address); in on_le_connection_complete()
404 on_common_le_connection_complete(remote_address); in on_le_connection_complete()
[all …]
Dle_impl_test.cc519 hci::Address remote_address; in TEST_F() local
520 Address::FromString("D0:05:04:03:02:01", remote_address); in TEST_F()
521 hci::AddressWithType address_with_type(remote_address, hci::AddressType::PUBLIC_DEVICE_ADDRESS); in TEST_F()
528 remote_address, in TEST_F()
558 hci::Address remote_address; in TEST_F() local
559 Address::FromString("D0:05:04:03:02:01", remote_address); in TEST_F()
560 hci::AddressWithType address_with_type(remote_address, hci::AddressType::PUBLIC_DEVICE_ADDRESS); in TEST_F()
567 remote_address, in TEST_F()
583 hci::Address remote_address; in TEST_F() local
584 Address::FromString("D0:05:04:03:02:01", remote_address); in TEST_F()
[all …]
Dle_acl_connection.cc129 AddressWithType remote_address) in LeAclConnection() argument
131 remote_address_(remote_address), in LeAclConnection()
Dle_acl_connection.h63 AddressWithType remote_address);
/packages/modules/Bluetooth/system/gd/metrics/
Dmetrics_state_unittest.cc24 bluetooth::hci::Address remote_address = bluetooth::hci::Address::kEmpty; variable
49 remote_address = session_options.remote_address; in LogMetricBluetoothLESession()
99 ASSERT_EQ(remote_address, address1); in TEST()
126 ASSERT_EQ(remote_address, address1); in TEST()
164 ASSERT_EQ(remote_address, address1); in TEST()
190 ASSERT_EQ(remote_address, address1); in TEST()
Dmetrics_state.cc147 session_options.remote_address = address; in UploadLEConnectionSession()
/packages/modules/Bluetooth/system/rust/src/connection/
Dattempt_manager.rs31 pub remote_address: AddressWithType, field
91 ConnectionAttempt { client, mode: ConnectionMode::Direct, remote_address: address }; in register_direct_connection()
119 ConnectionAttempt { client, mode: ConnectionMode::Background, remote_address: address }; in register_background_connection()
138 self.attempts.remove(&ConnectionAttempt { client, mode, remote_address: address }); in cancel_attempt()
155 self.attempts.retain(|attempt, _| attempt.remote_address != address); in remove_unconditionally()
179 .filter(|attempt| attempt.remote_address == address) in process_connection()
211 const CONNECTION_1: LeConnection = LeConnection { remote_address: ADDRESS_1 };
212 const CONNECTION_2: LeConnection = LeConnection { remote_address: ADDRESS_2 };
227 assert_eq!(attempts.active_attempts()[0].remote_address, ADDRESS_1); in test_direct_connection()
309 assert_eq!(attempts.active_attempts()[0].remote_address, ADDRESS_1); in test_background_connection()
[all …]
Dacceptlist_manager.rs29 .map(|attempt| attempt.remote_address) in determine_target_state()
35 .map(|attempt| attempt.remote_address) in determine_target_state()
134 remote_address: ADDRESS_1, in test_determine_target_state()
139 remote_address: ADDRESS_1, in test_determine_target_state()
144 remote_address: ADDRESS_2, in test_determine_target_state()
149 remote_address: ADDRESS_2, in test_determine_target_state()
154 remote_address: ADDRESS_3, in test_determine_target_state()
Dffi.rs120 callback.on_le_connect(address, Ok(LeConnection { remote_address: address })) in on_le_connect_success()
/packages/modules/Bluetooth/system/stack/sdp/
Dsdp_server.cc131 const RawAddress& remote_address) { in sdp_dynamic_change_hfp_version() argument
142 interop_match_addr_or_name(INTEROP_HFP_1_7_ALLOWLIST, &remote_address, in sdp_dynamic_change_hfp_version()
145 interop_match_addr_or_name(INTEROP_HFP_1_9_ALLOWLIST, &remote_address, in sdp_dynamic_change_hfp_version()
158 p_attr->value_ptr[PROFILE_VERSION_POSITION], remote_address); in sdp_dynamic_change_hfp_version()
321 static bool is_device_in_allowlist_for_pbap(RawAddress remote_address, in is_device_in_allowlist_for_pbap() argument
324 interop_match_addr_or_name(INTEROP_ADV_PBAP_VER_1_1, &remote_address, in is_device_in_allowlist_for_pbap()
330 if (btm_sec_is_a_bonded_dev(remote_address)) { in is_device_in_allowlist_for_pbap()
332 INTEROP_ADV_PBAP_VER_1_2, &remote_address, in is_device_in_allowlist_for_pbap()
338 const char* p_name = BTM_SecReadDevName(remote_address); in is_device_in_allowlist_for_pbap()
361 RawAddress remote_address) { in sdp_upgrade_pse_record() argument
[all …]
/packages/modules/Bluetooth/system/gd/hci/
Dle_address_manager_test.cc137 AddressWithType remote_address(Address::kEmpty, AddressType::RANDOM_DEVICE_ADDRESS); in TEST_F() local
140 remote_address, in TEST_F()
159 AddressWithType remote_address(Address::kEmpty, AddressType::RANDOM_DEVICE_ADDRESS); in TEST_F() local
162 remote_address, in TEST_F()
183 AddressWithType remote_address(Address::kEmpty, AddressType::RANDOM_DEVICE_ADDRESS); in TEST_F() local
186 remote_address, in TEST_F()
221 AddressWithType remote_address(Address::kEmpty, AddressType::RANDOM_DEVICE_ADDRESS); in SetUp() local
224 remote_address, in SetUp()
Dhci_layer_unittest.cc241 hci::Address remote_address; in TEST_F() local
242 Address::FromString("D0:05:04:03:02:01", remote_address); in TEST_F()
248 remote_address, in TEST_F()
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/
Diface_battery_manager.rs30 fn on_battery_info_updated(&mut self, remote_address: RawAddress, battery_set: BatterySet) { in on_battery_info_updated()
53 fn get_battery_information(&self, remote_address: RawAddress) -> Option<BatterySet> { in get_battery_information()
/packages/modules/Bluetooth/system/blueberry/tests/gd/hci/
Dle_acl_manager_test.py154 assertThat(dut_le_acl.remote_address).isEqualTo(self.cert_random_address)
174 assertThat(dut_le_acl.remote_address).isEqualTo(self.cert_random_address)
195 assertThat(dut_le_acl.remote_address).isEqualTo(repr(self.cert_public_address))
215 assertThat(dut_le_acl.remote_address).isEqualTo(self.cert_random_address)
231 assertThat(dut_le_acl.remote_address).isEqualTo(self.cert_random_address)
248 assertThat(dut_le_acl.remote_address).isEqualTo(self.cert_random_address)
291 assertThat(dut_le_acl.remote_address).isEqualTo(self.cert_random_address)
/packages/modules/Bluetooth/system/gd/security/
Dfacade_configuration_api.cc67 hci::AddressWithType remote_address, in SetOutOfBandData() argument
73 remote_address, in SetOutOfBandData()
Dfacade_configuration_api.h55 hci::AddressWithType remote_address,
/packages/modules/Bluetooth/system/main/shim/
Dacl.cc299 ClassicConnectionDescriptor(const hci::Address& remote_address, in ClassicConnectionDescriptor()
306 remote_address_(remote_address) {} in ClassicConnectionDescriptor()
1095 auto remote_address = connection->second->GetRemoteAddress(); in disconnect_classic() local
1099 remote_address, handle); in disconnect_classic()
1100 BTM_LogHistory(kBtmLogTag, ToRawAddress(remote_address), in disconnect_classic()
1537 hci::Address remote_address = in OnClassicLinkDisconnected() local
1551 remote_address, handle, ErrorCodeText(reason)); in OnClassicLinkDisconnected()
1553 kBtmLogTag, ToRawAddress(remote_address), "Disconnected", in OnClassicLinkDisconnected()
1557 remote_address, creation_time, teardown_time, handle, in OnClassicLinkDisconnected()
1598 auto remote_address = ToGdAddress(remote_bda); in GetAdvertisingSetConnectedTo() local
[all …]
/packages/modules/Bluetooth/system/main/test/
Dmain_shim_test.cc292 hci::AddressWithType remote_address) { in MockLeAclConnection() argument
295 remote_address_ = remote_address; in MockLeAclConnection()
656 hci::AddressWithType remote_address( in TEST_F() local
663 acl->AcceptLeConnectionFrom(remote_address, true, std::move(promise)); in TEST_F()
671 remote_address); in TEST_F()
673 acl->OnLeConnectSuccess(remote_address, std::move(connection)); in TEST_F()
/packages/modules/Bluetooth/system/gd/os/android/
Dmetrics.cc572 if (!session_options.remote_address.IsEmpty()) { in LogMetricBluetoothLEConnection()
573 metric_id = MetricIdManager::GetInstance().AllocateId(session_options.remote_address); in LogMetricBluetoothLEConnection()
592 session_options.remote_address, in LogMetricBluetoothLEConnection()
/packages/modules/Bluetooth/system/rust/src/
Dconnection.rs75 pub remote_address: AddressWithType, field
193 return Ok(LeConnection { remote_address: address }); in direct_connection()
/packages/modules/Bluetooth/system/rust/src/connection/mocks/
Dmock_le_manager.rs52 .on_le_connect(address, Ok(LeConnection { remote_address: address })); in on_le_connect()

12