/system/update_engine/ |
D | connection_utils.cc | 30 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 …]
|
D | connection_manager_unittest.cc | 76 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 …]
|
D | metrics_utils_unittest.cc | 32 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 …]
|
D | metrics_utils.cc | 248 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 …]
|
D | connection_manager.cc | 56 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()
|
D | connection_utils.h | 24 enum class ConnectionType { enum 43 ConnectionType ParseConnectionType(const std::string& type_str); 47 const char* StringForConnectionType(ConnectionType type);
|
D | connection_manager.h | 43 bool GetConnectionProperties(ConnectionType* out_type, 45 bool IsUpdateAllowedOver(ConnectionType type, 55 ConnectionType* out_type,
|
D | mock_connection_manager.h | 34 bool(ConnectionType* out_type, 38 bool(ConnectionType type, ConnectionTethering tethering));
|
D | connection_manager_android.cc | 32 ConnectionType* out_type, ConnectionTethering* out_tethering) { in GetConnectionProperties() 36 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 | 50 metrics::ConnectionType GetConnectionType(ConnectionType type,
|
/system/update_engine/update_manager/ |
D | boxed_value_unittest.cc | 38 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 …]
|
D | boxed_value.cc | 35 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()
|
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() 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 …]
|
D | chromeos_policy_unittest.cc | 29 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 …]
|
D | fake_shill_provider.h | 32 FakeVariable<chromeos_update_engine::ConnectionType>* var_conn_type() in var_conn_type() 48 FakeVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
|
D | real_device_policy_provider.cc | 34 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()
|
D | real_shill_provider.h | 51 Variable<chromeos_update_engine::ConnectionType>* var_conn_type() override { in var_conn_type() 89 AsyncCopyVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
|
D | real_device_policy_provider.h | 87 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>>
|
D | chromeos_policy.cc | 44 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()
|
D | fake_device_policy_provider.h | 66 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>* 110 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>
|
D | shill_provider.h | 38 virtual Variable<chromeos_update_engine::ConnectionType>* var_conn_type() = 0;
|
D | real_device_policy_provider_unittest.cc | 43 using chromeos_update_engine::ConnectionType; 334 set<ConnectionType>{ConnectionType::kWifi, ConnectionType::kBluetooth}, in TEST_F()
|
/system/core/adb/ |
D | transport_benchmark.cpp | 40 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()
|