Home
last modified time | relevance | path

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

12

/system/update_engine/
Dmetrics_utils_unittest.cc28 EXPECT_EQ(metrics::ConnectionType::kUnknown, in TEST()
29 GetConnectionType(ConnectionType::kUnknown, in TEST()
31 EXPECT_EQ(metrics::ConnectionType::kDisconnected, in TEST()
32 GetConnectionType(ConnectionType::kDisconnected, in TEST()
34 EXPECT_EQ(metrics::ConnectionType::kEthernet, in TEST()
35 GetConnectionType(ConnectionType::kEthernet, in TEST()
38 metrics::ConnectionType::kWifi, in TEST()
39 GetConnectionType(ConnectionType::kWifi, ConnectionTethering::kUnknown)); in TEST()
40 EXPECT_EQ(metrics::ConnectionType::kCellular, in TEST()
41 GetConnectionType(ConnectionType::kCellular, in TEST()
[all …]
Dmetrics_utils.cc265 metrics::ConnectionType GetConnectionType(ConnectionType type, in GetConnectionType()
268 case ConnectionType::kUnknown: in GetConnectionType()
269 return metrics::ConnectionType::kUnknown; in GetConnectionType()
271 case ConnectionType::kDisconnected: in GetConnectionType()
272 return metrics::ConnectionType::kDisconnected; in GetConnectionType()
274 case ConnectionType::kEthernet: in GetConnectionType()
276 return metrics::ConnectionType::kTetheredEthernet; in GetConnectionType()
278 return metrics::ConnectionType::kEthernet; in GetConnectionType()
280 case ConnectionType::kWifi: in GetConnectionType()
282 return metrics::ConnectionType::kTetheredWifi; in GetConnectionType()
[all …]
Dmetrics_utils.h48 metrics::ConnectionType GetConnectionType(ConnectionType type,
/system/update_engine/common/
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::kCellular; in ParseConnectionType()
38 return ConnectionType::kDisconnected; in ParseConnectionType()
40 return ConnectionType::kUnknown; in ParseConnectionType()
54 const char* StringForConnectionType(ConnectionType type) { in StringForConnectionType()
56 case ConnectionType::kEthernet: in StringForConnectionType()
58 case ConnectionType::kWifi: in StringForConnectionType()
60 case ConnectionType::kCellular: in StringForConnectionType()
[all …]
Dconnection_utils.h24 enum class ConnectionType { enum
41 ConnectionType ParseConnectionType(const std::string& type_str);
45 const char* StringForConnectionType(ConnectionType type);
Dmetrics_constants.h118 enum class ConnectionType { enum
/system/update_engine/cros/
Dconnection_manager_unittest.cc77 ConnectionType expected_type);
79 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::kTypeCellular, nullptr, ConnectionType::kCellular); in TEST_F()
[all …]
Dconnection_manager.cc54 ConnectionType type, ConnectionTethering tethering) const { in IsUpdateAllowedOver()
55 if (type != ConnectionType::kCellular) { in IsUpdateAllowedOver()
127 ConnectionType* out_type, ConnectionTethering* out_tethering) { in GetConnectionProperties()
134 *out_type = ConnectionType::kDisconnected; in GetConnectionProperties()
162 ConnectionType* out_type, in GetServicePathProperties()
188 *out_type = ConnectionType::kUnknown; in GetServicePathProperties()
200 *out_type = ConnectionType::kUnknown; in GetServicePathProperties()
Dconnection_manager.h42 bool GetConnectionProperties(ConnectionType* out_type,
44 bool IsUpdateAllowedOver(ConnectionType type,
54 ConnectionType* out_type,
Dmock_connection_manager.h34 bool(ConnectionType* out_type,
38 bool(ConnectionType type, ConnectionTethering tethering));
Dconnection_manager_interface.h38 virtual bool GetConnectionProperties(ConnectionType* out_type,
44 virtual bool IsUpdateAllowedOver(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()
173 BoxedValue(new ConnectionType(ConnectionType::kCellular)).ToString()); in TEST()
176 BoxedValue(new ConnectionType(ConnectionType::kUnknown)).ToString()); in TEST()
216 set<ConnectionType>* set1 = new set<ConnectionType>; in TEST()
217 set1->insert(ConnectionType::kCellular); in TEST()
218 set1->insert(ConnectionType::kEthernet); in TEST()
221 set<ConnectionType>* set2 = new set<ConnectionType>; in TEST()
[all …]
Dboxed_value.cc36 using chromeos_update_engine::ConnectionType;
101 string BoxedValue::ValuePrinter<ConnectionType>(const void* value) { in ValuePrinter()
102 const ConnectionType* val = reinterpret_cast<const ConnectionType*>(value); in ValuePrinter()
107 string BoxedValue::ValuePrinter<set<ConnectionType>>(const void* value) { in ValuePrinter()
109 const set<ConnectionType>* val = in ValuePrinter()
110 reinterpret_cast<const set<ConnectionType>*>(value); in ValuePrinter()
112 ConnectionType type = it; in ValuePrinter()
Dreal_shill_provider_unittest.cc39 using chromeos_update_engine::ConnectionType;
172 ConnectionType expected_conn_type) { in SetupConnectionAndTestType()
308 ConnectionType::kEthernet); in TEST_F()
315 kFakeWifiServicePath, shill::kTypeWifi, ConnectionType::kWifi); in TEST_F()
323 ConnectionType::kCellular); in TEST_F()
330 kFakeUnknownServicePath, "FooConnectionType", ConnectionType::kUnknown); in TEST_F()
347 UmTestUtils::ExpectVariableHasValue(ConnectionType::kWifi, in TEST_F()
359 ConnectionType::kEthernet); in TEST_F()
361 UmTestUtils::ExpectVariableHasValue(ConnectionType::kEthernet, in TEST_F()
371 ConnectionType::kEthernet); 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_shill_provider.h51 Variable<chromeos_update_engine::ConnectionType>* var_conn_type() override { in var_conn_type()
86 AsyncCopyVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
Dreal_device_policy_provider.cc34 using chromeos_update_engine::ConnectionType;
151 set<ConnectionType>* allowed_types) const { in ConvertAllowedConnectionTypesForUpdate()
159 ConnectionType type = in ConvertAllowedConnectionTypesForUpdate()
161 if (type != ConnectionType::kUnknown) { in ConvertAllowedConnectionTypesForUpdate()
Dreal_device_policy_provider.h91 Variable<std::set<chromeos_update_engine::ConnectionType>>*
177 std::set<chromeos_update_engine::ConnectionType>* allowed_types) const;
225 AsyncCopyVariable<std::set<chromeos_update_engine::ConnectionType>>
Dshill_provider.h38 virtual Variable<chromeos_update_engine::ConnectionType>* var_conn_type() = 0;
Dfake_device_policy_provider.h70 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>*
129 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>
Ddevice_policy_provider.h69 virtual Variable<std::set<chromeos_update_engine::ConnectionType>>*
Dreal_device_policy_provider_unittest.cc43 using chromeos_update_engine::ConnectionType;
358 set<ConnectionType>{ConnectionType::kWifi, ConnectionType::kEthernet}, in TEST_F()
/system/bt/gd/hci/acl_manager/
Dround_robin_scheduler.cc42 void RoundRobinScheduler::Register(ConnectionType connection_type, uint16_t handle, in Register()
55 if (acl_queue_handler.connection_type_ == ConnectionType::CLASSIC) { in Unregister()
93 … bool classic_buffer_full = acl_packet_credits_ == 0 && connection_type == ConnectionType::CLASSIC; in start_round_robin()
94 bool le_buffer_full = le_acl_packet_credits_ == 0 && connection_type == ConnectionType::LE; in start_round_robin()
115 … acl_packet_credits_ == 0 && acl_queue_handler->second.connection_type_ == ConnectionType::CLASSIC; in start_round_robin()
117 … le_acl_packet_credits_ == 0 && acl_queue_handler->second.connection_type_ == ConnectionType::LE; in start_round_robin()
139 ConnectionType connection_type = acl_queue_handler->second.connection_type_; in buffer_packet()
140 size_t mtu = connection_type == ConnectionType::CLASSIC ? hci_mtu_ : le_hci_mtu_; in buffer_packet()
188 ConnectionType connection_type = fragments_to_send_.front().first; in handle_enqueue_next_fragment()
189 if (connection_type == ConnectionType::CLASSIC) { in handle_enqueue_next_fragment()
[all …]
Dround_robin_scheduler.h38 enum ConnectionType { CLASSIC, LE }; enum
41 ConnectionType connection_type_;
48 void Register(ConnectionType connection_type, uint16_t handle,
66 …common::MultiPriorityQueue<std::pair<ConnectionType, std::unique_ptr<AclBuilder>>, 2> fragments_to…
Dround_robin_scheduler_test.cc179 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::CLASSIC, handle, connection_… in TEST_F()
186 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::CLASSIC, handle, connection_… in TEST_F()
209 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::CLASSIC, handle, connection_… in TEST_F()
210 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::LE, le_handle, le_connection… in TEST_F()
233 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::CLASSIC, handle, connection_… in TEST_F()
285 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::CLASSIC, handle1, connection… in TEST_F()
286 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::CLASSIC, handle2, connection… in TEST_F()
287 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::LE, le_handle1, le_connectio… in TEST_F()
288 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::LE, le_handle2, le_connectio… in TEST_F()
333 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::CLASSIC, handle, connection_… in TEST_F()
[all …]

12