/cts/tests/tests/media/src/android/media/cts/ |
D | ConnectionStatus.java | 47 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/ |
D | MeteredDataRestrictionTest.java | 117 final NetworkInfo networkInfo = mNetworkInfos.poll(WAIT_FOR_NETWORK_INFO_TIMEOUT_SEC, in verifyAppNetworkState() local 119 if (networkInfo == null) { in verifyAppNetworkState() 126 assertEquals("Wrong state: " + networkInfo, in verifyAppNetworkState() 127 expectedState, networkInfo.getState().name()); in verifyAppNetworkState() 128 assertEquals("Wrong detailed state: " + networkInfo, in verifyAppNetworkState() 129 expectedDetailedState, networkInfo.getDetailedState().name()); in verifyAppNetworkState() 143 final NetworkInfo networkInfo = (NetworkInfo) msg.obj; in handleMessage() local 144 if (!mNetworkInfos.offer(networkInfo)) { in handleMessage() 154 final NetworkInfo networkInfo = mCm.getActiveNetworkInfo(); in setMeteredNetwork() local 155 if (networkInfo == null) { in setMeteredNetwork() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | ConnectivityUtils.java | 30 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/ |
D | MainActivity.java | 51 final NetworkInfo networkInfo = getActiveNetworkInfo(); in notifyNetworkStateCallback() local 54 MSG_NOTIFY_NETWORK_STATE, networkInfo)); in notifyNetworkStateCallback()
|
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
D | MyBroadcastReceiver.java | 160 final NetworkInfo networkInfo = cm.getActiveNetworkInfo(); in checkNetworkStatus() local 163 + "\n\tactiveNetworkInfo: " + networkInfo + "\n\tURL: " + address); in checkNetworkStatus() 183 if (networkInfo != null) { in checkNetworkStatus() 184 state = networkInfo.getState().name(); in checkNetworkStatus() 185 detailedState = networkInfo.getDetailedState().name(); in checkNetworkStatus() 190 Boolean.valueOf(checkStatus), checkDetails, networkInfo); in checkNetworkStatus()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 375 NetworkInfo networkInfo = null; in onReceive() local 379 networkInfo = ni; in onReceive() 383 if (networkInfo == null) { in onReceive() 388 NetworkInfo.State networkState = networkInfo.getState(); in onReceive()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 279 for (NetworkInfo networkInfo : ni) Log.e(TAG, " " + networkInfo); in testGetAllNetworkInfo() 793 NetworkInfo networkInfo = null; in onReceive() local 799 networkInfo = intent.getExtras() in onReceive() 801 … assertNotNull("ConnectivityActionReceiver expected EXTRA_NETWORK_INFO", networkInfo); in onReceive() 806 networkInfo = mCm.getNetworkInfo(network); in onReceive() 807 if (networkInfo == null) { in onReceive() 819 assertNotNull("ConnectivityActionReceiver didn't find NetworkInfo", networkInfo); in onReceive() 820 int networkType = networkInfo.getType(); in onReceive() 821 State networkState = networkInfo.getState(); in onReceive() 823 if (networkType == mNetworkType && networkInfo.getState() == mNetState) { in onReceive()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | MultiNetworkConnectivityTestActivity.java | 110 NetworkInfo networkInfo = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); 111 Log.d(TAG, "New network state " + networkInfo.getState()); 654 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); in isNetworkConnected() local 655 boolean status = networkInfo != null && networkInfo.isConnectedOrConnecting(); in isNetworkConnected()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 168 NetworkInfo networkInfo = mCm.getNetworkInfo(network); in exerciseRemoteHost() local 169 if (networkInfo == null) { in exerciseRemoteHost() 172 Log.w(LOG_TAG, "Network: " + networkInfo.toString()); in exerciseRemoteHost()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 467 final String networkInfo = parts[4]; in checkForAvailabilityInResultData() local 490 errors.append("\tnetworkInfo: " + networkInfo + "\n"); in checkForAvailabilityInResultData()
|