Home
last modified time | relevance | path

Searched refs:networkInfo (Results 1 – 19 of 19) sorted by relevance

/external/autotest/frontend/client/src/autotest/moblab/wizard/
DNetworkInfoCard.java18 private NetworkInfo networkInfo; field in NetworkInfoCard
39 return networkInfo != null && networkInfo.isConnectedToGoogle(); in canGoNext()
44 if (networkInfo != null) { in updateModeUI()
48 if (networkInfo.getServerIps().length > 0) { in updateModeUI()
49 layoutTable.setWidget(row, 1, new Label(networkInfo.getServerIps()[0])); in updateModeUI()
56 new Label(networkInfo.isConnectedToGoogle() ? "Yes" : "No")); in updateModeUI()
70 networkInfo = info; in validateNetworkInfo()
82 networkInfo = null; in resetData()
/external/webrtc/sdk/android/api/org/webrtc/
DNetworkMonitorAutoDetect.java250 NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in getNetworkState() local
251 if (networkInfo == null) { in getNetworkState()
271 if (networkInfo.getType() != ConnectivityManager.TYPE_VPN) { in getNetworkState()
277 return getNetworkState(networkInfo); in getNetworkState()
282 return new NetworkState(networkInfo.isConnected(), ConnectivityManager.TYPE_VPN, -1, in getNetworkState()
283 networkInfo.getType(), networkInfo.getSubtype()); in getNetworkState()
293 if (networkInfo.getType() == ConnectivityManager.TYPE_VPN) { in getNetworkState()
303 return new NetworkState(networkInfo.isConnected(), ConnectivityManager.TYPE_VPN, -1, in getNetworkState()
308 networkInfo.isConnected(), ConnectivityManager.TYPE_VPN, -1, -1, -1); in getNetworkState()
311 return getNetworkState(networkInfo); in getNetworkState()
[all …]
DNetworkMonitor.java177 public void onNetworkConnect(NetworkMonitorAutoDetect.NetworkInformation networkInfo) { in createAutoDetect() argument
178 notifyObserversOfNetworkConnect(networkInfo); in createAutoDetect()
212 NetworkMonitorAutoDetect.NetworkInformation networkInfo) {
215 nativeNotifyOfNetworkConnect(nativeObserver, networkInfo);
288 long nativeAndroidNetworkMonitor, NetworkMonitorAutoDetect.NetworkInformation networkInfo);
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowNetworkInfoTest.java17 NetworkInfo networkInfo = Shadow.newInstanceOf(NetworkInfo.class); in getDetailedState_shouldReturnTheAssignedState() local
18 shadowOf(networkInfo).setDetailedState(NetworkInfo.DetailedState.SCANNING); in getDetailedState_shouldReturnTheAssignedState()
19 assertThat(networkInfo.getDetailedState()).isEqualTo(NetworkInfo.DetailedState.SCANNING); in getDetailedState_shouldReturnTheAssignedState()
DShadowConnectivityManagerTest.java78 NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in getNetworkInfo_shouldReturnSomeForAllNetworks() local
79 assertThat(networkInfo).isNotNull(); in getNetworkInfo_shouldReturnSomeForAllNetworks()
195 NetworkInfo networkInfo = in getAllNetworkInfo_shouldEqualGetAllNetworks() local
202 shadowOf(connectivityManager).setActiveNetworkInfo(networkInfo); in getAllNetworkInfo_shouldEqualGetAllNetworks()
DShadowWifiManagerTest.java447 NetworkInfo networkInfo = in reconnect_updatesConnectivityManager() local
452 assertThat(networkInfo.getType()).isEqualTo(ConnectivityManager.TYPE_WIFI); in reconnect_updatesConnectivityManager()
453 assertThat(networkInfo.isConnected()).isTrue(); in reconnect_updatesConnectivityManager()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DDefaultConnectivityMonitor.java55 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected() local
56 return networkInfo != null && networkInfo.isConnected(); in isConnected()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNetworkInfo.java45 NetworkInfo networkInfo = Shadow.newInstanceOf(NetworkInfo.class); in newInstance() local
46 final ShadowNetworkInfo info = Shadow.extract(networkInfo); in newInstance()
52 return networkInfo; in newInstance()
DShadowConnectivityManager.java207 public void setNetworkInfo(int networkType, NetworkInfo networkInfo) { in setNetworkInfo() argument
208 networkTypeToNetworkInfo.put(networkType, networkInfo); in setNetworkInfo()
260 public void addNetwork(Network network, NetworkInfo networkInfo) { in addNetwork() argument
264 netIdToNetworkInfo.put(netId, networkInfo); in addNetwork()
DShadowWifiManager.java229 NetworkInfo networkInfo = in connect() local
239 connectivityManager.setActiveNetworkInfo(networkInfo); in connect()
/external/downloader/src/main/java/com/google/android/downloader/
DAndroidConnectivityHandler.java149 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in connectivitySatisfied() local
150 if (networkInfo == null) { in connectivitySatisfied()
155 if (!networkInfo.isConnected()) { in connectivitySatisfied()
174 networkType = computeNetworkType(networkInfo.getType()); in connectivitySatisfied()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/scheduler/
DRequirements.java133 NetworkInfo networkInfo = Assertions.checkNotNull(connectivityManager).getActiveNetworkInfo(); in getNotMetNetworkRequirements() local
134 if (networkInfo == null in getNotMetNetworkRequirements()
135 || !networkInfo.isConnected() in getNotMetNetworkRequirements()
/external/grpc-grpc-java/android/src/main/java/io/grpc/android/
DAndroidChannelBuilder.java350 NetworkInfo networkInfo = conn.getActiveNetworkInfo(); in onReceive() local
352 isConnected = networkInfo != null && networkInfo.isConnected(); in onReceive()
/external/autotest/client/cros/networking/chrome_testing/network_test_ext/
Dbackground.js126 chrome.networking.onc.getProperties(networkId, function(networkInfo) { argument
127 self._setResult("getNetworkInfo", networkInfo);
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DUtil.java1914 NetworkInfo networkInfo; in getNetworkType() local
1921 networkInfo = connectivityManager.getActiveNetworkInfo(); in getNetworkType()
1926 if (networkInfo == null || !networkInfo.isConnected()) { in getNetworkType()
1929 switch (networkInfo.getType()) { in getNetworkType()
1937 return getMobileNetworkType(networkInfo); in getNetworkType()
2204 private static @C.NetworkType int getMobileNetworkType(NetworkInfo networkInfo) { in getMobileNetworkType() argument
2205 switch (networkInfo.getSubtype()) { in getMobileNetworkType()
/external/autotest/frontend/client/src/autotest/moblab/rpc/
DMoblabRpcHelper.java83 NetworkInfo networkInfo = new NetworkInfo(); in fetchNetworkInfo()
84 networkInfo.fromJson(result.isObject()); in fetchNetworkInfo()
85 callback.onNetworkInfoFetched(networkInfo); in fetchNetworkInfo()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/
DDefaultBandwidthMeterTest.java560 private void setActiveNetworkInfo(NetworkInfo networkInfo) { in setActiveNetworkInfo() argument
561 Shadows.shadowOf(connectivityManager).setActiveNetworkInfo(networkInfo); in setActiveNetworkInfo()
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DNetworkMonitorTest.java154 public void onNetworkConnect(NetworkInformation networkInfo) {} in onNetworkConnect() argument
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiP2pManagerFacade.java299 NetworkInfo networkInfo = intent in onReceive() local
302 if (networkInfo.isConnected()) { in onReceive()