Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DConnectionStatus.java47 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in getNotConnectedReason() local
48 if (networkInfo != null) { in getNotConnectedReason()
49 return networkInfo.getReason(); in getNotConnectedReason()
56 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in isAvailable() local
57 return (networkInfo != null) && networkInfo.isAvailable(); in isAvailable()
61 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in isConnected() local
62 return (networkInfo != null) && networkInfo.isConnected(); in isConnected()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DMeteredDataRestrictionTest.java126 final NetworkInfo networkInfo = mNetworkInfos.poll(WAIT_FOR_NETWORK_INFO_TIMEOUT_SEC, in verifyAppNetworkState() local
128 if (networkInfo == null) { in verifyAppNetworkState()
135 assertEquals("Wrong state: " + networkInfo, in verifyAppNetworkState()
136 expectedState, networkInfo.getState().name()); in verifyAppNetworkState()
137 assertEquals("Wrong detailed state: " + networkInfo, in verifyAppNetworkState()
138 expectedDetailedState, networkInfo.getDetailedState().name()); in verifyAppNetworkState()
152 final NetworkInfo networkInfo = (NetworkInfo) msg.obj; in handleMessage() local
153 if (!mNetworkInfos.offer(networkInfo)) { in handleMessage()
165 final NetworkInfo networkInfo = mCm.getActiveNetworkInfo(); in setMeteredNetwork() local
167 + ", oldMeteredState=" + oldMeteredState + ", activeNetworkInfo=" + networkInfo); in setMeteredNetwork()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DConnectivityUtils.java30 final NetworkInfo networkInfo = context.getSystemService(ConnectivityManager.class) in isNetworkConnected() local
32 return (networkInfo != null) && networkInfo.isConnected(); in isNetworkConnected()
/cts/hostsidetests/devicepolicy/app/MeteredDataTestApp/src/com/android/cts/devicepolicy/metereddatatestapp/
DMainActivity.java52 final NetworkInfo networkInfo = getActiveNetworkInfo(); in notifyNetworkStateCallback() local
55 MSG_NOTIFY_NETWORK_STATE, networkInfo)); in notifyNetworkStateCallback()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DGarageModeChecker.java133 NetworkInfo networkInfo = getApplicationContext()
135 mHaveContinuousConnectivity = networkInfo != null
136 && networkInfo.isAvailable() && networkInfo.isConnected();
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DConcurrencyTest.java80 public NetworkInfo networkInfo; field in ConcurrencyTest.MyResponse
275 responseObj.networkInfo = null; in resetResponse()
467 mMyResponse.networkInfo = info; in testRequestNetworkInfo()
473 assertNotNull(mMyResponse.networkInfo); in testRequestNetworkInfo()
506 mMyResponse.networkInfo = info; in testRequestNetworkInfo()
512 assertNotNull(mMyResponse.networkInfo); in testRequestNetworkInfo()
514 mMyResponse.networkInfo.getDetailedState()); in testRequestNetworkInfo()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java116 NetworkInfo networkInfo = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO);
117 Log.d(TAG, "New network state " + networkInfo.getState());
775 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); in isNetworkConnected() local
776 boolean status = networkInfo != null && networkInfo.isConnectedOrConnecting(); in isNetworkConnected()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java173 NetworkInfo networkInfo = mCm.getNetworkInfo(network); in exerciseRemoteHost() local
174 if (networkInfo == null) { in exerciseRemoteHost()
177 Log.w(LOG_TAG, "Network: " + networkInfo.toString()); in exerciseRemoteHost()