/frameworks/base/core/java/android/net/ |
D | NetworkRequest.java | 40 public class NetworkRequest implements Parcelable { class 121 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) { in NetworkRequest() method in NetworkRequest 134 public NetworkRequest(NetworkRequest that) { in NetworkRequest() method in NetworkRequest 162 public NetworkRequest build() { in build() 169 return new NetworkRequest(nc, ConnectivityManager.TYPE_NONE, in build() 371 public static final @android.annotation.NonNull Creator<NetworkRequest> CREATOR = 372 new Creator<NetworkRequest>() { 373 public NetworkRequest createFromParcel(Parcel in) { 378 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type); 381 public NetworkRequest[] newArray(int size) { [all …]
|
D | NetworkFactory.java | 200 handleAddRequest((NetworkRequest) msg.obj, msg.arg1, msg.arg2); in handleMessage() 204 handleRemoveRequest((NetworkRequest) msg.obj); in handleMessage() 219 public final NetworkRequest request; 224 NetworkRequestInfo(NetworkRequest request, int score, int factorySerialNumber) { in NetworkRequestInfo() 251 protected void handleAddRequest(NetworkRequest request, int score) { in handleAddRequest() 265 protected void handleAddRequest(NetworkRequest request, int score, in handleAddRequest() 289 protected void handleRemoveRequest(NetworkRequest request) { in handleRemoveRequest() 326 public boolean acceptRequest(NetworkRequest request, int score) { in acceptRequest() 408 protected void releaseRequestAsUnfulfillableByAnyFactory(NetworkRequest r) { in releaseRequestAsUnfulfillableByAnyFactory() 425 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() [all …]
|
D | IConnectivityManager.aidl | 28 import android.net.NetworkRequest; 163 NetworkRequest requestNetwork(in NetworkCapabilities networkCapabilities, in requestNetwork() 166 NetworkRequest pendingRequestForNetwork(in NetworkCapabilities networkCapabilities, in pendingRequestForNetwork() 171 NetworkRequest listenForNetwork(in NetworkCapabilities networkCapabilities, in listenForNetwork() 177 void releaseNetworkRequest(in NetworkRequest networkRequest); in releaseNetworkRequest() 188 NetworkRequest getDefaultRequest(); in getDefaultRequest()
|
D | ConnectivityManager.java | 739 private static final NetworkRequest ALREADY_UNREGISTERED = 740 new NetworkRequest.Builder().clearCapabilities().build(); 1405 NetworkRequest request = null; in startUsingNetworkFeature() 1605 NetworkRequest networkRequest; 1636 private NetworkRequest findRequestForFeature(NetworkCapabilities netCap) { in findRequestForFeature() 1662 private NetworkRequest requestNetworkForFeatureLocked(NetworkCapabilities netCap) { in requestNetworkForFeatureLocked() 2264 public NetworkRequest getDefaultRequest() { in getDefaultRequest() 3360 private NetworkRequest networkRequest; 3447 final NetworkRequest request = getObject(message, NetworkRequest.class); in handleMessage() 3528 private static final HashMap<NetworkRequest, NetworkCallback> sCallbacks = new HashMap<>(); [all …]
|
D | NetworkRequest.aidl | 19 parcelable NetworkRequest;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | ConnectivityServiceMock.java | 30 import android.net.NetworkRequest; 142 handleReleaseNetworkRequest((NetworkRequest) msg.obj, msg.arg1); in handleMessage() 175 private boolean isRequest(NetworkRequest request) { in isRequest() 307 private final HashMap<NetworkRequest, NetworkRequestInfo> mNetworkRequests = 308 new HashMap<NetworkRequest, NetworkRequestInfo>(); 337 final NetworkRequest request; 346 NetworkRequestInfo(NetworkRequest r, PendingIntent pi, boolean isRequest) { in NetworkRequestInfo() 356 NetworkRequestInfo(Messenger m, NetworkRequest r, IBinder binder, boolean isRequest) { in NetworkRequestInfo() 400 public NetworkRequest requestNetwork(NetworkCapabilities networkCapabilities, in requestNetwork() 408 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactory.java | 23 import android.net.NetworkRequest; 76 private final Map<NetworkRequest, Integer> mNetworkRequests = new HashMap<>(); 178 NetworkRequest nr = bundle.getParcelable( in handleMessage() 197 private int getTransportTypeFromNetworkRequest(NetworkRequest networkRequest) { in getTransportTypeFromNetworkRequest() 202 private void requestNetworkInternal(NetworkRequest networkRequest, in requestNetworkInternal() 211 private void releaseNetworkInternal(NetworkRequest networkRequest, in releaseNetworkInternal() 231 for (HashMap.Entry<NetworkRequest, Integer> entry : mNetworkRequests.entrySet()) { in onActivePhoneSwitch() 232 NetworkRequest networkRequest = entry.getKey(); in onActivePhoneSwitch() 270 public void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() 277 NetworkRequest networkRequest = (NetworkRequest) msg.obj; in onNeedNetworkFor() [all …]
|
D | DcRequest.java | 20 import android.net.NetworkRequest; 28 public final NetworkRequest networkRequest; 32 public DcRequest(NetworkRequest nr, Context context) { in DcRequest()
|
D | ApnContext.java | 23 import android.net.NetworkRequest; 398 private final ArrayList<NetworkRequest> mNetworkRequests = new ArrayList<>(); 407 public void requestNetwork(NetworkRequest networkRequest, @RequestNetworkType int type, in requestNetwork() 423 public void releaseNetwork(NetworkRequest networkRequest, @ReleaseNetworkType int type) { in releaseNetwork() 451 for (NetworkRequest nr : mNetworkRequests) { in hasRestrictedRequests() 561 static @ApnType int getApnTypeFromNetworkRequest(NetworkRequest nr) { in getApnTypeFromNetworkRequest() 626 public List<NetworkRequest> getNetworkRequests() { in getNetworkRequests() 628 return new ArrayList<NetworkRequest>(mNetworkRequests); in getNetworkRequests() 659 for (NetworkRequest nr : mNetworkRequests) { in dump()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkAgentInfo.java | 29 import android.net.NetworkRequest; 171 public final NetworkRequest request; 174 public LingerTimer(NetworkRequest request, long expiryMs) { in LingerTimer() 233 private final SparseArray<NetworkRequest> mNetworkRequests = new SparseArray<>(); 331 private void updateRequestCounts(boolean add, NetworkRequest request) { in updateRequestCounts() 359 public boolean addRequest(NetworkRequest networkRequest) { in addRequest() 360 NetworkRequest existing = mNetworkRequests.get(networkRequest.requestId); in addRequest() 378 NetworkRequest existing = mNetworkRequests.get(requestId); in removeRequest() 398 public NetworkRequest requestAt(int index) { in requestAt() 455 public boolean satisfies(NetworkRequest request) { in satisfies() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnContextTest.java | 30 import android.net.NetworkRequest; 119 NetworkRequest nr1 = new NetworkRequest.Builder().build(); in testNetworkRequestNormal() 125 NetworkRequest nr2 = new NetworkRequest.Builder() in testNetworkRequestNormal() 147 NetworkRequest nr1 = new NetworkRequest.Builder().build(); in testNetworkRequestDetach() 152 NetworkRequest nr2 = new NetworkRequest.Builder() in testNetworkRequestDetach() 174 NetworkRequest nr1 = new NetworkRequest.Builder().build(); in testNetworkRequestHandover()
|
D | TelephonyNetworkFactoryTest.java | 31 import android.net.NetworkRequest; 76 private final ArrayList<NetworkRequest> mNetworkRequestList = new ArrayList<>(); 84 private NetworkRequest makeSubSpecificInternetRequest(int subId) { in makeSubSpecificInternetRequest() 92 private NetworkRequest makeSubSpecificMmsRequest(int subId) { in makeSubSpecificMmsRequest() 119 mNetworkRequestList.add((NetworkRequest) invocation.getArguments()[0]); in setUp() 124 mNetworkRequestList.remove((NetworkRequest) invocation.getArguments()[0]); in setUp() 200 NetworkRequest subSpecificDefault = makeSubSpecificInternetRequest(subId); in testActive() 210 NetworkRequest subSpecificMms = makeSubSpecificMmsRequest(subId); in testActive()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | UntrustedWifiNetworkFactory.java | 22 import android.net.NetworkRequest; 49 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() 59 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 143 import android.net.NetworkRequest; 724 NetworkRequest request = new NetworkRequest.Builder() in connect() 847 private SparseArray<NetworkRequest> mNetworkRequests = new SparseArray<>(); 884 protected void handleAddRequest(NetworkRequest request, int score, in handleAddRequest() 908 protected void handleRemoveRequest(NetworkRequest request) { in handleRemoveRequest() 926 public void triggerUnfulfillable(NetworkRequest r) { in triggerUnfulfillable() 969 public SparseArray<NetworkRequest> waitForNetworkRequests(final int count) in waitForNetworkRequests() 1995 final NetworkRequest genericRequest = new NetworkRequest.Builder() in testStateChangeNetworkCallbacks() 1997 final NetworkRequest wifiRequest = new NetworkRequest.Builder() in testStateChangeNetworkCallbacks() 1999 final NetworkRequest cellRequest = new NetworkRequest.Builder() in testStateChangeNetworkCallbacks() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitorTest.java | 52 import android.net.NetworkRequest; 90 private static final NetworkRequest mDefaultRequest = new NetworkRequest.Builder().build(); 172 any(NetworkRequest.class), any(NetworkCallback.class), any(Handler.class)); in testCallbacksRegistered() 208 any(NetworkRequest.class), any(NetworkCallback.class), any(Handler.class)); in testDuplicateMobileRequestsIgnored() 215 any(NetworkRequest.class), any(NetworkCallback.class), anyInt(), anyInt(), in testDuplicateMobileRequestsIgnored() 321 NetworkRequest netReq = (NetworkRequest) mCM.requested.values().toArray()[0]; in testSelectPreferredUpstreamType() 357 netReq = (NetworkRequest) mCM.requested.values().toArray()[0]; in testSelectPreferredUpstreamType() 563 public Map<NetworkCallback, NetworkRequest> listening = new HashMap<>(); 564 public Map<NetworkCallback, NetworkRequest> requested = new HashMap<>(); 593 for (NetworkRequest req : listening.values()) { in isListeningForAll() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | UntrustedWifiNetworkFactoryTest.java | 24 import android.net.NetworkRequest; 43 NetworkRequest mNetworkRequest; 63 mNetworkRequest = new NetworkRequest.Builder() in setUp()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CellularNetworkValidator.java | 23 import android.net.NetworkRequest; 57 private NetworkRequest mNetworkRequest; 170 private NetworkRequest createNetworkRequest() { in createNetworkRequest() 171 return new NetworkRequest.Builder() in createNetworkRequest()
|
D | PhoneSwitcher.java | 38 import android.net.NetworkRequest; 453 onRequestNetwork((NetworkRequest)msg.obj); in handleMessage() 457 onReleaseNetwork((NetworkRequest)msg.obj); in handleMessage() 643 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() 651 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() 659 private void onRequestNetwork(NetworkRequest networkRequest) { in onRequestNetwork() 669 private void onReleaseNetwork(NetworkRequest networkRequest) { in onReleaseNetwork() 700 private void collectRequestNetworkMetrics(NetworkRequest networkRequest) { in collectRequestNetworkMetrics() 712 private void collectReleaseNetworkMetrics(NetworkRequest networkRequest) { in collectReleaseNetworkMetrics() 949 private int phoneIdForRequest(NetworkRequest netRequest) { in phoneIdForRequest() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSwitcherTest.java | 43 import android.net.NetworkRequest; 140 NetworkRequest internetNetworkRequest = addInternetNetworkRequest(null, 50); in testRegister() 235 NetworkRequest specificInternetRequest = addInternetNetworkRequest(0, 50); in testRegister() 457 NetworkRequest internetRequest = addInternetNetworkRequest(null, 50); in testSetPreferredDataModemCommand() 458 NetworkRequest mmsRequest = addMmsNetworkRequest(2); in testSetPreferredDataModemCommand() 563 NetworkRequest internetRequest = addInternetNetworkRequest(null, 50); in testNonDefaultDataPhoneInCall() 610 NetworkRequest internetRequest = addInternetNetworkRequest(2, 50); in testNetworkRequestOnNonDefaultData() 936 NetworkRequest internetRequest = addInternetNetworkRequest(null, 50); in setMsimDefaultDataSubId() 1100 private NetworkRequest addInternetNetworkRequest(Integer subId, int score) throws Exception { in addInternetNetworkRequest() 1104 private NetworkRequest addInternetNetworkRequest(Integer subId, int score, boolean restricted) in addInternetNetworkRequest() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitor.java | 34 import android.net.NetworkRequest; 132 public void startTrackDefaultNetwork(NetworkRequest defaultNetworkRequest, in startTrackDefaultNetwork() 140 final NetworkRequest trackDefaultRequest = new NetworkRequest(defaultNetworkRequest); in startTrackDefaultNetwork() 152 final NetworkRequest listenAllRequest = new NetworkRequest.Builder() in startObserveAllNetworks() 196 final NetworkRequest mobileUpstreamRequest = new NetworkRequest.Builder() in registerMobileNetworkRequest()
|
D | TetheringDependencies.java | 20 import android.net.NetworkRequest; 78 public NetworkRequest getDefaultNetworkRequest() { in getDefaultNetworkRequest()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssNetworkConnectivityHandler.java | 25 import android.net.NetworkRequest; 183 NetworkRequest.Builder networkRequestBuilder = new NetworkRequest.Builder(); in registerNetworkCallbacks() 187 NetworkRequest networkRequest = networkRequestBuilder.build(); in registerNetworkCallbacks() 463 NetworkRequest.Builder networkRequestBuilder = new NetworkRequest.Builder(); 466 NetworkRequest networkRequest = networkRequestBuilder.build();
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnectionTest.java | 38 import android.net.NetworkRequest; 219 verify(mConnectivityManager).requestNetwork(any(NetworkRequest.class), in verifyNetworkCallbackInvokedWhenConnected() 249 verify(mConnectivityManager).requestNetwork(any(NetworkRequest.class), in verifyNetworkCallbackWithoutOnAvailable() 272 verify(mConnectivityManager).requestNetwork(any(NetworkRequest.class), in verifyNetworkConnectionTimeout() 323 ArgumentCaptor<NetworkRequest> networkRequestCaptor = ArgumentCaptor.forClass( in verifyWifiConfigurationForOsuNetwork() 324 NetworkRequest.class); in verifyWifiConfigurationForOsuNetwork()
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetworkPinner.java | 23 import android.net.NetworkRequest; 117 public static void pin(Context context, NetworkRequest request) { in pin()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnection.java | 29 import android.net.NetworkRequest; 209 NetworkRequest networkRequest = new NetworkRequest.Builder() in connect()
|