Home
last modified time | relevance | path

Searched refs:ConnectionType (Results 1 – 25 of 42) sorted by relevance

12

/system/update_engine/
Dconnection_utils.cc30 ConnectionType ParseConnectionType(const std::string& type_str) { in ParseConnectionType()
32 return ConnectionType::kEthernet; in ParseConnectionType()
34 return ConnectionType::kWifi; in ParseConnectionType()
36 return ConnectionType::kWimax; in ParseConnectionType()
38 return ConnectionType::kBluetooth; in ParseConnectionType()
40 return ConnectionType::kCellular; in ParseConnectionType()
42 return ConnectionType::kDisconnected; in ParseConnectionType()
44 return ConnectionType::kUnknown; in ParseConnectionType()
58 const char* StringForConnectionType(ConnectionType type) { in StringForConnectionType()
60 case ConnectionType::kEthernet: in StringForConnectionType()
[all …]
Dconnection_manager_unittest.cc76 ConnectionType expected_type);
78 void TestWithServiceDisconnected(ConnectionType expected_type);
143 ConnectionType expected_type) { in TestWithServiceType()
150 ConnectionType type; in TestWithServiceType()
164 ConnectionType type; in TestWithServiceTethering()
173 ConnectionType expected_type) { in TestWithServiceDisconnected()
176 ConnectionType type; in TestWithServiceDisconnected()
185 TestWithServiceType(shill::kTypeEthernet, nullptr, ConnectionType::kEthernet); in TEST_F()
186 TestWithServiceType(shill::kTypeWifi, nullptr, ConnectionType::kWifi); in TEST_F()
187 TestWithServiceType(shill::kTypeWimax, nullptr, ConnectionType::kWimax); in TEST_F()
[all …]
Dmetrics_utils_unittest.cc32 EXPECT_EQ(metrics::ConnectionType::kUnknown, in TEST()
33 GetConnectionType(ConnectionType::kUnknown, in TEST()
35 EXPECT_EQ(metrics::ConnectionType::kDisconnected, in TEST()
36 GetConnectionType(ConnectionType::kDisconnected, in TEST()
38 EXPECT_EQ(metrics::ConnectionType::kEthernet, in TEST()
39 GetConnectionType(ConnectionType::kEthernet, in TEST()
42 metrics::ConnectionType::kWifi, in TEST()
43 GetConnectionType(ConnectionType::kWifi, ConnectionTethering::kUnknown)); in TEST()
45 metrics::ConnectionType::kWimax, in TEST()
46 GetConnectionType(ConnectionType::kWimax, ConnectionTethering::kUnknown)); in TEST()
[all …]
Dmetrics_utils.cc248 metrics::ConnectionType GetConnectionType(ConnectionType type, in GetConnectionType()
251 case ConnectionType::kUnknown: in GetConnectionType()
252 return metrics::ConnectionType::kUnknown; in GetConnectionType()
254 case ConnectionType::kDisconnected: in GetConnectionType()
255 return metrics::ConnectionType::kDisconnected; in GetConnectionType()
257 case ConnectionType::kEthernet: in GetConnectionType()
259 return metrics::ConnectionType::kTetheredEthernet; in GetConnectionType()
261 return metrics::ConnectionType::kEthernet; in GetConnectionType()
263 case ConnectionType::kWifi: in GetConnectionType()
265 return metrics::ConnectionType::kTetheredWifi; in GetConnectionType()
[all …]
Dconnection_manager.cc56 ConnectionType type, ConnectionTethering tethering) const { in IsUpdateAllowedOver()
58 case ConnectionType::kBluetooth: in IsUpdateAllowedOver()
61 case ConnectionType::kCellular: { in IsUpdateAllowedOver()
112 return IsUpdateAllowedOver(ConnectionType::kCellular, in IsUpdateAllowedOver()
135 ConnectionType* out_type, ConnectionTethering* out_tethering) { in GetConnectionProperties()
142 *out_type = ConnectionType::kDisconnected; in GetConnectionProperties()
170 ConnectionType* out_type, in GetServicePathProperties()
196 *out_type = ConnectionType::kUnknown; in GetServicePathProperties()
208 *out_type = ConnectionType::kUnknown; in GetServicePathProperties()
Dconnection_utils.h24 enum class ConnectionType { enum
43 ConnectionType ParseConnectionType(const std::string& type_str);
47 const char* StringForConnectionType(ConnectionType type);
Dconnection_manager.h43 bool GetConnectionProperties(ConnectionType* out_type,
45 bool IsUpdateAllowedOver(ConnectionType type,
55 ConnectionType* out_type,
Dmock_connection_manager.h34 bool(ConnectionType* out_type,
38 bool(ConnectionType type, ConnectionTethering tethering));
Dconnection_manager_android.cc32 ConnectionType* out_type, ConnectionTethering* out_tethering) { in GetConnectionProperties()
36 ConnectionType type, ConnectionTethering tethering) const { in IsUpdateAllowedOver()
Dconnection_manager_android.h33 bool GetConnectionProperties(ConnectionType* out_type,
35 bool IsUpdateAllowedOver(ConnectionType type,
Dconnection_manager_interface.h40 virtual bool GetConnectionProperties(ConnectionType* out_type,
46 virtual bool IsUpdateAllowedOver(ConnectionType type,
Dmetrics_utils.h50 metrics::ConnectionType GetConnectionType(ConnectionType type,
/system/update_engine/update_manager/
Dboxed_value_unittest.cc38 using chromeos_update_engine::ConnectionType;
165 BoxedValue(new ConnectionType(ConnectionType::kDisconnected)).ToString()); in TEST()
168 BoxedValue(new ConnectionType(ConnectionType::kEthernet)).ToString()); in TEST()
170 BoxedValue(new ConnectionType(ConnectionType::kWifi)).ToString()); in TEST()
172 BoxedValue(new ConnectionType(ConnectionType::kWimax)).ToString()); in TEST()
175 BoxedValue(new ConnectionType(ConnectionType::kBluetooth)).ToString()); in TEST()
178 BoxedValue(new ConnectionType(ConnectionType::kCellular)).ToString()); in TEST()
181 BoxedValue(new ConnectionType(ConnectionType::kUnknown)).ToString()); in TEST()
226 set<ConnectionType>* set1 = new set<ConnectionType>; in TEST()
227 set1->insert(ConnectionType::kWimax); in TEST()
[all …]
Dboxed_value.cc35 using chromeos_update_engine::ConnectionType;
120 string BoxedValue::ValuePrinter<ConnectionType>(const void* value) { in ValuePrinter()
121 const ConnectionType* val = reinterpret_cast<const ConnectionType*>(value); in ValuePrinter()
126 string BoxedValue::ValuePrinter<set<ConnectionType>>(const void* value) { in ValuePrinter()
128 const set<ConnectionType>* val = in ValuePrinter()
129 reinterpret_cast<const set<ConnectionType>*>(value); in ValuePrinter()
131 ConnectionType type = it; in ValuePrinter()
Dreal_shill_provider_unittest.cc39 using chromeos_update_engine::ConnectionType;
173 ConnectionType expected_conn_type) { in SetupConnectionAndTestType()
310 ConnectionType::kEthernet); in TEST_F()
317 kFakeWifiServicePath, shill::kTypeWifi, ConnectionType::kWifi); in TEST_F()
324 kFakeWimaxServicePath, shill::kTypeWimax, ConnectionType::kWimax); in TEST_F()
332 ConnectionType::kBluetooth); in TEST_F()
340 ConnectionType::kCellular); in TEST_F()
347 kFakeUnknownServicePath, "FooConnectionType", ConnectionType::kUnknown); in TEST_F()
364 UmTestUtils::ExpectVariableHasValue(ConnectionType::kWifi, in TEST_F()
376 ConnectionType::kEthernet); in TEST_F()
[all …]
Dchromeos_policy_unittest.cc29 using chromeos_update_engine::ConnectionType;
65 new ConnectionType(ConnectionType::kWifi)); in SetUpDefaultState()
1396 new ConnectionType(ConnectionType::kEthernet)); in TEST_F()
1408 new ConnectionType(ConnectionType::kWifi)); in TEST_F()
1421 new ConnectionType(ConnectionType::kWifi)); in TEST_F()
1434 new ConnectionType(ConnectionType::kWifi)); in TEST_F()
1437 set<ConnectionType> allowed_connections; in TEST_F()
1438 allowed_connections.insert(ConnectionType::kCellular); in TEST_F()
1441 ->reset(new set<ConnectionType>(allowed_connections)); in TEST_F()
1453 new ConnectionType(ConnectionType::kWifi)); in TEST_F()
[all …]
Dfake_shill_provider.h32 FakeVariable<chromeos_update_engine::ConnectionType>* var_conn_type() in var_conn_type()
48 FakeVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
Dreal_device_policy_provider.cc34 using chromeos_update_engine::ConnectionType;
149 set<ConnectionType>* allowed_types) const { in ConvertAllowedConnectionTypesForUpdate()
157 ConnectionType type = in ConvertAllowedConnectionTypesForUpdate()
159 if (type != ConnectionType::kUnknown) { in ConvertAllowedConnectionTypesForUpdate()
Dreal_shill_provider.h51 Variable<chromeos_update_engine::ConnectionType>* var_conn_type() override { in var_conn_type()
89 AsyncCopyVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
Dreal_device_policy_provider.h87 Variable<std::set<chromeos_update_engine::ConnectionType>>*
159 std::set<chromeos_update_engine::ConnectionType>* allowed_types) const;
196 AsyncCopyVariable<std::set<chromeos_update_engine::ConnectionType>>
Dchromeos_policy.cc44 using chromeos_update_engine::ConnectionType;
471 const ConnectionType* conn_type_p = in UpdateDownloadAllowed()
474 ConnectionType conn_type = *conn_type_p; in UpdateDownloadAllowed()
477 if (conn_type != ConnectionType::kCellular) { in UpdateDownloadAllowed()
482 conn_type = ConnectionType::kCellular; in UpdateDownloadAllowed()
491 case ConnectionType::kBluetooth: in UpdateDownloadAllowed()
495 case ConnectionType::kCellular: in UpdateDownloadAllowed()
500 case ConnectionType::kUnknown: in UpdateDownloadAllowed()
519 const set<ConnectionType>* allowed_conn_types_p = in UpdateDownloadAllowed()
526 } else if (conn_type == ConnectionType::kCellular) { in UpdateDownloadAllowed()
Dfake_device_policy_provider.h66 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>*
110 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>
Dshill_provider.h38 virtual Variable<chromeos_update_engine::ConnectionType>* var_conn_type() = 0;
Dreal_device_policy_provider_unittest.cc43 using chromeos_update_engine::ConnectionType;
334 set<ConnectionType>{ConnectionType::kWifi, ConnectionType::kBluetooth}, in TEST_F()
/system/core/adb/
Dtransport_benchmark.cpp40 template <typename ConnectionType>
54 template <typename ConnectionType>
61 auto client = MakeConnection<ConnectionType>(unique_fd(fds[0])); in BM_Connection_Unidirectional()
62 auto server = MakeConnection<ConnectionType>(unique_fd(fds[1])); in BM_Connection_Unidirectional()
109 template <typename ConnectionType, enum ThreadPolicy Policy>
116 auto client = MakeConnection<ConnectionType>(unique_fd(fds[0])); in BM_Connection_Echo()
117 auto server = MakeConnection<ConnectionType>(unique_fd(fds[1])); in BM_Connection_Echo()

12