Home
last modified time | relevance | path

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

12

/system/update_engine/
Dconnection_utils.cc24 ConnectionType ParseConnectionType(const std::string& type_str) { in ParseConnectionType()
26 return ConnectionType::kEthernet; in ParseConnectionType()
28 return ConnectionType::kWifi; in ParseConnectionType()
30 return ConnectionType::kWimax; in ParseConnectionType()
32 return ConnectionType::kBluetooth; in ParseConnectionType()
34 return ConnectionType::kCellular; in ParseConnectionType()
36 return ConnectionType::kUnknown; in ParseConnectionType()
50 const char* StringForConnectionType(ConnectionType type) { in StringForConnectionType()
52 case ConnectionType::kEthernet: in StringForConnectionType()
54 case ConnectionType::kWifi: in StringForConnectionType()
[all …]
Dconnection_manager_unittest.cc76 ConnectionType expected_type);
142 ConnectionType expected_type) { in TestWithServiceType()
149 ConnectionType type; in TestWithServiceType()
164 ConnectionType type; in TestWithServiceTethering()
173 TestWithServiceType(shill::kTypeEthernet, nullptr, ConnectionType::kEthernet); in TEST_F()
174 TestWithServiceType(shill::kTypeWifi, nullptr, ConnectionType::kWifi); in TEST_F()
175 TestWithServiceType(shill::kTypeWimax, nullptr, ConnectionType::kWimax); in TEST_F()
177 shill::kTypeBluetooth, nullptr, ConnectionType::kBluetooth); in TEST_F()
178 TestWithServiceType(shill::kTypeCellular, nullptr, ConnectionType::kCellular); in TEST_F()
182 TestWithServiceType(shill::kTypeVPN, nullptr, ConnectionType::kUnknown); 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::kEthernet, in TEST()
36 GetConnectionType(ConnectionType::kEthernet, in TEST()
38 EXPECT_EQ(metrics::ConnectionType::kWifi, in TEST()
39 GetConnectionType(ConnectionType::kWifi, in TEST()
41 EXPECT_EQ(metrics::ConnectionType::kWimax, in TEST()
42 GetConnectionType(ConnectionType::kWimax, in TEST()
44 EXPECT_EQ(metrics::ConnectionType::kBluetooth, in TEST()
45 GetConnectionType(ConnectionType::kBluetooth, in TEST()
[all …]
Dmetrics_utils.cc231 metrics::ConnectionType GetConnectionType(ConnectionType type, in GetConnectionType()
234 case ConnectionType::kUnknown: in GetConnectionType()
235 return metrics::ConnectionType::kUnknown; in GetConnectionType()
237 case ConnectionType::kEthernet: in GetConnectionType()
239 return metrics::ConnectionType::kTetheredEthernet; in GetConnectionType()
241 return metrics::ConnectionType::kEthernet; in GetConnectionType()
243 case ConnectionType::kWifi: in GetConnectionType()
245 return metrics::ConnectionType::kTetheredWifi; in GetConnectionType()
247 return metrics::ConnectionType::kWifi; in GetConnectionType()
249 case ConnectionType::kWimax: in GetConnectionType()
[all …]
Dconnection_manager.cc54 ConnectionType type, ConnectionTethering tethering) const { in IsUpdateAllowedOver()
56 case ConnectionType::kBluetooth: in IsUpdateAllowedOver()
59 case ConnectionType::kCellular: { in IsUpdateAllowedOver()
116 return IsUpdateAllowedOver(ConnectionType::kCellular, in IsUpdateAllowedOver()
124 ConnectionType* out_type, ConnectionTethering* out_tethering) { in GetConnectionProperties()
156 ConnectionType* out_type, in GetServicePathProperties()
182 *out_type = ConnectionType::kUnknown; in GetServicePathProperties()
194 *out_type = ConnectionType::kUnknown; in GetServicePathProperties()
Dconnection_utils.h24 enum class ConnectionType { enum
42 ConnectionType ParseConnectionType(const std::string& type_str);
46 const char* StringForConnectionType(ConnectionType type);
Dconnection_manager.h42 bool GetConnectionProperties(ConnectionType* out_type,
44 bool IsUpdateAllowedOver(ConnectionType type,
53 ConnectionType* out_type,
Dmock_connection_manager.h34 bool(ConnectionType* out_type,
38 bool(ConnectionType type, ConnectionTethering tethering));
Dconnection_manager_android.cc30 ConnectionType* out_type, ConnectionTethering* out_tethering) { in GetConnectionProperties()
34 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.h42 metrics::ConnectionType GetConnectionType(ConnectionType type,
Dmetrics.h162 enum class ConnectionType { enum
269 ConnectionType connection_type);
/system/update_engine/update_manager/
Dboxed_value_unittest.cc35 using chromeos_update_engine::ConnectionType;
162 BoxedValue(new ConnectionType(ConnectionType::kEthernet)) in TEST()
165 BoxedValue(new ConnectionType(ConnectionType::kWifi)).ToString()); in TEST()
167 BoxedValue(new ConnectionType(ConnectionType::kWimax)).ToString()); in TEST()
169 BoxedValue(new ConnectionType(ConnectionType::kBluetooth)) in TEST()
172 BoxedValue(new ConnectionType(ConnectionType::kCellular)) in TEST()
175 BoxedValue(new ConnectionType(ConnectionType::kUnknown)) in TEST()
195 set<ConnectionType>* set1 = new set<ConnectionType>; in TEST()
196 set1->insert(ConnectionType::kWimax); in TEST()
197 set1->insert(ConnectionType::kEthernet); in TEST()
[all …]
Dboxed_value.cc33 using chromeos_update_engine::ConnectionType;
99 string BoxedValue::ValuePrinter<ConnectionType>(const void* value) { in ValuePrinter()
100 const ConnectionType* val = reinterpret_cast<const ConnectionType*>(value); in ValuePrinter()
105 string BoxedValue::ValuePrinter<set<ConnectionType>>(const void* value) { in ValuePrinter()
107 const set<ConnectionType>* val = in ValuePrinter()
108 reinterpret_cast<const set<ConnectionType>*>(value); in ValuePrinter()
110 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()
318 ConnectionType::kWifi); in TEST_F()
326 ConnectionType::kWimax); in TEST_F()
334 ConnectionType::kBluetooth); in TEST_F()
342 ConnectionType::kCellular); in TEST_F()
350 ConnectionType::kUnknown); in TEST_F()
367 UmTestUtils::ExpectVariableHasValue(ConnectionType::kWifi, in TEST_F()
379 ConnectionType::kEthernet); in TEST_F()
[all …]
Dchromeos_policy_unittest.cc36 using chromeos_update_engine::ConnectionType;
100 reset(new ConnectionType(ConnectionType::kWifi)); in SetUpDefaultState()
1459 reset(new ConnectionType(ConnectionType::kEthernet)); in TEST_F()
1471 reset(new ConnectionType(ConnectionType::kWifi)); in TEST_F()
1484 reset(new ConnectionType(ConnectionType::kWifi)); in TEST_F()
1498 reset(new ConnectionType(ConnectionType::kWifi)); in TEST_F()
1501 set<ConnectionType> allowed_connections; in TEST_F()
1502 allowed_connections.insert(ConnectionType::kCellular); in TEST_F()
1505 reset(new set<ConnectionType>(allowed_connections)); in TEST_F()
1517 reset(new ConnectionType(ConnectionType::kWifi)); in TEST_F()
[all …]
Dreal_device_policy_provider.cc32 using chromeos_update_engine::ConnectionType;
130 set<ConnectionType>* allowed_types) const { in ConvertAllowedConnectionTypesForUpdate()
138 ConnectionType type = in ConvertAllowedConnectionTypesForUpdate()
140 if (type != ConnectionType::kUnknown) { in ConvertAllowedConnectionTypesForUpdate()
Dfake_shill_provider.h34 FakeVariable<chromeos_update_engine::ConnectionType>* var_conn_type() in var_conn_type()
50 FakeVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
Dreal_device_policy_provider.h78 Variable<std::set<chromeos_update_engine::ConnectionType>>*
141 std::set<chromeos_update_engine::ConnectionType>* allowed_types) const;
168 AsyncCopyVariable<std::set<chromeos_update_engine::ConnectionType>>
Dreal_shill_provider.h53 Variable<chromeos_update_engine::ConnectionType>* var_conn_type() override { in var_conn_type()
90 AsyncCopyVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
Dfake_device_policy_provider.h57 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>*
91 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>
Dreal_device_policy_provider_unittest.cc42 using chromeos_update_engine::ConnectionType;
268 set<ConnectionType>{ConnectionType::kWifi, ConnectionType::kBluetooth}, in TEST_F()
Dchromeos_policy.cc37 using chromeos_update_engine::ConnectionType;
502 const ConnectionType* conn_type_p = ec->GetValue( in UpdateDownloadAllowed()
505 ConnectionType conn_type = *conn_type_p; in UpdateDownloadAllowed()
508 if (conn_type != ConnectionType::kCellular) { in UpdateDownloadAllowed()
513 conn_type = ConnectionType::kCellular; in UpdateDownloadAllowed()
522 case ConnectionType::kBluetooth: in UpdateDownloadAllowed()
526 case ConnectionType::kCellular: in UpdateDownloadAllowed()
531 case ConnectionType::kUnknown: in UpdateDownloadAllowed()
550 const set<ConnectionType>* allowed_conn_types_p = ec->GetValue( in UpdateDownloadAllowed()
557 } else if (conn_type == ConnectionType::kCellular) { in UpdateDownloadAllowed()
Dshill_provider.h38 virtual Variable<chromeos_update_engine::ConnectionType>* var_conn_type() = 0;

12