/system/update_engine/ |
D | connection_utils.cc | 24 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 …]
|
D | connection_manager_unittest.cc | 76 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 …]
|
D | metrics_utils_unittest.cc | 32 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 …]
|
D | metrics_utils.cc | 231 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 …]
|
D | connection_manager.cc | 54 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()
|
D | connection_utils.h | 24 enum class ConnectionType { enum 42 ConnectionType ParseConnectionType(const std::string& type_str); 46 const char* StringForConnectionType(ConnectionType type);
|
D | connection_manager.h | 42 bool GetConnectionProperties(ConnectionType* out_type, 44 bool IsUpdateAllowedOver(ConnectionType type, 53 ConnectionType* out_type,
|
D | mock_connection_manager.h | 34 bool(ConnectionType* out_type, 38 bool(ConnectionType type, ConnectionTethering tethering));
|
D | connection_manager_android.cc | 30 ConnectionType* out_type, ConnectionTethering* out_tethering) { in GetConnectionProperties() 34 ConnectionType type, ConnectionTethering tethering) const { in IsUpdateAllowedOver()
|
D | connection_manager_android.h | 33 bool GetConnectionProperties(ConnectionType* out_type, 35 bool IsUpdateAllowedOver(ConnectionType type,
|
D | connection_manager_interface.h | 40 virtual bool GetConnectionProperties(ConnectionType* out_type, 46 virtual bool IsUpdateAllowedOver(ConnectionType type,
|
D | metrics_utils.h | 42 metrics::ConnectionType GetConnectionType(ConnectionType type,
|
D | metrics.h | 162 enum class ConnectionType { enum 269 ConnectionType connection_type);
|
/system/update_engine/update_manager/ |
D | boxed_value_unittest.cc | 35 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 …]
|
D | boxed_value.cc | 33 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()
|
D | real_shill_provider_unittest.cc | 39 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 …]
|
D | chromeos_policy_unittest.cc | 36 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 …]
|
D | real_device_policy_provider.cc | 32 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()
|
D | fake_shill_provider.h | 34 FakeVariable<chromeos_update_engine::ConnectionType>* var_conn_type() in var_conn_type() 50 FakeVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
|
D | real_device_policy_provider.h | 78 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>>
|
D | real_shill_provider.h | 53 Variable<chromeos_update_engine::ConnectionType>* var_conn_type() override { in var_conn_type() 90 AsyncCopyVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
|
D | fake_device_policy_provider.h | 57 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>* 91 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>
|
D | real_device_policy_provider_unittest.cc | 42 using chromeos_update_engine::ConnectionType; 268 set<ConnectionType>{ConnectionType::kWifi, ConnectionType::kBluetooth}, in TEST_F()
|
D | chromeos_policy.cc | 37 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()
|
D | shill_provider.h | 38 virtual Variable<chromeos_update_engine::ConnectionType>* var_conn_type() = 0;
|