Home
last modified time | relevance | path

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

1234

/external/cronet/net/base/
Dnetwork_change_notifier.h53 enum ConnectionType { enum
153 virtual void OnConnectionTypeChanged(ConnectionType type) = 0;
212 virtual void OnNetworkChanged(ConnectionType type) = 0;
235 ConnectionType type) = 0;
337 static constexpr ConnectionType kDefaultInitialConnectionType =
342 static constexpr ConnectionType kDefaultInitialConnectionType =
368 ConnectionType initial_type = kDefaultInitialConnectionType,
386 static ConnectionType GetConnectionType();
407 ConnectionType* connection_type);
434 static ConnectionType GetNetworkConnectionType(
[all …]
Dnetwork_change_notifier_passive.h31 NetworkChangeNotifier::ConnectionType initial_connection_type,
43 NetworkChangeNotifier::ConnectionType connection_type);
45 NetworkChangeNotifier::ConnectionType connection_type,
50 NetworkChangeNotifier::ConnectionType GetCurrentConnectionType()
54 ConnectionType* connection_type) const override;
66 NetworkChangeNotifier::ConnectionType initial_connection_type,
82 NetworkChangeNotifier::ConnectionType
Dnetwork_change_notifier_win.h69 ConnectionType GetCurrentConnectionType() const override;
77 static ConnectionType RecomputeCurrentConnectionType();
82 base::OnceCallback<void(ConnectionType)> reply_callback) const;
84 void SetCurrentConnectionType(ConnectionType connection_type);
89 void NotifyObservers(ConnectionType connection_type);
93 void NotifyParentOfConnectionTypeChangeImpl(ConnectionType connection_type);
142 ConnectionType last_computed_connection_type_;
Dnetwork_change_notifier_fuchsia_unittest.cc266 std::vector<NetworkChangeNotifier::ConnectionType> sequence) { in RunAndExpectConnectionTypes()
272 NetworkChangeNotifier::ConnectionType type) override { in OnConnectionTypeChanged()
277 ResultReceiver<NetworkChangeNotifier::ConnectionType> receiver_;
292 std::vector<NetworkChangeNotifier::ConnectionType> sequence) { in RunAndExpectNetworkChanges()
297 void OnNetworkChanged(NetworkChangeNotifier::ConnectionType type) override { in OnNetworkChanged()
302 ResultReceiver<NetworkChangeNotifier::ConnectionType> receiver_;
413 EXPECT_EQ(NetworkChangeNotifier::ConnectionType::CONNECTION_NONE, in TEST_F()
430 EXPECT_EQ(NetworkChangeNotifier::ConnectionType::CONNECTION_NONE, in TEST_F()
483 EXPECT_EQ(NetworkChangeNotifier::ConnectionType::CONNECTION_ETHERNET, in TEST_F()
526 EXPECT_EQ(NetworkChangeNotifier::ConnectionType::CONNECTION_ETHERNET, in TEST_F()
[all …]
Dnetwork_change_notifier.cc82 ConnectionType GetCurrentConnectionType() const override { in GetCurrentConnectionType()
134 void OnConnectionTypeChanged(ConnectionType type) override { in OnConnectionTypeChanged()
178 ConnectionType last_announced_connection_type_ = CONNECTION_NONE;
180 ConnectionType pending_connection_type_ = CONNECTION_NONE;
297 NetworkChangeNotifier::ConnectionType initial_type, in CreateIfNeeded()
347 NetworkChangeNotifier::ConnectionType
365 ConnectionType* connection_type) { in GetMaxBandwidthAndConnectionType()
471 NetworkChangeNotifier::ConnectionType
507 ConnectionType type) { in ConnectionTypeToString()
548 bool NetworkChangeNotifier::IsConnectionCellular(ConnectionType type) { in IsConnectionCellular()
[all …]
Dnetwork_change_notifier_passive.cc31 NetworkChangeNotifier::ConnectionType initial_connection_type, in NetworkChangeNotifierPassive()
38 NetworkChangeNotifier::ConnectionType initial_connection_type, in NetworkChangeNotifierPassive()
62 NetworkChangeNotifier::ConnectionType connection_type) { in OnConnectionChanged()
72 NetworkChangeNotifier::ConnectionType connection_type, in OnConnectionSubtypeChanged()
85 NetworkChangeNotifier::ConnectionType
93 ConnectionType* connection_type) const { in GetCurrentMaxBandwidthAndConnectionType()
Dmock_network_change_notifier.h24 ConnectionType GetCurrentConnectionType() const override;
30 void SetConnectionType(ConnectionType connection_type) { in SetConnectionType()
55 void SetConnectionTypeAndNotifyObservers(ConnectionType connection_type);
94 ConnectionType connection_type_ = CONNECTION_UNKNOWN;
Dnetwork_change_notifier_win.cc204 NetworkChangeNotifier::ConnectionType
270 base::OnceCallback<void(ConnectionType)> reply_callback) const { in RecomputeCurrentConnectionTypeOnBlockingSequence()
383 NetworkChangeNotifier::ConnectionType
390 ConnectionType connection_type) { in SetCurrentConnectionType()
407 void NetworkChangeNotifierWin::NotifyObservers(ConnectionType connection_type) { in NotifyObservers()
475 ConnectionType connection_type) { in NotifyParentOfConnectionTypeChangeImpl()
494 ConnectionType max_connection_type = CONNECTION_NONE; in NotifyParentOfConnectionTypeChangeImpl()
Dnetwork_change_notifier_mac.h32 ConnectionType GetCurrentConnectionType() const override;
55 static ConnectionType CalculateConnectionType(SCNetworkConnectionFlags flags);
72 ConnectionType connection_type_ = CONNECTION_UNKNOWN;
/external/webrtc/sdk/android/api/org/webrtc/
DNetworkChangeDetector.java19 public static enum ConnectionType { enum
49 public final ConnectionType type;
51 public final ConnectionType underlyingTypeForVpn;
55 public NetworkInformation(String name, ConnectionType type, ConnectionType underlyingTypeForVpn, in NetworkInformation()
70 private ConnectionType getConnectionType() { in getConnectionType()
75 private ConnectionType getUnderlyingConnectionTypeForVpn() { in getUnderlyingConnectionTypeForVpn()
93 public abstract void onConnectionTypeChanged(ConnectionType newConnectionType); in onConnectionTypeChanged()
107 List<ConnectionType> types, @NetworkPreference int preference); in onNetworkPreference()
115 public ConnectionType getCurrentConnectionType(); in getCurrentConnectionType()
DNetworkMonitor.java33 public void onConnectionTypeChanged(NetworkChangeDetector.ConnectionType connectionType); in onConnectionTypeChanged()
65 private volatile NetworkChangeDetector.ConnectionType currentConnectionType;
71 currentConnectionType = NetworkChangeDetector.ConnectionType.CONNECTION_UNKNOWN; in NetworkMonitor()
187 private NetworkChangeDetector.ConnectionType getCurrentConnectionType() { in getCurrentConnectionType()
195 public void onConnectionTypeChanged(NetworkChangeDetector.ConnectionType newConnectionType) { in createNetworkChangeDetector()
211 List<NetworkChangeDetector.ConnectionType> types, int preference) { in createNetworkChangeDetector()
222 private void updateCurrentConnectionType(NetworkChangeDetector.ConnectionType newConnectionType) {
229 NetworkChangeDetector.ConnectionType newConnectionType) {
260 List<NetworkChangeDetector.ConnectionType> types, int preference) {
262 for (NetworkChangeDetector.ConnectionType type : types) {
[all …]
DNetworkMonitorAutoDetect.java407 NetworkChangeDetector.ConnectionType connectionType = getConnectionType(networkState); in networkToInfo()
408 if (connectionType == NetworkChangeDetector.ConnectionType.CONNECTION_NONE) { in networkToInfo()
417 if (connectionType == NetworkChangeDetector.ConnectionType.CONNECTION_UNKNOWN in networkToInfo()
418 || connectionType == NetworkChangeDetector.ConnectionType.CONNECTION_UNKNOWN_CELLULAR) { in networkToInfo()
426 ConnectionType underlyingConnectionTypeForVpn = in networkToInfo()
610 NetworkChangeDetector.ConnectionType.CONNECTION_WIFI, in onWifiP2pGroupChange()
611 NetworkChangeDetector.ConnectionType.CONNECTION_NONE, WIFI_P2P_NETWORK_HANDLE, in onWifiP2pGroupChange()
646 private NetworkChangeDetector.ConnectionType connectionType;
786 private static NetworkChangeDetector.ConnectionType getConnectionType( in getConnectionType()
789 return NetworkChangeDetector.ConnectionType.CONNECTION_NONE; in getConnectionType()
[all …]
/external/cronet/components/metrics/net/
Dnetwork_metrics_provider.cc64 connection_type_(network::mojom::ConnectionType::CONNECTION_UNKNOWN), in NetworkMetricsProvider()
103 if (connection_type_ != network::mojom::ConnectionType::CONNECTION_UNKNOWN) in SetNetworkConnectionTracker()
137 if (connection_type_ != network::mojom::ConnectionType::CONNECTION_UNKNOWN) in ProvideSystemProfileMetrics()
147 network::mojom::ConnectionType type) { in OnConnectionChanged()
155 if (type == network::mojom::ConnectionType::CONNECTION_NONE) { in OnConnectionChanged()
162 network::mojom::ConnectionType::CONNECTION_UNKNOWN); in OnConnectionChanged()
165 connection_type_ != network::mojom::ConnectionType::CONNECTION_NONE && in OnConnectionChanged()
181 SystemProfileProto::Network::ConnectionType
185 case network::mojom::ConnectionType::CONNECTION_NONE: in GetConnectionType()
187 case network::mojom::ConnectionType::CONNECTION_UNKNOWN: in GetConnectionType()
[all …]
Dnetwork_metrics_provider.h82 void OnConnectionChanged(network::mojom::ConnectionType type) override;
84 SystemProfileProto::Network::ConnectionType GetConnectionType() const;
111 network::mojom::ConnectionType connection_type_;
Dnetwork_metrics_provider_unittest.cc143 network::mojom::ConnectionType::CONNECTION_2G); in TEST_F()
190 EXPECT_EQ(network::mojom::ConnectionType::CONNECTION_UNKNOWN, in TEST_F()
199 network::mojom::ConnectionType::CONNECTION_2G); in TEST_F()
200 EXPECT_EQ(network::mojom::ConnectionType::CONNECTION_2G, in TEST_F()
220 network::mojom::ConnectionType::CONNECTION_3G); in TEST_F()
/external/cronet/net/android/
Dnetwork_change_notifier_delegate_android.h30 typedef NetworkChangeNotifier::ConnectionType ConnectionType; typedef
49 ConnectionType connection_type) = 0;
149 ConnectionType GetCurrentConnectionType() const;
152 ConnectionType* connection_type) const;
153 ConnectionType GetNetworkConnectionType(handles::NetworkHandle network) const;
173 typedef std::map<handles::NetworkHandle, ConnectionType> NetworkMap;
189 void SetCurrentConnectionType(ConnectionType connection_type);
198 ConnectionType type);
202 void FakeDefaultNetwork(handles::NetworkHandle network, ConnectionType type);
223 ConnectionType connection_type_;
Dnetwork_change_notifier_delegate_android.cc25 NetworkChangeNotifier::ConnectionType ConvertConnectionType( in ConvertConnectionType()
42 return static_cast<NetworkChangeNotifier::ConnectionType>(connection_type); in ConvertConnectionType()
83 (*network_map)[network_handle] = static_cast<ConnectionType>(*i); in JavaLongArrayToNetworkMap()
135 NetworkChangeNotifier::ConnectionType
158 ConnectionType* connection_type) const { in GetCurrentMaxBandwidthAndConnectionType()
164 NetworkChangeNotifier::ConnectionType
170 return ConnectionType::CONNECTION_UNKNOWN; in GetNetworkConnectionType()
217 const ConnectionType actual_connection_type = ConvertConnectionType( in NotifyConnectionTypeChanged()
268 const ConnectionType connection_type = GetCurrentConnectionType(); in NotifyMaxBandwidthChanged()
287 network_map_[network] = static_cast<ConnectionType>(connection_type); in NotifyOfNetworkConnect()
[all …]
Dnetwork_change_notifier_android.h66 ConnectionType GetCurrentConnectionType() const override;
72 ConnectionType* connection_type) const override;
75 ConnectionType GetCurrentNetworkConnectionType(
86 ConnectionType type) override;
Dnetwork_change_notifier_android_unittest.cc39 typedef NetworkChangeNotifier::ConnectionType ConnectionType; typedef in net::__anon49ba6d570111::NetworkChangeNotifierDelegateAndroidObserver
51 net::NetworkChangeNotifier::ConnectionType type) override { in OnMaxBandwidthChanged()
90 NetworkChangeNotifier::ConnectionType connection_type) override { in OnConnectionTypeChanged()
123 NetworkChangeNotifier::ConnectionType type) override { in OnMaxBandwidthChanged()
181 typedef NetworkChangeNotifier::ConnectionType ConnectionType; typedef in net::BaseNetworkChangeNotifierAndroidTest
189 const base::RepeatingCallback<ConnectionType(void)>& in RunTest()
244 ConnectionType type) { in FakeNetworkChange()
422 NetworkChangeNotifier::ConnectionType connection_type = in TEST_F()
Dnetwork_change_notifier_android.cc122 NetworkChangeNotifier::ConnectionType
139 ConnectionType* connection_type) const { in GetCurrentMaxBandwidthAndConnectionType()
162 NetworkChangeNotifier::ConnectionType
183 ConnectionType type) { in OnMaxBandwidthChanged()
/external/libbrillo/brillo/glib/
Ddbus.h278 typedef MonitorConnection<void(A1)> ConnectionType; in Monitor() typedef
280 ConnectionType* result = new ConnectionType(proxy, name, monitor, object); in Monitor()
285 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr); in Monitor()
294 typedef MonitorConnection<void(A1, A2)> ConnectionType; in Monitor() typedef
296 ConnectionType* result = new ConnectionType(proxy, name, monitor, object); in Monitor()
304 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr); in Monitor()
313 typedef MonitorConnection<void(A1, A2, A3)> ConnectionType; in Monitor() typedef
315 ConnectionType* result = new ConnectionType(proxy, name, monitor, object); in Monitor()
324 proxy.gproxy(), name, G_CALLBACK(&ConnectionType::Run), result, nullptr); in Monitor()
334 typedef MonitorConnection<void(A1, A2, A3, A4)> ConnectionType; in Monitor() typedef
[all …]
/external/cronet/net/android/java/src/org/chromium/net/
DNetworkChangeNotifierAutoDetect.java111 @ConnectionType
114 return ConnectionType.CONNECTION_NONE; in getConnectionType()
339 @ConnectionType
345 return ConnectionType.CONNECTION_NONE;
781 @ConnectionType
857 @ConnectionType
953 public void onConnectionTypeChanged(@ConnectionType int newConnectionType);
1272 @ConnectionType
1276 return ConnectionType.CONNECTION_ETHERNET; in convertToConnectionType()
1278 return ConnectionType.CONNECTION_WIFI; in convertToConnectionType()
[all …]
/external/cronet/net/quic/
Dnetwork_connection.h27 NetworkChangeNotifier::ConnectionType connection_type() { in connection_type()
47 NetworkChangeNotifier::ConnectionType type) override;
52 NetworkChangeNotifier::ConnectionType connection_type_ =
/external/cronet/net/nqe/
Dnetwork_qualities_prefs_manager_unittest.cc96 NetworkChangeNotifier::ConnectionType::CONNECTION_UNKNOWN, "test"); in TEST_F()
141 NetworkChangeNotifier::ConnectionType::CONNECTION_4G, "test", INT32_MIN); in TEST_F()
202 NetworkChangeNotifier::ConnectionType::CONNECTION_2G, "test"); in TEST_F()
219 NetworkChangeNotifier::ConnectionType::CONNECTION_2G, in TEST_F()
239 NetworkChangeNotifier::ConnectionType::CONNECTION_UNKNOWN) { in TEST_F()
243 EXPECT_EQ(NetworkChangeNotifier::ConnectionType::CONNECTION_2G, in TEST_F()
277 NetworkChangeNotifier::ConnectionType::CONNECTION_UNKNOWN, "test"); in TEST_F()
/external/cronet/net/base/fuchsia/
Dnetwork_interface_cache.cc26 NetworkChangeNotifier::ConnectionType GetEffectiveConnectionType( in GetEffectiveConnectionType()
33 NetworkChangeNotifier::ConnectionType connection_type = in GetEffectiveConnectionType()
204 NetworkChangeNotifier::ConnectionType NetworkInterfaceCache::GetConnectionType() in GetConnectionType()
223 NetworkChangeNotifier::ConnectionType connection_type = in UpdateConnectionTypeWhileLocked()
224 NetworkChangeNotifier::ConnectionType::CONNECTION_NONE; in UpdateConnectionTypeWhileLocked()

1234