Home
last modified time | relevance | path

Searched refs:ConnectionMode (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/system/rust/src/connection/
Dacceptlist_manager.rs11 attempt_manager::{ConnectionAttempt, ConnectionMode},
28 .filter(|attempt| attempt.mode == ConnectionMode::Background) in determine_target_state()
34 .filter(|attempt| attempt.mode == ConnectionMode::Direct) in determine_target_state()
133 mode: ConnectionMode::Background, in test_determine_target_state()
138 mode: ConnectionMode::Background, in test_determine_target_state()
143 mode: ConnectionMode::Background, in test_determine_target_state()
148 mode: ConnectionMode::Direct, in test_determine_target_state()
153 mode: ConnectionMode::Direct, in test_determine_target_state()
179 assert_eq!(mock_le_manager.current_connection_mode(), Some(ConnectionMode::Direct)); in test_add_to_direct_list()
197 assert_eq!(mock_le_manager.current_connection_mode(), Some(ConnectionMode::Background)); in test_add_to_background_list()
[all …]
Dattempt_manager.rs16 pub enum ConnectionMode { enum
30 pub mode: ConnectionMode,
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()
135 mode: ConnectionMode, in cancel_attempt() argument
184 if attempt.mode == ConnectionMode::Direct { in process_connection()
226 assert_eq!(attempts.active_attempts()[0].mode, ConnectionMode::Direct); in test_direct_connection()
240 attempts.cancel_attempt(CLIENT_1, ADDRESS_1, ConnectionMode::Direct).unwrap(); in test_cancel_direct_connection()
273 attempts.cancel_attempt(CLIENT_1, ADDRESS_1, ConnectionMode::Direct).unwrap(); in test_two_direct_connection_cancel_one()
288 attempts.cancel_attempt(CLIENT_1, ADDRESS_1, ConnectionMode::Direct).unwrap(); in test_drop_pending_connection_after_cancel_and_restart()
[all …]
Dffi.rs17 attempt_manager::ConnectionMode,
199 ConnectionMode::Direct, in register_callbacks()
221 ConnectionMode::Background, in register_callbacks()
/packages/modules/Bluetooth/system/rust/src/connection/mocks/
Dmock_le_manager.rs10 attempt_manager::ConnectionMode,
38 pub fn current_connection_mode(&self) -> Option<ConnectionMode> { in current_connection_mode() argument
110 pub fn current_connection_mode(&self) -> Option<ConnectionMode> { in current_connection_mode() argument
114 Some(ConnectionMode::Direct) in current_connection_mode()
121 Some(ConnectionMode::Background) in current_connection_mode()
/packages/modules/Bluetooth/system/rust/src/
Dconnection.rs21 attempt_manager::{ConnectionAttempts, ConnectionMode},
222 mode: ConnectionMode, in cancel_connection() argument
288 assert_eq!(mock_le_manager.current_connection_mode(), Some(ConnectionMode::Direct)); in test_single_direct_connection()
321 assert_eq!(mock_le_manager.current_connection_mode(), Some(ConnectionMode::Background)); in test_single_background_connection()
389 assert_eq!(mock_le_manager.current_connection_mode(), Some(ConnectionMode::Background)); in test_resolved_background_connection_after_disconnect()
428 assert_eq!(mock_le_manager.current_connection_mode(), Some(ConnectionMode::Direct)); in test_stacked_direct_connections_timeout()