/external/cronet/net/base/ |
D | network_change_notifier.h | 53 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 …]
|
D | network_change_notifier_passive.h | 31 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
|
D | network_change_notifier_win.h | 69 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_;
|
D | network_change_notifier_fuchsia_unittest.cc | 266 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 …]
|
D | network_change_notifier.cc | 82 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 …]
|
D | network_change_notifier_passive.cc | 31 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()
|
D | mock_network_change_notifier.h | 24 ConnectionType GetCurrentConnectionType() const override; 30 void SetConnectionType(ConnectionType connection_type) { in SetConnectionType() 55 void SetConnectionTypeAndNotifyObservers(ConnectionType connection_type); 94 ConnectionType connection_type_ = CONNECTION_UNKNOWN;
|
D | network_change_notifier_win.cc | 204 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()
|
D | network_change_notifier_mac.h | 32 ConnectionType GetCurrentConnectionType() const override; 55 static ConnectionType CalculateConnectionType(SCNetworkConnectionFlags flags); 72 ConnectionType connection_type_ = CONNECTION_UNKNOWN;
|
/external/webrtc/sdk/android/api/org/webrtc/ |
D | NetworkChangeDetector.java | 19 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()
|
D | NetworkMonitor.java | 33 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 …]
|
D | NetworkMonitorAutoDetect.java | 407 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/ |
D | network_metrics_provider.cc | 64 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 …]
|
D | network_metrics_provider.h | 82 void OnConnectionChanged(network::mojom::ConnectionType type) override; 84 SystemProfileProto::Network::ConnectionType GetConnectionType() const; 111 network::mojom::ConnectionType connection_type_;
|
D | network_metrics_provider_unittest.cc | 143 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/ |
D | network_change_notifier_delegate_android.h | 30 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_;
|
D | network_change_notifier_delegate_android.cc | 25 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 …]
|
D | network_change_notifier_android.h | 66 ConnectionType GetCurrentConnectionType() const override; 72 ConnectionType* connection_type) const override; 75 ConnectionType GetCurrentNetworkConnectionType( 86 ConnectionType type) override;
|
D | network_change_notifier_android_unittest.cc | 39 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()
|
D | network_change_notifier_android.cc | 122 NetworkChangeNotifier::ConnectionType 139 ConnectionType* connection_type) const { in GetCurrentMaxBandwidthAndConnectionType() 162 NetworkChangeNotifier::ConnectionType 183 ConnectionType type) { in OnMaxBandwidthChanged()
|
/external/libbrillo/brillo/glib/ |
D | dbus.h | 278 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/ |
D | NetworkChangeNotifierAutoDetect.java | 111 @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/ |
D | network_connection.h | 27 NetworkChangeNotifier::ConnectionType connection_type() { in connection_type() 47 NetworkChangeNotifier::ConnectionType type) override; 52 NetworkChangeNotifier::ConnectionType connection_type_ =
|
/external/cronet/net/nqe/ |
D | network_qualities_prefs_manager_unittest.cc | 96 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/ |
D | network_interface_cache.cc | 26 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()
|