/frameworks/base/core/java/android/net/ |
D | NetworkRequest.java | 30 public class NetworkRequest implements Parcelable { class 108 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) { in NetworkRequest() method in NetworkRequest 121 public NetworkRequest(NetworkRequest that) { in NetworkRequest() method in NetworkRequest 143 public NetworkRequest build() { in build() 150 return new NetworkRequest(nc, ConnectivityManager.TYPE_NONE, in build() 317 public static final Creator<NetworkRequest> CREATOR = 318 new Creator<NetworkRequest>() { 319 public NetworkRequest createFromParcel(Parcel in) { 324 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type); 327 public NetworkRequest[] newArray(int size) { [all …]
|
D | NetworkFactory.java | 137 handleAddRequest((NetworkRequest)msg.obj, msg.arg1); in handleMessage() 141 handleRemoveRequest((NetworkRequest) msg.obj); in handleMessage() 156 public final NetworkRequest request; 160 public NetworkRequestInfo(NetworkRequest request, int score) { in NetworkRequestInfo() 173 protected void handleAddRequest(NetworkRequest request, int score) { in handleAddRequest() 189 protected void handleRemoveRequest(NetworkRequest request) { in handleRemoveRequest() 226 public boolean acceptRequest(NetworkRequest request, int score) { in acceptRequest() 262 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() 266 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() 271 public void addNetworkRequest(NetworkRequest networkRequest, int score) { in addNetworkRequest() [all …]
|
D | IConnectivityManager.aidl | 26 import android.net.NetworkRequest; 145 NetworkRequest requestNetwork(in NetworkCapabilities networkCapabilities, in requestNetwork() 148 NetworkRequest pendingRequestForNetwork(in NetworkCapabilities networkCapabilities, in pendingRequestForNetwork() 153 NetworkRequest listenForNetwork(in NetworkCapabilities networkCapabilities, in listenForNetwork() 159 void releaseNetworkRequest(in NetworkRequest networkRequest); in releaseNetworkRequest()
|
D | ConnectivityManager.java | 1133 NetworkRequest request = null; in startUsingNetworkFeature() 1332 NetworkRequest networkRequest; 1362 private NetworkRequest findRequestForFeature(NetworkCapabilities netCap) { in findRequestForFeature() 1387 private NetworkRequest requestNetworkForFeatureLocked(NetworkCapabilities netCap) { in requestNetworkForFeatureLocked() 2669 private NetworkRequest networkRequest; 2733 NetworkRequest request = getObject(message, NetworkRequest.class); in handleMessage() 2828 private NetworkCallback getCallback(NetworkRequest req, String name) { in getCallback() 2849 private static final HashMap<NetworkRequest, NetworkCallback> sCallbacks = new HashMap<>(); 2855 private NetworkRequest sendRequestForNetwork(NetworkCapabilities need, NetworkCallback callback, in sendRequestForNetwork() 2865 final NetworkRequest request; in sendRequestForNetwork() [all …]
|
D | NetworkRequest.aidl | 19 parcelable NetworkRequest;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactory.java | 24 import android.net.NetworkRequest; 50 private final HashMap<NetworkRequest, LocalLog> mDefaultRequests = 51 new HashMap<NetworkRequest, LocalLog>(); 52 private final HashMap<NetworkRequest, LocalLog> mSpecificRequests = 53 new HashMap<NetworkRequest, LocalLog>(); 161 private void applyRequests(HashMap<NetworkRequest, LocalLog> requestMap, boolean action, in applyRequests() argument 163 for (NetworkRequest networkRequest : requestMap.keySet()) { in applyRequests() 215 public void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() 222 NetworkRequest networkRequest = (NetworkRequest)msg.obj; in onNeedNetworkFor() 255 public void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() [all …]
|
D | ApnContext.java | 24 import android.net.NetworkRequest; 402 private final ArrayList<NetworkRequest> mNetworkRequests = new ArrayList<>(); 414 public void requestNetwork(NetworkRequest networkRequest, LocalLog log) { in requestNetwork() 426 public void releaseNetwork(NetworkRequest networkRequest, LocalLog log) { in releaseNetwork() 447 public List<NetworkRequest> getNetworkRequests() { in getNetworkRequests() 449 return new ArrayList<NetworkRequest>(mNetworkRequests); in getNetworkRequests() 455 for (NetworkRequest nr : mNetworkRequests) { in hasNoRestrictedRequests() 568 public static int apnIdForNetworkRequest(NetworkRequest nr) { in apnIdForNetworkRequest() 715 for (NetworkRequest nr : mNetworkRequests) { in dump()
|
D | DcRequest.java | 32 import android.net.NetworkRequest; 40 public final NetworkRequest networkRequest; 44 public DcRequest(NetworkRequest nr, Context context) { in DcRequest() 70 private int apnIdForNetworkRequest(NetworkRequest nr) { in apnIdForNetworkRequest()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkAgentInfo.java | 27 import android.net.NetworkRequest; 164 public final NetworkRequest request; 167 public LingerTimer(NetworkRequest request, long expiryMs) { in LingerTimer() 234 private final SparseArray<NetworkRequest> mNetworkRequests = new SparseArray<>(); 256 NetworkMisc misc, NetworkRequest defaultRequest, ConnectivityService connService) { in NetworkAgentInfo() 278 private void updateRequestCounts(boolean add, NetworkRequest request) { in updateRequestCounts() 306 public boolean addRequest(NetworkRequest networkRequest) { in addRequest() 307 NetworkRequest existing = mNetworkRequests.get(networkRequest.requestId); in addRequest() 325 NetworkRequest existing = mNetworkRequests.get(requestId); in removeRequest() 345 public NetworkRequest requestAt(int index) { in requestAt() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | ConnectivityServiceMock.java | 34 import android.net.NetworkRequest; 161 handleReleaseNetworkRequest((NetworkRequest) msg.obj, msg.arg1); in handleMessage() 194 private boolean isRequest(NetworkRequest request) { in isRequest() 326 private final HashMap<NetworkRequest, NetworkRequestInfo> mNetworkRequests = 327 new HashMap<NetworkRequest, NetworkRequestInfo>(); 345 final NetworkRequest request; 354 NetworkRequestInfo(NetworkRequest r, PendingIntent pi, boolean isRequest) { in NetworkRequestInfo() 364 NetworkRequestInfo(Messenger m, NetworkRequest r, IBinder binder, boolean isRequest) { in NetworkRequestInfo() 684 public NetworkRequest requestNetwork(NetworkCapabilities networkCapabilities, in requestNetwork() 692 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork() [all …]
|
D | DcTrackerMock.java | 21 import android.net.NetworkRequest; 160 private final ArrayList<NetworkRequest> mRequestedNetworks = new ArrayList<NetworkRequest>(); 163 public void requestNetwork(NetworkRequest networkRequest, LocalLog log) { in requestNetwork() 170 public void releaseNetwork(NetworkRequest networkRequest, LocalLog log) { in releaseNetwork()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 61 import android.net.NetworkRequest; 402 NetworkRequest request = new NetworkRequest.Builder() in connect() 539 protected void handleAddRequest(NetworkRequest request, int score) { in handleAddRequest() 556 protected void handleRemoveRequest(NetworkRequest request) { in handleRemoveRequest() 652 NetworkAgentInfo networkAgentInfo, NetworkRequest defaultRequest, in WrappedNetworkMonitor() 728 NetworkAgentInfo nai, NetworkRequest defaultRequest) { in createNetworkMonitor() 1310 final NetworkRequest genericRequest = new NetworkRequest.Builder() in testStateChangeNetworkCallbacks() 1312 final NetworkRequest wifiRequest = new NetworkRequest.Builder() in testStateChangeNetworkCallbacks() 1314 final NetworkRequest cellRequest = new NetworkRequest.Builder() in testStateChangeNetworkCallbacks() 1397 NetworkRequest request = new NetworkRequest.Builder() in testMultipleLingering() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitorTest.java | 44 import android.net.NetworkRequest; 164 any(NetworkRequest.class), any(NetworkCallback.class), any(Handler.class)); in testDuplicateMobileRequestsIgnored() 173 any(NetworkRequest.class), any(NetworkCallback.class), anyInt(), anyInt(), in testDuplicateMobileRequestsIgnored() 253 public Map<NetworkCallback, NetworkRequest> listening = new HashMap<>(); 254 public Map<NetworkCallback, NetworkRequest> requested = new HashMap<>(); 273 for (NetworkRequest req : listening.values()) { in isListeningForAll() 282 for (NetworkRequest req : requested.values()) { in isDunRequested() 291 public void requestNetwork(NetworkRequest req, NetworkCallback cb, Handler h) { in requestNetwork() 299 public void requestNetwork(NetworkRequest req, NetworkCallback cb) { in requestNetwork() 304 public void requestNetwork(NetworkRequest req, NetworkCallback cb, in requestNetwork() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneSwitcher.java | 29 import android.net.NetworkRequest; 188 onRequestNetwork((NetworkRequest)msg.obj); in handleMessage() 192 onReleaseNetwork((NetworkRequest)msg.obj); in handleMessage() 223 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() 231 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() 239 private void onRequestNetwork(NetworkRequest networkRequest) { in onRequestNetwork() 248 private void onReleaseNetwork(NetworkRequest networkRequest) { in onReleaseNetwork() 367 private int phoneIdForRequest(NetworkRequest netRequest) { in phoneIdForRequest()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitor.java | 30 import android.net.NetworkRequest; 107 final NetworkRequest listenAllRequest = new NetworkRequest.Builder() in start() 152 final NetworkRequest mobileUpstreamRequest = new NetworkRequest.Builder() in registerMobileNetworkRequest()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactoryTest.java | 22 import android.net.NetworkRequest; 112 private NetworkRequest makeSubSpecificDefaultRequest(TestSetup ts, int subId) { in makeSubSpecificDefaultRequest() 120 private NetworkRequest makeSubSpecificMmsRequest(TestSetup ts, int subId) { in makeSubSpecificMmsRequest() 165 NetworkRequest subSpecificDefault = makeSubSpecificDefaultRequest(ts, subId); in testActive() 179 NetworkRequest subSpecificMms = makeSubSpecificMmsRequest(ts, subId); in testActive()
|
D | ApnContextTest.java | 21 import android.net.NetworkRequest; 143 NetworkRequest nr = new NetworkRequest.Builder().build(); in testNetworkRequest()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 64 import android.net.NetworkRequest; 686 mDefaultRequest = createInternetRequestForTransport(-1, NetworkRequest.Type.REQUEST); in ConnectivityService() 692 NetworkCapabilities.TRANSPORT_CELLULAR, NetworkRequest.Type.BACKGROUND_REQUEST); in ConnectivityService() 843 private NetworkRequest createInternetRequestForTransport( in createInternetRequestForTransport() 844 int transportType, NetworkRequest.Type type) { in createInternetRequestForTransport() 851 return new NetworkRequest(netCap, TYPE_NONE, nextNetworkRequestId(), type); in createInternetRequestForTransport() 2293 NetworkRequest request = nai.requestAt(i); in handleAsyncChannelDisconnected() 2338 for (Map.Entry<NetworkRequest, NetworkRequestInfo> entry : mNetworkRequests.entrySet()) { in findExistingNetworkRequestInfo() 2436 NetworkRequest request, int callingUid, String requestedOperation) { in getNriForAppRequest() 2457 private void handleReleaseNetworkRequest(NetworkRequest request, int callingUid) { in handleReleaseNetworkRequest() [all …]
|
/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/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManagerTest.java | 39 import android.net.NetworkRequest; 417 NetworkRequest nr = getSessionNetworkRequest(clientId, res.first, peerHandle, pmk, in testDataPathInitiatorResponderMismatchUtility() 483 NetworkRequest nr; in testDataPathInitiatorUtility() 568 NetworkRequest nr; in testDataPathResponderUtility() 644 private NetworkRequest getSessionNetworkRequest(int clientId, int sessionId, in getSessionNetworkRequest() 709 return new NetworkRequest(nc, 0, 0, NetworkRequest.Type.NONE); in getSessionNetworkRequest() 712 private NetworkRequest getDirectNetworkRequest(int clientId, int role, byte[] peer, in getDirectNetworkRequest() 747 return new NetworkRequest(nc, 0, 0, NetworkRequest.Type.REQUEST); in getDirectNetworkRequest()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSwitcherTest.java | 22 import android.net.NetworkRequest; 154 private NetworkRequest makeSubSpecificDefaultRequest(ConnectivityServiceMock cs, int subId) { in makeSubSpecificDefaultRequest() 163 private NetworkRequest makeSubSpecificMmsRequest(ConnectivityServiceMock cs, int subId) { in makeSubSpecificMmsRequest() 337 NetworkRequest request = makeSubSpecificDefaultRequest(connectivityServiceMock, 0); in testRegister() 469 NetworkRequest request = makeSubSpecificMmsRequest(connectivityServiceMock, 1); in testPrioritization()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerImpl.java | 33 import android.net.NetworkRequest; 63 private static final NetworkRequest REQUEST = new NetworkRequest.Builder()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CaptivePortalLoginActivity.java | 28 import android.net.NetworkRequest; 263 NetworkRequest request = new NetworkRequest.Builder() in requestNetworkForCaptivePortal()
|
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivity.java | 29 import android.net.NetworkRequest; 114 final NetworkRequest.Builder builder = new NetworkRequest.Builder(); in onCreate()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | TetheringTest.java | 51 import android.net.NetworkRequest; 298 any(NetworkRequest.class), any(NetworkCallback.class), any(Handler.class)); in workingLocalOnlyHotspotEnrichedApBroadcast() 397 any(NetworkRequest.class), any(NetworkCallback.class), any(Handler.class)); in workingWifiTetheringEnrichedApBroadcast() 404 any(NetworkRequest.class), any(NetworkCallback.class), eq(0), anyInt(), in workingWifiTetheringEnrichedApBroadcast()
|