Home
last modified time | relevance | path

Searched refs:NetworkCapabilities (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/core/java/android/net/
DNetworkCapabilities.java35 public final class NetworkCapabilities implements Parcelable { class
39 public NetworkCapabilities() { in NetworkCapabilities() method in NetworkCapabilities
44 public NetworkCapabilities(NetworkCapabilities nc) { in NetworkCapabilities() method in NetworkCapabilities
254 public NetworkCapabilities addCapability(int capability) { in addCapability()
269 public NetworkCapabilities removeCapability(int capability) { in removeCapability()
314 private void combineNetCapabilities(NetworkCapabilities nc) { in combineNetCapabilities()
337 private boolean satisfiedByNetCapabilities(NetworkCapabilities nc, boolean onlyImmutable) { in satisfiedByNetCapabilities()
346 public boolean equalsNetCapabilities(NetworkCapabilities nc) { in equalsNetCapabilities()
350 private boolean equalsNetCapabilitiesImmutable(NetworkCapabilities that) { in equalsNetCapabilitiesImmutable()
424 public NetworkCapabilities addTransportType(int transportType) { in addTransportType()
[all …]
DNetworkRequest.java32 public final NetworkCapabilities networkCapabilities;
52 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId) { in NetworkRequest()
65 networkCapabilities = new NetworkCapabilities(that.networkCapabilities); in NetworkRequest()
75 private final NetworkCapabilities mNetworkCapabilities = new NetworkCapabilities();
90 final NetworkCapabilities nc = new NetworkCapabilities(mNetworkCapabilities); in build()
191 if (NetworkCapabilities.MATCH_ALL_REQUESTS_NETWORK_SPECIFIER.equals(networkSpecifier)) { in setNetworkSpecifier()
193 + NetworkCapabilities.MATCH_ALL_REQUESTS_NETWORK_SPECIFIER + "'"); in setNetworkSpecifier()
230 NetworkCapabilities nc = (NetworkCapabilities)in.readParcelable(null);
DConnectivityManager.java969 public NetworkCapabilities[] getDefaultNetworkCapabilitiesForUser(int userId) { in getDefaultNetworkCapabilitiesForUser()
1046 public NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities()
1096 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in startUsingNetworkFeature()
1151 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in stopUsingNetworkFeature()
1164 private NetworkCapabilities networkCapabilitiesForFeature(int networkType, String feature) { in networkCapabilitiesForFeature()
1168 cap = NetworkCapabilities.NET_CAPABILITY_MMS; in networkCapabilitiesForFeature()
1170 cap = NetworkCapabilities.NET_CAPABILITY_SUPL; in networkCapabilitiesForFeature()
1172 cap = NetworkCapabilities.NET_CAPABILITY_DUN; in networkCapabilitiesForFeature()
1174 cap = NetworkCapabilities.NET_CAPABILITY_INTERNET; in networkCapabilitiesForFeature()
1176 cap = NetworkCapabilities.NET_CAPABILITY_FOTA; in networkCapabilitiesForFeature()
[all …]
DIConnectivityManager.aidl22 import android.net.NetworkCapabilities;
55 NetworkCapabilities[] getDefaultNetworkCapabilitiesForUser(int userId); in getDefaultNetworkCapabilitiesForUser()
63 NetworkCapabilities getNetworkCapabilities(in Network network); in getNetworkCapabilities()
143 in NetworkCapabilities nc, int score, in NetworkMisc misc); in registerNetworkAgent()
145 NetworkRequest requestNetwork(in NetworkCapabilities networkCapabilities, in requestNetwork()
148 NetworkRequest pendingRequestForNetwork(in NetworkCapabilities networkCapabilities, in pendingRequestForNetwork()
153 NetworkRequest listenForNetwork(in NetworkCapabilities networkCapabilities, in listenForNetwork()
156 void pendingListenForNetwork(in NetworkCapabilities networkCapabilities, in pendingListenForNetwork()
DNetworkFactory.java104 private NetworkCapabilities mCapabilityFilter;
110 NetworkCapabilities filter) { in NetworkFactory()
149 handleSetFilter((NetworkCapabilities) msg.obj); in handleMessage()
202 private void handleSetFilter(NetworkCapabilities netCap) { in handleSetFilter()
284 public void setCapabilityFilter(NetworkCapabilities netCap) { in setCapabilityFilter()
285 sendMessage(obtainMessage(CMD_SET_FILTER, new NetworkCapabilities(netCap))); in setCapabilityFilter()
DNetworkAgent.java209 NetworkCapabilities nc, LinkProperties lp, int score) { in NetworkAgent()
214 NetworkCapabilities nc, LinkProperties lp, int score, NetworkMisc misc) { in NetworkAgent()
226 new LinkProperties(lp), new NetworkCapabilities(nc), score, misc); in NetworkAgent()
375 public void sendNetworkCapabilities(NetworkCapabilities networkCapabilities) { in sendNetworkCapabilities()
379 new NetworkCapabilities(networkCapabilities)); in sendNetworkCapabilities()
DNetworkState.java32 public final NetworkCapabilities networkCapabilities;
38 NetworkCapabilities networkCapabilities, Network network, String subscriberId, in NetworkState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcRequest.java30 import android.net.NetworkCapabilities;
71 NetworkCapabilities nc = nr.networkCapabilities; in apnIdForNetworkRequest()
74 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in apnIdForNetworkRequest()
83 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
87 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in apnIdForNetworkRequest()
91 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in apnIdForNetworkRequest()
95 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in apnIdForNetworkRequest()
99 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in apnIdForNetworkRequest()
103 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in apnIdForNetworkRequest()
107 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in apnIdForNetworkRequest()
[all …]
DTelephonyNetworkFactory.java22 import android.net.NetworkCapabilities;
101 private NetworkCapabilities makeNetworkFilter(SubscriptionController subscriptionController, in makeNetworkFilter()
107 private NetworkCapabilities makeNetworkFilter(int subscriptionId) { in makeNetworkFilter()
108 NetworkCapabilities nc = new NetworkCapabilities(); in makeNetworkFilter()
109 nc.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeNetworkFilter()
110 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in makeNetworkFilter()
111 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in makeNetworkFilter()
112 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in makeNetworkFilter()
113 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in makeNetworkFilter()
114 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in makeNetworkFilter()
[all …]
DApnContext.java22 import android.net.NetworkCapabilities;
537 NetworkCapabilities nc = nr.networkCapabilities; in apnIdForNetworkRequest()
540 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in apnIdForNetworkRequest()
549 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
552 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in apnIdForNetworkRequest()
556 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in apnIdForNetworkRequest()
560 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in apnIdForNetworkRequest()
564 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in apnIdForNetworkRequest()
568 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in apnIdForNetworkRequest()
572 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in apnIdForNetworkRequest()
[all …]
DDcAsyncChannel.java25 import android.net.NetworkCapabilities;
324 public NetworkCapabilities rspNetworkCapabilities(Message response) { in rspNetworkCapabilities()
325 NetworkCapabilities retVal = (NetworkCapabilities) response.obj; in rspNetworkCapabilities()
335 public NetworkCapabilities getNetworkCapabilitiesSync() { in getNetworkCapabilitiesSync()
336 NetworkCapabilities value; in getNetworkCapabilitiesSync()
DDataConnection.java37 import android.net.NetworkCapabilities;
255 NetworkCapabilities getCopyNetworkCapabilities() { in getCopyNetworkCapabilities()
828 private NetworkCapabilities makeNetworkCapabilities() { in makeNetworkCapabilities()
829 NetworkCapabilities result = new NetworkCapabilities(); in makeNetworkCapabilities()
830 result.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeNetworkCapabilities()
836 result.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in makeNetworkCapabilities()
837 result.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in makeNetworkCapabilities()
838 result.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in makeNetworkCapabilities()
839 result.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in makeNetworkCapabilities()
840 result.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in makeNetworkCapabilities()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java26 import android.net.NetworkCapabilities;
137 NetworkCapabilities netCap = new NetworkCapabilities(); in PhoneSwitcher()
138 netCap.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in PhoneSwitcher()
139 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in PhoneSwitcher()
140 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in PhoneSwitcher()
141 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in PhoneSwitcher()
142 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in PhoneSwitcher()
143 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in PhoneSwitcher()
144 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in PhoneSwitcher()
145 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in PhoneSwitcher()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java38 import android.net.NetworkCapabilities;
116 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificDefaultRequest()
117 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificDefaultRequest()
118 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificDefaultRequest()
119 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificDefaultRequest()
124 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificMmsRequest()
125 addCapability(NetworkCapabilities.NET_CAPABILITY_MMS). in makeSubSpecificMmsRequest()
126 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificMmsRequest()
127 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificMmsRequest()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java4 import android.net.NetworkCapabilities;
32 setConnectivity(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testWifiIcon()
34 setConnectivity(NetworkCapabilities.TRANSPORT_WIFI, false, true); in testWifiIcon()
52 setConnectivity(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testQsWifiIcon()
55 setConnectivity(NetworkCapabilities.TRANSPORT_WIFI, false, true); in testQsWifiIcon()
68 setConnectivity(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testQsDataDirection()
89 setConnectivity(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testRoamingIconDuringWifi()
95 setConnectivity(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testRoamingIconDuringWifi()
DNetworkControllerBaseTest.java21 import android.net.NetworkCapabilities;
74 private NetworkCapabilities mNetCapabilities;
85 mNetCapabilities = new NetworkCapabilities(); in setUp()
88 new NetworkCapabilities[] { mNetCapabilities }); in setUp()
167 setConnectivity(NetworkCapabilities.TRANSPORT_CELLULAR, true, true); in setupDefaultSignal()
179 mNetCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in setConnectivity()
181 mNetCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in setConnectivity()
DNetworkControllerEthernetTest.java3 import android.net.NetworkCapabilities;
31 setConnectivity(NetworkCapabilities.TRANSPORT_ETHERNET, validated, connected); in setEthernetState()
DNetworkControllerDataTest.java3 import android.net.NetworkCapabilities;
107 setConnectivity(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testDataDisabledIcon()
118 setConnectivity(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testDataDisabledIcon_UserNotSetup()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
24 import android.net.NetworkCapabilities;
116 public NetworkCapabilities networkCapabilities;
178 LinkProperties lp, NetworkCapabilities nc, int score, Context context, Handler handler, in NetworkAgentInfo()
216 return networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN); in isVPN()
268 new NetworkCapabilities(networkCapabilities), network, subscriberId, null); in getNetworkState()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java26 import static android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL;
27 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
28 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
29 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
30 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
61 import android.net.NetworkCapabilities;
535 public NetworkCapabilities[] getDefaultNetworkCapabilitiesForUser(int userId) { in getDefaultNetworkCapabilitiesForUser()
560 public NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities()
749 public NetworkRequest requestNetwork(NetworkCapabilities networkCapabilities, in requestNetwork()
751 networkCapabilities = new NetworkCapabilities(networkCapabilities); in requestNetwork()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java34 import android.net.NetworkCapabilities;
158 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificDefaultRequest()
159 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificDefaultRequest()
160 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificDefaultRequest()
161 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificDefaultRequest()
167 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificMmsRequest()
168 addCapability(NetworkCapabilities.NET_CAPABILITY_MMS). in makeSubSpecificMmsRequest()
169 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificMmsRequest()
170 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificMmsRequest()
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephonyRegistry.aidl21 import android.net.NetworkCapabilities;
51 in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); in notifyDataConnection()
54 in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); in notifyDataConnectionForSubscriber()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java30 import android.net.NetworkCapabilities;
88 private NetworkCapabilities mNetworkCapabilities;
117 super(looper, context, name, new NetworkCapabilities()); in LocalNetworkFactory()
483 mNetworkCapabilities = new NetworkCapabilities(); in initNetworkCapabilities()
484 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_ETHERNET); in initNetworkCapabilities()
485 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in initNetworkCapabilities()
486 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in initNetworkCapabilities()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DEthernetSignalController.java19 import android.net.NetworkCapabilities;
32 super("EthernetSignalController", context, NetworkCapabilities.TRANSPORT_ETHERNET, in EthernetSignalController()
DSecurityControllerImpl.java27 import android.net.NetworkCapabilities;
51 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)
52 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
53 .removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)

123