Home
last modified time | relevance | path

Searched refs:networkInfo (Results 1 – 13 of 13) 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/talk/app/webrtc/java/android/org/webrtc/
DNetworkMonitorAutoDetect.java142 NetworkState getNetworkState(NetworkInfo networkInfo) { in getNetworkState() argument
143 if (networkInfo == null || !networkInfo.isConnected()) { in getNetworkState()
146 return new NetworkState(true, networkInfo.getType(), networkInfo.getSubtype()); in getNetworkState()
185 final NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in getDefaultNetId() local
186 if (networkInfo != null && networkInfo.getType() == defaultNetworkInfo.getType()) { in getDefaultNetId()
/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/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/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/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiP2pManagerFacade.java299 NetworkInfo networkInfo = intent in onReceive() local
302 if (networkInfo.isConnected()) { in onReceive()