/aosp12/system/update_engine/ |
H A D | metrics_utils_unittest.cc | 28 EXPECT_EQ(metrics::ConnectionType::kUnknown, in TEST() 31 EXPECT_EQ(metrics::ConnectionType::kDisconnected, in TEST() 34 EXPECT_EQ(metrics::ConnectionType::kEthernet, in TEST() 38 metrics::ConnectionType::kWifi, in TEST() 40 EXPECT_EQ(metrics::ConnectionType::kCellular, in TEST() 51 EXPECT_EQ(metrics::ConnectionType::kEthernet, in TEST() 54 EXPECT_EQ(metrics::ConnectionType::kEthernet, in TEST() 57 EXPECT_EQ(metrics::ConnectionType::kEthernet, in TEST() 62 EXPECT_EQ(metrics::ConnectionType::kWifi, in TEST() 65 EXPECT_EQ(metrics::ConnectionType::kWifi, in TEST() [all …]
|
H A D | metrics_utils.cc | 265 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() 274 case ConnectionType::kEthernet: in GetConnectionType() 278 return metrics::ConnectionType::kEthernet; in GetConnectionType() 280 case ConnectionType::kWifi: in GetConnectionType() 284 return metrics::ConnectionType::kWifi; in GetConnectionType() 286 case ConnectionType::kCellular: in GetConnectionType() 287 return metrics::ConnectionType::kCellular; in GetConnectionType() [all …]
|
H A D | metrics_utils.h | 48 metrics::ConnectionType GetConnectionType(ConnectionType type,
|
/aosp12/system/update_engine/cros/ |
H A D | connection_manager_unittest.cc | 77 ConnectionType expected_type); 79 void TestWithServiceDisconnected(ConnectionType expected_type); 150 ConnectionType type; in TestWithServiceType() 164 ConnectionType type; in TestWithServiceTethering() 173 ConnectionType expected_type) { in TestWithServiceDisconnected() 176 ConnectionType type; in TestWithServiceDisconnected() 213 TestWithServiceDisconnected(ConnectionType::kDisconnected); in TEST_F() 223 EXPECT_TRUE(cmut_.IsUpdateAllowedOver(ConnectionType::kWifi, in TEST_F() 265 EXPECT_TRUE(cmut_.IsUpdateAllowedOver(ConnectionType::kWifi, in TEST_F() 272 EXPECT_TRUE(cmut_.IsUpdateAllowedOver(ConnectionType::kWifi, in TEST_F() [all …]
|
H A D | connection_manager.cc | 54 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()
|
H A D | connection_manager.h | 42 bool GetConnectionProperties(ConnectionType* out_type, 44 bool IsUpdateAllowedOver(ConnectionType type, 54 ConnectionType* out_type,
|
H A D | mock_connection_manager.h | 34 bool(ConnectionType* out_type, 38 bool(ConnectionType type, ConnectionTethering tethering));
|
H A D | connection_manager_interface.h | 38 virtual bool GetConnectionProperties(ConnectionType* out_type, 44 virtual bool IsUpdateAllowedOver(ConnectionType type,
|
/aosp12/system/update_engine/common/ |
H A D | connection_utils.cc | 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() 62 case ConnectionType::kDisconnected: in StringForConnectionType() [all …]
|
H A D | connection_utils.h | 24 enum class ConnectionType { enum 41 ConnectionType ParseConnectionType(const std::string& type_str); 45 const char* StringForConnectionType(ConnectionType type);
|
/aosp12/system/update_engine/update_manager/ |
H A 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() 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 …]
|
H A D | real_shill_provider_unittest.cc | 39 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() 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() 375 UmTestUtils::ExpectVariableHasValue(ConnectionType::kEthernet, in TEST_F() [all …]
|
H A D | boxed_value.cc | 36 using chromeos_update_engine::ConnectionType; 101 string BoxedValue::ValuePrinter<ConnectionType>(const void* value) { 102 const ConnectionType* val = reinterpret_cast<const ConnectionType*>(value); 107 string BoxedValue::ValuePrinter<set<ConnectionType>>(const void* value) { 109 const set<ConnectionType>* val = 110 reinterpret_cast<const set<ConnectionType>*>(value); 112 ConnectionType type = it;
|
H A D | real_device_policy_provider.cc | 34 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()
|
H A 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_{
|
H A D | real_shill_provider.h | 51 Variable<chromeos_update_engine::ConnectionType>* var_conn_type() override { in var_conn_type() 86 AsyncCopyVariable<chromeos_update_engine::ConnectionType> var_conn_type_{
|
H A D | real_device_policy_provider.h | 91 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>>
|
H A D | fake_device_policy_provider.h | 70 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>* 129 FakeVariable<std::set<chromeos_update_engine::ConnectionType>>
|
/aosp12/system/bt/gd/hci/acl_manager/ |
H A D | round_robin_scheduler.cc | 42 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() 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() 205 ConnectionType next_connection_type = fragments_to_send_.front().first; in handle_enqueue_next_fragment() 207 bool le_buffer_full = next_connection_type == ConnectionType::LE && le_acl_packet_credits_ == 0; in handle_enqueue_next_fragment() [all …]
|
H A D | round_robin_scheduler_test.cc | 179 …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() 333 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::CLASSIC, handle, connection_… in TEST_F() 334 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::LE, le_handle, le_connection… in TEST_F() 379 …round_robin_scheduler_->Register(RoundRobinScheduler::ConnectionType::CLASSIC, handle, connection_… in TEST_F() [all …]
|
H A D | round_robin_scheduler.h | 38 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…
|
/aosp12/packages/modules/adb/ |
H A 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()
|
/aosp12/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvUinputBridge.cpp | 260 enum class ConnectionType { enum in android::NativeConnection 276 ConnectionType getType() const { return mType; } in getType() 278 bool IsGamepad() const { return getType() == ConnectionType::kGamepadDevice; } in IsGamepad() 280 bool IsRemote() const { return getType() == ConnectionType::kRemoteDevice; } in IsRemote() 283 NativeConnection(int fd, int32_t maxPointers, ConnectionType type); 287 const ConnectionType mType; 290 NativeConnection::NativeConnection(int fd, int32_t maxPointers, ConnectionType type) in NativeConnection() 320 return new NativeConnection(descriptor.Detach(), maxPointers, ConnectionType::kRemoteDevice); in open() 350 return new NativeConnection(descriptor.Detach(), 0, ConnectionType::kGamepadDevice); in openGamepad()
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/verify/domain/proxy/ |
H A D | DomainVerificationProxy.java | 40 static <ConnectionType extends DomainVerificationProxyV1.Connection 44 @NonNull DomainVerificationCollector collector, @NonNull ConnectionType connection) { in makeProxy()
|
/aosp12/frameworks/native/services/sensorservice/ |
H A D | SensorService.h | 168 template<typename ConnectionType> 169 const std::vector<sp<ConnectionType>>& getConnectionsHelper( 170 const SortedVector<wp<ConnectionType>>& connectionList, 171 std::vector<std::vector<sp<ConnectionType>>>* referenceHolder);
|