Home
last modified time | relevance | path

Searched refs:connection_state (Results 1 – 22 of 22) sorted by relevance

/system/connectivity/shill/
Dsocket_info_reader_unittest.cc99 EXPECT_EQ(info1.connection_state(), info2.connection_state()); in ExpectSocketInfoEqual()
369 SocketInfo::ConnectionState connection_state = in TEST_F() local
372 EXPECT_FALSE(reader_.ParseConnectionState("", &connection_state)); in TEST_F()
373 EXPECT_FALSE(reader_.ParseConnectionState("0", &connection_state)); in TEST_F()
374 EXPECT_FALSE(reader_.ParseConnectionState("X", &connection_state)); in TEST_F()
376 EXPECT_TRUE(reader_.ParseConnectionState("00", &connection_state)); in TEST_F()
377 EXPECT_EQ(SocketInfo::kConnectionStateUnknown, connection_state); in TEST_F()
378 EXPECT_TRUE(reader_.ParseConnectionState("01", &connection_state)); in TEST_F()
379 EXPECT_EQ(SocketInfo::kConnectionStateEstablished, connection_state); in TEST_F()
380 EXPECT_TRUE(reader_.ParseConnectionState("02", &connection_state)); in TEST_F()
[all …]
Dsocket_info.h61 SocketInfo(ConnectionState connection_state,
79 ConnectionState connection_state() const { return connection_state_; } in connection_state() function
80 void set_connection_state(ConnectionState connection_state) { in set_connection_state() argument
81 connection_state_ = connection_state; in set_connection_state()
Dsocket_info_reader.cc110 SocketInfo::ConnectionState connection_state = in ParseSocketInfo() local
112 if (!ParseConnectionState(tokens[3], &connection_state)) { in ParseSocketInfo()
115 socket_info->set_connection_state(connection_state); in ParseSocketInfo()
203 const string& input, SocketInfo::ConnectionState* connection_state) { in ParseConnectionState() argument
211 *connection_state = static_cast<SocketInfo::ConnectionState>(result); in ParseConnectionState()
213 *connection_state = SocketInfo::kConnectionStateUnknown; in ParseConnectionState()
Dsocket_info.cc21 SocketInfo::SocketInfo(ConnectionState connection_state, in SocketInfo() argument
29 : connection_state_(connection_state), in SocketInfo()
Dsocket_info_unittest.cc37 EXPECT_EQ(info1.connection_state(), info2.connection_state()); in ExpectSocketInfoEqual()
Dconnection_health_checker.cc310 sock_info.connection_state() != in OnConnectionComplete()
351 (sock_info.connection_state() != in VerifySentData()
353 sock_info.connection_state() != in VerifySentData()
359 << sock_info.connection_state(); in VerifySentData()
Dtraffic_monitor.cc95 << ", State=" << info.connection_state() in BuildIPPortToTxQueueLength()
99 info.connection_state() != SocketInfo::kConnectionStateEstablished || in BuildIPPortToTxQueueLength()
Dsocket_info_reader.h72 SocketInfo::ConnectionState* connection_state);
Dmanager.cc2106 string connection_state = service ? service->GetStateString() : kStateIdle; in RefreshConnectionState() local
2107 if (connection_state_ == connection_state) { in RefreshConnectionState()
2110 connection_state_ = connection_state; in RefreshConnectionState()
/system/connectivity/shill/dbus/
Dchromeos_third_party_vpn_dbus_adaptor.cc107 brillo::ErrorPtr* error, uint32_t connection_state) { in UpdateConnectionState() argument
108 SLOG(this, 2) << __func__ << "(" << connection_state << ")"; in UpdateConnectionState()
114 if (ConvertConnectState(static_cast<ExternalConnectState>(connection_state), in UpdateConnectionState()
Dchromeos_third_party_vpn_dbus_adaptor.h60 uint32_t connection_state) override;
/system/core/adb/
Dtransport_test.cpp123 ASSERT_EQ(kCsHost, t.connection_state); in TEST()
137 ASSERT_EQ(kCsHost, t.connection_state); in TEST()
154 ASSERT_EQ(kCsHost, t.connection_state); in TEST()
Dadb.cpp274 t->connection_state = kCsBootloader; in parse_banner()
278 t->connection_state = kCsDevice; in parse_banner()
282 t->connection_state = kCsRecovery; in parse_banner()
286 t->connection_state = kCsSideload; in parse_banner()
290 t->connection_state = kCsHost; in parse_banner()
295 if (t->connection_state != kCsOffline) { in handle_new_connection()
296 t->connection_state = kCsOffline; in handle_new_connection()
335 t->connection_state = kCsOffline; in handle_packet()
347 t->connection_state = kCsUnauthorized; in handle_packet()
Dtransport_usb.cpp91 t->connection_state = state; in init_usb_transport()
Dtransport.cpp528 if (t->connection_state != kCsNoPerm) { in transport_registration_func()
669 if (t->connection_state == kCsNoPerm) { in acquire_one_transport()
718 if (result && result->connection_state == kCsUnauthorized) { in acquire_one_transport()
730 if (result && result->connection_state == kCsOffline) { in acquire_one_transport()
751 switch (connection_state) { in connection_state_name()
1033 return t->usb == usb && t->connection_state == kCsNoPerm; in unregister_usb_transport()
Dtransport.h76 ConnectionState connection_state = kCsOffline; variable
Dadb.h229 ConnectionState connection_state(atransport *t);
Dtransport_local.cpp402 t->connection_state = kCsOffline; in init_socket_transport()
Dservices.cpp382 if (t != nullptr && (sinfo->state == kCsAny || sinfo->state == t->connection_state)) { in wait_for_state()
Dsockets.cpp788 if (!(s->transport) || (s->transport->connection_state == kCsOffline)) { in smart_socket_enqueue()
/system/connectivity/shill/vpn/
Dthird_party_vpn_driver.cc153 Service::ConnectState connection_state, std::string* error_message) { in UpdateConnectionState() argument
158 if (service_ && connection_state == Service::kStateFailure) { in UpdateConnectionState()
159 service_->SetState(connection_state); in UpdateConnectionState()
162 } else if (!service_ || connection_state != Service::kStateOnline) { in UpdateConnectionState()
Dthird_party_vpn_driver.h59 void UpdateConnectionState(Service::ConnectState connection_state,