Home
last modified time | relevance | path

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

123

/packages/modules/Bluetooth/system/bta/le_audio/
Dmetrics_collector_test.cc139 bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F()
142 bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F()
154 bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F()
157 bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F()
160 bluetooth::le_audio::ConnectionState::DISCONNECTED, in TEST_F()
177 bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F()
180 bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F()
183 bluetooth::le_audio::ConnectionState::DISCONNECTED, in TEST_F()
198 bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F()
201 bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F()
[all …]
Dmetrics_collector.cc35 using bluetooth::le_audio::ConnectionState;
86 void AddStateChangedEvent(ConnectionState state, ConnectionStatus status) { in AddStateChangedEvent()
88 case ConnectionState::CONNECTING: in AddStateChangedEvent()
91 case ConnectionState::CONNECTED: in AddStateChangedEvent()
95 case ConnectionState::DISCONNECTED: in AddStateChangedEvent()
99 case ConnectionState::DISCONNECTING: in AddStateChangedEvent()
127 void AddStateChangedEvent(const RawAddress& address, bluetooth::le_audio::ConnectionState state, in AddStateChangedEvent()
136 if (state == bluetooth::le_audio::ConnectionState::DISCONNECTED || in AddStateChangedEvent()
137 (state == bluetooth::le_audio::ConnectionState::CONNECTED && in AddStateChangedEvent()
211 p.second->AddStateChangedEvent(bluetooth::le_audio::ConnectionState::DISCONNECTED, in Flush()
[all …]
Dmetrics_collector.h66 bluetooth::le_audio::ConnectionState state,
106 bluetooth::le_audio::ConnectionState state,
Dle_audio_client_test.cc235 MOCK_METHOD((void), OnConnectionState, (ConnectionState state, const RawAddress& address),
1768 OnConnectionState(ConnectionState::DISCONNECTED, address)) in DisconnectLeAudioWithGattClose()
1790 OnConnectionState(ConnectionState::DISCONNECTED, address)) in DisconnectLeAudioWithAclClose()
1834 OnConnectionState(ConnectionState::CONNECTED, addr)) in ConnectCsisDevice()
1867 OnConnectionState(ConnectionState::CONNECTED, addr)) in ConnectNonCsisDevice()
3050 OnConnectionState(ConnectionState::DISCONNECTED, test_address0)) in TEST_F()
3153 OnConnectionState(ConnectionState::DISCONNECTED, test_address0)) in TEST_F()
3169 OnConnectionState(ConnectionState::DISCONNECTED, test_address0)) in TEST_F()
3185 OnConnectionState(ConnectionState::DISCONNECTED, test_address0)) in TEST_F()
3203 OnConnectionState(ConnectionState::CONNECTED, test_address0)) in TEST_F()
[all …]
/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/Bluetooth/android/app/src/com/android/bluetooth/audio_util/
DMediaBrowserWrapper.java59 private enum ConnectionState { enum in MediaBrowserWrapper
84 private ConnectionState mBrowserConnectionState = ConnectionState.DISCONNECTED;
120 if (mBrowserConnectionState != ConnectionState.CONNECTED) { in getRootId()
137 if (mBrowserConnectionState != ConnectionState.CONNECTED) { in playItem()
164 if (mBrowserConnectionState != ConnectionState.CONNECTED) { in getFolderItems()
242 if (mBrowserConnectionState != ConnectionState.DISCONNECTED) { in connect()
249 mBrowserConnectionState = ConnectionState.CONNECTING; in connect()
261 if (mBrowserConnectionState == ConnectionState.DISCONNECTED) { in _disconnect()
268 mBrowserConnectionState = ConnectionState.DISCONNECTED; in _disconnect()
285 mBrowserConnectionState = ConnectionState.CONNECTED; in onConnected()
[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.cpp985 ConnectionState state = result->GetConnectionState(); in acquire_one_transport()
1071 ConnectionState atransport::GetConnectionState() const { in GetConnectionState()
1075 void atransport::SetConnectionState(ConnectionState state) { in SetConnectionState()
1094 if (GetConnectionState() != ConnectionState::kCsDetached) { in Attach()
1124 if (GetConnectionState() == ConnectionState::kCsDetached) { in Detach()
1341 static adb::proto::ConnectionState adbStateFromProto(ConnectionState state) { in adbStateFromProto()
1344 return adb::proto::ConnectionState::CONNECTING; in adbStateFromProto()
1346 return adb::proto::ConnectionState::AUTHORIZING; in adbStateFromProto()
1348 return adb::proto::ConnectionState::UNAUTHORIZED; in adbStateFromProto()
1350 return adb::proto::ConnectionState::NOPERMISSION; in adbStateFromProto()
[all …]
Dtransport.h270 atransport(TransportType t, ReconnectCallback reconnect, ConnectionState state) in atransport()
286 atransport(TransportType t, ConnectionState state = kCsOffline)
296 ConnectionState GetConnectionState() const;
297 void SetConnectionState(ConnectionState state);
418 std::atomic<ConnectionState> connection_state_;
Dadb.h105 enum ConnectionState { enum
125 std::string to_string(ConnectionState state);
127 inline bool ConnectionStateIsOnline(ConnectionState state) { in ConnectionStateIsOnline()
/packages/modules/Bluetooth/system/gd/rust/topshim/csis/
Dcsis_shim.cc37 static BtCsisConnectionState to_rust_btcsis_connection_state(csis::ConnectionState state) { in to_rust_btcsis_connection_state()
39 case csis::ConnectionState::DISCONNECTED: in to_rust_btcsis_connection_state()
41 case csis::ConnectionState::CONNECTING: in to_rust_btcsis_connection_state()
43 case csis::ConnectionState::CONNECTED: in to_rust_btcsis_connection_state()
45 case csis::ConnectionState::DISCONNECTING: in to_rust_btcsis_connection_state()
75 static void connection_state_cb(const RawAddress& addr, csis::ConnectionState state) { in connection_state_cb()
102 void OnConnectionState(const RawAddress& addr, csis::ConnectionState state) override { in OnConnectionState()
/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/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/has/
Dhas_client_test.cc59 using ::bluetooth::has::ConnectionState;
107 MOCK_METHOD((void), OnConnectionState, (ConnectionState state, const RawAddress& address),
1189 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)); in TEST_F()
1228 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::CONNECTED, test_address)); in TEST_F()
1240 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::CONNECTED, test_address)).Times(1); in TEST_F()
1243 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(1); in TEST_F()
1255 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::CONNECTED, test_address)).Times(1); in TEST_F()
1258 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(1); in TEST_F()
1267 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(0); in TEST_F()
1276 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(1); in TEST_F()
[all …]
/packages/modules/adb/proto/
Dadb_host.proto24 // This mirrors adb.h's "enum ConnectionState"
25 enum ConnectionState { enum
49 ConnectionState state = 2;
/packages/modules/Bluetooth/system/gd/rust/topshim/le_audio/
Dle_audio_shim.cc84 le_audio::ConnectionState state) { in to_rust_btle_audio_connection_state()
86 case le_audio::ConnectionState::DISCONNECTED: in to_rust_btle_audio_connection_state()
88 case le_audio::ConnectionState::CONNECTING: in to_rust_btle_audio_connection_state()
90 case le_audio::ConnectionState::CONNECTED: in to_rust_btle_audio_connection_state()
92 case le_audio::ConnectionState::DISCONNECTING: in to_rust_btle_audio_connection_state()
185 static void connection_state_cb(le_audio::ConnectionState state, const RawAddress& address) { in connection_state_cb()
260 void OnConnectionState(le_audio::ConnectionState state, const RawAddress& address) override { in OnConnectionState()
/packages/modules/Bluetooth/system/bta/vc/
Dvc_test.cc59 using bluetooth::vc::ConnectionState;
87 MOCK_METHOD((void), OnConnectionState, (ConnectionState state, const RawAddress& address),
817 EXPECT_CALL(callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(1); in TEST_F()
822 EXPECT_CALL(callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(1); in TEST_F()
838 EXPECT_CALL(callbacks, OnConnectionState(ConnectionState::CONNECTED, test_address)).Times(0); in TEST_F()
844 EXPECT_CALL(callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)); in TEST_F()
857 EXPECT_CALL(callbacks, OnConnectionState(ConnectionState::CONNECTED, test_address)); in TEST_F()
864 EXPECT_CALL(callbacks, OnConnectionState(ConnectionState::CONNECTED, test_address)); in TEST_F()
881 EXPECT_CALL(callbacks, OnConnectionState(ConnectionState::DISCONNECTED, address)).Times(1); in TEST_F()
900 EXPECT_CALL(callbacks, OnConnectionState(ConnectionState::CONNECTED, address)).Times(0); in TEST_F()
[all …]
/packages/modules/Bluetooth/system/include/hardware/
Dbt_hearing_aid.h28 enum class ConnectionState { DISCONNECTED = 0, CONNECTING, CONNECTED, DISCONNECTING }; enum
35 virtual void OnConnectionState(ConnectionState state, const RawAddress& address) = 0;
Dbt_csis.h32 enum class ConnectionState : uint8_t { enum
56 virtual void OnConnectionState(const RawAddress& addr, ConnectionState state) = 0;
Dbt_has.h30 enum class ConnectionState : uint8_t { enum
84 virtual void OnConnectionState(ConnectionState state, const RawAddress& addr) = 0;
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid_test.cc59 using ::bluetooth::hearing_aid::ConnectionState;
93 MOCK_METHOD((void), OnConnectionState, (ConnectionState state, const RawAddress& address),
438 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(1); in TEST_F()
449 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::CONNECTED, test_address)); in TEST_F()
461 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::CONNECTED, test_address)).Times(1); in TEST_F()
466 EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(2); in TEST_F()
/packages/modules/Bluetooth/system/bta/csis/
Dcsis_client_test.cc57 using bluetooth::csis::ConnectionState;
110 MOCK_METHOD((void), OnConnectionState, (const RawAddress& address, ConnectionState state),
470 EXPECT_CALL(*callbacks, OnConnectionState(test_address, ConnectionState::DISCONNECTED)); in TestDisconnect()
480 EXPECT_CALL(*callbacks, OnConnectionState(address, ConnectionState::CONNECTED)).Times(1); in TestAddFromStorage()
682 EXPECT_CALL(*callbacks, OnConnectionState(test_address, ConnectionState::DISCONNECTED)).Times(1); in TEST_F()
715 EXPECT_CALL(*callbacks, OnConnectionState(test_address, ConnectionState::DISCONNECTED)); in TEST_F()
727 EXPECT_CALL(*callbacks, OnConnectionState(test_address, ConnectionState::DISCONNECTED)); in TEST_F()
739 EXPECT_CALL(*callbacks, OnConnectionState(test_address, ConnectionState::CONNECTED)); in TEST_F()
840 EXPECT_CALL(*callbacks, OnConnectionState(test_address, ConnectionState::CONNECTED)); in TEST_F()
852 EXPECT_CALL(*callbacks, OnConnectionState(test_address, ConnectionState::CONNECTED)).Times(0); in TEST_F()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_hearing_aid.cc40 using bluetooth::hearing_aid::ConnectionState;
64 void OnConnectionState(ConnectionState state, const RawAddress& address) override { in OnConnectionState()
Dbtif_csis_client.cc37 using bluetooth::csis::ConnectionState;
126 void OnConnectionState(const RawAddress& addr, ConnectionState state) override { in OnConnectionState()
/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()

123