Home
last modified time | relevance | path

Searched refs:NetworkChangeNotifier (Results 1 – 25 of 132) sorted by relevance

123456

/external/cronet/net/base/
Dnetwork_change_notifier_unittest.cc20 NetworkChangeNotifier::ConnectionType connection_type = in TEST()
21 NetworkChangeNotifier::CONNECTION_NONE; in TEST()
23 NetworkChangeNotifier::GetMaxBandwidthAndConnectionType(&max_bandwidth, in TEST()
29 EXPECT_NE(NetworkChangeNotifier::CONNECTION_NONE, connection_type); in TEST()
34 case NetworkChangeNotifier::CONNECTION_UNKNOWN: in TEST()
37 case NetworkChangeNotifier::CONNECTION_ETHERNET: in TEST()
41 case NetworkChangeNotifier::CONNECTION_WIFI: in TEST()
45 case NetworkChangeNotifier::CONNECTION_2G: in TEST()
49 case NetworkChangeNotifier::CONNECTION_3G: in TEST()
53 case NetworkChangeNotifier::CONNECTION_4G: in TEST()
[all …]
Dnetwork_change_notifier.cc51 NetworkChangeNotifier* g_network_change_notifier = nullptr;
67 class MockNetworkChangeNotifier : public NetworkChangeNotifier {
71 : NetworkChangeNotifier( in MockNetworkChangeNotifier()
93 bool NetworkChangeNotifier::test_notifications_only_ = false;
95 NetworkChangeNotifier::NetworkChangeCalculatorParams::
100 class NetworkChangeNotifier::NetworkChangeCalculator
168 NetworkChangeNotifier::NotifyObserversOfNetworkChange(CONNECTION_NONE); in Notify()
169 NetworkChangeNotifier::NotifyObserversOfNetworkChange( in Notify()
188 class NetworkChangeNotifier::ObserverList {
193 NetworkChangeNotifier::IPAddressObserver>>( in ObserverList()
[all …]
Dnetwork_change_notifier_passive_unittest.cc33 NetworkChangeNotifier::CONNECTION_UNKNOWN, in NetworkChangeNotifierPassiveTest()
34 NetworkChangeNotifier::SUBTYPE_UNKNOWN, dns_config_notifier_.get())); in NetworkChangeNotifierPassiveTest()
50 net::NetworkChangeNotifier::DisableForTest mock_notifier_disabler_;
56 class MockIPAddressObserver : public NetworkChangeNotifier::IPAddressObserver {
63 NetworkChangeNotifier::AddIPAddressObserver(&observer); in TEST_F()
69 NetworkChangeNotifier::RemoveIPAddressObserver(&observer); in TEST_F()
73 : public NetworkChangeNotifier::NetworkChangeObserver {
75 MOCK_METHOD1(OnNetworkChanged, void(NetworkChangeNotifier::ConnectionType));
80 NetworkChangeNotifier::AddNetworkChangeObserver(&observer); in TEST_F()
83 OnNetworkChanged(NetworkChangeNotifier::CONNECTION_NONE)); in TEST_F()
[all …]
Dlogging_network_change_observer.cc46 NetworkChangeNotifier::ConnectionTypeToString( in NetworkSpecificNetLogParams()
47 NetworkChangeNotifier::GetNetworkConnectionType(network))); in NetworkSpecificNetLogParams()
50 HumanReadableNetworkHandle(NetworkChangeNotifier::GetDefaultNetwork())); in NetworkSpecificNetLogParams()
51 NetworkChangeNotifier::NetworkList networks; in NetworkSpecificNetLogParams()
52 NetworkChangeNotifier::GetConnectedNetworks(&networks); in NetworkSpecificNetLogParams()
57 NetworkChangeNotifier::ConnectionTypeToString( in NetworkSpecificNetLogParams()
58 NetworkChangeNotifier::GetNetworkConnectionType(active_network))); in NetworkSpecificNetLogParams()
77 NetworkChangeNotifier::AddIPAddressObserver(this); in LoggingNetworkChangeObserver()
78 NetworkChangeNotifier::AddConnectionTypeObserver(this); in LoggingNetworkChangeObserver()
79 NetworkChangeNotifier::AddNetworkChangeObserver(this); in LoggingNetworkChangeObserver()
[all …]
Dnetwork_change_notifier_passive.cc31 NetworkChangeNotifier::ConnectionType initial_connection_type, in NetworkChangeNotifierPassive()
32 NetworkChangeNotifier::ConnectionSubtype initial_connection_subtype) in NetworkChangeNotifierPassive()
38 NetworkChangeNotifier::ConnectionType initial_connection_type, in NetworkChangeNotifierPassive()
39 NetworkChangeNotifier::ConnectionSubtype initial_connection_subtype, in NetworkChangeNotifierPassive()
41 : NetworkChangeNotifier(NetworkChangeCalculatorParamsPassive(), in NetworkChangeNotifierPassive()
45 NetworkChangeNotifier::GetMaxBandwidthMbpsForConnectionSubtype( in NetworkChangeNotifierPassive()
58 NetworkChangeNotifier::NotifyObserversOfIPAddressChange(); in OnIPAddressChanged()
62 NetworkChangeNotifier::ConnectionType connection_type) { in OnConnectionChanged()
68 NetworkChangeNotifier::NotifyObserversOfConnectionTypeChange(); in OnConnectionChanged()
72 NetworkChangeNotifier::ConnectionType connection_type, in OnConnectionSubtypeChanged()
[all …]
Dnetwork_change_notifier_passive.h28 class NET_EXPORT NetworkChangeNotifierPassive : public NetworkChangeNotifier {
31 NetworkChangeNotifier::ConnectionType initial_connection_type,
32 NetworkChangeNotifier::ConnectionSubtype initial_connection_subtype);
43 NetworkChangeNotifier::ConnectionType connection_type);
45 NetworkChangeNotifier::ConnectionType connection_type,
46 NetworkChangeNotifier::ConnectionSubtype connection_subtype);
50 NetworkChangeNotifier::ConnectionType GetCurrentConnectionType()
66 NetworkChangeNotifier::ConnectionType initial_connection_type,
67 NetworkChangeNotifier::ConnectionSubtype initial_connection_subtype,
72 static NetworkChangeNotifier::NetworkChangeCalculatorParams
[all …]
Dmock_network_change_notifier.cc62 NetworkChangeNotifier::NotifyObserversOfSpecificNetworkChange( in QueueNetworkMadeDefault()
63 NetworkChangeNotifier::NetworkChangeType::kMadeDefault, network); in QueueNetworkMadeDefault()
75 NetworkChangeNotifier::NotifyObserversOfSpecificNetworkChange( in QueueNetworkDisconnected()
76 NetworkChangeNotifier::NetworkChangeType::kDisconnected, network); in QueueNetworkDisconnected()
81 NetworkChangeNotifier::NotifyObserversOfSpecificNetworkChange( in NotifyNetworkConnected()
82 NetworkChangeNotifier::NetworkChangeType::kConnected, network); in NotifyNetworkConnected()
94 NetworkChangeNotifier::NotifyObserversOfConnectionTypeChange(); in SetConnectionTypeAndNotifyObservers()
102 return NetworkChangeNotifier::GetCurrentConnectionCost(); in GetCurrentConnectionCost()
108 : NetworkChangeNotifier(NetworkChangeCalculatorParams(), in MockNetworkChangeNotifier()
114 std::make_unique<NetworkChangeNotifier::DisableForTest>()), in ScopedMockNetworkChangeNotifier()
Dnetwork_change_notifier_win_unittest.cc31 last_computed_connection_type_ = NetworkChangeNotifier::CONNECTION_UNKNOWN; in TestNetworkChangeNotifierWin()
53 NetworkChangeNotifier::CONNECTION_UNKNOWN)); in RecomputeCurrentConnectionTypeOnBlockingSequence()
60 class TestIPAddressObserver : public NetworkChangeNotifier::IPAddressObserver {
63 NetworkChangeNotifier::AddIPAddressObserver(this); in TestIPAddressObserver()
70 NetworkChangeNotifier::RemoveIPAddressObserver(this); in ~TestIPAddressObserver()
231 NetworkChangeNotifier::ConnectionCost LastComputedConnectionCost() { in LastComputedConnectionCost()
235 NetworkChangeNotifier::ConnectionCost GetCurrentConnectionCost() { in GetCurrentConnectionCost()
244 NetworkChangeNotifier::DisableForTest disable_for_test_;
291 : public NetworkChangeNotifier::ConnectionCostObserver {
300 NetworkChangeNotifier::RemoveConnectionCostObserver(this); in ~TestConnectionCostObserver()
[all …]
Dnetwork_change_notifier_fuchsia_unittest.cc256 : public NetworkChangeNotifier::ConnectionTypeObserver {
259 NetworkChangeNotifier::AddConnectionTypeObserver(this); in FakeConnectionTypeObserver()
262 NetworkChangeNotifier::RemoveConnectionTypeObserver(this); in ~FakeConnectionTypeObserver()
266 std::vector<NetworkChangeNotifier::ConnectionType> sequence) { in RunAndExpectConnectionTypes()
272 NetworkChangeNotifier::ConnectionType type) override { in OnConnectionTypeChanged()
277 ResultReceiver<NetworkChangeNotifier::ConnectionType> receiver_;
282 : public NetworkChangeNotifier::NetworkChangeObserver {
285 NetworkChangeNotifier::AddNetworkChangeObserver(this); in FakeNetworkChangeObserver()
288 NetworkChangeNotifier::RemoveNetworkChangeObserver(this); in ~FakeNetworkChangeObserver()
292 std::vector<NetworkChangeNotifier::ConnectionType> sequence) { in RunAndExpectNetworkChanges()
[all …]
Dnetwork_change_notifier.h43 class NET_EXPORT NetworkChangeNotifier {
139 friend NetworkChangeNotifier;
160 friend NetworkChangeNotifier;
178 friend NetworkChangeNotifier;
219 friend NetworkChangeNotifier;
242 friend NetworkChangeNotifier;
269 friend NetworkChangeNotifier;
306 friend NetworkChangeNotifier;
329 friend NetworkChangeNotifier;
348 NetworkChangeNotifier(const NetworkChangeNotifier&) = delete;
[all …]
Dnetwork_change_notifier_factory.h21 virtual std::unique_ptr<NetworkChangeNotifier> CreateInstanceWithInitialTypes(
22 NetworkChangeNotifier::ConnectionType initial_type,
23 NetworkChangeNotifier::ConnectionSubtype initial_subtype) = 0;
24 std::unique_ptr<NetworkChangeNotifier> CreateInstance() { in CreateInstance()
26 NetworkChangeNotifier::kDefaultInitialConnectionType, in CreateInstance()
27 NetworkChangeNotifier::kDefaultInitialConnectionSubtype); in CreateInstance()
Dnetwork_change_notifier_linux.cc32 NetworkChangeNotifier::ConnectionType GetCurrentConnectionType() { in GetCurrentConnectionType()
48 NetworkChangeNotifier::ConnectionType last_type_ =
49 NetworkChangeNotifier::CONNECTION_NONE;
78 NetworkChangeNotifier::NotifyObserversOfIPAddressChange(); in OnIPAddressChanged()
86 NetworkChangeNotifier::NotifyObserversOfConnectionTypeChange(); in OnLinkChanged()
89 NetworkChangeNotifier::GetMaxBandwidthMbpsForConnectionSubtype( in OnLinkChanged()
91 NetworkChangeNotifier::NotifyObserversOfMaxBandwidthChange( in OnLinkChanged()
119 : NetworkChangeNotifier(NetworkChangeCalculatorParamsLinux()), in NetworkChangeNotifierLinux()
145 NetworkChangeNotifier::NetworkChangeCalculatorParams
170 NetworkChangeNotifier::ConnectionType
Dlogging_network_change_observer.h20 : public NetworkChangeNotifier::IPAddressObserver,
21 public NetworkChangeNotifier::ConnectionTypeObserver,
22 public NetworkChangeNotifier::NetworkChangeObserver,
23 public NetworkChangeNotifier::NetworkObserver {
39 NetworkChangeNotifier::ConnectionType type) override;
42 void OnNetworkChanged(NetworkChangeNotifier::ConnectionType type) override;
/external/cronet/net/android/
Dnetwork_change_notifier_android_unittest.cc38 typedef NetworkChangeNotifier::ConnectionCost ConnectionCost;
39 typedef NetworkChangeNotifier::ConnectionType ConnectionType;
40 typedef NetworkChangeNotifier::NetworkList NetworkList;
51 net::NetworkChangeNotifier::ConnectionType type) override { in OnMaxBandwidthChanged()
84 : public NetworkChangeNotifier::ConnectionTypeObserver {
90 NetworkChangeNotifier::ConnectionType connection_type) override { in OnConnectionTypeChanged()
103 : public NetworkChangeNotifier::ConnectionCostObserver {
107 NetworkChangeNotifier::ConnectionCost cost) override { in OnConnectionCostChanged()
118 : public NetworkChangeNotifier::MaxBandwidthObserver {
123 NetworkChangeNotifier::ConnectionType type) override { in OnMaxBandwidthChanged()
[all …]
Dnetwork_change_notifier_android.cc108 NetworkChangeNotifier::NotifyObserversOfIPAddressChange(); in NotifyNetworkChangeNotifierObservers()
109 NetworkChangeNotifier::NotifyObserversOfConnectionTypeChange(); in NotifyNetworkChangeNotifierObservers()
122 NetworkChangeNotifier::ConnectionType
127 NetworkChangeNotifier::ConnectionCost
132 NetworkChangeNotifier::ConnectionSubtype
158 NetworkChangeNotifier::NetworkList* networks) const { in GetCurrentConnectedNetworks()
162 NetworkChangeNotifier::ConnectionType
178 NetworkChangeNotifier::NotifyObserversOfConnectionCostChange(); in OnConnectionCostChanged()
184 NetworkChangeNotifier::NotifyObserversOfMaxBandwidthChange(max_bandwidth_mbps, in OnMaxBandwidthChanged()
190 NetworkChangeNotifier::NotifyObserversOfSpecificNetworkChange( in OnNetworkConnected()
[all …]
Dnetwork_change_notifier_delegate_android.cc25 NetworkChangeNotifier::ConnectionType ConvertConnectionType( in ConvertConnectionType()
28 case NetworkChangeNotifier::CONNECTION_UNKNOWN: in ConvertConnectionType()
29 case NetworkChangeNotifier::CONNECTION_ETHERNET: in ConvertConnectionType()
30 case NetworkChangeNotifier::CONNECTION_WIFI: in ConvertConnectionType()
31 case NetworkChangeNotifier::CONNECTION_2G: in ConvertConnectionType()
32 case NetworkChangeNotifier::CONNECTION_3G: in ConvertConnectionType()
33 case NetworkChangeNotifier::CONNECTION_4G: in ConvertConnectionType()
34 case NetworkChangeNotifier::CONNECTION_5G: in ConvertConnectionType()
35 case NetworkChangeNotifier::CONNECTION_NONE: in ConvertConnectionType()
36 case NetworkChangeNotifier::CONNECTION_BLUETOOTH: in ConvertConnectionType()
[all …]
/external/cronet/net/tools/net_watcher/
Dnet_watcher.cc56 net::NetworkChangeNotifier::ConnectionType type) { in ConnectionTypeToString()
58 case net::NetworkChangeNotifier::CONNECTION_UNKNOWN: in ConnectionTypeToString()
60 case net::NetworkChangeNotifier::CONNECTION_ETHERNET: in ConnectionTypeToString()
62 case net::NetworkChangeNotifier::CONNECTION_WIFI: in ConnectionTypeToString()
64 case net::NetworkChangeNotifier::CONNECTION_2G: in ConnectionTypeToString()
66 case net::NetworkChangeNotifier::CONNECTION_3G: in ConnectionTypeToString()
68 case net::NetworkChangeNotifier::CONNECTION_4G: in ConnectionTypeToString()
70 case net::NetworkChangeNotifier::CONNECTION_5G: in ConnectionTypeToString()
72 case net::NetworkChangeNotifier::CONNECTION_NONE: in ConnectionTypeToString()
74 case net::NetworkChangeNotifier::CONNECTION_BLUETOOTH: in ConnectionTypeToString()
[all …]
/external/cronet/net/quic/
Dnetwork_connection_unittest.cc15 constexpr auto CONNECTION_3G = NetworkChangeNotifier::CONNECTION_3G;
16 constexpr auto CONNECTION_2G = NetworkChangeNotifier::CONNECTION_2G;
17 constexpr auto CONNECTION_ETHERNET = NetworkChangeNotifier::CONNECTION_ETHERNET;
18 constexpr auto CONNECTION_WIFI = NetworkChangeNotifier::CONNECTION_WIFI;
38 EXPECT_EQ(NetworkChangeNotifier::ConnectionTypeToString(CONNECTION_2G), in TEST_F()
48 EXPECT_EQ(NetworkChangeNotifier::ConnectionTypeToString(CONNECTION_3G), in TEST_F()
58 EXPECT_EQ(NetworkChangeNotifier::ConnectionTypeToString(CONNECTION_ETHERNET), in TEST_F()
80 NetworkChangeNotifier::NotifyObserversOfIPAddressChangeForTests(); in TEST_F()
86 NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeForTests( in TEST_F()
94 NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeForTests( in TEST_F()
[all …]
Dnetwork_connection.cc13 NetworkChangeNotifier::AddIPAddressObserver(this); in NetworkConnection()
14 NetworkChangeNotifier::AddConnectionTypeObserver(this); in NetworkConnection()
19 NetworkChangeNotifier::RemoveConnectionTypeObserver(this); in ~NetworkConnection()
20 NetworkChangeNotifier::RemoveIPAddressObserver(this); in ~NetworkConnection()
24 OnConnectionTypeChanged(NetworkChangeNotifier::GetConnectionType()); in OnIPAddressChanged()
28 NetworkChangeNotifier::ConnectionType type) { in OnConnectionTypeChanged()
32 connection_description_ = NetworkChangeNotifier::ConnectionTypeToString(type); in OnConnectionTypeChanged()
33 if (connection_type_ != NetworkChangeNotifier::CONNECTION_UNKNOWN && in OnConnectionTypeChanged()
34 connection_type_ != NetworkChangeNotifier::CONNECTION_WIFI) { in OnConnectionTypeChanged()
Dnetwork_connection.h16 : public NetworkChangeNotifier::IPAddressObserver,
17 public NetworkChangeNotifier::ConnectionTypeObserver {
27 NetworkChangeNotifier::ConnectionType connection_type() { in connection_type()
47 NetworkChangeNotifier::ConnectionType type) override;
52 NetworkChangeNotifier::ConnectionType connection_type_ =
53 NetworkChangeNotifier::CONNECTION_UNKNOWN;
/external/cronet/net/android/java/src/org/chromium/net/
DNetworkChangeNotifier.java30 public class NetworkChangeNotifier { class
48 private static NetworkChangeNotifier sInstance;
51 protected NetworkChangeNotifier() { in NetworkChangeNotifier() method in NetworkChangeNotifier
60 public static NetworkChangeNotifier init() { in init()
62 sInstance = new NetworkChangeNotifier(); in init()
73 sInstance = new NetworkChangeNotifier(); in resetInstanceForTests()
77 public static void resetInstanceForTests(NetworkChangeNotifier notifier) { in resetInstanceForTests()
149 public static NetworkChangeNotifier getInstance() { in getInstance()
334 NetworkChangeNotifier.this, newConnectionType, defaultNetId); in notifyObserversOfConnectionTypeChange()
352 nativeChangeNotifier, NetworkChangeNotifier.this, newConnectionCost); in notifyObserversOfConnectionCostChange()
[all …]
/external/cronet/net/android/javatests/src/org/chromium/net/
DNetworkChangeNotifierNoNativeTest.java35 NetworkChangeNotifier.setAutoDetectConnectivityState(false); in tearDown()
46 NetworkChangeNotifier.init(); in testNoNativeDependence()
47 NetworkChangeNotifier.registerToReceiveNotificationsAlways(); in testNoNativeDependence()
58 NetworkChangeNotifier ncn = NetworkChangeNotifier.init(); in testDefaultState()
60 NetworkChangeNotifier.registerToReceiveNotificationsAlways(); in testDefaultState()
75 NetworkChangeNotifier ncn = NetworkChangeNotifier.init(); in testRegisterNetworkCallbackFail()
83 NetworkChangeNotifier.registerToReceiveNotificationsAlways(); in testRegisterNetworkCallbackFail()
/external/cronet/net/nqe/
Dnetwork_quality_estimator_params.cc110 NetworkChangeNotifier::ConnectionType connection_type) { in GetNameForConnectionTypeInternal()
112 case NetworkChangeNotifier::CONNECTION_UNKNOWN: in GetNameForConnectionTypeInternal()
114 case NetworkChangeNotifier::CONNECTION_ETHERNET: in GetNameForConnectionTypeInternal()
116 case NetworkChangeNotifier::CONNECTION_WIFI: in GetNameForConnectionTypeInternal()
118 case NetworkChangeNotifier::CONNECTION_2G: in GetNameForConnectionTypeInternal()
120 case NetworkChangeNotifier::CONNECTION_3G: in GetNameForConnectionTypeInternal()
122 case NetworkChangeNotifier::CONNECTION_4G: in GetNameForConnectionTypeInternal()
124 case NetworkChangeNotifier::CONNECTION_5G: in GetNameForConnectionTypeInternal()
126 case NetworkChangeNotifier::CONNECTION_NONE: in GetNameForConnectionTypeInternal()
128 case NetworkChangeNotifier::CONNECTION_BLUETOOTH: in GetNameForConnectionTypeInternal()
[all …]
Dnetwork_quality_store_unittest.cc38 nqe::internal::NetworkID network_id(NetworkChangeNotifier::CONNECTION_2G, in TEST()
48 nqe::internal::NetworkID network_id(NetworkChangeNotifier::CONNECTION_2G, in TEST()
60 nqe::internal::NetworkID network_id(NetworkChangeNotifier::CONNECTION_2G, in TEST()
76 nqe::internal::NetworkID network_id(NetworkChangeNotifier::CONNECTION_3G, in TEST()
93 NetworkChangeNotifier::CONNECTION_UNKNOWN, "", 0); in TEST()
106 nqe::internal::NetworkID network_id(NetworkChangeNotifier::CONNECTION_2G, in TEST()
117 nqe::internal::NetworkID network_id(NetworkChangeNotifier::CONNECTION_2G, in TEST()
133 nqe::internal::NetworkID network_id(NetworkChangeNotifier::CONNECTION_2G, in TEST()
158 nqe::internal::NetworkID network_id(NetworkChangeNotifier::CONNECTION_2G, in TEST()
170 nqe::internal::NetworkID network_id(NetworkChangeNotifier::CONNECTION_2G, in TEST()
[all …]
/external/cronet/net/base/fuchsia/
Dnetwork_interface_cache.cc26 NetworkChangeNotifier::ConnectionType GetEffectiveConnectionType( in GetEffectiveConnectionType()
30 return NetworkChangeNotifier::CONNECTION_NONE; in GetEffectiveConnectionType()
33 NetworkChangeNotifier::ConnectionType connection_type = in GetEffectiveConnectionType()
36 connection_type != NetworkChangeNotifier::CONNECTION_WIFI) { in GetEffectiveConnectionType()
37 return NetworkChangeNotifier::CONNECTION_NONE; in GetEffectiveConnectionType()
45 NetworkChangeNotifier::CONNECTION_NONE; in CanReachExternalNetwork()
204 NetworkChangeNotifier::ConnectionType NetworkInterfaceCache::GetConnectionType() in GetConnectionType()
208 return NetworkChangeNotifier::CONNECTION_UNKNOWN; in GetConnectionType()
223 NetworkChangeNotifier::ConnectionType connection_type = in UpdateConnectionTypeWhileLocked()
224 NetworkChangeNotifier::ConnectionType::CONNECTION_NONE; in UpdateConnectionTypeWhileLocked()
[all …]

123456