Home
last modified time | relevance | path

Searched refs:ConnectionState (Results 1 – 25 of 60) sorted by relevance

123

/packages/modules/Bluetooth/system/bta/le_audio/
Dmetrics_collector_test.cc139 group_id1, device1, bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F()
142 group_id1, device1, bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F()
154 group_id1, device1, bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F()
157 group_id1, device1, bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F()
160 group_id1, device1, bluetooth::le_audio::ConnectionState::DISCONNECTED, in TEST_F()
177 group_id1, device1, bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F()
180 group_id1, device1, bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F()
183 group_id1, device1, bluetooth::le_audio::ConnectionState::DISCONNECTED, in TEST_F()
198 group_id1, device1, bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F()
201 group_id1, device1, bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F()
[all …]
Dmetrics_collector.cc28 using bluetooth::le_audio::ConnectionState;
89 void AddStateChangedEvent(ConnectionState state, ConnectionStatus status) { in AddStateChangedEvent()
91 case ConnectionState::CONNECTING: in AddStateChangedEvent()
94 case ConnectionState::CONNECTED: in AddStateChangedEvent()
98 case ConnectionState::DISCONNECTED: in AddStateChangedEvent()
102 case ConnectionState::DISCONNECTING: in AddStateChangedEvent()
131 bluetooth::le_audio::ConnectionState state, in AddStateChangedEvent()
140 if (state == bluetooth::le_audio::ConnectionState::DISCONNECTED || in AddStateChangedEvent()
141 (state == bluetooth::le_audio::ConnectionState::CONNECTED && in AddStateChangedEvent()
223 bluetooth::le_audio::ConnectionState::DISCONNECTED, in Flush()
[all …]
Dle_audio_client_test.cc278 (ConnectionState state, const RawAddress& address), (override));
1863 OnConnectionState(ConnectionState::DISCONNECTED, address)) in DisconnectLeAudioWithGattClose()
1887 OnConnectionState(ConnectionState::DISCONNECTED, address)) in DisconnectLeAudioWithAclClose()
1939 OnConnectionState(ConnectionState::CONNECTED, addr)) in ConnectCsisDevice()
1976 OnConnectionState(ConnectionState::CONNECTED, addr)) in ConnectNonCsisDevice()
3058 OnConnectionState(ConnectionState::DISCONNECTED, test_address0)) in TEST_F()
3075 OnConnectionState(ConnectionState::DISCONNECTED, test_address0)) in TEST_F()
3092 OnConnectionState(ConnectionState::DISCONNECTED, test_address0)) in TEST_F()
3111 OnConnectionState(ConnectionState::CONNECTED, test_address0)) in TEST_F()
3127 OnConnectionState(ConnectionState::CONNECTED, test_address0)) in TEST_F()
[all …]
Dmetrics_collector.h67 bluetooth::le_audio::ConnectionState state,
107 bluetooth::le_audio::ConnectionState state,
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/stats/
DCarStatsServiceTest.java29 import com.android.car.stats.VmsClientLogger.ConnectionState;
89 .logConnectionState(ConnectionState.CONNECTING); in testLogConnectionState_Connecting()
96 .logConnectionState(ConnectionState.CONNECTED); in testLogConnectionState_Connected()
103 .logConnectionState(ConnectionState.DISCONNECTED); in testLogConnectionState_Disconnected()
110 .logConnectionState(ConnectionState.TERMINATED); in testLogConnectionState_Terminated()
117 .logConnectionState(ConnectionState.CONNECTION_ERROR); in testLogConnectionState_ConnectionError()
124 .logConnectionState(ConnectionState.CONNECTING); in testLogConnectionState_UnknownUID()
131 .logConnectionState(ConnectionState.CONNECTING); in testLogConnectionState_MultipleClients_MultipleStates()
133 .logConnectionState(ConnectionState.CONNECTED); in testLogConnectionState_MultipleClients_MultipleStates()
135 .logConnectionState(ConnectionState.DISCONNECTED); in testLogConnectionState_MultipleClients_MultipleStates()
[all …]
/packages/modules/adb/
Dtransport_test.cpp25 ASSERT_EQ("offline", to_string(ConnectionState::kCsOffline)); in TEST()
26 ASSERT_EQ("bootloader", to_string(ConnectionState::kCsBootloader)); in TEST()
27 ASSERT_EQ("device", to_string(ConnectionState::kCsDevice)); in TEST()
28 ASSERT_EQ("host", to_string(ConnectionState::kCsHost)); in TEST()
29 ASSERT_EQ("recovery", to_string(ConnectionState::kCsRecovery)); in TEST()
30 ASSERT_EQ("rescue", to_string(ConnectionState::kCsRescue)); in TEST()
31 ASSERT_EQ("sideload", to_string(ConnectionState::kCsSideload)); in TEST()
32 ASSERT_EQ("unauthorized", to_string(ConnectionState::kCsUnauthorized)); in TEST()
33 ASSERT_EQ("authorizing", to_string(ConnectionState::kCsAuthorizing)); in TEST()
34 ASSERT_EQ("connecting", to_string(ConnectionState::kCsConnecting)); in TEST()
Dtransport.cpp978 ConnectionState state = result->GetConnectionState(); in acquire_one_transport()
1064 ConnectionState atransport::GetConnectionState() const { in GetConnectionState()
1068 void atransport::SetConnectionState(ConnectionState state) { in SetConnectionState()
1084 if (GetConnectionState() != ConnectionState::kCsDetached) { in Attach()
1111 if (GetConnectionState() == ConnectionState::kCsDetached) { in Detach()
1327 static adb::proto::ConnectionState adbStateFromProto(ConnectionState state) { in adbStateFromProto()
1330 return adb::proto::ConnectionState::CONNECTING; in adbStateFromProto()
1332 return adb::proto::ConnectionState::AUTHORIZING; in adbStateFromProto()
1334 return adb::proto::ConnectionState::UNAUTHORIZED; in adbStateFromProto()
1336 return adb::proto::ConnectionState::NOPERMISSION; in adbStateFromProto()
[all …]
Dadb.h105 enum ConnectionState { enum
125 std::string to_string(ConnectionState state);
127 inline bool ConnectionStateIsOnline(ConnectionState state) { in ConnectionStateIsOnline()
Dtransport.h267 atransport(ReconnectCallback reconnect, ConnectionState state) in atransport()
282 atransport(ConnectionState state = kCsOffline)
292 ConnectionState GetConnectionState() const;
293 void SetConnectionState(ConnectionState state);
414 std::atomic<ConnectionState> connection_state_;
/packages/modules/Bluetooth/system/gd/rust/topshim/csis/
Dcsis_shim.cc38 static BtCsisConnectionState to_rust_btcsis_connection_state(csis::ConnectionState state) { in to_rust_btcsis_connection_state()
40 case csis::ConnectionState::DISCONNECTED: in to_rust_btcsis_connection_state()
42 case csis::ConnectionState::CONNECTING: in to_rust_btcsis_connection_state()
44 case csis::ConnectionState::CONNECTED: in to_rust_btcsis_connection_state()
46 case csis::ConnectionState::DISCONNECTING: in to_rust_btcsis_connection_state()
76 static void connection_state_cb(const RawAddress& addr, csis::ConnectionState state) { in connection_state_cb()
103 void OnConnectionState(const RawAddress& addr, csis::ConnectionState state) override { in OnConnectionState()
/packages/modules/Bluetooth/system/gd/rust/topshim/vc/
Dvc_shim.cc37 static BtVcConnectionState to_rust_btvc_connection_state(vc::ConnectionState state) { in to_rust_btvc_connection_state()
39 case vc::ConnectionState::DISCONNECTED: in to_rust_btvc_connection_state()
41 case vc::ConnectionState::CONNECTING: in to_rust_btvc_connection_state()
43 case vc::ConnectionState::CONNECTED: in to_rust_btvc_connection_state()
45 case vc::ConnectionState::DISCONNECTING: in to_rust_btvc_connection_state()
53 static void connection_state_cb(vc::ConnectionState state, const RawAddress& address) { in connection_state_cb()
96 void OnConnectionState(vc::ConnectionState state, const RawAddress& address) override { in OnConnectionState()
/packages/modules/Bluetooth/system/bta/vc/
Dvc_test.cc45 using bluetooth::vc::ConnectionState;
76 (ConnectionState state, const RawAddress& address), (override));
587 OnConnectionState(ConnectionState::DISCONNECTED, test_address)) in TEST_F()
594 OnConnectionState(ConnectionState::DISCONNECTED, test_address)) in TEST_F()
613 OnConnectionState(ConnectionState::CONNECTED, test_address)) in TEST_F()
621 OnConnectionState(ConnectionState::DISCONNECTED, test_address)); in TEST_F()
635 OnConnectionState(ConnectionState::CONNECTED, test_address)); in TEST_F()
643 OnConnectionState(ConnectionState::CONNECTED, test_address)); in TEST_F()
661 OnConnectionState(ConnectionState::CONNECTED, address)) in TEST_F()
668 OnConnectionState(ConnectionState::DISCONNECTED, address)); in TEST_F()
[all …]
/packages/services/Car/service/src/com/android/car/stats/
DCarStatsService.java35 import com.android.car.stats.VmsClientLogger.ConnectionState;
59 entry.getConnectionStateCount(ConnectionState.CONNECTING),
60 entry.getConnectionStateCount(ConnectionState.CONNECTED),
61 entry.getConnectionStateCount(ConnectionState.DISCONNECTED),
62 entry.getConnectionStateCount(ConnectionState.TERMINATED),
63 entry.getConnectionStateCount(ConnectionState.CONNECTION_ERROR));
/packages/modules/adb/proto/
Ddevices.proto24 // This mirrors adb.h's "enum ConnectionState"
25 enum ConnectionState { enum
49 ConnectionState state = 2;
/packages/modules/Bluetooth/system/bta/has/
Dhas_client_test.cc54 using ::bluetooth::has::ConnectionState;
103 (ConnectionState state, const RawAddress& address), (override));
1249 OnConnectionState(ConnectionState::DISCONNECTED, test_address)); in TEST_F()
1280 OnConnectionState(ConnectionState::CONNECTED, test_address)); in TEST_F()
1291 OnConnectionState(ConnectionState::CONNECTED, test_address)) in TEST_F()
1296 OnConnectionState(ConnectionState::DISCONNECTED, test_address)) in TEST_F()
1307 OnConnectionState(ConnectionState::DISCONNECTED, test_address)) in TEST_F()
1318 OnConnectionState(ConnectionState::DISCONNECTED, test_address)) in TEST_F()
1321 OnConnectionState(ConnectionState::CONNECTED, test_address)) in TEST_F()
1333 OnConnectionState(ConnectionState::DISCONNECTED, test_address)) in TEST_F()
[all …]
/packages/modules/Bluetooth/system/gd/rust/topshim/le_audio/
Dle_audio_shim.cc85 le_audio::ConnectionState state) { in to_rust_btle_audio_connection_state()
87 case le_audio::ConnectionState::DISCONNECTED: in to_rust_btle_audio_connection_state()
89 case le_audio::ConnectionState::CONNECTING: in to_rust_btle_audio_connection_state()
91 case le_audio::ConnectionState::CONNECTED: in to_rust_btle_audio_connection_state()
93 case le_audio::ConnectionState::DISCONNECTING: in to_rust_btle_audio_connection_state()
186 static void connection_state_cb(le_audio::ConnectionState state, const RawAddress& address) { in connection_state_cb()
263 void OnConnectionState(le_audio::ConnectionState state, const RawAddress& address) override { in OnConnectionState()
/packages/modules/Bluetooth/system/include/hardware/
Dbt_hearing_aid.h26 enum class ConnectionState { enum
38 virtual void OnConnectionState(ConnectionState state,
Dbt_csis.h32 enum class ConnectionState : uint8_t { enum
57 ConnectionState state) = 0;
Dbt_vc.h28 enum class ConnectionState { enum
40 virtual void OnConnectionState(ConnectionState state,
Dbt_has.h29 enum class ConnectionState : uint8_t { enum
83 virtual void OnConnectionState(ConnectionState state,
/packages/modules/Bluetooth/system/btif/src/
Dbtif_hearing_aid.cc34 using bluetooth::hearing_aid::ConnectionState;
62 void OnConnectionState(ConnectionState state, in OnConnectionState()
Dbtif_csis_client.cc34 using bluetooth::csis::ConnectionState;
130 ConnectionState state) override { in OnConnectionState()
/packages/modules/Bluetooth/system/bta/csis/
Dcsis_client_test.cc56 using bluetooth::csis::ConnectionState;
115 (const RawAddress& address, ConnectionState state), (override));
545 ConnectionState::DISCONNECTED)); in TestDisconnect()
556 OnConnectionState(address, ConnectionState::CONNECTED)) in TestAddFromStorage()
784 OnConnectionState(test_address, ConnectionState::DISCONNECTED)); in TEST_F()
797 OnConnectionState(test_address, ConnectionState::DISCONNECTED)); in TEST_F()
810 OnConnectionState(test_address, ConnectionState::CONNECTED)); in TEST_F()
914 OnConnectionState(test_address, ConnectionState::CONNECTED)); in TEST_F()
928 OnConnectionState(test_address, ConnectionState::CONNECTED)) in TEST_F()
941 OnConnectionState(test_address, ConnectionState::CONNECTED)) in TEST_F()
[all …]
/packages/services/Car/service/src/com/android/car/vms/
DVmsBrokerService.java149 .logConnectionState(VmsClientLogger.ConnectionState.CONNECTED); in registerClient()
154 VmsClientLogger.ConnectionState.DISCONNECTED); in registerClient()
158 .logConnectionState(VmsClientLogger.ConnectionState.DISCONNECTED); in registerClient()
174 unregisterClient(clientToken, VmsClientLogger.ConnectionState.TERMINATED); in unregisterClient()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Da2dp.rs316 ConnectionState(RawAddress, BtavConnectionState, A2dpError), enumerator
328 cb_variant!(A2dpCb, connection_state_callback -> A2dpCallbacks::ConnectionState,
441 ConnectionState(RawAddress, BtavConnectionState, A2dpError), enumerator
452 cb_variant!(A2dpSinkCb, sink_connection_state_callback -> A2dpSinkCallbacks::ConnectionState,

123