Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DBluetoothTetheringNetworkFactory.java50 private final NetworkCapabilities mNetworkCapabilities; field in BluetoothTetheringNetworkFactory
67 mNetworkCapabilities = new NetworkCapabilities(); in BluetoothTetheringNetworkFactory()
69 setCapabilityFilter(mNetworkCapabilities); in BluetoothTetheringNetworkFactory()
175 mNetworkCapabilities, linkProperties, NETWORK_SCORE, in startNetwork()
243 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_BLUETOOTH); in initNetworkCapabilities()
244 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in initNetworkCapabilities()
245 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in initNetworkCapabilities()
246 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING); in initNetworkCapabilities()
247 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED); in initNetworkCapabilities()
250 mNetworkCapabilities.setLinkUpstreamBandwidthKbps(24 * 1000); in initNetworkCapabilities()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProviderImpl.java67 private NetworkCapabilities mNetworkCapabilities; field in WifiInfoProviderImpl
121 if (mNetworkCapabilities == null) return true;
124 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap);
130 if (network.equals(mNetwork) && !nc.equals(mNetworkCapabilities)) {
135 mNetworkCapabilities = nc;
137 listener.onCapabilitiesChanged(mNetwork, mNetworkCapabilities);
162 mNetworkCapabilities = mConnectivityManager.getNetworkCapabilities(mNetwork); in WifiInfoProviderImpl()
228 return mNetworkCapabilities; in getNetworkCapabilities()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileNetworkEntryPreferenceControllerTest.java88 private NetworkCapabilities mNetworkCapabilities; field in MobileNetworkEntryPreferenceControllerTest
103 ShadowNetwork.newInstance(ConnectivityManager.TYPE_MOBILE), mNetworkCapabilities); in setUp() local
104 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in setUp()
120 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in getAvailabilityStatus_noMobileNetwork_unsupported()
128 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in getAvailabilityStatus_notAdmin_disabledForUser()
137 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in getAvailabilityStatus_hasRestriction_disabledForUser()
148 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in getAvailabilityStatus_hasMobileNetwork_isAdmin_noRestriction_available()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageEntryPreferenceControllerTest.java64 private NetworkCapabilities mNetworkCapabilities; field in DataUsageEntryPreferenceControllerTest
83 ShadowNetwork.newInstance(ConnectivityManager.TYPE_MOBILE), mNetworkCapabilities); in setUp() local
84 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in setUp()
98 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in getAvailabilityStatus_noMobileNetwork_isUnsupported()
106 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in getAvailabilityStatus_hasMobileNetwork_isAvailable()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java158 private NetworkCapabilities mNetworkCapabilities; field in WifiDetailPreferenceController
232 if (mNetworkCapabilities == null) return true;
235 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap);
244 if (mNetworkCapabilities == null) {
248 return mNetworkCapabilities.isPrivateDnsBroken() != nc.isPrivateDnsBroken();
257 if (network.equals(mNetwork) && !nc.equals(mNetworkCapabilities)) {
265 mNetworkCapabilities = nc;
468 mNetworkCapabilities = mConnectivityManager.getNetworkCapabilities(mNetwork); in updateNetworkInfo()
486 mNetworkCapabilities = null; in onPause()
845 return mAccessPoint.isActive() && WifiUtils.canSignIntoNetwork(mNetworkCapabilities); in canSignIntoNetwork()
/packages/modules/NetworkStack/src/com/android/networkstack/
DNetworkStackNotifier.java78 private NetworkCapabilities mNetworkCapabilities; field in NetworkStackNotifier.TrackedNetworkStatus
81 if (mNetworkCapabilities == null) return false; in isValidated()
82 return mNetworkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in isValidated()
184 return mInfoShim.getSsid(status.mNetworkCapabilities); in getSsid()
341 updateNetworkStatus(network, s -> s.mNetworkCapabilities = networkCapabilities); in onCapabilitiesChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java159 private NetworkCapabilities mNetworkCapabilities; field in WifiDetailPreferenceController
233 if (mNetworkCapabilities == null) return true;
236 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap);
245 if (network.equals(mNetwork) && !nc.equals(mNetworkCapabilities)) {
252 mNetworkCapabilities = nc;
472 mNetworkCapabilities = mConnectivityManager.getNetworkCapabilities(mNetwork); in updateNetworkInfo()
490 mNetworkCapabilities = null; in onPause()
850 return mAccessPoint.isActive() && WifiUtils.canSignIntoNetwork(mNetworkCapabilities); in canSignIntoNetwork()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java447 private NetworkCapabilities mNetworkCapabilities; field in NetworkMonitor
622 mNetworkCapabilities = new NetworkCapabilities(null); in NetworkMonitor()
672 mNetworkCapabilities = attrs.second; in updateConnectedNetworkAttributes()
730 return NetworkMonitorUtils.isValidationRequired(mNetworkCapabilities); in isValidationRequired()
734 return NetworkMonitorUtils.isPrivateDnsValidationRequired(mNetworkCapabilities); in isPrivateDnsValidationRequired()
810 mNetworkValidationMetrics.startCollection(mNetworkCapabilities); in startMetricsCollection()
985 mNetworkCapabilities = (NetworkCapabilities) message.obj; in processMessage()
1095 final int[] transports = mNetworkCapabilities.getTransportTypes(); in maybeWriteDataStallStats()
1120 final boolean isRoaming = !mNetworkCapabilities.hasCapability( in buildDataStallDetectionStats()
1539 final ValidationProperties deps = new ValidationProperties(mNetworkCapabilities); in enter()
[all …]